comparison src/share/vm/gc_implementation/parallelScavenge/vmPSOperations.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 c798c277ddd1
children da91efe96a93
comparison
equal deleted inserted replaced
3773:5130fa1b24f1 3774:c9ca3f51cf41
31 #include "memory/gcLocker.inline.hpp" 31 #include "memory/gcLocker.inline.hpp"
32 #include "utilities/dtrace.hpp" 32 #include "utilities/dtrace.hpp"
33 33
34 // The following methods are used by the parallel scavenge collector 34 // The following methods are used by the parallel scavenge collector
35 VM_ParallelGCFailedAllocation::VM_ParallelGCFailedAllocation(size_t size, 35 VM_ParallelGCFailedAllocation::VM_ParallelGCFailedAllocation(size_t size,
36 bool is_tlab, unsigned int gc_count) : 36 unsigned int gc_count) :
37 VM_GC_Operation(gc_count, GCCause::_allocation_failure), 37 VM_GC_Operation(gc_count, GCCause::_allocation_failure),
38 _size(size), 38 _size(size),
39 _is_tlab(is_tlab),
40 _result(NULL) 39 _result(NULL)
41 { 40 {
42 } 41 }
43 42
44 void VM_ParallelGCFailedAllocation::doit() { 43 void VM_ParallelGCFailedAllocation::doit() {
46 45
47 ParallelScavengeHeap* heap = (ParallelScavengeHeap*)Universe::heap(); 46 ParallelScavengeHeap* heap = (ParallelScavengeHeap*)Universe::heap();
48 assert(heap->kind() == CollectedHeap::ParallelScavengeHeap, "must be a ParallelScavengeHeap"); 47 assert(heap->kind() == CollectedHeap::ParallelScavengeHeap, "must be a ParallelScavengeHeap");
49 48
50 GCCauseSetter gccs(heap, _gc_cause); 49 GCCauseSetter gccs(heap, _gc_cause);
51 _result = heap->failed_mem_allocate(_size, _is_tlab); 50 _result = heap->failed_mem_allocate(_size);
52 51
53 if (_result == NULL && GC_locker::is_active_and_needs_gc()) { 52 if (_result == NULL && GC_locker::is_active_and_needs_gc()) {
54 set_gc_locked(); 53 set_gc_locked();
55 } 54 }
56 } 55 }