diff options
Diffstat (limited to 'src/runtime/malloc_go.cgo')
-rw-r--r-- | src/runtime/malloc_go.cgo | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/runtime/malloc_go.cgo b/src/runtime/malloc_go.cgo index 7c55c1078..6dcdaece2 100644 --- a/src/runtime/malloc_go.cgo +++ b/src/runtime/malloc_go.cgo @@ -15,9 +15,14 @@ func Free(p *byte) { } func Lookup(p *byte) (base *byte, size uintptr) { - mlookup(p, &base, &size); + mlookup(p, &base, &size, nil); } func GetStats() (s *MStats) { s = &mstats; } + +func GC() { + gc(1); +} + |