Project

General

Profile

« Previous | Next » 

Revision 295d648f

Added by katei (Yuta Saito) over 1 year ago

[wasm] Use xmalloc/xfree for jmpbuf allocation to trigger GC properly

rb_vm_tag_jmpbuf_{init,deinit} are safe to raise exception since the
given tag is not yet pushed to ec->tag or already popped from it at
the time, so ec->tag is always valid and it's safe to raise exception
when xmalloc fails.