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

Optimize ObjectMonitor::unlink_after_acquire()

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • 25
    • None
    • hotspot

      If the node to be unlinked doesn't have any prev pointer, then unlink_after_acquire() will set _entry_list_tail to null before calling entry_list_tail() in order to force a complete rebuild of the doubly linked entry_list.

      This is not optimal. We should optimize unlink_after_acquire() so that it only converts the first part of the entry_list from a singly linked list into a doubly linked list and leave the _entry_list_tail pointer untouched.

            fbredberg Fredrik Bredberg
            fbredberg Fredrik Bredberg
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: