File tree Expand file tree Collapse file tree
test/hotspot/jtreg/runtime/cds/appcds/aotCode Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ()) {
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments