mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
6966222: G1: simplify TaskQueue overflow handling
Reviewed-by: tonyp, ysr
This commit is contained in:
parent
f8eed77f36
commit
7fe1c05c7c
5 changed files with 127 additions and 90 deletions
|
@ -59,15 +59,21 @@ public:
|
|||
inline void record_steal(bool success);
|
||||
inline void record_overflow(size_t new_length);
|
||||
|
||||
TaskQueueStats & operator +=(const TaskQueueStats & addend);
|
||||
|
||||
inline size_t get(StatId id) const { return _stats[id]; }
|
||||
inline const size_t* get() const { return _stats; }
|
||||
|
||||
inline void reset();
|
||||
|
||||
// Print the specified line of the header (does not include a line separator).
|
||||
static void print_header(unsigned int line, outputStream* const stream = tty,
|
||||
unsigned int width = 10);
|
||||
// Print the statistics (does not include a line separator).
|
||||
void print(outputStream* const stream = tty, unsigned int width = 10) const;
|
||||
|
||||
DEBUG_ONLY(void verify() const;)
|
||||
|
||||
private:
|
||||
size_t _stats[last_stat_id];
|
||||
static const char * const _names[last_stat_id];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue