Use write barriers for Backtrace objects#7253
Conversation
Backtrace objects hold references to: * iseqs - via the captured locations * strary - a lazily allocated array of strings * locary - a lazily allocated array of backtrace locations Co-authored-by: Adam Hess <[email protected]>
peterzhu2118
left a comment
There was a problem hiding this comment.
It looks like bt_update_cfunc_loc updates the iseq on the backtrace buffer, we might need a write barrier there.
|
I assume the |
The compact function doesn't need to fire write barriers since it's not writing a new object. |
I think (?) those are covered. It's called from two locations in |
Follow up to #7240, which enabled WB for Backtrace::Location. cc @casperisfine @peterzhu2118
Backtrace objects hold references to:
rb_backtrace_location_tCo-authored-by: Adam Hess [email protected]