comparison src/share/vm/memory/genCollectedHeap.cpp @ 17727:cfd4aac53239

8030177: G1: Enable TLAB resizing Reviewed-by: tschatzl, stefank, jmasa
author brutisso
date Mon, 27 Jan 2014 13:14:53 +0100
parents 8f07aa079343
children 270d7cb38f40
comparison
equal deleted inserted replaced
17726:085b304a1cc5 17727:cfd4aac53239
935 } 935 }
936 } 936 }
937 return result; 937 return result;
938 } 938 }
939 939
940 size_t GenCollectedHeap::tlab_used(Thread* thr) const {
941 size_t result = 0;
942 for (int i = 0; i < _n_gens; i += 1) {
943 if (_gens[i]->supports_tlab_allocation()) {
944 result += _gens[i]->tlab_used();
945 }
946 }
947 return result;
948 }
949
940 size_t GenCollectedHeap::unsafe_max_tlab_alloc(Thread* thr) const { 950 size_t GenCollectedHeap::unsafe_max_tlab_alloc(Thread* thr) const {
941 size_t result = 0; 951 size_t result = 0;
942 for (int i = 0; i < _n_gens; i += 1) { 952 for (int i = 0; i < _n_gens; i += 1) {
943 if (_gens[i]->supports_tlab_allocation()) { 953 if (_gens[i]->supports_tlab_allocation()) {
944 result += _gens[i]->unsafe_max_tlab_alloc(); 954 result += _gens[i]->unsafe_max_tlab_alloc();