comparison src/share/vm/memory/genCollectedHeap.cpp @ 17810:62c54fcc0a35

Merge
author kvn
date Tue, 25 Mar 2014 17:07:36 -0700
parents cfd4aac53239
children 270d7cb38f40
comparison
equal deleted inserted replaced
17809:a433eb716ce1 17810:62c54fcc0a35
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();