RFR: 8320860: add-opens/add-exports require '=' in JAVA_TOOL_OPTIONS
David Holmes
dholmes at openjdk.org
Mon Dec 4 04:46:38 UTC 2023
On Thu, 30 Nov 2023 08:42:35 GMT, Alan Bateman <alanb at openjdk.org> wrote:
>> Please review this simple clarification to the JVM TI spec regarding use of `JAVA_TOOL_OPTIONS` in regards to module options and their format.
>>
>> I do not believe this clarification needs a CSR request.
>>
>> Thanks.
>
> src/hotspot/share/prims/jvmti.xml line 746:
>
>> 744: <code>JNI_CreateJavaVM</code> (in the JNI Invocation API) will prepend these options to the options supplied
>> 745: in its <code>JavaVMInitArgs</code> argument. Note that module related options must be expressed in their
>> 746: "option=value" form (not "option value") for <code>JNI_CreateJavaVM</code> to process them correctly.
>
> This looks okay. I'm just comparing it to the text that we put into the JNI spec:
>
> "The module related options ... as option strings using their "option=value" format instead of their "option value" format. (Note the required = between "option" and "value".)"
>
> It uses "format" instead of "form" and also, the bit I think works well, is to point out "required =" to force the reader to re-read the previous sentence and see what the difference is in the formats.
Thanks for looking at this @AlanBateman and @sspitsyn . I was trying to refer to the JNI text in a casual way rather than duplicating the actual content from there. This was more a strong hint/suggestion to "go read the JNI spec for details".
Happy to change 'form' to 'format'.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/16896#discussion_r1413357537
More information about the serviceability-dev
mailing list