mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-16 17:14:41 +02:00
8212879: Make JVMTI TagMap table concurrent
Co-authored-by: Kim Barrett <kbarrett@openjdk.org> Co-authored-by: Coleen Phillimore <coleenp@openjdk.org> Reviewed-by: stefank, ihse, zgu, eosterlund, sspitsyn, kbarrett
This commit is contained in:
parent
3a4b90f086
commit
ba721f5f2f
49 changed files with 904 additions and 1127 deletions
|
@ -43,15 +43,6 @@ class WeakProcessorPhaseTimes : public CHeapObj<mtGC> {
|
|||
// Total time for weak processor.
|
||||
double _total_time_sec;
|
||||
|
||||
// Total time and associated items for each serially processed phase.
|
||||
static const uint phase_data_count = WeakProcessorPhases::serial_phase_count;
|
||||
// +1 because serial_phase_count == 0 in some build configurations.
|
||||
// Simpler to always allocate extra space than conditionalize.
|
||||
double _phase_times_sec[phase_data_count + 1];
|
||||
size_t _phase_dead_items[phase_data_count + 1];
|
||||
size_t _phase_total_items[phase_data_count + 1];
|
||||
void reset_phase_data();
|
||||
|
||||
// Per-worker times and linked items.
|
||||
static const uint worker_data_count = WeakProcessorPhases::oopstorage_phase_count;
|
||||
WorkerDataArray<double>* _worker_data[worker_data_count];
|
||||
|
@ -108,14 +99,8 @@ private:
|
|||
Ticks _start_time;
|
||||
|
||||
public:
|
||||
// For tracking serial phase times.
|
||||
// Precondition: WeakProcessorPhases::is_serial(phase)
|
||||
WeakProcessorPhaseTimeTracker(WeakProcessorPhaseTimes* times,
|
||||
WeakProcessorPhase phase);
|
||||
|
||||
// For tracking possibly parallel phase times (even if processed by
|
||||
// only one thread).
|
||||
// Precondition: WeakProcessorPhases::is_oopstorage(phase)
|
||||
// Precondition: worker_id < times->max_threads().
|
||||
WeakProcessorPhaseTimeTracker(WeakProcessorPhaseTimes* times,
|
||||
WeakProcessorPhase phase,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue