comparison src/share/vm/gc_implementation/g1/g1CollectedHeap.hpp @ 17727:cfd4aac53239

8030177: G1: Enable TLAB resizing Reviewed-by: tschatzl, stefank, jmasa
author brutisso
date Mon, 27 Jan 2014 13:14:53 +0100
parents e5c0b296deb2
children 58fc1b1523dc
comparison
equal deleted inserted replaced
17726:085b304a1cc5 17727:cfd4aac53239
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 }