Mercurial > hg > graal-compiler
comparison src/share/vm/memory/collectorPolicy.cpp @ 3321:a1d5f532838d
7040068: CMS: Possibly unsafe initialization of BlockOffsetArrayUseUnallocatedBlock
Summary: BlockOffsetArrayUseUnallocatedBlock was intended to be turned off as part of BUG 6948538 but a code line in collectorPolicy.cpp actually kept it turned on.
Reviewed-by: jwilhelm, ysr
author | brutisso |
---|---|
date | Fri, 29 Apr 2011 09:11:03 +0200 |
parents | dde920245681 |
children | c9ca3f51cf41 |
comparison
equal
deleted
inserted
replaced
3320:ca7c15a01229 | 3321:a1d5f532838d |
---|---|
263 MaxHeapSize = NewSize + OldSize; | 263 MaxHeapSize = NewSize + OldSize; |
264 } | 264 } |
265 MaxHeapSize = align_size_up(MaxHeapSize, max_alignment()); | 265 MaxHeapSize = align_size_up(MaxHeapSize, max_alignment()); |
266 | 266 |
267 always_do_update_barrier = UseConcMarkSweepGC; | 267 always_do_update_barrier = UseConcMarkSweepGC; |
268 BlockOffsetArrayUseUnallocatedBlock = | |
269 BlockOffsetArrayUseUnallocatedBlock || ParallelGCThreads > 0; | |
270 | 268 |
271 // Check validity of heap flags | 269 // Check validity of heap flags |
272 assert(OldSize % min_alignment() == 0, "old space alignment"); | 270 assert(OldSize % min_alignment() == 0, "old space alignment"); |
273 assert(MaxHeapSize % max_alignment() == 0, "maximum heap alignment"); | 271 assert(MaxHeapSize % max_alignment() == 0, "maximum heap alignment"); |
274 } | 272 } |