Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
TracePoint thread_begin and thread_end events are broken #1321
The thread_begin and thread_end events used by TracePoint (2.0 feature) do not work properly because they expect execution frames to be available on ThreadContext. For example:
I'm not exactly sure how to properly fire these trace events since they need to happen outside the thread's block, but at that point not all ThreadContext structures necessary for execution have been prepared.
Note also that it fails on the postTrace side, which is strange.
This was discovered while fixing #1318.
Drive-by test and we appear to be sending tracepoints for threads now. The output is not quite the same as MRI but they seem to be happening:
Any other changes needed for output or missing state can become a new issue.