File tree 2 files changed +5
-0
lines changed
2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -158,6 +158,7 @@ class VM_JFRChunkWriter {
158
158
static constexpr int THREAD_END_EVENT_SIZE = (4 * sizeof (U_64)) + sizeof (U_32);
159
159
static constexpr int THREAD_SLEEP_EVENT_SIZE = (7 * sizeof (U_64)) + sizeof (U_32);
160
160
static constexpr int MONITOR_WAIT_EVENT_SIZE = (9 * sizeof (U_64)) + sizeof (U_32);
161
+ static constexpr int THREAD_PARK_EVENT_SIZE = (9 * sizeof (U_64)) + sizeof (U_32);
161
162
static constexpr int JVM_INFORMATION_EVENT_SIZE = 3000 ;
162
163
static constexpr int PHYSICAL_MEMORY_EVENT_SIZE = (4 * sizeof (U_64)) + sizeof (U_32);
163
164
static constexpr int VIRTUALIZATION_INFORMATION_EVENT_SIZE = 50 ;
@@ -768,6 +769,8 @@ class VM_JFRChunkWriter {
768
769
769
770
requiredBufferSize += (_constantPoolTypes.getMonitorWaitCount () * MONITOR_WAIT_EVENT_SIZE);
770
771
772
+ requiredBufferSize += (_constantPoolTypes.getThreadParkCount () * THREAD_PARK_EVENT_SIZE);
773
+
771
774
requiredBufferSize += JVM_INFORMATION_EVENT_SIZE;
772
775
773
776
requiredBufferSize += OS_INFORMATION_EVENT_SIZE;
Original file line number Diff line number Diff line change @@ -1126,6 +1126,8 @@ VM_JFRConstantPoolTypes::addThreadParkEntry(J9JFRThreadParked* threadParkData)
1126
1126
entry->timeOut = threadParkData->timeOut ;
1127
1127
entry->untilTime = threadParkData->untilTime ;
1128
1128
1129
+ _threadParkCount += 1 ;
1130
+
1129
1131
done:
1130
1132
return ;
1131
1133
}
You can’t perform that action at this time.
0 commit comments