RFR(S): 8155046: Parse::Block construction using undefined behavior
tobias.hartmann at oracle.com
Mon May 30 13:55:32 UTC 2016
please review the following patch:
Parse::init_blocks() initializes _blocks by allocating a chunk of memory and initializing the elements by treating them as blocks and calling Parse::Block::init_node(). This is undefined behavior because the objects are not created with "new". I replaced init_node() with the constructor and use placement new to create the blocks. I also added missing field initializations to the constructor.
Tested with JPRT and RBT (running).
More information about the hotspot-compiler-dev