Skip to content

Commit 3793fba

Browse files
committed
JDK-8379913: make AOTAdapterCaching dependent on InlineTypePassFieldsAsArgs
1 parent 40625f5 commit 3793fba

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/hotspot/share/code/aotCodeCache.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,13 +188,16 @@ void AOTCodeCache::initialize() {
188188
FLAG_SET_ERGO(AOTStubCaching, false);
189189

190190
if (VerifyOops) {
191-
// Disable AOT stub and adapter caching when VerifyOops flag is on.
191+
// Disable AOT stub caching when VerifyOops flag is on.
192192
// Verify oops code generated a lot of C strings which overflow
193193
// AOT C string table (which has fixed size).
194194
// AOT C string table will be reworked later to handle such cases.
195-
log_info(aot, codecache, init)("AOT Stub and Adapter Caching is not supported with VerifyOops.");
195+
log_info(aot, codecache, init)("AOT Stub Caching is not supported with VerifyOops.");
196196
FLAG_SET_ERGO(AOTStubCaching, false);
197-
FLAG_SET_ERGO(AOTAdapterCaching, false);
197+
if (InlineTypePassFieldsAsArgs) {
198+
log_info(aot, codecache, init)("AOT Adapter Caching is not supported with VerifyOops + InlineTypePassFieldsAsArgs.");
199+
FLAG_SET_ERGO(AOTAdapterCaching, false);
200+
}
198201
}
199202

200203
bool is_dumping = false;

0 commit comments

Comments
 (0)