mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00
8066441: Add PLAB trace event
Reviewed-by: tschatzl, ehelin, egahlin
This commit is contained in:
parent
5c41d82d78
commit
4b3a02ee0b
4 changed files with 110 additions and 0 deletions
|
@ -156,9 +156,38 @@ class YoungGCTracer : public GCTracer {
|
|||
void report_promotion_failed(const PromotionFailedInfo& pf_info);
|
||||
void report_tenuring_threshold(const uint tenuring_threshold);
|
||||
|
||||
/*
|
||||
* Methods for reporting Promotion in new or outside PLAB Events.
|
||||
*
|
||||
* The object age is always required as it is not certain that the mark word
|
||||
* of the oop can be trusted at this stage.
|
||||
*
|
||||
* obj_size is the size of the promoted object in bytes.
|
||||
*
|
||||
* tenured should be true if the object has been promoted to the old
|
||||
* space during this GC, if the object is copied to survivor space
|
||||
* from young space or survivor space (aging) tenured should be false.
|
||||
*
|
||||
* plab_size is the size of the newly allocated PLAB in bytes.
|
||||
*/
|
||||
bool should_report_promotion_in_new_plab_event() const;
|
||||
bool should_report_promotion_outside_plab_event() const;
|
||||
void report_promotion_in_new_plab_event(Klass* klass, size_t obj_size,
|
||||
uint age, bool tenured,
|
||||
size_t plab_size) const;
|
||||
void report_promotion_outside_plab_event(Klass* klass, size_t obj_size,
|
||||
uint age, bool tenured) const;
|
||||
|
||||
private:
|
||||
void send_young_gc_event() const;
|
||||
void send_promotion_failed_event(const PromotionFailedInfo& pf_info) const;
|
||||
bool should_send_promotion_in_new_plab_event() const;
|
||||
bool should_send_promotion_outside_plab_event() const;
|
||||
void send_promotion_in_new_plab_event(Klass* klass, size_t obj_size,
|
||||
uint age, bool tenured,
|
||||
size_t plab_size) const;
|
||||
void send_promotion_outside_plab_event(Klass* klass, size_t obj_size,
|
||||
uint age, bool tenured) const;
|
||||
};
|
||||
|
||||
class OldGCTracer : public GCTracer {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue