Loading core/java/android/os/CombinedMessageQueue/MessageQueue.java +6 −0 Original line number Diff line number Diff line Loading @@ -2608,6 +2608,8 @@ public final class MessageQueue { private volatile boolean mRemovedFromStackValue; static { try { // We need to use VarHandle rather than java.util.concurrent.atomic.* // for performance reasons. See: b/421437036 MethodHandles.Lookup l = MethodHandles.lookup(); sRemovedFromStack = l.findVarHandle(MessageQueue.MessageNode.class, "mRemovedFromStackValue", boolean.class); Loading Loading @@ -2681,6 +2683,8 @@ public final class MessageQueue { static { try { // We need to use VarHandle rather than java.util.concurrent.atomic.* // for performance reasons. See: b/421437036 MethodHandles.Lookup l = MethodHandles.lookup(); sState = l.findVarHandle(MessageQueue.class, "mStateValue", MessageQueue.StackNode.class); Loading Loading @@ -2803,6 +2807,8 @@ public final class MessageQueue { private volatile long mCountsValue = 0; static { try { // We need to use VarHandle rather than java.util.concurrent.atomic.* // for performance reasons. See: b/421437036 MethodHandles.Lookup l = MethodHandles.lookup(); sCounts = l.findVarHandle(MessageQueue.MessageCounts.class, "mCountsValue", long.class); Loading Loading
core/java/android/os/CombinedMessageQueue/MessageQueue.java +6 −0 Original line number Diff line number Diff line Loading @@ -2608,6 +2608,8 @@ public final class MessageQueue { private volatile boolean mRemovedFromStackValue; static { try { // We need to use VarHandle rather than java.util.concurrent.atomic.* // for performance reasons. See: b/421437036 MethodHandles.Lookup l = MethodHandles.lookup(); sRemovedFromStack = l.findVarHandle(MessageQueue.MessageNode.class, "mRemovedFromStackValue", boolean.class); Loading Loading @@ -2681,6 +2683,8 @@ public final class MessageQueue { static { try { // We need to use VarHandle rather than java.util.concurrent.atomic.* // for performance reasons. See: b/421437036 MethodHandles.Lookup l = MethodHandles.lookup(); sState = l.findVarHandle(MessageQueue.class, "mStateValue", MessageQueue.StackNode.class); Loading Loading @@ -2803,6 +2807,8 @@ public final class MessageQueue { private volatile long mCountsValue = 0; static { try { // We need to use VarHandle rather than java.util.concurrent.atomic.* // for performance reasons. See: b/421437036 MethodHandles.Lookup l = MethodHandles.lookup(); sCounts = l.findVarHandle(MessageQueue.MessageCounts.class, "mCountsValue", long.class); Loading