aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/export_map_noswiss_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/export_map_noswiss_test.go')
-rw-r--r--src/runtime/export_map_noswiss_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/runtime/export_map_noswiss_test.go b/src/runtime/export_map_noswiss_test.go
index 9e6d81a77c..4638afa6b8 100644
--- a/src/runtime/export_map_noswiss_test.go
+++ b/src/runtime/export_map_noswiss_test.go
@@ -11,6 +11,12 @@ import (
"unsafe"
)
+const RuntimeHmapSize = unsafe.Sizeof(hmap{})
+
+func OverLoadFactor(count int, B uint8) bool {
+ return overLoadFactor(count, B)
+}
+
func MapBucketsCount(m map[int]int) int {
h := *(**hmap)(unsafe.Pointer(&m))
return 1 << h.B