Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c1472782 authored by Andreas Gampe's avatar Andreas Gampe Committed by Android Git Automerger
Browse files

am 3bbd87dd: am 1f4f92ed: am b6feabcf: Merge "Frameworks/base: Use better...

am 3bbd87dd: am 1f4f92ed: am b6feabcf: Merge "Frameworks/base: Use better Class.forName in ZygoteInit"

* commit '3bbd87dd':
  Frameworks/base: Use better Class.forName in ZygoteInit
parents d00d70a6 3bbd87dd
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -269,7 +269,12 @@ public class ZygoteInit {
                    if (false) {
                        Log.v(TAG, "Preloading " + line + "...");
                    }
                    Class.forName(line);
                    // Load and explicitly initialize the given class. Use the tree-argument version
                    // of forName to avoid repeated stack lookups (to derive the caller's
                    // class-loader). Use true to force initialization, and null for the boot
                    // classpath class-loader (could as well cache the class-loader of this class in
                    // a variable).
                    Class.forName(line, true, null);
                    count++;
                } catch (ClassNotFoundException e) {
                    Log.w(TAG, "Class not found for preloading: " + line);