79134984

Date: 2024-10-28 20:21:27
Score: 1.5
Natty:
Report link

[MethodImpl(MethodImplOptions.AggressiveInlining)] is for the JIT-compiler and the calls to the Finalizers are not initiated from JIT-compiled code (unmanaged part of the runtime). So, logically it shouldn't have any effect.

But even if was the case, I'd assume that the code that runs them is something like:

foreach(var finalizer in finalizers){
    finalizer(); // inline here?
}

how would you inline that?

Reasons:
  • Blacklisted phrase (1): how would you
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-1):
Posted by: Ivan Petrov