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

CriticalJNINatives: dll handling should be done in native thread state

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b10

      Backports

        Description

        During lookup of critical JNI functions (CriticalJNINatives) we execute OS functions to deal with dlls (e.g. dlopen, dlsym). These functions need to perform I/O which may be slow.
        The current implementation executes these functions while the thread is in state "_thread_in_vm". This means that the thread blocks safepoints while performing I/O.
        In order to reduce safepoint delays, I/O should be executed while the thread is in state "_thread_in_native" which avoids blocking safepoints.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                mdoerr Martin Doerr
                Reporter:
                mdoerr Martin Doerr
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: