Write you a Barrier - Automatic Insertion of Write Barriers
summary
WB Check is a static-analysis tool that finds where C extensions must call write barriers and can insert rb_obj_write calls automatically; it preprocesses sources with gcc -E and parses C99 with Tsurishitta to follow TypedData uses and field writes. A run on data_core.c reports 10 detected reference-change sites and shows some missing barriers and some already-corrected sites. Current limits: only memcpy is recognized, array/field pointer aliases are undertracked, and preprocessing automation is manual; source code is published for feedback.
AI-written summary · about
chapters (6)
- 0:00Introduction and motivation
- 5:37Write barriers in Ruby GC
- 14:24WB Check tool overview
- 26:21Tool demo and results
- 28:59Future improvements
- 30:09Q&A
related talks
28mA Write Barrier Validating GC for Ruby
21mWeak Memory Demands Model-based Compiler Testing
21mAutomated Robustness Verification of Concurrent Data Structure Libraries Against(…)
21mSome things I wish I hadn’t seen
36mCould a Machine ever write tests for our code
18mSound Static Data Race Verification for C: Is the Race Lost?
01h 11mProgramming language memory models: Problems, solutions, and directions
17mDynamic Robustness Verification against Weak Memory
