The size of ActorCell is not 64bytes

I measured ActorCell is 84bytes, 88bytes and 92bytes in 32/64-bit system
environment. So I changged the annotation of ActorCell.
This commit is contained in:
qian miao 2015-01-14 13:07:28 +08:00
parent c56d670c03
commit cd58afc7f0

View file

@ -358,7 +358,7 @@ private[akka] object ActorCell {
final val SuspendedWaitForChildrenState = 2
}
//ACTORCELL IS 64bytes and should stay that way unless very good reason not to (machine sympathy, cache line fit)
//ACTORCELL is NOT 64 bytes aligned, unless it is demonstrated to have a large improvement on performance
//vars don't need volatile since it's protected with the mailbox status
//Make sure that they are not read/written outside of a message processing (systemInvoke/invoke)
/**