Skip to content

Commit

Permalink
8316410: GC: Make TestCompressedClassFlags use createTestJvm
Browse files Browse the repository at this point in the history
Backport-of: e649c563242a876a20007470c9412311ffa2a568
  • Loading branch information
GoeLin committed Dec 19, 2023
1 parent be19bda commit c0b78b7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/hotspot/jtreg/gc/arguments/TestCompressedClassFlags.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013, 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 @@ -35,6 +35,7 @@
* @library /
* @modules java.base/jdk.internal.misc
* java.management
* @requires vm.opt.CompressedClassSpaceSize == null & vm.opt.UseCompressedClassPointers == null
* @run driver gc.arguments.TestCompressedClassFlags
*/
public class TestCompressedClassFlags {
Expand All @@ -50,7 +51,7 @@ public static void main(String[] args) throws Exception {
}

private static OutputAnalyzer runJava(String ... args) throws Exception {
ProcessBuilder pb = GCArguments.createJavaProcessBuilder(args);
ProcessBuilder pb = GCArguments.createTestJvm(args);
return new OutputAnalyzer(pb.start());
}
}

1 comment on commit c0b78b7

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.