Project

General

Profile

« Previous | Next » 

Revision 5f1ca8ff

Added by jhawthorn (John Hawthorn) 4 months ago

Fix ractor imemo fields write barrier parent

$ RUBY_GC_LIBRARY=wbcheck ./miniruby -e 's = String.new; s.instance_variable_set(:@x, []); Ractor.make_shareable(s, copy: true)'

WBCHECK ERROR: Missed write barrier detected!
  Parent object: 0x7ba8162dc890 (wb_protected: true)
    rb_obj_info_dump: 0x00007ba8162dc890 T_IMEMO/<fields>
  Reference counts - snapshot: 2, writebarrier: 0, current: 2, missed: 1
  Missing reference to: 0x7ba8162dcad0
    rb_obj_info_dump: 0x00007ba8162dcad0 T_ARRAY/Array [E ] len: 0 (embed)

WBCHECK SUMMARY: Found 1 objects with missed write barriers (1 total violations)