Mercurial > hg > graal-jvmci-8
comparison src/share/vm/runtime/objectMonitor.hpp @ 14318:1020b892787b
Merge
author | hseigel |
---|---|
date | Sun, 02 Feb 2014 15:31:40 -0500 |
parents | 63a4eb8bcd23 |
children | 4ca6dc0799b6 |
comparison
equal
deleted
inserted
replaced
14317:b59507f713e0 | 14318:1020b892787b |
---|---|
99 static int WaitSet_offset_in_bytes() { return offset_of(ObjectMonitor, _WaitSet) ; } | 99 static int WaitSet_offset_in_bytes() { return offset_of(ObjectMonitor, _WaitSet) ; } |
100 static int Responsible_offset_in_bytes() { return offset_of(ObjectMonitor, _Responsible);} | 100 static int Responsible_offset_in_bytes() { return offset_of(ObjectMonitor, _Responsible);} |
101 static int Spinner_offset_in_bytes() { return offset_of(ObjectMonitor, _Spinner); } | 101 static int Spinner_offset_in_bytes() { return offset_of(ObjectMonitor, _Spinner); } |
102 | 102 |
103 public: | 103 public: |
104 // Eventaully we'll make provisions for multiple callbacks, but | 104 // Eventually we'll make provisions for multiple callbacks, but |
105 // now one will suffice. | 105 // now one will suffice. |
106 static int (*SpinCallbackFunction)(intptr_t, int) ; | 106 static int (*SpinCallbackFunction)(intptr_t, int) ; |
107 static intptr_t SpinCallbackArgument ; | 107 static intptr_t SpinCallbackArgument ; |
108 | 108 |
109 | 109 |
270 | 270 |
271 // TODO-FIXME: _count, _waiters and _recursions should be of | 271 // TODO-FIXME: _count, _waiters and _recursions should be of |
272 // type int, or int32_t but not intptr_t. There's no reason | 272 // type int, or int32_t but not intptr_t. There's no reason |
273 // to use 64-bit fields for these variables on a 64-bit JVM. | 273 // to use 64-bit fields for these variables on a 64-bit JVM. |
274 | 274 |
275 volatile intptr_t _count; // reference count to prevent reclaimation/deflation | 275 volatile intptr_t _count; // reference count to prevent reclamation/deflation |
276 // at stop-the-world time. See deflate_idle_monitors(). | 276 // at stop-the-world time. See deflate_idle_monitors(). |
277 // _count is approximately |_WaitSet| + |_EntryList| | 277 // _count is approximately |_WaitSet| + |_EntryList| |
278 protected: | 278 protected: |
279 volatile intptr_t _waiters; // number of waiting threads | 279 volatile intptr_t _waiters; // number of waiting threads |
280 private: | 280 private: |