зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1123237 - Part 12. Fix GC hazards. r=terrence
This commit is contained in:
Родитель
4efb6ef006
Коммит
16cae3c6c6
|
@ -2908,6 +2908,8 @@ class MemProfiler
|
|||
}
|
||||
|
||||
static void SampleNative(void* addr, uint32_t size) {
|
||||
JS::AutoSuppressGCAnalysis nogc;
|
||||
|
||||
if (MOZ_LIKELY(!enabled()))
|
||||
return;
|
||||
|
||||
|
@ -2917,6 +2919,8 @@ class MemProfiler
|
|||
}
|
||||
|
||||
static void SampleTenured(void* addr, uint32_t size) {
|
||||
JS::AutoSuppressGCAnalysis nogc;
|
||||
|
||||
if (MOZ_LIKELY(!enabled()))
|
||||
return;
|
||||
|
||||
|
@ -2926,6 +2930,8 @@ class MemProfiler
|
|||
}
|
||||
|
||||
static void SampleNursery(void* addr, uint32_t size) {
|
||||
JS::AutoSuppressGCAnalysis nogc;
|
||||
|
||||
if (MOZ_LIKELY(!enabled()))
|
||||
return;
|
||||
|
||||
|
@ -2935,6 +2941,8 @@ class MemProfiler
|
|||
}
|
||||
|
||||
static void RemoveNative(void* addr) {
|
||||
JS::AutoSuppressGCAnalysis nogc;
|
||||
|
||||
if (MOZ_LIKELY(!enabled()))
|
||||
return;
|
||||
|
||||
|
@ -2944,6 +2952,8 @@ class MemProfiler
|
|||
}
|
||||
|
||||
static void MarkTenuredStart(JSRuntime* runtime) {
|
||||
JS::AutoSuppressGCAnalysis nogc;
|
||||
|
||||
if (MOZ_LIKELY(!enabled()))
|
||||
return;
|
||||
|
||||
|
@ -2953,6 +2963,8 @@ class MemProfiler
|
|||
}
|
||||
|
||||
static void MarkTenured(void* addr) {
|
||||
JS::AutoSuppressGCAnalysis nogc;
|
||||
|
||||
if (MOZ_LIKELY(!enabled()))
|
||||
return;
|
||||
|
||||
|
@ -2962,6 +2974,8 @@ class MemProfiler
|
|||
}
|
||||
|
||||
static void SweepTenured(JSRuntime* runtime) {
|
||||
JS::AutoSuppressGCAnalysis nogc;
|
||||
|
||||
if (MOZ_LIKELY(!enabled()))
|
||||
return;
|
||||
|
||||
|
@ -2971,6 +2985,8 @@ class MemProfiler
|
|||
}
|
||||
|
||||
static void SweepNursery(JSRuntime* runtime) {
|
||||
JS::AutoSuppressGCAnalysis nogc;
|
||||
|
||||
if (MOZ_LIKELY(!enabled()))
|
||||
return;
|
||||
|
||||
|
@ -2980,6 +2996,8 @@ class MemProfiler
|
|||
}
|
||||
|
||||
static void MoveNurseryToTenured(void* addrOld, void* addrNew) {
|
||||
JS::AutoSuppressGCAnalysis nogc;
|
||||
|
||||
if (MOZ_LIKELY(!enabled()))
|
||||
return;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче