< prev index next >

src/hotspot/share/gc/shenandoah/shenandoahTaskqueue.hpp

Print this page

        

*** 302,312 **** if (_claimed_index >= size) { return NULL; } ! jint index = Atomic::add(1, &_claimed_index); if (index <= size) { return GenericTaskQueueSet<T, F>::queue((uint)index - 1); } else { return NULL; --- 302,312 ---- if (_claimed_index >= size) { return NULL; } ! jint index = Atomic::add(&_claimed_index, 1); if (index <= size) { return GenericTaskQueueSet<T, F>::queue((uint)index - 1); } else { return NULL;
< prev index next >