Skip to content

Commit

Permalink
8316462: sun/jvmstat/monitor/MonitoredVm/MonitorVmStartTerminate.java…
Browse files Browse the repository at this point in the history
… ignores VM flags

Reviewed-by: kevinw, sspitsyn
  • Loading branch information
lmesnik authored and pull[bot] committed Jan 15, 2024
1 parent fe750d3 commit e6ef339
Showing 1 changed file with 3 additions and 4 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2004, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2004, 2023, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -308,10 +308,9 @@ public void terminate() {

private void executeJava() throws Throwable {
String className = JavaProcess.class.getName();
String classPath = System.getProperty("test.classes");
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(
ProcessBuilder pb = ProcessTools.createTestJvm(
"-Dtest.timeout.factor=" + System.getProperty("test.timeout.factor", "1.0"),
"-cp", classPath, className, mainArgsIdentifier);
className, mainArgsIdentifier);
OutputAnalyzer ob = ProcessTools.executeProcess(pb);
System.out.println("Java Process " + getMainArgsIdentifier() + " stderr:"
+ ob.getStderr());
Expand Down

0 comments on commit e6ef339

Please sign in to comment.