aboutsummaryrefslogtreecommitdiff
path: root/src/tests/sampler_test.cc
diff options
context:
space:
mode:
authorSatish Patel <satish.patel@linaro.org>2016-04-26 10:34:31 +0530
committerSatish Patel <satish.patel@linaro.org>2016-04-26 10:34:31 +0530
commit4c18ea2aa859992445ffc48c70f19e792c904f25 (patch)
treedf93855f65d3a7f4227c7d35029890e4fe2f8dde /src/tests/sampler_test.cc
parent4e447c8194c7165502f245c7c2a2227c568f6fa5 (diff)
downloadgperftools-4c18ea2aa859992445ffc48c70f19e792c904f25.tar.gz
tcmalloc: chromium port
Ported chromium port of gperftool. The port has all necessary changes for android platform. Details can be tracked at https://chromium.googlesource.com/chromium/src/third_party/tcmalloc/chromium/ e.g. - atomic operations for linux - property based configurations porting using system property for Android case (reading environment variables at startup) - change in config.h as per Android platform - c++11 fixes - Fixed gcc errors/warnings - logging changes as per android log libarary - time calculation and abort call to tcmalloc (For linux)
Diffstat (limited to 'src/tests/sampler_test.cc')
-rwxr-xr-xsrc/tests/sampler_test.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tests/sampler_test.cc b/src/tests/sampler_test.cc
index df94ee0..c55d5dc 100755
--- a/src/tests/sampler_test.cc
+++ b/src/tests/sampler_test.cc
@@ -1,4 +1,3 @@
-// -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*-
// Copyright (c) 2008, Google Inc.
// All rights reserved.
//
@@ -604,7 +603,7 @@ TEST(Sampler, arithmetic_1) {
CHECK_GE(q, 0); // << rnd << " " << prng_mod_power;
}
// Test some potentially out of bounds value for rnd
- for (int i = 1; i <= 63; i++) {
+ for (int i = 1; i <= 66; i++) {
rnd = one << i;
double q = (rnd >> (prng_mod_power - 26)) + 1.0;
LOG(INFO) << "rnd = " << rnd << " i=" << i << " q=" << q;