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

Optimize os::jvm_path()

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      x86
    • OS:
      os_x

      Description

      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)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              gziemski Gerard Ziemski
              Reporter:
              gziemski Gerard Ziemski
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: