You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[armel] Crossgen2 skip many methods during Version Bubble compilation #44948
As we discussed by email, crossgen2 doesn't compile many methods which should compile in Large Version Bubble mode with option compilebubblegenerics .
From @jkotas
Methods like GetIndexOfFirstNonAsciiByte_Default that use Vector<T> should be crossgened after Implement concept of unstable ABI into crossgen2 #40820 . If you are running with this change, it sounds like a bug or configuration problem.
Methods like SpanHelpers.IndexOf are marked with AggressiveOptimization that prevents them from being precompiled. I think this is just a bug. The reason for them being marked this way should no longer apply after Implement concept of unstable ABI into crossgen2 #40820.
Generic instantiations like System.Collections.Concurrent.ConcurrentDictionary`2[System.Int32,System.__Canon] contained within same version bubble are either a bug in crossgen2 or should be taken care of by having PGO data.
CROSSGEN_OPTIONS is -O for Calculator-fullni.nettrace.txt and -O --inputbubble --compilebubblegenerics for Calculator-fullni_compilebubblegeneric.nettrace.txt.
Command for other dlls is similar except that additional -r:... references are added if required.
Before this one needs to compile all system and app dlls with command similar to SPC.dll above, and put them in the same dir. Also, Tizen app was modified to exit right when it appears on screen.
At this time, the .NET team is not prioritizing this work for the .NET 7 release. If a contributor provides fixes for these issues we may consider them, but the issue as a whole is moving to a future milestone.
Activity
gbalykov commentedon Nov 19, 2020
System.Private.CoreLib.dll compilation command:
CROSSGEN_OPTIONSis-Ofor Calculator-fullni.nettrace.txt and-O --inputbubble --compilebubblegenericsfor Calculator-fullni_compilebubblegeneric.nettrace.txt.Command for other dlls is similar except that additional
-r:...references are added if required.gbalykov commentedon Nov 19, 2020
Also note, that next PR is required to correctly gather ETW events with env variables setup: #44068
jkotas commentedon Nov 19, 2020
cc @mangod9
mangod9 commentedon Nov 19, 2020
Thanks @alpencolt
cc @dotnet/crossgen-contrib @nattress since we have been recently comparing methods compiled by cg vs cg2
alpencolt commentedon Nov 19, 2020
@mangod9 I've also added trace for first
crossgen(see updated issue). Other measurements performed forcrossgen2.HJLeee commentedon Nov 20, 2020
@alpencolt Please share the procedure and commands you used for nettrace capture.
gbalykov commentedon Nov 20, 2020
Next command was used to capture jit etw events for app:
Before this one needs to compile all system and app dlls with command similar to SPC.dll above, and put them in the same dir. Also, Tizen app was modified to exit right when it appears on screen.
davidwrighton commentedon Jul 22, 2021
At this time, the .NET team is not prioritizing this work for the .NET 7 release. If a contributor provides fixes for these issues we may consider them, but the issue as a whole is moving to a future milestone.