|author||Alan Wu <XrXr@users.noreply.github.com>||2021-10-21 15:07:32 -0400|
|committer||GitHub <firstname.lastname@example.org>||2021-10-21 15:07:32 -0400|
2d98593bf54a37397c6e4886ccc7e3654c2eaf85 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.
Notes: Merged-By: maximecb
Diffstat (limited to 'ext/fcntl')
0 files changed, 0 insertions, 0 deletions