[ruby/strscan] Implement Write Barrier (https://github.com/ruby/strscan/pull/156)
StringScanner holds the string being scanned, and a regex for methods like match?. Triggering the write barrier for those allows us to mark this as WB protected.
match?
https://github.com/ruby/strscan/commit/32fec70407
[ruby/strscan] Implement Write Barrier
(https://github.com/ruby/strscan/pull/156)
StringScanner holds the string being scanned, and a regex for methods
like
match?
. Triggering the write barrier for those allows us to markthis as WB protected.
https://github.com/ruby/strscan/commit/32fec70407