Skip to content

Commit fdd91f4

Browse files
committed
8382398: [lworld] 8372617 needs further work for Valhalla, assertion in AOTCodeFlags.java
1 parent 7cb66d6 commit fdd91f4

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

src/hotspot/share/code/aotCodeCache.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,11 @@ void AOTCodeCache::initialize() {
217217
}
218218
}
219219

220+
if (AOTAdapterCaching && !AOTStubCaching) {
221+
// In Valhalla, adapters can call Stub:forward_exception_stub, so we must enable stub caching.
222+
FLAG_SET_ERGO(AOTStubCaching, true);
223+
}
224+
220225
bool is_dumping = false;
221226
bool is_using = false;
222227
if (CDSConfig::is_dumping_final_static_archive() && CDSConfig::is_dumping_aot_linked_classes()) {

test/hotspot/jtreg/runtime/cds/appcds/aotCode/AOTCodeFlags.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,11 @@ public static void main(String... args) throws Exception {
112112
// Run only 2 modes (0 - no AOT code, 1 - AOT adapters) until JDK-8357398 is fixed
113113
for (int mode = 0; mode < 4; mode++) {
114114
t.setTestMode(mode);
115+
if (t.isAdapterCachingOn() && !t.isStubCachingOn()) {
116+
// In Valhalla, -XX:+AOTAdapterCaching will ergonomically turn on -XX:+AOTStubCaching, so
117+
// no need to test this combination.
118+
continue;
119+
}
115120
t.run(new String[] {"AOT", "--two-step-training"});
116121
}
117122
}

0 commit comments

Comments
 (0)