From 81e6560dace47201ac80ef42ff8f85d253c6e195 Mon Sep 17 00:00:00 2001 From: Maurizio Cimadamore Date: Fri, 13 Oct 2023 18:09:35 +0100 Subject: [PATCH] Address review comments --- src/java.base/share/classes/java/lang/foreign/Arena.java | 2 +- .../share/classes/java/lang/foreign/MemoryLayout.java | 6 +++--- .../share/classes/java/lang/foreign/MemorySegment.java | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/java.base/share/classes/java/lang/foreign/Arena.java b/src/java.base/share/classes/java/lang/foreign/Arena.java index 78828266923f1..45cb46d33d612 100644 --- a/src/java.base/share/classes/java/lang/foreign/Arena.java +++ b/src/java.base/share/classes/java/lang/foreign/Arena.java @@ -44,7 +44,7 @@ *

* The simplest arena is the {@linkplain Arena#global() global arena}. The global arena * features an unbounded lifetime. The scope of the global arena is the global scope. - * As such, native segments allocated with the global arena are associated are always accessible and their backing regions + * As such, native segments allocated with the global arena are always accessible and their backing regions * of memory are never deallocated. * Moreover, memory segments allocated with the global arena can be {@linkplain MemorySegment#isAccessibleBy(Thread) accessed} from any thread. * {@snippet lang = java: diff --git a/src/java.base/share/classes/java/lang/foreign/MemoryLayout.java b/src/java.base/share/classes/java/lang/foreign/MemoryLayout.java index a9c58428c7c2e..51eb33627b618 100644 --- a/src/java.base/share/classes/java/lang/foreign/MemoryLayout.java +++ b/src/java.base/share/classes/java/lang/foreign/MemoryLayout.java @@ -460,8 +460,8 @@ default MethodHandle byteOffsetHandle(PathElement... elements) { * *

* If the selected layout is an {@linkplain AddressLayout address layout}, calling {@link VarHandle#get(Object...)} - * on the returned var handle will return a new memory segment. The segment is associated with a scope that is - * always alive. Moreover, the size of the segment depends on whether the address layout has a + * on the returned var handle will return a new memory segment. The segment is associated with the global scope. + * Moreover, the size of the segment depends on whether the address layout has a * {@linkplain AddressLayout#targetLayout() target layout}. More specifically: *