comparison src/share/vm/gc_implementation/parallelScavenge/psParallelCompact.cpp @ 14309:63a4eb8bcd23

8025856: Fix typos in the GC code Summary: Fix about 440 typos in comments in the VM code Reviewed-by: mgerdin, tschatzl, coleenp, kmo, jcoomes
author jwilhelm
date Thu, 23 Jan 2014 14:47:23 +0100
parents 397385cc2c83
children e9ca52f59632 4ca6dc0799b6
comparison
equal deleted inserted replaced
14308:870aedf4ba4f 14309:63a4eb8bcd23
2174 counters->update_young_capacity(young_gen->capacity_in_bytes()); 2174 counters->update_young_capacity(young_gen->capacity_in_bytes());
2175 } 2175 }
2176 2176
2177 heap->resize_all_tlabs(); 2177 heap->resize_all_tlabs();
2178 2178
2179 // Resize the metaspace capactiy after a collection 2179 // Resize the metaspace capacity after a collection
2180 MetaspaceGC::compute_new_size(); 2180 MetaspaceGC::compute_new_size();
2181 2181
2182 if (TraceGen1Time) accumulated_time()->stop(); 2182 if (TraceGen1Time) accumulated_time()->stop();
2183 2183
2184 if (PrintGC) { 2184 if (PrintGC) {
3283 "live objects skipped because closure is full"); 3283 "live objects skipped because closure is full");
3284 } 3284 }
3285 } 3285 }
3286 3286
3287 jlong PSParallelCompact::millis_since_last_gc() { 3287 jlong PSParallelCompact::millis_since_last_gc() {
3288 // We need a monotonically non-deccreasing time in ms but 3288 // We need a monotonically non-decreasing time in ms but
3289 // os::javaTimeMillis() does not guarantee monotonicity. 3289 // os::javaTimeMillis() does not guarantee monotonicity.
3290 jlong now = os::javaTimeNanos() / NANOSECS_PER_MILLISEC; 3290 jlong now = os::javaTimeNanos() / NANOSECS_PER_MILLISEC;
3291 jlong ret_val = now - _time_of_last_gc; 3291 jlong ret_val = now - _time_of_last_gc;
3292 // XXX See note in genCollectedHeap::millis_since_last_gc(). 3292 // XXX See note in genCollectedHeap::millis_since_last_gc().
3293 if (ret_val < 0) { 3293 if (ret_val < 0) {
3296 } 3296 }
3297 return ret_val; 3297 return ret_val;
3298 } 3298 }
3299 3299
3300 void PSParallelCompact::reset_millis_since_last_gc() { 3300 void PSParallelCompact::reset_millis_since_last_gc() {
3301 // We need a monotonically non-deccreasing time in ms but 3301 // We need a monotonically non-decreasing time in ms but
3302 // os::javaTimeMillis() does not guarantee monotonicity. 3302 // os::javaTimeMillis() does not guarantee monotonicity.
3303 _time_of_last_gc = os::javaTimeNanos() / NANOSECS_PER_MILLISEC; 3303 _time_of_last_gc = os::javaTimeNanos() / NANOSECS_PER_MILLISEC;
3304 } 3304 }
3305 3305
3306 ParMarkBitMap::IterationStatus MoveAndUpdateClosure::copy_until_full() 3306 ParMarkBitMap::IterationStatus MoveAndUpdateClosure::copy_until_full()