Reduce the number of recorded klass dependencies

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 11
    • Affects Version/s: 10
    • Component/s: 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;
         }

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

              Created:
              Updated:
              Resolved: