Skip to content

ZJIT: Use finer grain locks for profiling synchronization #1022

Description

@XrXr

We currently take the VM lock and signal all other ractors to stop for ZJIT profiling in the interpreter. Max found that costs a lot of time. Lots of the time is spent in rb_gc_disable() as well. We don't need to do any of that, since the minimum we need is to keep away from data race, and we can get that by using stuff in std::sync. This will make ZJIT more ractor friendly.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions