Mercurial > hg > truffle
comparison src/share/vm/memory/genCollectedHeap.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 | 870aedf4ba4f |
children | 1e1c8d358b52 |
comparison
equal
deleted
inserted
replaced
14308:870aedf4ba4f | 14309:63a4eb8bcd23 |
---|---|
124 | 124 |
125 _reserved = MemRegion((HeapWord*)heap_rs.base(), | 125 _reserved = MemRegion((HeapWord*)heap_rs.base(), |
126 (HeapWord*)(heap_rs.base() + heap_rs.size())); | 126 (HeapWord*)(heap_rs.base() + heap_rs.size())); |
127 | 127 |
128 // It is important to do this in a way such that concurrent readers can't | 128 // It is important to do this in a way such that concurrent readers can't |
129 // temporarily think somethings in the heap. (Seen this happen in asserts.) | 129 // temporarily think something is in the heap. (Seen this happen in asserts.) |
130 _reserved.set_word_size(0); | 130 _reserved.set_word_size(0); |
131 _reserved.set_start((HeapWord*)heap_rs.base()); | 131 _reserved.set_start((HeapWord*)heap_rs.base()); |
132 size_t actual_heap_size = heap_rs.size(); | 132 size_t actual_heap_size = heap_rs.size(); |
133 _reserved.set_end((HeapWord*)(heap_rs.base() + actual_heap_size)); | 133 _reserved.set_end((HeapWord*)(heap_rs.base() + actual_heap_size)); |
134 | 134 |
1260 _time = MIN2(_time, gen->time_of_last_gc(_now)); | 1260 _time = MIN2(_time, gen->time_of_last_gc(_now)); |
1261 } | 1261 } |
1262 }; | 1262 }; |
1263 | 1263 |
1264 jlong GenCollectedHeap::millis_since_last_gc() { | 1264 jlong GenCollectedHeap::millis_since_last_gc() { |
1265 // We need a monotonically non-deccreasing time in ms but | 1265 // We need a monotonically non-decreasing time in ms but |
1266 // os::javaTimeMillis() does not guarantee monotonicity. | 1266 // os::javaTimeMillis() does not guarantee monotonicity. |
1267 jlong now = os::javaTimeNanos() / NANOSECS_PER_MILLISEC; | 1267 jlong now = os::javaTimeNanos() / NANOSECS_PER_MILLISEC; |
1268 GenTimeOfLastGCClosure tolgc_cl(now); | 1268 GenTimeOfLastGCClosure tolgc_cl(now); |
1269 // iterate over generations getting the oldest | 1269 // iterate over generations getting the oldest |
1270 // time that a generation was collected | 1270 // time that a generation was collected |