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

Make JVM_IsStaticallyLinked JVM_LEAF

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 25
    • None
    • hotspot
    • None
    • b02

      JVM_IsStaticallyLinked is currently defined as JVM_ENTRY_NO_ENV, which requires accessing the current JavaThread. JVM_ENTRY_NO_ENV uses VM_ENTRY_BASE, which is used for entries that could lock, GC and throw exceptions. Calling JVM_IsStaticallyLinked from non JavaThread could crash. JVM_IsStaticallyLinked simply calls a trivial function, is_vm_statically_linked. is_vm_statically_linked returns true|false depending on if the current JDK is static or not. I think we can safely change JVM_IsStaticallyLinked to be a JVM_LEAF. It is possible that JVM_IsStaticallyLinked may be called from non-Java thread. It's also slightly more efficient as a JVM_LEAF entry.

            jiangli Jiangli Zhou
            jiangli Jiangli Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: