comparison src/share/vm/opto/chaitin.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 c18cbe5936b8
children f95d63e2154a
comparison
equal deleted inserted replaced
1684:66c5dadb4d61 1685:0e35fa8ebccd
567 567
568 #ifndef PRODUCT 568 #ifndef PRODUCT
569 if (trace_spilling() && lrg._def != NULL) { 569 if (trace_spilling() && lrg._def != NULL) {
570 // collect defs for MultiDef printing 570 // collect defs for MultiDef printing
571 if (lrg._defs == NULL) { 571 if (lrg._defs == NULL) {
572 lrg._defs = new (_ifg->_arena) GrowableArray<Node*>(); 572 lrg._defs = new (_ifg->_arena) GrowableArray<Node*>(_ifg->_arena, 2, 0, NULL);
573 lrg._defs->append(lrg._def); 573 lrg._defs->append(lrg._def);
574 } 574 }
575 lrg._defs->append(n); 575 lrg._defs->append(n);
576 } 576 }
577 #endif 577 #endif