[foreign-preview] Integrated: 8281334: MemorySegment.ofBuffer does not keep byte buffer alive
    Maurizio Cimadamore 
    mcimadamore at openjdk.java.net
       
    Mon Feb  7 18:10:25 UTC 2022
    
    
  
On Mon, 7 Feb 2022 13:09:16 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
> This patch tweaks AbstractMemorySegmentImpl::ofBuffer to create an heap scope which keeps the input ByteBuffer alive, in case the returned segment has to be associated with a global scope.
This pull request has now been integrated.
Changeset: ccaa71ad
Author:    Maurizio Cimadamore <mcimadamore at openjdk.org>
URL:       https://git.openjdk.java.net/panama-foreign/commit/ccaa71adf2ca27021e98899c44492cf00a5e76be
Stats:     25 lines in 2 files changed: 24 ins; 0 del; 1 mod
8281334: MemorySegment.ofBuffer does not keep byte buffer alive
Reviewed-by: jvernee, psandoz
-------------
PR: https://git.openjdk.java.net/panama-foreign/pull/639
    
    
More information about the panama-dev
mailing list