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

(launcher) improve the java launching mechanism

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 7
    • Fix Version/s: 7
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b38
    • CPU:
      generic, x86
    • OS:
      generic, solaris_10
    • Verification:
      Not verified

      Description

      There is some room to improve the current launching mechanism, here are some
      1. there a few places in the java launching code, where a lot of JNI
         calls are made, these can be refactored into java and simplify and thereby
         reduce JNI transitions.

      2. the java launcher tends to use JNI_FindClass to find classes that the launcher
         needs to initialize and process, these calls can be replaced by the JVM_FindBootClass,
         when we know for sure the classes we need are in the boot classpath. The trouble with
         JNI_FindClass is that it will use the System.loadClass, which in turn will needlessly
         search the Application Classpath for Boot Classes, by doing this we might also get
         a small startup improvement.

        Issue Links

          Activity

          Hide
          ksrini Kumar Srinivasan added a comment -
          BT2:EVALUATION

          Yes this is a noble effort.
          Show
          ksrini Kumar Srinivasan added a comment - BT2:EVALUATION Yes this is a noble effort.
          Show
          jprtbugupd JPRT Bug Updates (Inactive) added a comment - BT2:EVALUATION http://hg.openjdk.java.net/jdk7/tl/jdk/rev/e2c416af20bd

            People

            • Assignee:
              ksrini Kumar Srinivasan
              Reporter:
              ksrini Kumar Srinivasan
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: