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

Extra JavaThread assignment in ClassLoader::create_class_path_entry()

    XMLWordPrintable

Details

    • Enhancement
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • 17
    • 17
    • hotspot
    • None
    • b24

    Description

      ClassPathEntry* ClassLoader::create_class_path_entry(JavaThread* current,
                                                           const char *path, const struct stat* st,
                                                           bool is_boot_append,
                                                           bool from_class_path_attr) {
        JavaThread* thread = current->as_Java_thread();

      The first arg is already a JavaThread. The "JavaThread* thread" local variable is unnecessary. Subsequent statements using "thread" could just simply use "current" instead.

      Attachments

        Issue Links

          Activity

            People

              dholmes David Holmes
              ccheung Calvin Cheung
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: