runtime: switch some panic() calls in the gc to runtimePanic() for consistency

This commit is contained in:
Damian Gryski
2022-10-18 09:55:26 -07:00
committed by Ron Evans
parent b734b3c7a1
commit 6b46ae261a
+2 -2
View File
@@ -202,7 +202,7 @@ func initHeap() {
// will be expensive.
func setHeapEnd(newHeapEnd uintptr) {
if gcAsserts && newHeapEnd <= heapEnd {
panic("gc: setHeapEnd didn't grow the heap")
runtimePanic("gc: setHeapEnd didn't grow the heap")
}
// Save some old variables we need later.
@@ -224,7 +224,7 @@ func setHeapEnd(newHeapEnd uintptr) {
// should be used to avoid corruption.
// This assert checks whether that's true.
if gcAsserts && uintptr(metadataStart) < uintptr(oldMetadataStart)+oldMetadataSize {
panic("gc: heap did not grow enough at once")
runtimePanic("gc: heap did not grow enough at once")
}
}