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

Use RTLD_LOCAL instead of RTLD_GLOBAL when dlopen-ing libgtk-x11-2.0 to improve startup time

    XMLWordPrintable

    Details

    • Subcomponent:
    • Introduced In Build:
      b42
    • Introduced In Version:
      6
    • Resolved In Build:
      b68
    • CPU:
      sparc
    • OS:
      solaris_10

      Description

      Using RTLD_LOCAL instead of RTLD_GLOBAL when dlopening libgtk-x11-2.0
      in gtk2_interface.c reduces the startup time of a simple JFrame application
      with GTK L&F by about 100ms: approx 1.6s vs 1.7s (on solaris sparc).
      There's no apparent reason why we use GLOBAL here anyway.

      For the record, here's the startup numbers for native gtk app vs
      java app with Ocean and GTK L&F on solaris sparc (Sunblade 2000, Solaris 10):
          native gtk 0.157s
          ocean L&F 0.562s
          gtk L&F 1.707s
          gtk L&F+LOCAL 1.600s

      I've attached both java and native gtk apps.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              peterz Peter Zhelezniakov
              Reporter:
              tdv Dmitri Trembovetski (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: