Skip to content

Commit c8fa758

Browse files
author
David Holmes
committed
8320860: add-opens/add-exports require '=' in JAVA_TOOL_OPTIONS
Reviewed-by: sspitsyn, alanb
1 parent 9e57010 commit c8fa758

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/hotspot/share/prims/jvmti.xml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,11 @@ Agent_OnUnload_L(JavaVM *vm)</example>
742742
<li>The pair of quote marks is not included in the option.</li>
743743
</ul>
744744
<code>JNI_CreateJavaVM</code> (in the JNI Invocation API) will prepend these options to the options supplied
745-
in its <code>JavaVMInitArgs</code> argument. Platforms may disable this feature in cases where security is
745+
in its <code>JavaVMInitArgs</code> argument. Note that module related options must be expressed in their
746+
"option=value" format (note the required '=' between "option" and "value") for <code>JNI_CreateJavaVM</code>
747+
to process them correctly.
748+
<p/>
749+
Platforms may disable this feature in cases where security is
746750
a concern; for example, the Reference Implementation disables this feature on Unix systems when
747751
the effective user or group ID differs from the real ID.
748752
This feature is intended to support the initialization of tools -- specifically including the
@@ -11035,7 +11039,7 @@ myInit() {
1103511039
<functionlink id="GetCurrentThreadCpuTimerInfo"/> vs
1103611040
<functionlink id="GetThreadCpuTimerInfo"/>).
1103711041
An implementation is not required to support this function
11038-
when the current thread is a virtual thread, in which case
11042+
when the current thread is a virtual thread, in which case
1103911043
<errorlink id="JVMTI_ERROR_UNSUPPORTED_OPERATION"></errorlink> will be returned.
1104011044
On many platforms this call will be equivalent to:
1104111045
<example>

0 commit comments

Comments
 (0)