Skip to content

Commit 6e74a8f

Browse files
committed
JDK-8377351: partially revert log change
1 parent 24caef4 commit 6e74a8f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/hotspot/share/code/aotCodeCache.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -512,19 +512,19 @@ bool AOTCodeCache::Config::verify(AOTCodeCache* cache) const {
512512
// AOT stub/adapters caching if they are incompatible with runtime settings.
513513

514514
if (((_flags & compressedOops) != 0) != UseCompressedOops) {
515-
log_debug(aot, codecache, init)("AOT Stub/Adapter caching disabled: incompatible UseCompressedOops = %s", UseCompressedOops ? "false" : "true");
515+
log_debug(aot, codecache, init)("AOT Stub/Adapter Cache disabled: it was created with UseCompressedOops = %s", UseCompressedOops ? "false" : "true");
516516
AOTStubCaching = false;
517517
AOTAdapterCaching = false;
518518
}
519519
if (_compressedOopShift != (uint)CompressedOops::shift()) {
520-
log_debug(aot, codecache, init)("AOT Stub/Adapter caching disabled: incompatible CompressedOops::shift(): %d vs current %d", _compressedOopShift, CompressedOops::shift());
520+
log_debug(aot, codecache, init)("AOT Stub/Adapter Cache disabled: it was created with different CompressedOops::shift(): %d vs current %d", _compressedOopShift, CompressedOops::shift());
521521
AOTStubCaching = false;
522522
AOTAdapterCaching = false;
523523
}
524524

525525
// This should be the last check as it only disables AOTStub/AdapterCaching
526526
if ((_compressedOopBase == nullptr || CompressedOops::base() == nullptr) && (_compressedOopBase != CompressedOops::base())) {
527-
log_debug(aot, codecache, init)("AOT Stub/Adapter caching disabled: incompatible CompressedOops::base(): %p vs current %p", _compressedOopBase, CompressedOops::base());
527+
log_debug(aot, codecache, init)("AOT Stub/Adapter Cache disabled: incompatible CompressedOops::base(): %p vs current %p", _compressedOopBase, CompressedOops::base());
528528
AOTStubCaching = false;
529529
AOTAdapterCaching = false;
530530
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,9 @@ public void checkExecution(OutputAnalyzer out, RunMode runMode) throws Exception
202202
throw new RuntimeException("Failed to find CompressedOops settings");
203203
}
204204
if (aotCacheShift != currentShift) {
205-
out.shouldContain("AOT Stub/Adapter caching disabled: incompatible CompressedOops::shift()");
205+
out.shouldContain("AOT Stub/Adapter Cache disabled: it was created with different CompressedOops::shift()");
206206
} else if ((aotCacheBase == 0 || currentBase == 0) && (aotCacheBase != currentBase)) {
207-
out.shouldContain("AOT Stub/Adapter caching disabled: incompatible CompressedOops::base()");
207+
out.shouldContain("AOT Stub/Adapter Cache disabled: incompatible CompressedOops::base()");
208208
} else {
209209
out.shouldMatch("Read \\d+ entries table at offset \\d+ from AOT Code Cache");
210210
}

0 commit comments

Comments
 (0)