On Tue, 12 May 2026 13:54:13 GMT, Robert Toyonaga <[email protected]> wrote:

>> If you pass Java arguments (not VM options) with quoted strings to the Java 
>> process with an intentional space, e.g. "/some/path/with spaces/example", 
>> the launcher destroys the separation and gives the JVM only a single string, 
>> so there is no way to know if the space was intentional or not, so matching 
>> could potentially be incorrect. 
>> 
>> (when the launcher invokes main(String[]) they are separated)
>> 
>> I looked into this quite a lot during the implementation, including asking 
>> the OS, but all my attempts came with other issues. I can file a bug, if 
>> this turns out to be a real problem.
>> 
>> From a technical standpoint,  *p == ' ' would be better in 
>> make_java_args_array. I will update.
>
>>  the launcher destroys the separation and gives the JVM only a single string
> 
> I see, by the time JFR receives the data it's already ambiguous. Okay, maybe 
> just a comment about this in the documentation would be enough.

Not sure how I can explain this in an easy way.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/29736#discussion_r3234469547

Reply via email to