Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8190359

Reduce the number of recorded klass dependencies

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 10
    • Fix Version/s: 11
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b01

      Description

      Currently the method ClassLoaderData::record_dependency() does not record dependencies if the class is loaded by the boot loader because those classes never go away. As an improvement, this method should also exclude regular classes loaded by the platform and app class loaders with a change such as:

      - // Dependency to the null class loader data doesn't need to be recorded
      - // because the null class loader data never goes away.
      - if (to_cld->is_the_null_class_loader_data()) {
      + // Dependency to a builtin class loader data doesn't need to be recorded
      + // because these class loader datas never go away.
      + if (to_cld->is_builtin_class_loader_data() && !to_cld->is_anonymous()) {
           return;
         }

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hseigel Harold Seigel
                Reporter:
                hseigel Harold Seigel
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: