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

Optimize os::jvm_path()

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • 20
    • 12
    • hotspot
    • x86
    • os_x

      os::jvm_path() calls into dladdr (on Mac), which takes time.

      I've seen as much as 10ms on cold system and regularly see 2ms (2% of startup time) (on Mac)

      Maybe we can cache the path somehow (store it in a CDS archive?) or let the user pass it in, to avoid looking it up.

      Observed on Mac OS X, but likely affects other systems, to different degrees (need to verify)

            gziemski Gerard Ziemski
            gziemski Gerard Ziemski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: