https://bugzilla.novell.com/show_bug.cgi?id=477019


           Summary: Devirtualize box/callvirt calls
    Classification: Mono
           Product: Mono: Runtime
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: JIT
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          Found By: ---


Mono JIT does not seem to de-virtualize virtual calls which are made on boxed
value-types or sealed classes.

usual pattern is

box T
callvirt method

See mcs/tests/test-705.cs for example.

      IL_002b:  ldloc.2 
      IL_002c:  box Test/Nested
      IL_0031:  callvirt instance void class
[mscorlib]System.IDisposable::Dispose()

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to