src/hotspot/share/gc/cms/parNewGeneration.cpp
changeset 47552 8a3599d60996
parent 47216 71c04702a3d5
child 47580 96392e113a0a
equal deleted inserted replaced
47551:4d034d861e13 47552:8a3599d60996
  1279     // use the klass pointer for the linked list.  Instead we have
  1279     // use the klass pointer for the linked list.  Instead we have
  1280     // to allocate an oopDesc in the C-Heap and use that for the linked list.
  1280     // to allocate an oopDesc in the C-Heap and use that for the linked list.
  1281     // XXX This is horribly inefficient when a promotion failure occurs
  1281     // XXX This is horribly inefficient when a promotion failure occurs
  1282     // and should be fixed. XXX FIX ME !!!
  1282     // and should be fixed. XXX FIX ME !!!
  1283 #ifndef PRODUCT
  1283 #ifndef PRODUCT
  1284     Atomic::inc_ptr(&_num_par_pushes);
  1284     Atomic::inc(&_num_par_pushes);
  1285     assert(_num_par_pushes > 0, "Tautology");
  1285     assert(_num_par_pushes > 0, "Tautology");
  1286 #endif
  1286 #endif
  1287     if (from_space_obj->forwardee() == from_space_obj) {
  1287     if (from_space_obj->forwardee() == from_space_obj) {
  1288       oopDesc* listhead = NEW_C_HEAP_ARRAY(oopDesc, 1, mtGC);
  1288       oopDesc* listhead = NEW_C_HEAP_ARRAY(oopDesc, 1, mtGC);
  1289       listhead->forward_to(from_space_obj);
  1289       listhead->forward_to(from_space_obj);