mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-07-26 06:38:42 +00:00
16fc1ea2bb
Match the Go runtime by terminating for deadlocks, stack overflows, runtime and GC invariants, invalid lock operations, and platform initialization failures instead of routing them through panic/recover. Keep language-level runtime errors and unsupported user operations recoverable. Add crash coverage that verifies fatal errors bypass deferred recover calls.
12 lines
283 B
Go
12 lines
283 B
Go
package runtime
|
|
|
|
import _ "unsafe"
|
|
|
|
// TODO: Use hardware when available
|
|
//
|
|
//go:linkname vgetrandom
|
|
func vgetrandom(p []byte, flags uint32) (ret int, supported bool) { return 0, false }
|
|
|
|
//go:linkname fatal crypto/internal/sysrand.fatal
|
|
func fatal(msg string) { runtimeFatal(msg) }
|