comparison src/share/vm/runtime/globals.hpp @ 1716:be3f9c242c9d

6948538: CMS: BOT walkers can fall into object allocation and initialization cracks Summary: GC workers now recognize an intermediate transient state of blocks which are allocated but have not yet completed initialization. blk_start() calls do not attempt to determine the size of a block in the transient state, rather waiting for the block to become initialized so that it is safe to query its size. Audited and ensured the order of initialization of object fields (klass, free bit and size) to respect block state transition protocol. Also included some new assertion checking code enabled in debug mode. Reviewed-by: chrisphi, johnc, poonam
author ysr
date Mon, 16 Aug 2010 15:58:42 -0700
parents 7fcd5f39bd7a
children b4099f5786da
comparison
equal deleted inserted replaced
1713:7fcd5f39bd7a 1716:be3f9c242c9d
1710 "Do lots of (expensive) FLS dictionary verification") \ 1710 "Do lots of (expensive) FLS dictionary verification") \
1711 \ 1711 \
1712 develop(bool, VerifyBlockOffsetArray, false, \ 1712 develop(bool, VerifyBlockOffsetArray, false, \
1713 "Do (expensive!) block offset array verification") \ 1713 "Do (expensive!) block offset array verification") \
1714 \ 1714 \
1715 product(bool, BlockOffsetArrayUseUnallocatedBlock, trueInDebug, \ 1715 product(bool, BlockOffsetArrayUseUnallocatedBlock, false, \
1716 "Maintain _unallocated_block in BlockOffsetArray" \ 1716 "Maintain _unallocated_block in BlockOffsetArray" \
1717 " (currently applicable only to CMS collector)") \ 1717 " (currently applicable only to CMS collector)") \
1718 \ 1718 \
1719 develop(bool, TraceCMSState, false, \ 1719 develop(bool, TraceCMSState, false, \
1720 "Trace the state of the CMS collection") \ 1720 "Trace the state of the CMS collection") \