< prev index next >

src/hotspot/share/gc/g1/g1FreeIdSet.hpp

Print this page

        

*** 23,41 **** */ #ifndef SHARE_GC_G1_G1FREEIDSET_HPP #define SHARE_GC_G1_G1FREEIDSET_HPP #include "runtime/semaphore.hpp" #include "utilities/globalDefinitions.hpp" // 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 { Semaphore _sem; uint* _next; uint _start; uint _size; uintx _head_index_mask; --- 23,42 ---- */ #ifndef SHARE_GC_G1_G1FREEIDSET_HPP #define SHARE_GC_G1_G1FREEIDSET_HPP + #include "memory/allocation.hpp" #include "runtime/semaphore.hpp" #include "utilities/globalDefinitions.hpp" // 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; uintx _head_index_mask;
< prev index next >