comparison src/share/vm/gc_implementation/concurrentMarkSweep/promotionInfo.cpp @ 1777:179464550c7d

6983930: CMS: Various small cleanups ca September 2010 Summary: Fixed comment/documentation typos; converted some guarantee()s to assert()s. Reviewed-by: jmasa
author ysr
date Fri, 10 Sep 2010 17:07:55 -0700
parents be3f9c242c9d
children f95d63e2154a
comparison
equal deleted inserted replaced
1767:dee553c74493 1777:179464550c7d
251 for (SpoolBlock* cur_spool = _spareSpool; 251 for (SpoolBlock* cur_spool = _spareSpool;
252 cur_spool != NULL; 252 cur_spool != NULL;
253 cur_spool = cur_spool->nextSpoolBlock) { 253 cur_spool = cur_spool->nextSpoolBlock) {
254 // the first entry is just a self-pointer; indices 1 through 254 // the first entry is just a self-pointer; indices 1 through
255 // bufferSize - 1 are occupied (thus, bufferSize - 1 slots). 255 // bufferSize - 1 are occupied (thus, bufferSize - 1 slots).
256 guarantee((void*)cur_spool->displacedHdr == (void*)&cur_spool->displacedHdr, 256 assert((void*)cur_spool->displacedHdr == (void*)&cur_spool->displacedHdr,
257 "first entry of displacedHdr should be self-referential"); 257 "first entry of displacedHdr should be self-referential");
258 slots += cur_spool->bufferSize - 1; 258 slots += cur_spool->bufferSize - 1;
259 blocks++; 259 blocks++;
260 } 260 }
261 if (_spoolHead != NULL) { 261 if (_spoolHead != NULL) {
262 slots += _spoolHead->bufferSize - 1; 262 slots += _spoolHead->bufferSize - 1;