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

Symbol name cleanups after JEP 479

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • None
    • hotspot
    • b27

      After JEP 479 is implemented (or more precisely, JDK-8339783 is integrated), the handling of certain symbol lookup code can be simplified. The old code needed to support 32-bit Windows, where names had a trailing `@<number>`. When this special case now is removed, some streamlining is possible. Specifically these arrays:

      #define JNI_ONLOAD_SYMBOLS {"JNI_OnLoad"}
      #define JNI_ONUNLOAD_SYMBOLS {"JNI_OnUnload"}
      #define JVM_ONLOAD_SYMBOLS {"JVM_OnLoad"}
      #define AGENT_ONLOAD_SYMBOLS {"Agent_OnLoad"}
      #define AGENT_ONUNLOAD_SYMBOLS {"Agent_OnUnload"}
      #define AGENT_ONATTACH_SYMBOLS {"Agent_OnAttach"}

      are all singletons and so the actual strings can just be inlined directly into the code that uses them.

            dholmes David Holmes
            ihse Magnus Ihse Bursie
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: