runtime: switch some panic() calls in the gc to runtimePanic() for consistency
Этот коммит содержится в:
родитель
b734b3c7a1
коммит
6b46ae261a
1 изменённых файлов: 2 добавлений и 2 удалений
|
@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче