summaryrefslogtreecommitdiffstats
path: root/keystore
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@android.com>2010-10-11 11:31:15 -0700
committerBrad Fitzpatrick <bradfitz@android.com>2010-10-11 11:31:15 -0700
commit191cdf023c3c1ab441087a77f7881c7bb376613a (patch)
treecd3eb3d5abdf7eef5ac1dcd6728fbf61c994b806 /keystore
parent4e1658afb8a79aa03a5ca712b02b2a33fb00bf6d (diff)
downloadframeworks_base-191cdf023c3c1ab441087a77f7881c7bb376613a.zip
frameworks_base-191cdf023c3c1ab441087a77f7881c7bb376613a.tar.gz
frameworks_base-191cdf023c3c1ab441087a77f7881c7bb376613a.tar.bz2
StrictMode: check max-offenses-per-loop earlier, before allocations
Previously a tight loop of StrictMode violations would still allocate Exception objects and populate their stack frames, just to orphan them later when checking the max-10-violations-per-loop constraint. With this patch, we do that check _before_ allocating any memory. Change-Id: Iae96aba33f8fcc6a8ec5838a231aecc08e95122d
Diffstat (limited to 'keystore')
0 files changed, 0 insertions, 0 deletions