mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8349344: Clarify documentation of Arena.ofConfined
Reviewed-by: jvernee, jpai, mcimadamore
This commit is contained in:
parent
19399d271e
commit
2ff8440c76
1 changed files with 4 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2022, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2022, 2025, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -246,9 +246,9 @@ public interface Arena extends SegmentAllocator, AutoCloseable {
|
|||
}
|
||||
|
||||
/**
|
||||
* {@return a new confined arena} Segments allocated with the confined arena can be
|
||||
* {@linkplain MemorySegment#isAccessibleBy(Thread) accessed} by the thread
|
||||
* that created the arena, the arena's <em>owner thread</em>.
|
||||
* {@return a new confined arena} Segments allocated with the confined arena can
|
||||
* only be {@linkplain MemorySegment#isAccessibleBy(Thread) accessed} by the
|
||||
* thread that created the arena, the arena's <em>owner thread</em>.
|
||||
* <p>
|
||||
* Memory segments {@linkplain #allocate(long, long) allocated} by the returned arena
|
||||
* are zero-initialized.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue