-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
port partr multiq to julia #44653
port partr multiq to julia #44653
Conversation
if (multiq_insert(task, task->prio) == -1) | ||
failed = 1; | ||
failed = 0; | ||
JL_PROBE_RT_TASKQ_INSERT(jl_current_task->ptls, task); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Losing this is disappointing :) We will need to find a way to implement this from Julia efficiently.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we implement the logic of https://github.com/JuliaPerf/UProbes.jl directly in codegen?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could, but bpftrace would still not find the new probes. UProbes.jl works by outlining the probe to a shared library that bpftrace and co. can scan.
But this could work for code in the sysimage.
Direct translation, not necessarily fully idiomatic. In preparation for future improvements.
What was the performance impact of moving this? |
What would you recommend for a benchmark? |
I have something for parallel queues somewhere. Will find and post. |
Direct translation, not necessarily fully idiomatic. In preparation for
future improvements.