Bug in -jvmArgs parsing?
Kirk Pepperdine
kirk.pepperdine at gmail.com
Thu Aug 14 07:08:33 UTC 2025
Hi Dries,
Have you tried escaping the spaces to that the shell doesn’t split the value?
Kind regards,
Kirk
> On Aug 13, 2025, at 7:59 PM, Dries Samyn <mail at dries.net> wrote:
>
> I'm not sure this is considered a bug as it matches the documented behaviour, but I can't think of a clean workaround if it is.
>
> I believe arguments passed into the -jvmArgs option are space delimited. However, this is problematic when those arguments include spaces as part of the value.
> For example, I am trying to create a custom profiler for YourKit integration, but the YourKit agent, by default, has spaces in its path on MacOs, which means trying to pass it in the jvmArgs option is problematic.
>
> I have created a reproduction of the issue and explanation here: https://github.com/driessamyn/jmh-spaces-bug-reproduction
>
> Looking forward to hearing thoughts on this.
>
> Dries.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/jmh-dev/attachments/20250814/37d8b56e/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1515 bytes
Desc: not available
URL: <https://mail.openjdk.org/pipermail/jmh-dev/attachments/20250814/37d8b56e/smime-0001.p7s>
More information about the jmh-dev
mailing list