This repository was archived by the owner on Apr 24, 2023. It is now read-only.
Commit 3918f9f 1 parent 945ef07 commit 3918f9f Copy full SHA for 3918f9f
File tree 1 file changed +6
-2
lines changed
src/java.base/share/classes/java/lang/foreign
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -303,8 +303,8 @@ static Option firstVariadicArg(int index) {
303
303
* before it can be overwritten by the Java runtime, or read through conventional means}
304
304
* <p>
305
305
* A downcall method handle linked with this option will feature an additional {@link MemorySegment}
306
- * parameter directly following the target address parameter. This memory segment must be a
307
- * native segment into which the captured state is written.
306
+ * parameter directly following the target address, and optional {@link SegmentAllocator} parameters.
307
+ * This memory segment must be a native segment into which the captured state is written.
308
308
*
309
309
* @param capturedState the names of the values to save.
310
310
* @see CaptureCallState#supported()
@@ -323,6 +323,10 @@ static CaptureCallState captureCallState(String... capturedState) {
323
323
* <p>
324
324
* Execution state is captured by a downcall method handle on invocation, by writing it
325
325
* to a native segment provided by the user to the downcall method handle.
326
+ * For this purpose, a downcall method handle linked with the {@link #captureCallState(String[])}
327
+ * option will feature an additional {@link MemorySegment} parameter directly
328
+ * following the target address, and optional {@link SegmentAllocator} parameters.
329
+ * This parameter represents the native segment into which the captured state is written.
326
330
* <p>
327
331
* The native segment should have the layout {@linkplain CaptureCallState#layout associated}
328
332
* with the particular {@code CaptureCallState} instance used to link the downcall handle.
You can’t perform that action at this time.
0 commit comments