< prev index next >
src/hotspot/share/gc/shared/workerDataArray.hpp
Print this page
rev 59944 : 8247819: G1: Process strong OopStorage entries in parallel
Reviewed-by:
Contributed-by: Erik ?sterlund <erik.osterlund@oracle.com>, Thomas Schatzl <thomas.schatzl@oracle.com>
@@ -36,18 +36,19 @@
public:
static const uint MaxThreadWorkItems = 6;
private:
T* _data;
uint _length;
- const char* _title;
+ const char* _short_name; // Short name for JFR
+ const char* _title; // Title for logging.
bool _is_serial;
WorkerDataArray<size_t>* _thread_work_items[MaxThreadWorkItems];
public:
- WorkerDataArray(const char* title, uint length, bool is_serial = false);
+ WorkerDataArray(const char* short_name, const char* title, uint length, bool is_serial = false);
~WorkerDataArray();
// Create an integer sub-item at the given index to this WorkerDataArray. If length_override
// is zero, use the same number of elements as this array, otherwise use the given
// number.
@@ -76,10 +77,14 @@
const char* title() const {
return _title;
}
+ const char* short_name() const {
+ return _short_name;
+ }
+
void reset();
void set_all(T value);
private:
< prev index next >