changeset 51409:c86627b0bcce

8209439: C2 library_call can potentially ignore Math.pow intrinsic or use null pointer Reviewed-by: kvn, thartmann
author dpochepk
date Wed, 15 Aug 2018 14:48:12 +0300
parents 59269a19f108
children cb8cab787ba2
files src/hotspot/share/opto/library_call.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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");
   }