Bug in -jvmArgs parsing?

Dries Samyn mail at dries.net
Wed Aug 13 17:59:48 UTC 2025


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/20250813/ae6c5ce1/attachment.htm>


More information about the jmh-dev mailing list