equal
deleted
inserted
replaced
70 MetachunkList _chunks; |
70 MetachunkList _chunks; |
71 |
71 |
72 Metachunk* current_chunk() { return _chunks.first(); } |
72 Metachunk* current_chunk() { return _chunks.first(); } |
73 const Metachunk* current_chunk() const { return _chunks.first(); } |
73 const Metachunk* current_chunk() const { return _chunks.first(); } |
74 |
74 |
75 // Prematurely released metablocks. |
75 // These structures take care of 1) prematurely deallocated Metaspace blocks |
|
76 // and 2) leftover space from retired chunks. |
|
77 // Only one of these is active; one will eventually go. We are still testing |
|
78 // which implementation is better suited to the task. _lom is default. Change |
|
79 // with -XX:+-MetaspaceUseLOM. |
76 BlockFreelist* _block_freelist; |
80 BlockFreelist* _block_freelist; |
77 LeftOverManager* _lom; |
81 LeftOverManager* _lom; |
78 |
82 |
79 // Points to outside size counter which we are to increase/decrease when we allocate memory |
83 // Points to outside size counter which we are to increase/decrease when we allocate memory |
80 // on behalf of a user or when we are destroyed. |
84 // on behalf of a user or when we are destroyed. |