# HG changeset patch # User dpochepk # Date 1534333692 -10800 # Node ID c86627b0bcce81a2f68d878e4a3f53987f3277e6 # Parent 59269a19f108fa8007c7babc7a87b7520f63b8f4 8209439: C2 library_call can potentially ignore Math.pow intrinsic or use null pointer Reviewed-by: kvn, thartmann diff -r 59269a19f108 -r c86627b0bcce 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"); }