Skip to content

iseq: use RB_OBJ_WRITE for the lazy-load loader object - #17658

Merged
ko1 merged 1 commit into
ruby:masterfrom
ko1:iseq-loader-obj-wb
Jul 4, 2026
Merged

ko1 merged 1 commit into
ruby:masterfrom
ko1:iseq-loader-obj-wb

Conversation

@ko1

@ko1 ko1 commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

iseq->aux.loader.obj holds the ibf loader while an iseq is ISEQ_NOT_LOADED_YET, and iseq_mark marks it, so the store into it is a GC-managed reference and should go through the write barrier rather than a raw assignment.

iseq->aux.loader.obj holds the ibf loader while an iseq is
ISEQ_NOT_LOADED_YET, and iseq_mark marks it, so the store into it is a
GC-managed reference and should go through the write barrier rather than a
raw assignment.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@ko1
ko1 enabled auto-merge (rebase) July 4, 2026 04:06
@ko1
ko1 merged commit db3a193 into ruby:master Jul 4, 2026
179 of 190 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant