Skip to content

Commit

Permalink
8236917: TestInstanceKlassSize.java fails with "The size computed by …
Browse files Browse the repository at this point in the history
…SA for java.lang.Object does not match"

Use getTestJavaOpts() instead of getVmOptions() because of mach5 configuration settings.

Reviewed-by: mdoerr
Backport-of: c0dce25
  • Loading branch information
Dhamoder Nalla authored and TheRealMDoerr committed Jun 27, 2024
1 parent 8578e12 commit db9e313
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ private static void startMeWithArgs() throws Exception {
try {
List<String> vmArgs = new ArrayList<String>();
vmArgs.add("-XX:+UsePerfData");
vmArgs.addAll(Utils.getVmOptions());
vmArgs.addAll(Arrays.asList(Utils.getTestJavaOpts()));
app = LingeredApp.startApp(vmArgs);
System.out.println ("Started LingeredApp with pid " + app.getPid());
} catch (Exception ex) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
*/

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

import sun.jvm.hotspot.HotSpotAgent;
Expand Down Expand Up @@ -154,9 +155,7 @@ public static void main (String... args) throws Exception {

if (args == null || args.length == 0) {
try {
List<String> vmArgs = new ArrayList<String>();
vmArgs.addAll(Utils.getVmOptions());

List<String> vmArgs = Arrays.asList(Utils.getTestJavaOpts());
theApp = new LingeredAppWithInterface();
LingeredApp.startApp(vmArgs, theApp);
createAnotherToAttach(instanceKlassNames,
Expand Down

1 comment on commit db9e313

@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.