Skip to content

Commit 84a98ab

Browse files
author
Vladimir Kozlov
committed
8357166: Many AOT tests failed with VM crash
Reviewed-by: thartmann, shade
1 parent fbc12be commit 84a98ab

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/hotspot/share/code/aotCodeCache.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff 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()) {

0 commit comments

Comments
 (0)