aboutsummaryrefslogtreecommitdiff
path: root/absl/strings
diff options
context:
space:
mode:
authorGravatar Abseil Team <absl-team@google.com>2021-07-12 07:04:14 -0700
committerGravatar Andy Getz <durandal@google.com>2021-07-15 13:55:08 -0400
commit33541e751039a8c4bd3a395dd1a3a0928885814a (patch)
treef43ad6bc9933fd372f936101d71523f811c36cc9 /absl/strings
parentb06e719ee985ecd63e0dffbc68499549216f817f (diff)
Export of internal Abseil changes
-- c3b926ea986eea9d416ef57ee67a1041b70257fd by Martijn Vels <mvels@google.com>: Remove internal absl_internal_cordz_disabled check. PiperOrigin-RevId: 384225993 -- 2863c56ad5c86dd9c207a796e65d5bc968f77755 by Benjamin Barenblat <bbaren@google.com>: Make randen_slow endian-correct Pay attention to the platform endianness when pulling bytes out of each AES block, and use platform-endian round keys. PiperOrigin-RevId: 383878281 GitOrigin-RevId: c3b926ea986eea9d416ef57ee67a1041b70257fd Change-Id: I0d48f4fd560b3e320260ef05790727756ffead02
Diffstat (limited to 'absl/strings')
-rw-r--r--absl/strings/internal/cordz_functions.cc14
1 files changed, 0 insertions, 14 deletions
diff --git a/absl/strings/internal/cordz_functions.cc b/absl/strings/internal/cordz_functions.cc
index f30080f..4836993 100644
--- a/absl/strings/internal/cordz_functions.cc
+++ b/absl/strings/internal/cordz_functions.cc
@@ -24,13 +24,6 @@
#include "absl/base/internal/exponential_biased.h"
#include "absl/base/internal/raw_logging.h"
-// TODO(b/162942788): weak 'cordz_disabled' value.
-// A strong version is in the 'cordz_disabled_hack_for_odr' library which can
-// be linked in to disable cordz at compile time.
-extern "C" {
-bool absl_internal_cordz_disabled ABSL_ATTRIBUTE_WEAK = false;
-}
-
namespace absl {
ABSL_NAMESPACE_BEGIN
namespace cord_internal {
@@ -54,13 +47,6 @@ ABSL_CONST_INIT thread_local int64_t cordz_next_sample = kInitCordzNextSample;
constexpr int64_t kIntervalIfDisabled = 1 << 16;
ABSL_ATTRIBUTE_NOINLINE bool cordz_should_profile_slow() {
- // TODO(b/162942788): check if profiling is disabled at compile time.
- if (absl_internal_cordz_disabled) {
- ABSL_RAW_LOG(WARNING, "Cordz info disabled at compile time");
- // We are permanently disabled: set counter to highest possible value.
- cordz_next_sample = std::numeric_limits<int64_t>::max();
- return false;
- }
thread_local absl::base_internal::ExponentialBiased
exponential_biased_generator;