Skip to content

Commit 221fbfb

Browse files
committedFeb 20, 2024
8320002: Remove obsolete CDS check in Reflection::verify_class_access()
Reviewed-by: iklam, matsaave, dholmes
1 parent d2590c6 commit 221fbfb

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed
 

‎src/hotspot/share/runtime/reflection.cpp

-6
Original file line numberDiff line numberDiff line change
@@ -457,12 +457,6 @@ Reflection::VerifyClassAccessResults Reflection::verify_class_access(
457457

458458
// module boundaries
459459
if (new_class->is_public()) {
460-
// Ignore modules for -Xshare:dump because we do not have any package
461-
// or module information for modules other than java.base.
462-
if (CDSConfig::is_dumping_static_archive()) {
463-
return ACCESS_OK;
464-
}
465-
466460
// Find the module entry for current_class, the accessor
467461
ModuleEntry* module_from = current_class->module();
468462
// Find the module entry for new_class, the accessee

1 commit comments

Comments
 (1)

openjdk-notifier[bot] commented on Feb 20, 2024

@openjdk-notifier[bot]
Please sign in to comment.