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

Clean up MutableCallSite to use explicit release fence instead of AtomicInteger

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • None
    • core-libs

      `Unsafe::storeFence` and `VarHandle::releaseFence` were added in JDK 8 and 9 respectively; `MutableCallSite` was implemented in JDK 7, 2 years before the Unsafe addition. We should move the MutableCallSite's `AtomicInteger.lazySet(0)` call to an explicit `UNSAFE.storeFence()` for consistency and clarity.

            liach Chen Liang
            liach Chen Liang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: