Add ToUpper() ToLower() to preload logic
[platform/core/dotnet/launcher.git] / Managed / Tizen.Runtime / Preloader.cs
index afb614d..6424e14 100644 (file)
@@ -19,6 +19,7 @@ using System.IO;
 using System.Reflection;
 using System.Runtime.Loader;
 using System.Globalization;
+using System.Runtime.CompilerServices;
 
 namespace Tizen.Runtime
 {
@@ -30,9 +31,11 @@ namespace Tizen.Runtime
         // than calling out to the OS for culture-aware casing.
         // However, in certain languages, the following function may be significantly slowed down.
         // To avoid that kind situation, call it in advance on the candidate process.
+        [MethodImpl(MethodImplOptions.NoOptimization | MethodImplOptions.NoInlining)]
         private static void CheckAsciiCasing()
         {
             _ = CultureInfo.CurrentCulture.CompareInfo.Compare("abcdefghijklmnopqrstuvwxyz", "ABCDEFGHIJKLMNOPQRSTUVWXYZ", CompareOptions.IgnoreCase);
+            _ = "abc".ToUpper().ToLower();
         }
 
         public static void Preload()