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

Remove redundant use of Atomic::add(jlong, jlong *) in create_new_gc_id()

    • gc
    • b34
    • Verified

        There is no need to use atomics in create_new_gc_id() since it is not called by multiple threads in parallel. Also, Atomic::add(jlong, jlong *) can not be used unconditionally as it is not implemented on all 32-bit platforms.

        We should remove the use of Atomic::add in create_new_gc_id() for now. If we need this to be called by multiple threads in the future we have to reconsider how this should be done. Either adding a lock or doing some kind of 32 bit atomic work.

        Making this bug a P1 since JDK-8008314 is a P1.

              brutisso Bengt Rutisson (Inactive)
              brutisso Bengt Rutisson (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: