"Daniel Jin" <Da*******@discussions.microsoft.com> wrote in message
news:4F**********************************@microsof t.com...
anyone know the criteria a method must meet in order for it to be inlined?
and is there a way to force a method to be inlined? it's not one of the
MethodImplOptions.
Not sure if this is still valid for v2.0 of the JIT, but AFAIK for v1.x the
following are not inlined:
- Methods wth > 32 bytes of IL.
- Virtual calls.
- Valuetypes, and MarshalByRef call targets.
- Complex flowgraphs like loops, methods with exception handling blocks.
- Security checks that need a method frame (compressed stack etc).
-????
Willy.