Skip to content
Permalink
Browse files
8278310: Improve logging in CDS DynamicLoaderConstraintsTest.java
Reviewed-by: iklam
  • Loading branch information
calvinccheung committed Dec 8, 2021
1 parent e4852c6 commit 40d726b8aae7dff4316115b3a25001d502321efe
Showing 2 changed files with 3 additions and 3 deletions.
@@ -312,14 +312,14 @@ class ArchiveBuilder : public StackObj {
template <typename T>
u4 buffer_to_offset_u4(T p) const {
uintx offset = buffer_to_offset((address)p);
guarantee(offset <= MAX_SHARED_DELTA, "must be 32-bit offset");
guarantee(offset <= MAX_SHARED_DELTA, "must be 32-bit offset " INTPTR_FORMAT, offset);
return (u4)offset;
}

template <typename T>
u4 any_to_offset_u4(T p) const {
uintx offset = any_to_offset((address)p);
guarantee(offset <= MAX_SHARED_DELTA, "must be 32-bit offset");
guarantee(offset <= MAX_SHARED_DELTA, "must be 32-bit offset " INTPTR_FORMAT, offset);
return (u4)offset;
}

@@ -139,7 +139,7 @@ static void doTest(boolean errorInDump) throws Exception {
"java.base,jdk.httpserver",
"--add-exports",
"java.base/jdk.internal.misc=ALL-UNNAMED",
"-Xlog:class+load,class+loader+constraints",
"-Xlog:cds=debug,class+load,class+loader+constraints",
};

if (useCustomLoader) {

1 comment on commit 40d726b

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on 40d726b Dec 8, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.