fix: GC() signature
This commit is contained in:
@@ -352,10 +352,11 @@ func free(ptr unsafe.Pointer) {
|
|||||||
// TODO: free blocks on request, when the compiler knows they're unused.
|
// TODO: free blocks on request, when the compiler knows they're unused.
|
||||||
}
|
}
|
||||||
|
|
||||||
func GC() {
|
func GC() uintptr {
|
||||||
lock(&gcMutex)
|
lock(&gcMutex)
|
||||||
gc()
|
freeBytes := gc()
|
||||||
unlock(&gcMutex)
|
unlock(&gcMutex)
|
||||||
|
return freeBytes
|
||||||
}
|
}
|
||||||
|
|
||||||
// runGC performs a garbage collection cycle. It is the internal implementation
|
// runGC performs a garbage collection cycle. It is the internal implementation
|
||||||
|
|||||||
Reference in New Issue
Block a user