mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-05 11:37:46 +00:00
runtime: improve panic message when heap allocating in an interrupt
The old message may have been confusing. With the new message, it should be more clear that we mean a _heap_ allocation.
This commit is contained in:
committed by
Ron Evans
parent
ae381e74a5
commit
0b2aec1164
@@ -278,7 +278,7 @@ func alloc(size uintptr, layout unsafe.Pointer) unsafe.Pointer {
|
||||
}
|
||||
|
||||
if interrupt.In() {
|
||||
runtimePanicAt(returnAddress(0), "alloc in interrupt")
|
||||
runtimePanicAt(returnAddress(0), "heap alloc in interrupt")
|
||||
}
|
||||
|
||||
gcTotalAlloc += uint64(size)
|
||||
|
||||
Reference in New Issue
Block a user