8209439: C2 library_call can potentially ignore Math.pow intrinsic or use null pointer

Reviewed-by: kvn, thartmann
This commit is contained in:
Dmitrij Pochepko 2018-08-15 14:48:12 +03:00
parent b9052e9647
commit 4377d3abe2

View file

@ -1815,7 +1815,7 @@ bool LibraryCallKit::inline_math_native(vmIntrinsics::ID id) {
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");
}