We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1110c40 commit b6fa505Copy full SHA for b6fa505
src/runtime/traceallocfree.go
@@ -49,11 +49,6 @@ func traceSnapshotMemory(gen uintptr) {
49
throw("traceSnapshotMemory: tracing is not enabled")
50
}
51
52
- // Write out all the goroutine stacks.
53
- forEachGRace(func(gp *g) {
54
- trace.GoroutineStackExists(gp.stack.lo, gp.stack.hi-gp.stack.lo)
55
- })
56
-
57
// Write out all the heap spans and heap objects.
58
for _, s := range mheap_.allspans {
59
if s.state.get() == mSpanDead {
@@ -77,6 +72,11 @@ func traceSnapshotMemory(gen uintptr) {
77
72
abits.advance()
78
73
79
74
75
+
76
+ // Write out all the goroutine stacks.
+ forEachGRace(func(gp *g) {
+ trace.GoroutineStackExists(gp.stack.lo, gp.stack.hi-gp.stack.lo)
+ })
80
traceRelease(trace)
81
82
0 commit comments