Bug 316488 (MONO69691) - [PPC] JIT default code size for prolog is too small
Summary: [PPC] JIT default code size for prolog is too small
Status: RESOLVED FIXED
Alias: MONO69691
Product: Mono: Runtime
Classification: Mono
Component: misc (show other bugs)
Version: 1.1
Hardware: Other Other
: P3 - Medium : Enhancement
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-19 04:55 UTC by Geoff Norton
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 18:59:13 UTC


---- Reported by grompf@sublimeintervention.com 2004-11-18 21:55:04 MST ----

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



---- Additional Comments From lupus@ximian.com 2004-11-19 09:40:49 MST ----

Changed the code to account for variable size of the prolog.
If you have a test case that fails, please add it here and to the test
suite.


Unknown bug field "cf_op_sys_details" encountered while moving bug
   <cf_op_sys_details>OSX 10.3.4</cf_op_sys_details>
Unknown operating system unknown. Setting to default OS "Other".