mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1123237 - Part 5. Don't emit inline allocation when memory profiler enabled. r=terrence
Based on patch from Ting-Yuan Huang <laszio.bugzilla@gmail.com>
This commit is contained in:
parent
15c949bde6
commit
2d3e068f94
@ -1054,8 +1054,9 @@ MacroAssembler::checkUnboxedArrayCapacity(Register obj, const Int32Key& index, R
|
||||
void
|
||||
MacroAssembler::checkAllocatorState(Label* fail)
|
||||
{
|
||||
// Don't execute the inline path if we are tracing allocations.
|
||||
if (js::gc::TraceEnabled())
|
||||
// Don't execute the inline path if we are tracing allocations,
|
||||
// or when the memory profiler is enabled.
|
||||
if (js::gc::TraceEnabled() || MemProfiler::enabled())
|
||||
jump(fail);
|
||||
|
||||
# ifdef JS_GC_ZEAL
|
||||
|
Loading…
Reference in New Issue
Block a user