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

Streamline class loader locking

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b06

      Description

      Loading from the bootclass path (class_loader == NULL) doesn't actually take the confusingly-named system_loader_lock_obj, because if the class loader is NULL. ie. it is parallelCapable:

      // Classloaders that support parallelism, e.g. bootstrap classloader,
      // do not acquire lock here
      bool DoObjectLock = true;
        if (is_parallelCapable(class_loader)) {
          DoObjectLock = false;
       }

      This CR is to streamline the code that doesn't take out the system_loader_lock_obj.

      The only code that uses the system_loader_lock_obj is bootclasspath append code which shouldn't take out an object lock.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              coleenp Coleen Phillimore
              Reporter:
              coleenp Coleen Phillimore
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: