File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
test/hotspot/jtreg/runtime/cds/appcds Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2019, 2023 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2019, 2025 , Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
@@ -62,7 +62,8 @@ static void test(boolean run_reloc) throws Exception {
62
62
String appJar = ClassFileInstaller .getJarPath ("hello.jar" );
63
63
String mainClass = "Hello" ;
64
64
String maybeRelocation = "-XX:ArchiveRelocationMode=0" ;
65
- String runRelocArg = run_reloc ? "-showversion" : maybeRelocation ;
65
+ String alwaysRelocation = "-XX:ArchiveRelocationMode=1" ;
66
+ String runRelocArg = run_reloc ? alwaysRelocation : maybeRelocation ;
66
67
String logArg = "-Xlog:cds=debug,cds+reloc=debug,cds+heap" ;
67
68
String unlockArg = "-XX:+UnlockDiagnosticVMOptions" ;
68
69
String nmtArg = "-XX:NativeMemoryTracking=detail" ;
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2019, 2022 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2019, 2025 , Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
@@ -80,8 +80,9 @@ static void doTest() throws Exception {
80
80
String appJar = ClassFileInstaller .getJarPath ("hello.jar" );
81
81
String mainClass = "Hello" ;
82
82
String maybeRelocation = "-XX:ArchiveRelocationMode=0" ;
83
- String dumpTopRelocArg = dump_top_reloc ? "-showversion" : maybeRelocation ;
84
- String runRelocArg = run_reloc ? "-showversion" : maybeRelocation ;
83
+ String alwaysRelocation = "-XX:ArchiveRelocationMode=1" ;
84
+ String dumpTopRelocArg = dump_top_reloc ? alwaysRelocation : maybeRelocation ;
85
+ String runRelocArg = run_reloc ? alwaysRelocation : maybeRelocation ;
85
86
String logArg = "-Xlog:cds=debug,cds+reloc=debug" ;
86
87
87
88
String baseArchiveName = getNewArchiveName ("base" );
You can’t perform that action at this time.
0 commit comments