[Mono-bugs] [Bug 69691][Wis] New - [PPC] JIT default code size for prolog is too small
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Thu, 18 Nov 2004 21:55:05 -0500 (EST)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by grompf@sublimeintervention.com.
http://bugzilla.ximian.com/show_bug.cgi?id=69691
--- shadow/69691 2004-11-18 21:55:05.000000000 -0500
+++ shadow/69691.tmp.19879 2004-11-18 21:55:05.000000000 -0500
@@ -0,0 +1,30 @@
+Bug#: 69691
+Product: Mono: Runtime
+Version: 1.1
+OS:
+OS Details: OSX 10.3.4
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: grompf@sublimeintervention.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: [PPC] JIT default code size for prolog is too small
+
+The ppc jit currently has a default code size of 256 for the prolog:
+
+cfg->code_size = 256;
+code = cfg->native_code = g_malloc (cfg->code_size);
+
+The problem is the prolog can be larger than 256 bytes; this causes writing into random memory
+while creating the prolog and emits a szone_error on the g_realloc in
+mono_arch_output_basic_block.
+
+Changing this to 384 resolves this issue.
+
+-kangaroo