diff options
| author | 2013-02-05 18:29:08 -0800 | |
|---|---|---|
| committer | 2013-02-05 18:29:08 -0800 | |
| commit | 1ffa32f0be7becec4907b26ead353e4b17e1219c (patch) | |
| tree | 4b023e55080f75a4945a44588d12bfbb3aec8bd3 /src/base/mutex.h | |
| parent | c0fa3ad44a84b7f658d16a717027bf95abc85db6 (diff) | |
Reduce inlining in debug builds.
Fixes 018-stack-overflow on the host with interpreter.
Change-Id: Ieed091b341b7812cfe898421a74d2f41f6a6a8bc
Diffstat (limited to 'src/base/mutex.h')
| -rw-r--r-- | src/base/mutex.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/base/mutex.h b/src/base/mutex.h index b530b752dc..b4e05365e9 100644 --- a/src/base/mutex.h +++ b/src/base/mutex.h @@ -223,14 +223,14 @@ class LOCKABLE ReaderWriterMutex : public BaseMutex { #endif // Block until ReaderWriterMutex is shared or free then acquire a share on the access. - void SharedLock(Thread* self) SHARED_LOCK_FUNCTION() __attribute__ ((always_inline)); + void SharedLock(Thread* self) SHARED_LOCK_FUNCTION() ALWAYS_INLINE; void ReaderLock(Thread* self) SHARED_LOCK_FUNCTION() { SharedLock(self); } // Try to acquire share of ReaderWriterMutex. bool SharedTryLock(Thread* self) EXCLUSIVE_TRYLOCK_FUNCTION(true); // Release a share of the access. - void SharedUnlock(Thread* self) UNLOCK_FUNCTION() __attribute__ ((always_inline)); + void SharedUnlock(Thread* self) UNLOCK_FUNCTION() ALWAYS_INLINE; void ReaderUnlock(Thread* self) UNLOCK_FUNCTION() { SharedUnlock(self); } // Is the current thread the exclusive holder of the ReaderWriterMutex. |