8139259: aarch64: jtreg test TestLogSum segvs after 8132207
authorenevill
Tue, 13 Oct 2015 09:40:39 +0200
changeset 33172 06453a29bc41
parent 33170 1021810aef42
child 33173 1019481697e4
8139259: aarch64: jtreg test TestLogSum segvs after 8132207 Summary: Fix jump to 0 caused by uninitialised _dexp in 8132207 Reviewed-by: roland, kvn
hotspot/src/share/vm/opto/library_call.cpp
--- a/hotspot/src/share/vm/opto/library_call.cpp	Mon Oct 12 12:20:38 2015 +0200
+++ b/hotspot/src/share/vm/opto/library_call.cpp	Tue Oct 13 09:40:39 2015 +0200
@@ -1762,8 +1762,9 @@
   case vmIntrinsics::_dabs:   return Matcher::has_match_rule(Op_AbsD)   ? inline_math(id) : false;
 
   case vmIntrinsics::_dexp:
-    return (UseSSE >= 2) ? runtime_math(OptoRuntime::Math_D_D_Type(), StubRoutines::dexp(),  "dexp") :
-    runtime_math(OptoRuntime::Math_D_D_Type(), FN_PTR(SharedRuntime::dexp),  "EXP");
+    return StubRoutines::dexp() != NULL ?
+      runtime_math(OptoRuntime::Math_D_D_Type(), StubRoutines::dexp(),  "dexp") :
+      runtime_math(OptoRuntime::Math_D_D_Type(), FN_PTR(SharedRuntime::dexp),  "EXP");
   case vmIntrinsics::_dpow:   return Matcher::has_match_rule(Op_PowD)   ? inline_pow()    :
     runtime_math(OptoRuntime::Math_DD_D_Type(), FN_PTR(SharedRuntime::dpow),  "POW");
 #undef FN_PTR