8027353: Exact intrinsics: assert(n != NULL) failed: must not be null
authorrbackman
Mon, 28 Oct 2013 08:34:10 +0100
changeset 21207 1331f7d48dd8
parent 21206 38a503886b18
child 21208 2ae445f57ac6
8027353: Exact intrinsics: assert(n != NULL) failed: must not be null Reviewed-by: kvn, roland
hotspot/src/share/vm/opto/library_call.cpp
hotspot/test/compiler/intrinsics/mathexact/SubExactLConstantTest.java
hotspot/test/compiler/intrinsics/mathexact/SubExactLNonConstantTest.java
--- a/hotspot/src/share/vm/opto/library_call.cpp	Mon Oct 28 17:32:02 2013 -0700
+++ b/hotspot/src/share/vm/opto/library_call.cpp	Mon Oct 28 08:34:10 2013 +0100
@@ -2006,9 +2006,9 @@
   Node* arg2 = NULL;
 
   if (is_increment) {
-      arg2 = intcon(1);
+    arg2 = intcon(1);
   } else {
-      arg2 = argument(1);
+    arg2 = argument(1);
   }
 
   Node* add = _gvn.transform( new(C) AddExactINode(NULL, arg1, arg2) );
@@ -2056,7 +2056,7 @@
   if (is_decrement) {
     arg2 = longcon(1);
   } else {
-    Node* arg2 = argument(2); // type long
+    arg2 = argument(2); // type long
     // argument(3) == TOP
   }
 
--- a/hotspot/test/compiler/intrinsics/mathexact/SubExactLConstantTest.java	Mon Oct 28 17:32:02 2013 -0700
+++ b/hotspot/test/compiler/intrinsics/mathexact/SubExactLConstantTest.java	Mon Oct 28 08:34:10 2013 +0100
@@ -24,6 +24,7 @@
 /*
  * @test
  * @bug 8026844
+ * @bug 8027353
  * @summary Test constant subtractExact
  * @compile SubExactLConstantTest.java Verify.java
  * @run main SubExactLConstantTest
--- a/hotspot/test/compiler/intrinsics/mathexact/SubExactLNonConstantTest.java	Mon Oct 28 17:32:02 2013 -0700
+++ b/hotspot/test/compiler/intrinsics/mathexact/SubExactLNonConstantTest.java	Mon Oct 28 08:34:10 2013 +0100
@@ -24,6 +24,7 @@
 /*
  * @test
  * @bug 8026844
+ * @bug 8027353
  * @summary Test non constant subtractExact
  * @compile SubExactLNonConstantTest.java Verify.java
  * @run main SubExactLNonConstantTest