mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 03:58:21 +00:00
8364282: ZGC: Improve ZPageAllocation JFR event sending
Reviewed-by: stefank, aboldtch
This commit is contained in:
parent
ebb7f5d39b
commit
b9f7caed77
@ -547,21 +547,24 @@ public:
|
||||
}
|
||||
|
||||
void send_event(bool successful) {
|
||||
EventZPageAllocation event;
|
||||
if (!EventZPageAllocation::is_enabled()) {
|
||||
// Event not enabled, exit early
|
||||
return;
|
||||
}
|
||||
|
||||
Ticks end_timestamp = Ticks::now();
|
||||
const ZPageAllocationStats st = stats();
|
||||
|
||||
event.commit(_start_timestamp,
|
||||
end_timestamp,
|
||||
(u8)_type,
|
||||
size(),
|
||||
st._total_harvested,
|
||||
st._total_committed_capacity,
|
||||
(unsigned)st._num_harvested_vmems,
|
||||
_is_multi_partition,
|
||||
successful,
|
||||
_flags.non_blocking());
|
||||
EventZPageAllocation::commit(_start_timestamp,
|
||||
end_timestamp,
|
||||
(u8)_type,
|
||||
size(),
|
||||
st._total_harvested,
|
||||
st._total_committed_capacity,
|
||||
(unsigned)st._num_harvested_vmems,
|
||||
_is_multi_partition,
|
||||
successful,
|
||||
_flags.non_blocking());
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user