1479 virtual bool supports_heap_inspection() const { return true; } |
1479 virtual bool supports_heap_inspection() const { return true; } |
1480 |
1480 |
1481 // Section on thread-local allocation buffers (TLABs) |
1481 // Section on thread-local allocation buffers (TLABs) |
1482 // See CollectedHeap for semantics. |
1482 // See CollectedHeap for semantics. |
1483 |
1483 |
1484 virtual bool supports_tlab_allocation() const; |
1484 bool supports_tlab_allocation() const; |
1485 virtual size_t tlab_capacity(Thread* thr) const; |
1485 size_t tlab_capacity(Thread* ignored) const; |
1486 virtual size_t unsafe_max_tlab_alloc(Thread* thr) const; |
1486 size_t tlab_used(Thread* ignored) const; |
|
1487 size_t max_tlab_size() const; |
|
1488 size_t unsafe_max_tlab_alloc(Thread* ignored) const; |
1487 |
1489 |
1488 // Can a compiler initialize a new object without store barriers? |
1490 // Can a compiler initialize a new object without store barriers? |
1489 // This permission only extends from the creation of a new object |
1491 // This permission only extends from the creation of a new object |
1490 // via a TLAB up to the first subsequent safepoint. If such permission |
1492 // via a TLAB up to the first subsequent safepoint. If such permission |
1491 // is granted for this heap type, the compiler promises to call |
1493 // is granted for this heap type, the compiler promises to call |
1566 static G1CollectedHeap* heap(); |
1568 static G1CollectedHeap* heap(); |
1567 |
1569 |
1568 void set_region_short_lived_locked(HeapRegion* hr); |
1570 void set_region_short_lived_locked(HeapRegion* hr); |
1569 // add appropriate methods for any other surv rate groups |
1571 // add appropriate methods for any other surv rate groups |
1570 |
1572 |
1571 YoungList* young_list() { return _young_list; } |
1573 YoungList* young_list() const { return _young_list; } |
1572 |
1574 |
1573 // debugging |
1575 // debugging |
1574 bool check_young_list_well_formed() { |
1576 bool check_young_list_well_formed() { |
1575 return _young_list->check_list_well_formed(); |
1577 return _young_list->check_list_well_formed(); |
1576 } |
1578 } |