64 using FreeList<Chunk>::size;
65 using FreeList<Chunk>::verify_chunk_in_free_list;
66 using FreeList<Chunk>::getFirstNChunksFromList;
67 using FreeList<Chunk>::print_on;
68 void return_chunk_at_head(Chunk* fc, bool record_return);
69 void return_chunk_at_head(Chunk* fc);
70 void return_chunk_at_tail(Chunk* fc, bool record_return);
71 void return_chunk_at_tail(Chunk* fc);
72 using FreeList<Chunk>::return_chunk_at_tail;
73 using FreeList<Chunk>::remove_chunk;
74 using FreeList<Chunk>::prepend;
75 using FreeList<Chunk>::print_labels_on;
76 using FreeList<Chunk>::get_chunk_at_head;
77
78 // Initialize.
79 void initialize();
80
81 // Reset the head, tail, hint, and count of a free list.
82 void reset(size_t hint);
83
84 void assert_proper_lock_protection_work() const PRODUCT_RETURN;
85
86 void print_on(outputStream* st, const char* c = NULL) const;
87
88 size_t hint() const {
89 return _hint;
90 }
91 void set_hint(size_t v) {
92 assert_proper_lock_protection();
93 assert(v == 0 || size() < v, "Bad hint");
94 _hint = v;
95 }
96
97 size_t get_better_size();
98
99 // Accessors for statistics
100 void init_statistics(bool split_birth = false);
101
102 AllocationStats* allocation_stats() {
103 assert_proper_lock_protection();
104 return &_allocation_stats;
105 }
|
64 using FreeList<Chunk>::size;
65 using FreeList<Chunk>::verify_chunk_in_free_list;
66 using FreeList<Chunk>::getFirstNChunksFromList;
67 using FreeList<Chunk>::print_on;
68 void return_chunk_at_head(Chunk* fc, bool record_return);
69 void return_chunk_at_head(Chunk* fc);
70 void return_chunk_at_tail(Chunk* fc, bool record_return);
71 void return_chunk_at_tail(Chunk* fc);
72 using FreeList<Chunk>::return_chunk_at_tail;
73 using FreeList<Chunk>::remove_chunk;
74 using FreeList<Chunk>::prepend;
75 using FreeList<Chunk>::print_labels_on;
76 using FreeList<Chunk>::get_chunk_at_head;
77
78 // Initialize.
79 void initialize();
80
81 // Reset the head, tail, hint, and count of a free list.
82 void reset(size_t hint);
83
84 void print_on(outputStream* st, const char* c = NULL) const;
85
86 size_t hint() const {
87 return _hint;
88 }
89 void set_hint(size_t v) {
90 assert_proper_lock_protection();
91 assert(v == 0 || size() < v, "Bad hint");
92 _hint = v;
93 }
94
95 size_t get_better_size();
96
97 // Accessors for statistics
98 void init_statistics(bool split_birth = false);
99
100 AllocationStats* allocation_stats() {
101 assert_proper_lock_protection();
102 return &_allocation_stats;
103 }
|