src/share/vm/gc_implementation/shared/gcTrace.hpp
Print this page
*** 155,164 ****
--- 155,179 ----
public:
void report_promotion_failed(const PromotionFailedInfo& pf_info);
void report_tenuring_threshold(const uint tenuring_threshold);
+ /*
+ * Generates and commits a Promotion Sample if the trace event is enabled.
+ *
+ * The object age is always required as it is not certain that the mark word
+ * can be trusted at this stage.
+ *
+ * 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.
+ *
+ * If the plab_size is the same as object size the assumption is that the
+ * object was directly allocated instead of copied into a PLAB.
+ */
+ void report_promotion_to_new_plab(oop const old, uint age, bool tenured, size_t plab_size);
+
private:
void send_young_gc_event() const;
void send_promotion_failed_event(const PromotionFailedInfo& pf_info) const;
};