src/hotspot/share/gc/shared/workerDataArray.inline.hpp
changeset 54465 c4f16445675a
parent 53244 9807daeb47c4
child 55510 3e31a8beaae4
--- a/src/hotspot/share/gc/shared/workerDataArray.inline.hpp	Mon Apr 08 11:11:22 2019 -0700
+++ b/src/hotspot/share/gc/shared/workerDataArray.inline.hpp	Mon Apr 08 20:37:52 2019 +0200
@@ -92,6 +92,13 @@
 }
 
 template <typename T>
+size_t WorkerDataArray<T>::get_thread_work_item(uint worker_i, uint index) {
+  assert(index < MaxThreadWorkItems, "Tried to access thread work item %u (max %u)", index, MaxThreadWorkItems);
+  assert(_thread_work_items[index] != NULL, "No sub count");
+  return _thread_work_items[index]->get(worker_i);
+}
+
+template <typename T>
 void WorkerDataArray<T>::add(uint worker_i, T value) {
   assert(worker_i < _length, "Worker %d is greater than max: %d", worker_i, _length);
   assert(_data[worker_i] != uninitialized(), "No data to add to for worker %d", worker_i);