8209439: C2 library_call can potentially ignore Math.pow intrinsic or use null pointer
authordpochepk
Wed, 15 Aug 2018 14:48:12 +0300
changeset 51409 c86627b0bcce
parent 51408 59269a19f108
child 51410 cb8cab787ba2
8209439: C2 library_call can potentially ignore Math.pow intrinsic or use null pointer Reviewed-by: kvn, thartmann
src/hotspot/share/opto/library_call.cpp
--- a/src/hotspot/share/opto/library_call.cpp	Wed Aug 15 09:51:57 2018 +0200
+++ b/src/hotspot/share/opto/library_call.cpp	Wed Aug 15 14:48:12 2018 +0300
@@ -1815,7 +1815,7 @@
       set_result(_gvn.transform(new MulDNode(base, base)));
       return true;
     }
-    return StubRoutines::dexp() != NULL ?
+    return StubRoutines::dpow() != NULL ?
       runtime_math(OptoRuntime::Math_DD_D_Type(), StubRoutines::dpow(),  "dpow") :
       runtime_math(OptoRuntime::Math_DD_D_Type(), FN_PTR(SharedRuntime::dpow),  "POW");
   }