< prev index next >

src/hotspot/share/gc/shared/workerDataArray.hpp

Print this page

        

*** 32,42 **** template <class T> class WorkerDataArray : public CHeapObj<mtGC> { friend class WDAPrinter; public: ! static const uint MaxThreadWorkItems = 5; private: T* _data; uint _length; const char* _title; --- 32,42 ---- template <class T> class WorkerDataArray : public CHeapObj<mtGC> { friend class WDAPrinter; public: ! static const uint MaxThreadWorkItems = 4; private: T* _data; uint _length; const char* _title;
*** 48,58 **** void link_thread_work_items(WorkerDataArray<size_t>* thread_work_items, uint index = 0); void set_thread_work_item(uint worker_i, size_t value, uint index = 0); void add_thread_work_item(uint worker_i, size_t value, uint index = 0); void set_or_add_thread_work_item(uint worker_i, size_t value, uint index = 0); - size_t get_thread_work_item(uint worker_i, uint index = 0); WorkerDataArray<size_t>* thread_work_items(uint index = 0) const { assert(index < MaxThreadWorkItems, "Tried to access thread work item %u max %u", index, MaxThreadWorkItems); return _thread_work_items[index]; } --- 48,57 ----
< prev index next >