Skip to content

Commit

Permalink
8320002: Remove obsolete CDS check in Reflection::verify_class_access()
Browse files Browse the repository at this point in the history
Reviewed-by: iklam, matsaave, dholmes
  • Loading branch information
calvinccheung committed Feb 20, 2024
1 parent d2590c6 commit 221fbfb
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/hotspot/share/runtime/reflection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -457,12 +457,6 @@ Reflection::VerifyClassAccessResults Reflection::verify_class_access(

// module boundaries
if (new_class->is_public()) {
// Ignore modules for -Xshare:dump because we do not have any package
// or module information for modules other than java.base.
if (CDSConfig::is_dumping_static_archive()) {
return ACCESS_OK;
}

// Find the module entry for current_class, the accessor
ModuleEntry* module_from = current_class->module();
// Find the module entry for new_class, the accessee
Expand Down

1 comment on commit 221fbfb

@openjdk-notifier
Copy link

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.