view zero-segfault.patch @ 1:cef23de210a4

Bunch of fixes to get Zero to build.
author Roman Kennke <rkennke@redhat.com>
date Mon, 30 Jul 2012 13:57:49 +0200
parents
children
line wrap: on
line source

# HG changeset patch
# Parent bbe0f6e46610f23cf483e928e5d30558364e03c3
diff --git a/src/share/vm/asm/codeBuffer.cpp b/src/share/vm/asm/codeBuffer.cpp
--- a/src/share/vm/asm/codeBuffer.cpp
+++ b/src/share/vm/asm/codeBuffer.cpp
@@ -674,7 +674,7 @@
     }
   }
 
-  if (dest->blob() == NULL) {
+  if (dest->blob() == NULL && dest_filled != 0x0) {
     // 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,