diff options
Diffstat (limited to 'src/runtime/export_test.go')
| -rw-r--r-- | src/runtime/export_test.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/runtime/export_test.go b/src/runtime/export_test.go index 731ba5d6b9..48dcf5aa39 100644 --- a/src/runtime/export_test.go +++ b/src/runtime/export_test.go @@ -639,6 +639,15 @@ func RunGetgThreadSwitchTest() { } } +// Expose freegc for testing. +func Freegc(p unsafe.Pointer, size uintptr, noscan bool) { + freegc(p, size, noscan) +} + +const SizeSpecializedMallocEnabled = sizeSpecializedMallocEnabled + +const RuntimeFreegcEnabled = runtimeFreegcEnabled + const ( PageSize = pageSize PallocChunkPages = pallocChunkPages |
