comparison src/share/vm/ci/ciTypeFlow.cpp @ 1685:0e35fa8ebccd

6973963: SEGV in ciBlock::start_bci() with EA Summary: Added more checks into ResourceObj and growableArray to verify correctness of allocation type. Reviewed-by: never, coleenp, dholmes
author kvn
date Tue, 03 Aug 2010 15:55:03 -0700
parents b918d354830a
children d55217dc206f
comparison
equal deleted inserted replaced
1684:66c5dadb4d61 1685:0e35fa8ebccd
2589 void ciTypeFlow::df_flow_types(Block* start, 2589 void ciTypeFlow::df_flow_types(Block* start,
2590 bool do_flow, 2590 bool do_flow,
2591 StateVector* temp_vector, 2591 StateVector* temp_vector,
2592 JsrSet* temp_set) { 2592 JsrSet* temp_set) {
2593 int dft_len = 100; 2593 int dft_len = 100;
2594 GrowableArray<Block*> stk(arena(), dft_len, 0, NULL); 2594 GrowableArray<Block*> stk(dft_len);
2595 2595
2596 ciBlock* dummy = _methodBlocks->make_dummy_block(); 2596 ciBlock* dummy = _methodBlocks->make_dummy_block();
2597 JsrSet* root_set = new JsrSet(NULL, 0); 2597 JsrSet* root_set = new JsrSet(NULL, 0);
2598 Block* root_head = new (arena()) Block(this, dummy, root_set); 2598 Block* root_head = new (arena()) Block(this, dummy, root_set);
2599 Block* root_tail = new (arena()) Block(this, dummy, root_set); 2599 Block* root_tail = new (arena()) Block(this, dummy, root_set);