8209439: C2 library_call can potentially ignore Math.pow intrinsic or use null pointer
Reviewed-by: kvn, thartmann
--- 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");
}