diff options
Diffstat (limited to 'src/runtime/export_test.go')
| -rw-r--r-- | src/runtime/export_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/runtime/export_test.go b/src/runtime/export_test.go index c04b76ee44..db91bc650d 100644 --- a/src/runtime/export_test.go +++ b/src/runtime/export_test.go @@ -276,7 +276,7 @@ var ReadUnaligned32 = readUnaligned32 var ReadUnaligned64 = readUnaligned64 func CountPagesInUse() (pagesInUse, counted uintptr) { - stopTheWorld("CountPagesInUse") + stopTheWorld(stwForTestCountPagesInUse) pagesInUse = uintptr(mheap_.pagesInUse.Load()) @@ -319,7 +319,7 @@ func (p *ProfBuf) Close() { } func ReadMetricsSlow(memStats *MemStats, samplesp unsafe.Pointer, len, cap int) { - stopTheWorld("ReadMetricsSlow") + stopTheWorld(stwForTestReadMetricsSlow) // Initialize the metrics beforehand because this could // allocate and skew the stats. @@ -347,7 +347,7 @@ func ReadMetricsSlow(memStats *MemStats, samplesp unsafe.Pointer, len, cap int) // ReadMemStatsSlow returns both the runtime-computed MemStats and // MemStats accumulated by scanning the heap. func ReadMemStatsSlow() (base, slow MemStats) { - stopTheWorld("ReadMemStatsSlow") + stopTheWorld(stwForTestReadMemStatsSlow) // Run on the system stack to avoid stack growth allocation. systemstack(func() { @@ -1193,7 +1193,7 @@ func CheckScavengedBitsCleared(mismatches []BitsMismatch) (n int, ok bool) { } func PageCachePagesLeaked() (leaked uintptr) { - stopTheWorld("PageCachePagesLeaked") + stopTheWorld(stwForTestPageCachePagesLeaked) // Walk over destroyed Ps and look for unflushed caches. deadp := allp[len(allp):cap(allp)] |
