< prev index next >

src/hotspot/share/gc/serial/serialHeap.cpp

Print this page

 77 }
 78 
 79 GrowableArray<GCMemoryManager*> SerialHeap::memory_managers() {
 80   GrowableArray<GCMemoryManager*> memory_managers(2);
 81   memory_managers.append(_young_manager);
 82   memory_managers.append(_old_manager);
 83   return memory_managers;
 84 }
 85 
 86 GrowableArray<MemoryPool*> SerialHeap::memory_pools() {
 87   GrowableArray<MemoryPool*> memory_pools(3);
 88   memory_pools.append(_eden_pool);
 89   memory_pools.append(_survivor_pool);
 90   memory_pools.append(_old_pool);
 91   return memory_pools;
 92 }
 93 
 94 void SerialHeap::young_process_roots(OopIterateClosure* root_closure,
 95                                      OopIterateClosure* old_gen_closure,
 96                                      CLDClosure* cld_closure) {
 97   MarkingCodeBlobClosure mark_code_closure(root_closure, CodeBlobToOopClosure::FixRelocations);
 98 
 99   process_roots(SO_ScavengeCodeCache, root_closure,
100                 cld_closure, cld_closure, &mark_code_closure);
101 
102   old_gen()->younger_refs_iterate(old_gen_closure);
103 }
104 
105 void SerialHeap::safepoint_synchronize_begin() {
106   if (UseStringDeduplication) {
107     SuspendibleThreadSet::synchronize();
108   }
109 }
110 
111 void SerialHeap::safepoint_synchronize_end() {
112   if (UseStringDeduplication) {
113     SuspendibleThreadSet::desynchronize();
114   }
115 }
116 
117 HeapWord* SerialHeap::allocate_loaded_archive_space(size_t word_size) {

 77 }
 78 
 79 GrowableArray<GCMemoryManager*> SerialHeap::memory_managers() {
 80   GrowableArray<GCMemoryManager*> memory_managers(2);
 81   memory_managers.append(_young_manager);
 82   memory_managers.append(_old_manager);
 83   return memory_managers;
 84 }
 85 
 86 GrowableArray<MemoryPool*> SerialHeap::memory_pools() {
 87   GrowableArray<MemoryPool*> memory_pools(3);
 88   memory_pools.append(_eden_pool);
 89   memory_pools.append(_survivor_pool);
 90   memory_pools.append(_old_pool);
 91   return memory_pools;
 92 }
 93 
 94 void SerialHeap::young_process_roots(OopIterateClosure* root_closure,
 95                                      OopIterateClosure* old_gen_closure,
 96                                      CLDClosure* cld_closure) {
 97   MarkingCodeBlobClosure mark_code_closure(root_closure, CodeBlobToOopClosure::FixRelocations, false /* keepalive nmethods */);
 98 
 99   process_roots(SO_ScavengeCodeCache, root_closure,
100                 cld_closure, cld_closure, &mark_code_closure);
101 
102   old_gen()->younger_refs_iterate(old_gen_closure);
103 }
104 
105 void SerialHeap::safepoint_synchronize_begin() {
106   if (UseStringDeduplication) {
107     SuspendibleThreadSet::synchronize();
108   }
109 }
110 
111 void SerialHeap::safepoint_synchronize_end() {
112   if (UseStringDeduplication) {
113     SuspendibleThreadSet::desynchronize();
114   }
115 }
116 
117 HeapWord* SerialHeap::allocate_loaded_archive_space(size_t word_size) {
< prev index next >