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

Этот коммит содержится в:
Damian Gryski 2022-10-18 09:55:26 -07:00 коммит произвёл Ron Evans
родитель b734b3c7a1
коммит 6b46ae261a

Просмотреть файл

@ -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")
}
}