Avoid decrementing when no Symbol was created in ~SignatureStream

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P5
    • 17
    • Affects Version/s: 17
    • Component/s: hotspot
    • b20

      We can trivially avoid calling into Symbol::decrement_refcount from ~SignatureStream when no Symbols were created, which is the case if _previous_name is vmSymbols::java_lang_Object(). This achieves a small gain by reducing calls to decrement_refcount from places like AdapterHandleLibrary::get_adapter which sees heavy traffic during startup.

      Making (part of) decrement_refcount inlineable would have a similar effect, but grows the static size of the jvm somewhat.

            Assignee:
            Claes Redestad
            Reporter:
            Claes Redestad
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: