dotnet / wpf

WPF is a .NET Core UI framework for building Windows desktop applications.
MIT License
7.08k stars 1.17k forks source link

Is PresentationCore built with Debug configuration? #1766

Closed omariom closed 5 years ago

omariom commented 5 years ago

While looking at the jitted code of PresentationCore, found that the code was not optimized. Turned out the assembly has optimizations explicitly disabled.

image

rladuca commented 5 years ago

Yep, we discovered this as part of an investigation into #1549. Long story short, we inject a module constructor into PresentationCore via IL(D)Asm and had incorrect settings leading to the wrong parameters being used for the DebuggableAttribute.

This was already fixed recently. Closing as a duplicate.