Skip to content

ZJIT: Emit run-time check for write barrier #894

Description

@tekknolagi

Right now if we don't know statically that an object being written to the frame/an object is an immediate, we always emit a write barrier. Instead, we should emit a run-time check testing if it is false or an immediate and only conditionally fire the write barrier.

A reasonable first PR would guard if VM_ENV_FLAG_WB_REQUIRED is set before a setlocal and side-exit if so (thereby completely omitting the write barrier in the majority of cases)

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions