Skip to content

ZJIT: Remove write barriers on newly-allocated objects #1027

Description

@tekknolagi

If we inline initialize into the caller of new, we might end up with

v0 = ObjectAllocClass ...
StoreField v0, 0x0, v1
WriteBarrier v0, v1
StoreField v0, 0x0, v2
WriteBarrier v0, v2
...

We shouldn't need a write barrier until v0 escapes or something might cause a GC.

Metadata

Metadata

Assignees

No one assigned

    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