Mercurial > hg > truffle
comparison src/share/vm/runtime/objectMonitor.hpp @ 14909:4ca6dc0799b6
Backout jdk9 merge
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Tue, 01 Apr 2014 13:57:07 +0200 |
parents | 63a4eb8bcd23 |
children |
comparison
equal
deleted
inserted
replaced
14908:8db6e76cb658 | 14909:4ca6dc0799b6 |
---|---|
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 // Eventually we'll make provisions for multiple callbacks, but | 104 // Eventaully 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 reclamation/deflation | 275 volatile intptr_t _count; // reference count to prevent reclaimation/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: |