Skip to content

YJIT: don't compile attr_accessor methods when tracing#117

Closed
XrXr wants to merge 1 commit intoyjit_upstream_prfrom
yjit-attr-tp
Closed

YJIT: don't compile attr_accessor methods when tracing#117
XrXr wants to merge 1 commit intoyjit_upstream_prfrom
yjit-attr-tp

Conversation

@XrXr
Copy link

@XrXr XrXr commented Oct 20, 2021

2d98593 made it so that
attr_accessor methods fire C method tracing events.
Previously, we weren't checking for whether we are tracing before
compiling, leading to missed events.

Since global invalidation invalidates all code, and that attr_accessor
methods can never enable tracing while running, events are only dropped
when YJIT tries to compile when tracing is already enabled.

Factor out the code for checking tracing and check it before generating
code for attr_accessor methods.

This change fixes TestSetTraceFunc#test_tracepoint_attr when it's
ran in isolation.

2d98593 made it so that
attr_accessor methods fire C method tracing events.
Previously, we weren't checking for whether we are tracing before
compiling, leading to missed events.

Since global invalidation invalidates all code, and that attr_accessor
methods can never enable tracing while running, events are only dropped
when YJIT tries to compile when tracing is already enabled.

Factor out the code for checking tracing and check it before generating
code for attr_accessor methods.

This change fixes TestSetTraceFunc#test_tracepoint_attr when it's
ran in isolation.
@XrXr XrXr requested a review from maximecb October 20, 2021 20:36
@XrXr XrXr changed the base branch from yjit_upstream_pr to master October 20, 2021 20:37
@XrXr XrXr changed the base branch from master to yjit_upstream_pr October 20, 2021 20:37
@XrXr XrXr closed this Oct 20, 2021
@XrXr XrXr reopened this Oct 20, 2021
@XrXr XrXr closed this Oct 20, 2021
@XrXr
Copy link
Author

XrXr commented Oct 20, 2021

Closing this for now to free up CI capacity. Will reopen against upstream once YJIT goes in.

XrXr added a commit that referenced this pull request Oct 21, 2021
Send instructions currently generate the exact same side exit twice.
Cache the exit the first time we generate it. Also add a comment
explaining what side exits do.

Closes GH-117.
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