runtime: encode pending Goexit in panic state

Treat panicState as a bitmask so a recovered panic during Goexit
can clear the panic bit while preserving the pending Goexit bit.
This removes the separate deferFrame Goexit field and restores the
previous defer frame size.
This commit is contained in:
Jake Bailey
2026-07-04 14:08:16 -07:00
committed by Ron Evans
parent d59c706e60
commit e039ce131c
3 changed files with 19 additions and 22 deletions
+3 -3
View File
@@ -42,9 +42,9 @@ func TestBinarySize(t *testing.T) {
// This is a small number of very diverse targets that we want to test.
tests := []sizeTest{
// microcontrollers
{"hifive1b", "examples/echo", 3765, 307, 0, 2260},
{"microbit", "examples/serial", 2824, 368, 8, 2256},
{"wioterminal", "examples/pininterrupt", 8041, 1663, 132, 7488},
{"hifive1b", "examples/echo", 3771, 309, 0, 2260},
{"microbit", "examples/serial", 2832, 368, 8, 2256},
{"wioterminal", "examples/pininterrupt", 8053, 1663, 132, 7488},
// TODO: also check wasm. Right now this is difficult, because
// wasm binaries are run through wasm-opt and therefore the