[Mono-bugs] [Bug 29859][Nor] New - arch_create_jit_trampoline should not return a compiled method
4 Sep 2002 10:01:25 -0000
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 firstname.lastname@example.org.
--- shadow/29859 Wed Sep 4 06:01:25 2002
+++ shadow/29859.tmp.28750 Wed Sep 4 06:01:25 2002
@@ -0,0 +1,36 @@
+OS: Debian Woody
+Summary: arch_create_jit_trampoline should not return a compiled method
+Description of Problem:
+Currently, arch_create_jit_trampoline returns the JITed code for a method
+if such code exists, instead of a trampoline. This is incorrect, since the
+returned code might be put in a vtable without applying unbox_trampoline()
+to it. This condition is a bit hard to produce with mcs generated code,
+so the testcase is in IL. It prints 'True' under mint and MS .NET, and
+'False' under mono.
+A fix would be to either:
+- add a 'virtual' argument to the create_... function
+- remove the offending code altogether
+I suggest the later since it is rarely called, so it offers no real
+I mentioned this problem on a mailing list some time ago, but it got
+forgotten, so I'm reporting it here.