diff src/share/vm/asm/codeBuffer.cpp @ 3802:a3e2f723f2a5

8000780: make Zero build and run with JDK8 Reviewed-by: coleenp, dholmes, twisti Contributed-by: Roman Kennke <rkennke@redhat.com>
author twisti
date Mon, 29 Oct 2012 11:08:48 -0700
parents b31471cdc53e
children 90273fc0a981 1acccb7c0b01
line wrap: on
line diff
--- a/src/share/vm/asm/codeBuffer.cpp	Fri Oct 26 14:18:57 2012 -0700
+++ b/src/share/vm/asm/codeBuffer.cpp	Mon Oct 29 11:08:48 2012 -0700
@@ -758,7 +758,7 @@
     }
   }
 
-  if (dest->blob() == NULL) {
+  if (dest->blob() == NULL && dest_filled != NULL) {
     // Destination is a final resting place, not just another buffer.
     // Normalize uninitialized bytes in the final padding.
     Copy::fill_to_bytes(dest_filled, dest_end - dest_filled,