diff options
Diffstat (limited to 'runtime/monitor.h')
| -rw-r--r-- | runtime/monitor.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/monitor.h b/runtime/monitor.h index 6b7604ec8a..c1f84e92bf 100644 --- a/runtime/monitor.h +++ b/runtime/monitor.h @@ -181,6 +181,8 @@ class Monitor { // this routine. void RemoveFromWaitSet(Thread* thread) REQUIRES(monitor_lock_); + void SignalContendersAndReleaseMonitorLock(Thread* self) RELEASE(monitor_lock_); + // Changes the shape of a monitor from thin to fat, preserving the internal lock state. The // calling thread must own the lock or the owner must be suspended. There's a race with other // threads inflating the lock, installing hash codes and spurious failures. The caller should @@ -306,6 +308,9 @@ class Monitor { // Threads currently waiting on this monitor. Thread* wait_set_ GUARDED_BY(monitor_lock_); + // Threads that were waiting on this monitor, but are now contending on it. + Thread* wake_set_ GUARDED_BY(monitor_lock_); + // Stored object hash code, generated lazily by GetHashCode. AtomicInteger hash_code_; |