提交 a4521c3d 编写于 作者: R rbackman

8027353: Exact intrinsics: assert(n != NULL) failed: must not be null

Reviewed-by: kvn, roland
上级 f82263c5
...@@ -2006,9 +2006,9 @@ bool LibraryCallKit::inline_math_addExactI(bool is_increment) { ...@@ -2006,9 +2006,9 @@ bool LibraryCallKit::inline_math_addExactI(bool is_increment) {
Node* arg2 = NULL; Node* arg2 = NULL;
if (is_increment) { if (is_increment) {
arg2 = intcon(1); arg2 = intcon(1);
} else { } else {
arg2 = argument(1); arg2 = argument(1);
} }
Node* add = _gvn.transform( new(C) AddExactINode(NULL, arg1, arg2) ); Node* add = _gvn.transform( new(C) AddExactINode(NULL, arg1, arg2) );
...@@ -2056,7 +2056,7 @@ bool LibraryCallKit::inline_math_subtractExactL(bool is_decrement) { ...@@ -2056,7 +2056,7 @@ bool LibraryCallKit::inline_math_subtractExactL(bool is_decrement) {
if (is_decrement) { if (is_decrement) {
arg2 = longcon(1); arg2 = longcon(1);
} else { } else {
Node* arg2 = argument(2); // type long arg2 = argument(2); // type long
// argument(3) == TOP // argument(3) == TOP
} }
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
/* /*
* @test * @test
* @bug 8026844 * @bug 8026844
* @bug 8027353
* @summary Test constant subtractExact * @summary Test constant subtractExact
* @compile SubExactLConstantTest.java Verify.java * @compile SubExactLConstantTest.java Verify.java
* @run main SubExactLConstantTest * @run main SubExactLConstantTest
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
/* /*
* @test * @test
* @bug 8026844 * @bug 8026844
* @bug 8027353
* @summary Test non constant subtractExact * @summary Test non constant subtractExact
* @compile SubExactLNonConstantTest.java Verify.java * @compile SubExactLNonConstantTest.java Verify.java
* @run main SubExactLNonConstantTest * @run main SubExactLNonConstantTest
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册