Commit Graph

2 Commits

Author SHA1 Message Date
Ayke van Laethem 31e0662856 runtime: use a specialized runtime panic function
This specifically fixes unix alloc(): previously when allocation fails
it would (recursively) call alloc() again to create an interface due to
lacking escape analysis.
Also, all other cases shouldn't try to allocate just because something
bad happens at runtime.

TODO: implement escape analysis.
2018-09-11 19:50:49 +02:00
Ayke van Laethem 01635b5efd runtime: move panic functions to a separate file 2018-09-06 09:59:32 +02:00