mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 913558 - Improve GGC store buffer threadsafe assertions, r=terrence.
This commit is contained in:
parent
a39b15f003
commit
5f4c033b10
@ -120,7 +120,7 @@ class StoreBuffer
|
||||
/* Add one item to the buffer. */
|
||||
void put(const T &t) {
|
||||
mozilla::ReentrancyGuard g(*this);
|
||||
JS_ASSERT(!owner->inParallelSection());
|
||||
JS_ASSERT(CurrentThreadCanAccessRuntime(owner->runtime));
|
||||
|
||||
if (!enabled_)
|
||||
return;
|
||||
@ -159,7 +159,7 @@ class StoreBuffer
|
||||
|
||||
/* Record a removal from the buffer. */
|
||||
void unput(const T &v) {
|
||||
JS_ASSERT(!this->owner->inParallelSection());
|
||||
JS_ASSERT(CurrentThreadCanAccessRuntime(this->owner->runtime));
|
||||
MonoTypeBuffer<T>::put(v.tagged());
|
||||
}
|
||||
};
|
||||
@ -194,7 +194,7 @@ class StoreBuffer
|
||||
template <typename T>
|
||||
void put(const T &t) {
|
||||
mozilla::ReentrancyGuard g(*this);
|
||||
JS_ASSERT(!owner->inParallelSection());
|
||||
JS_ASSERT(CurrentThreadCanAccessRuntime(owner->runtime));
|
||||
|
||||
/* Ensure T is derived from BufferableRef. */
|
||||
(void)static_cast<const BufferableRef*>(&t);
|
||||
|
Loading…
Reference in New Issue
Block a user