File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -129,14 +129,27 @@ void AOTCodeCache::initialize() {
129129#if defined(ZERO) || !(defined(AMD64) || defined(AARCH64))
130130 log_info (aot, codecache, init)(" AOT Code Cache is not supported on this platform." );
131131 AOTAdapterCaching = false ;
132+ AOTStubCaching = false ;
132133 return ;
133134#else
134135 if (FLAG_IS_DEFAULT (AOTCache)) {
135136 log_info (aot, codecache, init)(" AOT Code Cache is not used: AOTCache is not specified." );
136137 AOTAdapterCaching = false ;
138+ AOTStubCaching = false ;
137139 return ; // AOTCache must be specified to dump and use AOT code
138140 }
139141
142+ if (VerifyOops) {
143+ // Disable AOT stubs caching when VerifyOops flag is on.
144+ // Verify oops code generated a lot of C strings which overflow
145+ // AOT C string table (which has fixed size).
146+ // AOT C string table will be reworked later to handle such cases.
147+ //
148+ // Note: AOT adapters are not affected - they don't have oop operations.
149+ log_info (aot, codecache, init)(" AOT Stubs Caching is not supported with VerifyOops." );
150+ FLAG_SET_ERGO (AOTStubCaching, false );
151+ }
152+
140153 bool is_dumping = false ;
141154 bool is_using = false ;
142155 if (CDSConfig::is_dumping_final_static_archive () && CDSConfig::is_dumping_aot_linked_classes ()) {
You can’t perform that action at this time.
0 commit comments