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

(launcher) improve the java launching mechanism

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 7
    • 7
    • tools
    • b38
    • generic, x86
    • generic, solaris_10
    • Not verified

      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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: