aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/mheap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/runtime/mheap.c')
-rw-r--r--src/pkg/runtime/mheap.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/pkg/runtime/mheap.c b/src/pkg/runtime/mheap.c
index 8bfb41ac67..90acd55f9f 100644
--- a/src/pkg/runtime/mheap.c
+++ b/src/pkg/runtime/mheap.c
@@ -622,19 +622,10 @@ runtime·MHeap_Scavenge(int32 k, uint64 now, uint64 limit)
}
}
-static void
-scavenge_m(G *gp)
-{
- runtime·MHeap_Scavenge(-1, ~(uintptr)0, 0);
- runtime·gogo(&gp->sched);
-}
-
void
-runtime∕debug·freeOSMemory(void)
+runtime·scavenge_m(void)
{
- runtime·gc(2); // force GC and do eager sweep
-
- runtime·mcall(scavenge_m);
+ runtime·MHeap_Scavenge(-1, ~(uintptr)0, 0);
}
// Initialize a new span with the given start and npages.