hotspot/src/share/vm/gc_implementation/g1/g1MarkSweep.cpp
changeset 25714 87fa6860b5ae
parent 25492 d27050bdfb04
child 25731 12b4515adfa2
equal deleted inserted replaced
25713:e2ed3bec8c2c 25714:87fa6860b5ae
    74   rp->setup_policy(clear_all_softrefs);
    74   rp->setup_policy(clear_all_softrefs);
    75 
    75 
    76   // When collecting the permanent generation Method*s may be moving,
    76   // When collecting the permanent generation Method*s may be moving,
    77   // so we either have to flush all bcp data or convert it into bci.
    77   // so we either have to flush all bcp data or convert it into bci.
    78   CodeCache::gc_prologue();
    78   CodeCache::gc_prologue();
    79   Threads::gc_prologue();
       
    80 
    79 
    81   bool marked_for_unloading = false;
    80   bool marked_for_unloading = false;
    82 
    81 
    83   allocate_stacks();
    82   allocate_stacks();
    84 
    83 
   104   // "free at last gc" is calculated from these.
   103   // "free at last gc" is calculated from these.
   105   // CHF: cheating for now!!!
   104   // CHF: cheating for now!!!
   106   //  Universe::set_heap_capacity_at_last_gc(Universe::heap()->capacity());
   105   //  Universe::set_heap_capacity_at_last_gc(Universe::heap()->capacity());
   107   //  Universe::set_heap_used_at_last_gc(Universe::heap()->used());
   106   //  Universe::set_heap_used_at_last_gc(Universe::heap()->used());
   108 
   107 
   109   Threads::gc_epilogue();
       
   110   CodeCache::gc_epilogue();
   108   CodeCache::gc_epilogue();
   111   JvmtiExport::gc_epilogue();
   109   JvmtiExport::gc_epilogue();
   112 
   110 
   113   // refs processing: clean slate
   111   // refs processing: clean slate
   114   GenMarkSweep::_ref_processor = NULL;
   112   GenMarkSweep::_ref_processor = NULL;