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

Remove Solaris workaround in LockFreeStack template parameters

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 13
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      gc
    • CPU:
      generic
    • OS:
      generic

      Description

      The LockFreeStack utility class template currently has the following signature:

        template<typename T, T* volatile* (*next_ptr)(T&)> class LockFreeStack;

      Preferable would have been the following signature:

        template<typename T, T* volatile T::*next> class LockFreeStack;

      However, that preferred signature can't be used due to a bug in Solaris Studio (at least through 12.6). Once that bug is fixed, we can switch to the preferred signature and do the associated cleanup.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              kbarrett Kim Barrett
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: