Merge
authorcoleenp
Thu, 20 Aug 2015 17:39:43 +0200
changeset 32386 c8138deb4813
parent 32383 bc9971c6bf2b (current diff)
parent 32385 c5b89c29f5b4 (diff)
child 32387 a376fff9d4a5
Merge
--- a/hotspot/src/share/vm/runtime/stubRoutines.cpp	Thu Aug 20 15:17:43 2015 +0200
+++ b/hotspot/src/share/vm/runtime/stubRoutines.cpp	Thu Aug 20 17:39:43 2015 +0200
@@ -181,7 +181,7 @@
     StubGenerator_generate(&buffer, false);
     // When new stubs added we need to make sure there is some space left
     // to catch situation when we should increase size again.
-    assert(buffer.insts_remaining() > 200, "increase code_size1");
+    assert(code_size1 == 0 || buffer.insts_remaining() > 200, "increase code_size1");
   }
 }
 
@@ -274,7 +274,7 @@
     StubGenerator_generate(&buffer, true);
     // When new stubs added we need to make sure there is some space left
     // to catch situation when we should increase size again.
-    assert(buffer.insts_remaining() > 200, "increase code_size2");
+    assert(code_size2 == 0 || buffer.insts_remaining() > 200, "increase code_size2");
   }
 
 #ifdef ASSERT