Mercurial > hg > truffle
comparison src/share/vm/runtime/sharedRuntime.cpp @ 14709:d3225562f0d8
guard implicit exception deopt
author | Tom Rodriguez <tom.rodriguez@oracle.com> |
---|---|
date | Thu, 20 Mar 2014 17:36:43 -0700 |
parents | d8041d695d19 |
children | 3e9a960f0da1 |
comparison
equal
deleted
inserted
replaced
14708:0f73f8b75b81 | 14709:d3225562f0d8 |
---|---|
884 | 884 |
885 #ifndef PRODUCT | 885 #ifndef PRODUCT |
886 _implicit_null_throws++; | 886 _implicit_null_throws++; |
887 #endif | 887 #endif |
888 #ifdef GRAAL | 888 #ifdef GRAAL |
889 if (nm->is_compiled_by_graal()) { | 889 if (nm->is_compiled_by_graal() && nm->pc_desc_at(pc) != NULL) { |
890 // If there's no PcDesc then we'll die way down inside of | |
891 // deopt instead of just getting normal error reporting, | |
892 // so only go there if it will succeed. | |
890 target_pc = deoptimize_for_implicit_exception(thread, pc, nm, Deoptimization::Reason_null_check); | 893 target_pc = deoptimize_for_implicit_exception(thread, pc, nm, Deoptimization::Reason_null_check); |
891 } else { | 894 } else { |
892 #endif | 895 #endif |
893 target_pc = nm->continuation_for_implicit_exception(pc); | 896 target_pc = nm->continuation_for_implicit_exception(pc); |
894 #ifdef GRAAL | 897 #ifdef GRAAL |