Skip to content

Commit 3952134

Browse files
authored
Merge pull request #15 from minborg/test
Add @APinote to package-info
2 parents c6cd176 + 64f4d55 commit 3952134

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/java.base/share/classes/java/lang/foreign/package-info.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,9 @@
215215
* type must not be null, and any null argument will elicit a {@code NullPointerException}. This fact is not individually
216216
* documented for methods of this API.
217217
*
218+
* @apiNote Usual memory model guarantees, for example stated in {@jls 6.6} and {@jls 10.4}, do not apply
219+
* when accessing native memory segments as these segments are backed by off-heap regions of memory.
220+
*
218221
* @implNote
219222
* In the reference implementation, access to restricted methods can be granted to specific modules using the command line option
220223
* {@code --enable-native-access=M1,M2, ... Mn}, where {@code M1}, {@code M2}, {@code ... Mn} are module names

0 commit comments

Comments
 (0)