diff options
Diffstat (limited to 'src/pkg/runtime/mheap.c')
| -rw-r--r-- | src/pkg/runtime/mheap.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/pkg/runtime/mheap.c b/src/pkg/runtime/mheap.c index e076d89f13..6dd5fa9bf9 100644 --- a/src/pkg/runtime/mheap.c +++ b/src/pkg/runtime/mheap.c @@ -460,9 +460,7 @@ runtime·MHeap_Scavenger(void) h = &runtime·mheap; for(k=0;; k++) { runtime·noteclear(¬e); - runtime·entersyscallblock(); - runtime·notetsleep(¬e, tick); - runtime·exitsyscall(); + runtime·notetsleepg(¬e, tick); runtime·lock(h); now = runtime·nanotime(); @@ -474,9 +472,7 @@ runtime·MHeap_Scavenger(void) runtime·noteclear(¬e); notep = ¬e; runtime·newproc1(&forcegchelperv, (byte*)¬ep, sizeof(notep), 0, runtime·MHeap_Scavenger); - runtime·entersyscallblock(); - runtime·notesleep(¬e); - runtime·exitsyscall(); + runtime·notetsleepg(¬e, -1); if(runtime·debug.gctrace > 0) runtime·printf("scvg%d: GC forced\n", k); runtime·lock(h); |
