summaryrefslogtreecommitdiff
path: root/ext/-test-/bug-3571/bug.c
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2021-10-21 15:07:32 -0400
committerGitHub <noreply@github.com>2021-10-21 15:07:32 -0400
commitbdfc23cba9c7ade8f4528f38b19b0ea11c0d56c4 (patch)
treea0f2a8ac31ab070ddae0f13815ca71e7fb175868 /ext/-test-/bug-3571/bug.c
parentd0cad8ad83a72455c35afc5300f090c7742af007 (diff)
YJIT: don't compile attr_accessor methods when tracing (#4998)
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
Notes: Merged-By: maximecb
Diffstat (limited to 'ext/-test-/bug-3571/bug.c')
0 files changed, 0 insertions, 0 deletions