Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-2674

Virtual threads: replace synchronized blocks with locks

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 5.2.13
    • None
    • None
    • False
    • None
    • False

      A synchronized block causes a virtual thread to be pinned to its underlying platform thread for the duration of the block.

      Therefore replace (where feasible) synchronized blocks with (e.g.) ReentrantLocks.

      Use -Djdk.tracePinnedThreads=true to detect pinned threads.

            rhn-engineering-bban Bela Ban
            rhn-engineering-bban Bela Ban
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: