< prev index next >
src/hotspot/share/gc/g1/g1FreeIdSet.hpp
Print this page
rev 53151 : [mq]: tschatzl_review
@@ -27,11 +27,15 @@
#include "memory/allocation.hpp"
#include "runtime/semaphore.hpp"
#include "utilities/globalDefinitions.hpp"
-// Represents a set of free small integer ids.
+// Represents a set of small integer ids, from which elements can be
+// temporarily allocated for exclusive use. The ids are in a
+// contiguous range from 'start' to 'start + size'. Used to obtain a
+// distinct worker_id value for a mutator thread that doesn't normally
+// have such an id.
class G1FreeIdSet : public CHeapObj<mtGC> {
Semaphore _sem;
uint* _next;
uint _start;
uint _size;
< prev index next >