Remove cached invariant globalization mode flag
authorJan Kotas <jkotas@microsoft.com>
Thu, 8 Nov 2018 19:45:13 +0000 (11:45 -0800)
committerJan Kotas <jkotas@microsoft.com>
Fri, 9 Nov 2018 05:21:44 +0000 (21:21 -0800)
commitc090d9059f650fb903061e8633db0f4f3910f67a
treefa73f6657e6dab87f212e030af4f434cd823ed43
parentc2f0fbab9a2d0fc9b89eecda2207e46816671674
Remove cached invariant globalization mode flag

Direct check of readonly flag is better with tiered JITing (the check is optimized out)
src/System.Private.CoreLib/shared/System/Globalization/CompareInfo.Unix.cs
src/System.Private.CoreLib/shared/System/Globalization/CompareInfo.Windows.cs
src/System.Private.CoreLib/shared/System/Globalization/CompareInfo.cs
src/System.Private.CoreLib/shared/System/Globalization/TextInfo.Unix.cs
src/System.Private.CoreLib/shared/System/Globalization/TextInfo.Windows.cs
src/System.Private.CoreLib/shared/System/Globalization/TextInfo.cs