Skip to content

The moving GC ignores the pin flag on alloc finalizers #143

Closed

Description

@dimensionscape

__hxcpp_add_alloc_finalizer(ptr, f, true), which val_gc_ptr uses, records a pin request in Finalizable::pin, but nothing reads it, so with HXCPP_GC_MOVING the allocation can still be moved and native copies of the pointer dangle.

Related: HaxeFoundation/hxcpp#1085.

Activity

  1. added this to the 6.0.0 milestone on Oct 15, 2026
  2. added 2 commits that reference this issue on Oct 15, 2026
    1190e74
    c4ad90a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions