[Mono-bugs] [Bug 29859][Nor] New - arch_create_jit_trampoline should not return a compiled method

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
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 vargaz@freemail.hu.

http://bugzilla.ximian.com/show_bug.cgi?id=29859

--- shadow/29859	Wed Sep  4 06:01:25 2002
+++ shadow/29859.tmp.28750	Wed Sep  4 06:01:25 2002
@@ -0,0 +1,36 @@
+Bug#: 29859
+Product: Mono/Runtime
+Version: unspecified
+OS: Debian Woody
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: vargaz@freemail.hu               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+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
+performance improvement.
+
+I mentioned this problem on a mailing list some time ago, but it got 
+forgotten, so I'm reporting it here.