зеркало из https://github.com/mozilla/gecko-dev.git
Bug 798510 - Part 2: Fix bug in JSRuntime::sizeOfExplicitNonHeap() where, if execAlloc_ is null, we don't measure the stack space. rs=njn
This commit is contained in:
Родитель
a82900f6ee
Коммит
2721f60472
|
@ -139,12 +139,15 @@ JSRuntime::sizeOfIncludingThis(JSMallocSizeOfFun mallocSizeOf, RuntimeSizes *rtS
|
|||
size_t
|
||||
JSRuntime::sizeOfExplicitNonHeap()
|
||||
{
|
||||
if (!execAlloc_)
|
||||
return 0;
|
||||
size_t size = stackSpace.sizeOf();
|
||||
|
||||
size_t jaegerCode, ionCode, regexpCode, unusedCode;
|
||||
execAlloc_->sizeOfCode(&jaegerCode, &ionCode, ®expCode, &unusedCode);
|
||||
return jaegerCode + ionCode + regexpCode + unusedCode + stackSpace.sizeOf();
|
||||
if (execAlloc_) {
|
||||
size_t jaegerCode, ionCode, regexpCode, unusedCode;
|
||||
execAlloc_->sizeOfCode(&jaegerCode, &ionCode, ®expCode, &unusedCode);
|
||||
size += jaegerCode + ionCode + regexpCode + unusedCode;
|
||||
}
|
||||
|
||||
return size;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Загрузка…
Ссылка в новой задаче