On Thu, 5 Oct 2023 05:32:20 GMT, Leonid Mesnik <[email protected]> wrote:
> Updated test to use createTesJvm.
> Removed internal timeout to not fail when Xcomp is used and also to get more
> info if the test times out.,
>
> Tested by running tier1, hs-tier5 and executing test with various VM flags.
Looks good -
test/jdk/sun/management/jmxremote/bootstrap/JMXAgentInterfaceBinding.java
private boolean jmxAgentStarted = false;
...this line can be removed as well I think.
ProcessTools does have createTestJvm(List<String> command), so the frequent
toArray seems unnecessary.
The method does toArray itself 8-) and is recent compared to some of the tests,
so maybe the tests haven't changed since ProcessTools createJavaProcessBuilder
and createTestJvm added versions that takes a List.
-------------
Marked as reviewed by kevinw (Committer).
PR Review: https://git.openjdk.org/jdk/pull/16048#pullrequestreview-1659212949