mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 846288 - Silence assert in Label destructor after an OOM. r=dvander
This commit is contained in:
parent
52534cf26d
commit
3814978de3
@ -238,9 +238,12 @@ class Label : public LabelBase
|
||||
{ }
|
||||
~Label()
|
||||
{
|
||||
// Note: the condition is a hack to avoid this assert when OOM testing,
|
||||
#ifdef DEBUG
|
||||
// Note: the condition is a hack to silence this assert when OOM testing,
|
||||
// see bug 756614.
|
||||
JS_ASSERT_IF(OOM_counter < OOM_maxAllocations, !used());
|
||||
if (!js_IonOptions.parallelCompilation)
|
||||
JS_ASSERT_IF(!GetIonContext()->cx->runtime->hadOutOfMemory, !used());
|
||||
#endif
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user