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

Reduce the number of recorded klass dependencies

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 11
    • 10
    • hotspot
    • b01

      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;
         }

            hseigel Harold Seigel (Inactive)
            hseigel Harold Seigel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: