src/share/vm/memory/universe.cpp

Print this page
rev 6796 : [mq]: templateOopIterate
rev 6797 : [mq]: vaTests
rev 6799 : [mq]: latestChanges


1480 
1481 #ifdef ASSERT
1482 // Release dummy object(s) at bottom of heap
1483 bool Universe::release_fullgc_alot_dummy() {
1484   MutexLocker ml(FullGCALot_lock);
1485   if (_fullgc_alot_dummy_array != NULL) {
1486     if (_fullgc_alot_dummy_next >= _fullgc_alot_dummy_array->length()) {
1487       // No more dummies to release, release entire array instead
1488       _fullgc_alot_dummy_array = NULL;
1489       return false;
1490     }
1491     if (!UseConcMarkSweepGC) {
1492       // Release dummy at bottom of old generation
1493       _fullgc_alot_dummy_array->obj_at_put(_fullgc_alot_dummy_next++, NULL);
1494     }
1495     // Release dummy at bottom of permanent generation
1496     _fullgc_alot_dummy_array->obj_at_put(_fullgc_alot_dummy_next++, NULL);
1497   }
1498   return true;
1499 }
1500 
1501 #endif // ASSERT


1480 
1481 #ifdef ASSERT
1482 // Release dummy object(s) at bottom of heap
1483 bool Universe::release_fullgc_alot_dummy() {
1484   MutexLocker ml(FullGCALot_lock);
1485   if (_fullgc_alot_dummy_array != NULL) {
1486     if (_fullgc_alot_dummy_next >= _fullgc_alot_dummy_array->length()) {
1487       // No more dummies to release, release entire array instead
1488       _fullgc_alot_dummy_array = NULL;
1489       return false;
1490     }
1491     if (!UseConcMarkSweepGC) {
1492       // Release dummy at bottom of old generation
1493       _fullgc_alot_dummy_array->obj_at_put(_fullgc_alot_dummy_next++, NULL);
1494     }
1495     // Release dummy at bottom of permanent generation
1496     _fullgc_alot_dummy_array->obj_at_put(_fullgc_alot_dummy_next++, NULL);
1497   }
1498   return true;
1499 }
1500 #endif