Following reinterpret(), keep an underlying automatic arean strongly reachable

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • None
    • Affects Version/s: 22, 23, 24
    • Component/s: core-libs
    • None

      Calling `MemorySegment::reinterpret` on a segment allocated from an `Arena.ofAuto()` can open up for use-after-free unless precautionary measurements are made in the reinterpret parameters.

      We should provide a means to keep an underlying `Arena.ofAuto()` strongly reachable as long as any reinterpreted segments are strongly reachable automatically. This should also be documented.

            Assignee:
            Per-Ake Minborg
            Reporter:
            Per-Ake Minborg
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: