Withdrawn: 7904154: JMH: Handle JVM flags from flags file

Oli Gillespie ogillespie at openjdk.org
Fri Feb 20 15:51:02 UTC 2026


On Tue, 17 Feb 2026 12:27:46 GMT, Oli Gillespie <ogillespie at openjdk.org> wrote:

> When using a flags file, getInputArguments() doesn't include -XX: prefix which means the flags won't be valid in the forked VM. Find those flags and prefix them manually.
> 
> 1. Added a test showing the issue, and covering a few different flag types.
> 2. Added logic to prefix flags with `-XX:` if necessary, allowing the test to pass.

This pull request has been closed without being integrated.

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

PR: https://git.openjdk.org/jmh/pull/168


More information about the jmh-dev mailing list