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

In InstanceKlass.cpp, get init_lock from handle

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 10
    • 10
    • hotspot
    • b21

      Code in instanceKlass.cpp that fetches the init_lock out of the mirror can be improved to get the init_lock more cheaply from the handle.

      For example, change:
          Handle h_init_lock(THREAD, init_lock());
          ObjectLocker ol(h_init_lock, THREAD, init_lock() != NULL);
      to:
          Handle h_init_lock(THREAD, init_lock());
          ObjectLocker ol(h_init_lock, THREAD, h_init_lock() != NULL);

            hseigel Harold Seigel (Inactive)
            hseigel Harold Seigel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: