From cd58afc7f030a15ecd89ffd1fdd827986ffa5ae4 Mon Sep 17 00:00:00 2001 From: qian miao Date: Wed, 14 Jan 2015 13:07:28 +0800 Subject: [PATCH] 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. --- akka-actor/src/main/scala/akka/actor/ActorCell.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/akka-actor/src/main/scala/akka/actor/ActorCell.scala b/akka-actor/src/main/scala/akka/actor/ActorCell.scala index 71fe7a41a0..43ee7d71d3 100644 --- a/akka-actor/src/main/scala/akka/actor/ActorCell.scala +++ b/akka-actor/src/main/scala/akka/actor/ActorCell.scala @@ -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) /**