comparison src/share/vm/opto/library_call.cpp @ 10279:70120f47d403

8014189: JVM crash with SEGV in ConnectionGraph::record_for_escape_analysis() Summary: Add NULL checks and asserts for Type::make_ptr() returned value. Reviewed-by: twisti
author kvn
date Thu, 09 May 2013 17:28:04 -0700
parents 6f3fd5150b67
children f2110083203d
comparison
equal deleted inserted replaced
10278:6f3fd5150b67 10279:70120f47d403
2781 insert_mem_bar(Op_MemBarCPUOrder); 2781 insert_mem_bar(Op_MemBarCPUOrder);
2782 insert_mem_bar(Op_MemBarAcquire); 2782 insert_mem_bar(Op_MemBarAcquire);
2783 2783
2784 #ifdef _LP64 2784 #ifdef _LP64
2785 if (type == T_OBJECT && adr->bottom_type()->is_ptr_to_narrowoop() && kind == LS_xchg) { 2785 if (type == T_OBJECT && adr->bottom_type()->is_ptr_to_narrowoop() && kind == LS_xchg) {
2786 load_store = _gvn.transform(new (C) DecodeNNode(load_store, load_store->bottom_type()->make_ptr())); 2786 load_store = _gvn.transform(new (C) DecodeNNode(load_store, load_store->get_ptr_type()));
2787 } 2787 }
2788 #endif 2788 #endif
2789 2789
2790 assert(type2size[load_store->bottom_type()->basic_type()] == type2size[rtype], "result type should match"); 2790 assert(type2size[load_store->bottom_type()->basic_type()] == type2size[rtype], "result type should match");
2791 set_result(load_store); 2791 set_result(load_store);