Skip to content

Commit 40d726b

Browse files
committed
8278310: Improve logging in CDS DynamicLoaderConstraintsTest.java
Reviewed-by: iklam
1 parent e4852c6 commit 40d726b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/hotspot/share/cds/archiveBuilder.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,14 +312,14 @@ class ArchiveBuilder : public StackObj {
312312
template <typename T>
313313
u4 buffer_to_offset_u4(T p) const {
314314
uintx offset = buffer_to_offset((address)p);
315-
guarantee(offset <= MAX_SHARED_DELTA, "must be 32-bit offset");
315+
guarantee(offset <= MAX_SHARED_DELTA, "must be 32-bit offset " INTPTR_FORMAT, offset);
316316
return (u4)offset;
317317
}
318318

319319
template <typename T>
320320
u4 any_to_offset_u4(T p) const {
321321
uintx offset = any_to_offset((address)p);
322-
guarantee(offset <= MAX_SHARED_DELTA, "must be 32-bit offset");
322+
guarantee(offset <= MAX_SHARED_DELTA, "must be 32-bit offset " INTPTR_FORMAT, offset);
323323
return (u4)offset;
324324
}
325325

test/hotspot/jtreg/runtime/cds/appcds/loaderConstraints/DynamicLoaderConstraintsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ static void doTest(boolean errorInDump) throws Exception {
139139
"java.base,jdk.httpserver",
140140
"--add-exports",
141141
"java.base/jdk.internal.misc=ALL-UNNAMED",
142-
"-Xlog:class+load,class+loader+constraints",
142+
"-Xlog:cds=debug,class+load,class+loader+constraints",
143143
};
144144

145145
if (useCustomLoader) {

0 commit comments

Comments
 (0)