comparison src/share/vm/gc_implementation/g1/g1CollectedHeap.hpp @ 14310:1e1c8d358b52

8030177: G1: Enable TLAB resizing Reviewed-by: tschatzl, stefank, jmasa
author brutisso
date Mon, 27 Jan 2014 13:14:53 +0100
parents 63a4eb8bcd23
children d166675568f6
comparison
equal deleted inserted replaced
14309:63a4eb8bcd23 14310:1e1c8d358b52
1468 virtual bool supports_heap_inspection() const { return true; } 1468 virtual bool supports_heap_inspection() const { return true; }
1469 1469
1470 // Section on thread-local allocation buffers (TLABs) 1470 // Section on thread-local allocation buffers (TLABs)
1471 // See CollectedHeap for semantics. 1471 // See CollectedHeap for semantics.
1472 1472
1473 virtual bool supports_tlab_allocation() const; 1473 bool supports_tlab_allocation() const;
1474 virtual size_t tlab_capacity(Thread* thr) const; 1474 size_t tlab_capacity(Thread* ignored) const;
1475 virtual size_t unsafe_max_tlab_alloc(Thread* thr) const; 1475 size_t tlab_used(Thread* ignored) const;
1476 size_t max_tlab_size() const;
1477 size_t unsafe_max_tlab_alloc(Thread* ignored) const;
1476 1478
1477 // Can a compiler initialize a new object without store barriers? 1479 // Can a compiler initialize a new object without store barriers?
1478 // This permission only extends from the creation of a new object 1480 // This permission only extends from the creation of a new object
1479 // via a TLAB up to the first subsequent safepoint. If such permission 1481 // via a TLAB up to the first subsequent safepoint. If such permission
1480 // is granted for this heap type, the compiler promises to call 1482 // is granted for this heap type, the compiler promises to call
1555 static G1CollectedHeap* heap(); 1557 static G1CollectedHeap* heap();
1556 1558
1557 void set_region_short_lived_locked(HeapRegion* hr); 1559 void set_region_short_lived_locked(HeapRegion* hr);
1558 // add appropriate methods for any other surv rate groups 1560 // add appropriate methods for any other surv rate groups
1559 1561
1560 YoungList* young_list() { return _young_list; } 1562 YoungList* young_list() const { return _young_list; }
1561 1563
1562 // debugging 1564 // debugging
1563 bool check_young_list_well_formed() { 1565 bool check_young_list_well_formed() {
1564 return _young_list->check_list_well_formed(); 1566 return _young_list->check_list_well_formed();
1565 } 1567 }