dotNoted

Icon

Observations of .Net development in the wild

What appear to be, by all observable accounts, hacks in the v2.0 BCL

I found this while reflectoring. It appears that certain generic types are preloaded in order to prime the JIT compiler, and reduce type allocation (setting up MethodTables and EEClasses) latency.

A reasonable thing to do, and probably testing of the framework found unsatisfactory results, so hacks were inserted, and clearly labeled. I wonder if a subsequent service pack will eliminate these?

Filed under: .Net Basics

Leave a comment