comparison src/share/vm/memory/genCollectedHeap.cpp @ 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
930 } 930 }
931 } 931 }
932 return result; 932 return result;
933 } 933 }
934 934
935 size_t GenCollectedHeap::tlab_used(Thread* thr) const {
936 size_t result = 0;
937 for (int i = 0; i < _n_gens; i += 1) {
938 if (_gens[i]->supports_tlab_allocation()) {
939 result += _gens[i]->tlab_used();
940 }
941 }
942 return result;
943 }
944
935 size_t GenCollectedHeap::unsafe_max_tlab_alloc(Thread* thr) const { 945 size_t GenCollectedHeap::unsafe_max_tlab_alloc(Thread* thr) const {
936 size_t result = 0; 946 size_t result = 0;
937 for (int i = 0; i < _n_gens; i += 1) { 947 for (int i = 0; i < _n_gens; i += 1) {
938 if (_gens[i]->supports_tlab_allocation()) { 948 if (_gens[i]->supports_tlab_allocation()) {
939 result += _gens[i]->unsafe_max_tlab_alloc(); 949 result += _gens[i]->unsafe_max_tlab_alloc();