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

Mac OS X: stop relying on Apple's JavaVM Frameworks

    Details

    • Type: Bug
    • Status: Open
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: 9
    • Fix Version/s: tbd_minor
    • Component/s: core-libs
    • Environment:

      Mac OS X

    • OS:
      os_x

      Description

      While working on JDK-7131356 it came to my attention that we use JavaRuntimeSupport.framework (JRS), which is a special framework provided to us (and only us) by Apple, which wraps certain SPI into API, used by Apple in their JDK implementation.

      The problem is that we now own the JDK, and got forced to rely on JRS, which does not seem like a good long term solution.

      We should understand where we use JRS and deprecate its usage internally and start re-implementing those with our implementation.

      This should be an umbrella bug as there are probably several components that use JSR (ie. Glass, Plugin, AWT, Swing ?)

        Activity

        Hide
        ddehaven David Dehaven (Inactive) added a comment -
        An issue has already been filed for deployment. There is a non-trivial amount code in JDK that relies on JRS at the moment so such a change won't be easy, but I don't think it will be impossible.
        Show
        ddehaven David Dehaven (Inactive) added a comment - An issue has already been filed for deployment. There is a non-trivial amount code in JDK that relies on JRS at the moment so such a change won't be easy, but I don't think it will be impossible.
        Hide
        bchristi Brent Christian added a comment -
        As alluded to in JDK-8022282, there is a second framework under the JavaVM framework besides JavaRuntimeSupport, it's JavaNativeFoundation. If we also need to move away from JNF, that's another big chunk of code to go through - looks like the majority of jdk/src/macosx/native/ pulls in JavaNativeFoundation.h.
        Show
        bchristi Brent Christian added a comment - As alluded to in JDK-8022282, there is a second framework under the JavaVM framework besides JavaRuntimeSupport, it's JavaNativeFoundation. If we also need to move away from JNF, that's another big chunk of code to go through - looks like the majority of jdk/src/macosx/native/ pulls in JavaNativeFoundation.h.
        Hide
        ddehaven David Dehaven (Inactive) added a comment -
        Removal of JavaNativeFoundation code could be done as a single task, since most of it involves writing boilerplate JNI code. Removing JavaRuntimeSupport, however, will be a larger task and should be broken up into smaller tasks that focus on specific parts of JRS.
        Show
        ddehaven David Dehaven (Inactive) added a comment - Removal of JavaNativeFoundation code could be done as a single task, since most of it involves writing boilerplate JNI code. Removing JavaRuntimeSupport, however, will be a larger task and should be broken up into smaller tasks that focus on specific parts of JRS.

          People

          • Assignee:
            ddehaven David Dehaven (Inactive)
            Reporter:
            gziemski Gerard Ziemski
          • Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated: