diff options
author | 2018-10-29 20:03:51 -0700 | |
---|---|---|
committer | 2018-10-31 18:40:21 +0000 | |
commit | 7530bae4f286d828d6394303ee2622c1b01b7e43 (patch) | |
tree | 6232fa29b6ce0dd2d4ac4cc47615ee08d9da59a9 /runtime/base/mutex-inl.h | |
parent | 97d40f9c7b1157783d09861ce76d3a0b3da73cbe (diff) |
Use _PRIVATE versions of futex ops.
This flag allows some performance optimizations in the kernel for futex
words that are only used in one process.
Tested: art$ grep FUTEX_ **/*.cc **/*.h
Change-Id: I490b9592ca0f0ab5ab5431682e8b2104f5c917ca
Diffstat (limited to 'runtime/base/mutex-inl.h')
-rw-r--r-- | runtime/base/mutex-inl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/base/mutex-inl.h b/runtime/base/mutex-inl.h index 74db31256b..e775fe4505 100644 --- a/runtime/base/mutex-inl.h +++ b/runtime/base/mutex-inl.h @@ -196,7 +196,7 @@ inline void ReaderWriterMutex::SharedUnlock(Thread* self) { if (num_pending_writers_.load(std::memory_order_seq_cst) > 0 || num_pending_readers_.load(std::memory_order_seq_cst) > 0) { // Wake any exclusive waiters as there are now no readers. - futex(state_.Address(), FUTEX_WAKE, -1, nullptr, nullptr, 0); + futex(state_.Address(), FUTEX_WAKE_PRIVATE, -1, nullptr, nullptr, 0); } } } else { |