Bug 602393: Fix idiotic mistake causing JITs to be blacklisted on all android devices. r=dvander a=blocking-fennec-b1+ GECKO20b7pre_20100929_RELBRANCH FENNEC_4_0b1_BUILD3 FENNEC_4_0b1_RELEASE
authorChris Jones <jones.chris.g@gmail.com>
Wed, 06 Oct 2010 19:39:19 -0500
branchGECKO20b7pre_20100929_RELBRANCH
changeset 55004 54ee8240f2f9c6cc97367c10c0b7aaecc5aad551
parent 54945 bda9046e44c6953043dedfc0ae713ad679d8577f
child 55012 01187a12badb381b55028344037ddd536689a001
push idunknown
push userunknown
push dateunknown
reviewersdvander, blocking-fennec-b1
bugs602393
milestone2.0b7pre
Bug 602393: Fix idiotic mistake causing JITs to be blacklisted on all android devices. r=dvander a=blocking-fennec-b1+
js/src/jscntxt.cpp
--- a/js/src/jscntxt.cpp
+++ b/js/src/jscntxt.cpp
@@ -2223,18 +2223,18 @@ ComputeIsJITBroken()
         if (0 == line.find("Hardware")) {
             const char* blacklist[] = {
                 "SGH-T959",     // Samsung i9000, Vibrant device
                 "SGH-I897",     // Samsung i9000, Captivate device
                 "SCH-I500",     // Samsung i9000, Fascinate device
                 "SPH-D700",     // Samsung i9000, Epic device
                 NULL
             };
-            for (const char* hw = blacklist[0]; hw; ++hw) {
-                if (line.npos != line.find(hw)) {
+            for (const char** hw = &blacklist[0]; *hw; ++hw) {
+                if (line.npos != line.find(*hw)) {
                     broken = true;
                     break;
                 }
             }
             break;
         }
         std::getline(cpuinfo, line);
     } while(!cpuinfo.fail() && !cpuinfo.eof());