comparison src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp @ 3774:c9ca3f51cf41

6994322: Remove the is_tlab and is_noref / is_large_noref parameters from the CollectedHeap Summary: Remove two unused parameters from the mem_allocate() method and update its uses accordingly. Reviewed-by: stefank, johnc
author tonyp
date Thu, 16 Jun 2011 15:51:57 -0400
parents 6747fd0512e0
children e8b0b0392037
comparison
equal deleted inserted replaced
3773:5130fa1b24f1 3774:c9ca3f51cf41
827 return attempt_allocation(word_size, &dummy_gc_count_before); 827 return attempt_allocation(word_size, &dummy_gc_count_before);
828 } 828 }
829 829
830 HeapWord* 830 HeapWord*
831 G1CollectedHeap::mem_allocate(size_t word_size, 831 G1CollectedHeap::mem_allocate(size_t word_size,
832 bool is_noref,
833 bool is_tlab,
834 bool* gc_overhead_limit_was_exceeded) { 832 bool* gc_overhead_limit_was_exceeded) {
835 assert_heap_not_locked_and_not_at_safepoint(); 833 assert_heap_not_locked_and_not_at_safepoint();
836 assert(!is_tlab, "mem_allocate() this should not be called directly "
837 "to allocate TLABs");
838 834
839 // Loop until the allocation is satisified, or unsatisfied after GC. 835 // Loop until the allocation is satisified, or unsatisfied after GC.
840 for (int try_count = 1; /* we'll return */; try_count += 1) { 836 for (int try_count = 1; /* we'll return */; try_count += 1) {
841 unsigned int gc_count_before; 837 unsigned int gc_count_before;
842 838
2620 } else { 2616 } else {
2621 return MIN2(MAX2(hr->free(), (size_t) MinTLABSize), max_tlab_size); 2617 return MIN2(MAX2(hr->free(), (size_t) MinTLABSize), max_tlab_size);
2622 } 2618 }
2623 } 2619 }
2624 2620
2625 size_t G1CollectedHeap::large_typearray_limit() {
2626 // FIXME
2627 return HeapRegion::GrainBytes/HeapWordSize;
2628 }
2629
2630 size_t G1CollectedHeap::max_capacity() const { 2621 size_t G1CollectedHeap::max_capacity() const {
2631 return _g1_reserved.byte_size(); 2622 return _g1_reserved.byte_size();
2632 } 2623 }
2633 2624
2634 jlong G1CollectedHeap::millis_since_last_gc() { 2625 jlong G1CollectedHeap::millis_since_last_gc() {