[Mono-bugs] [Bug 487846] PPC code gen is inefficient in several areas

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Apr 6 11:16:37 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=487846

User lupus at novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=487846#c3





--- Comment #3 from Paolo Molaro <lupus at novell.com>  2009-04-06 09:16:36 MDT ---
Except for dynamic methods, the code to use bl instead of the long sequence is
already implemented (on ppc32). See handle_thunk in mini-ppc.c. This works by
reserving some space in the memory area allocated for native code (to guarantee
it is reachable by the bl instruction). It is disabled because it triggered
(though rarely) some bugs, especially with multiple app domain support, I
think.
There is also the somewhat minor issue that the allocated space may not be
enough
for very call-intensive code to very different methods in far enough address
space.
Reserving space at the end of methods is another solution, but it may end up
requiring even more memory since we'd have possibly many duplicate entries.
With a little slowdown we could use 12 bytes instead of 16 per-entry for the
current solution and save some memory. Someone would need to look at fixing the
possible bugs, though.

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list