Project

General

Profile

« Previous | Next » 

Revision 0d17cdd0

Added by alanwu (Alan Wu) about 5 years ago

Abort on system stack overflow during GC

Buggy native extensions could have mark functions that cause stack
overflow. When a stack overflow happens during GC, Ruby used to recover
by raising an exception, which runs the interpreter. It's not safe to
run the interpreter during GC since the GC is in an inconsistent state.
This could cause object allocation during GC, for example.

Instead of running the interpreter and potentially causing a crash down
the line, fail fast and abort.