Mercurial > hg > graal-jvmci-8
comparison src/share/vm/opto/compile.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 | 60a14ad85270 |
children | 3e8fbc61cee8 |
comparison
equal
deleted
inserted
replaced
1684:66c5dadb4d61 | 1685:0e35fa8ebccd |
---|---|
902 Copy::zero_to_bytes(_alias_cache, sizeof(_alias_cache)); | 902 Copy::zero_to_bytes(_alias_cache, sizeof(_alias_cache)); |
903 // A NULL adr_type hits in the cache right away. Preload the right answer. | 903 // A NULL adr_type hits in the cache right away. Preload the right answer. |
904 probe_alias_cache(NULL)->_index = AliasIdxTop; | 904 probe_alias_cache(NULL)->_index = AliasIdxTop; |
905 | 905 |
906 _intrinsics = NULL; | 906 _intrinsics = NULL; |
907 _macro_nodes = new GrowableArray<Node*>(comp_arena(), 8, 0, NULL); | 907 _macro_nodes = new(comp_arena()) GrowableArray<Node*>(comp_arena(), 8, 0, NULL); |
908 _predicate_opaqs = new GrowableArray<Node*>(comp_arena(), 8, 0, NULL); | 908 _predicate_opaqs = new(comp_arena()) GrowableArray<Node*>(comp_arena(), 8, 0, NULL); |
909 register_library_intrinsics(); | 909 register_library_intrinsics(); |
910 } | 910 } |
911 | 911 |
912 //---------------------------init_start---------------------------------------- | 912 //---------------------------init_start---------------------------------------- |
913 // Install the StartNode on this compile object. | 913 // Install the StartNode on this compile object. |