--- old/src/hotspot/share/gc/shared/workerDataArray.hpp 2019-03-13 14:03:16.524448757 +0100 +++ new/src/hotspot/share/gc/shared/workerDataArray.hpp 2019-03-13 14:03:16.312442999 +0100 @@ -34,7 +34,7 @@ class WorkerDataArray : public CHeapObj { friend class WDAPrinter; public: - static const uint MaxThreadWorkItems = 4; + static const uint MaxThreadWorkItems = 5; private: T* _data; uint _length; @@ -50,6 +50,7 @@ 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* thread_work_items(uint index = 0) const { assert(index < MaxThreadWorkItems, "Tried to access thread work item %u max %u", index, MaxThreadWorkItems);