Additional sanity checking for JIT thresholds

Change e3fc2d1644fd788509b834b01b83a28595721c47 reduced the frequency
of calls to JIT::AddSamples(). The elaborate choices for "default"
threshold selection may fail debug sanity checks.

Bug: 140587109
Test: art --gdb --64 --verbose -Xcompiler-option -g \
      -Xjitthreshold:10000 -Xmx512M -Xusejit:true -cp \
      ./java-benchmarks-v3.dex benchmarks.Recurse.java.Recurse
Test: art --gdb --64 --verbose -Xcompiler-option -g \
      -Xjitthreshold:10 -Xmx512M -Xusejit:true -cp \
      ./java-benchmarks-v3.dex benchmarks.Recurse.java.Recurse
Test: art/test/testrunner/testrunner.py --all-compiler --host -t 137-cfi

Change-Id: I13034bdc0d8f98d818ea83b57b368351388deda6
1 file changed