MethodImpl(AggressiveInlining) - how aggressive is it?

后端 未结 1 1237
野性不改
野性不改 2021-02-18 13:45

So I was having a bit of a look at the MethodImplAttribute and I came across MethodImplOptions.AggressiveInlining which is described as:

The method should

1条回答
  •  无人共我
    2021-02-18 14:05

    MethodImplAttributes.AggressiveInlining compiles to a flag in the ImplFlags column of the MethodDef metadata table (ECMA-335 Partition II §22.26). The values for this attribute are listed in Partition II §23.1.11, but AggressiveInlining is undocumented (no value exists in the table for 0x0100).

    During the compilation process, the compiler removes the attribute itself from the metadata. The disassembler must implement special logic to add the attribute back if the 0x0100 bit is set in the ImplFlags for a method.

    0 讨论(0)
提交回复
热议问题