Internal change

PiperOrigin-RevId: 722692074
pull/20190/head
Evan Brown 3 weeks ago committed by Copybara-Service
parent 2e2a8653c8
commit eb2a94de7d
  1. 19
      src/google/protobuf/lazy_extensions_ablation_experiment.cc

@ -1,19 +0,0 @@
#include "third_party/tcmalloc/experiment.h"
#include "third_party/tcmalloc/experiment_config.h"
namespace google {
namespace protobuf {
namespace internal {
// We provide this function because protobuf can't always depend directly on
// TCMalloc experiment framework. This will be linked into binaries that use
// TCMalloc and we can define a weak version of this function that always
// returns false for cases in which TCMalloc is not used.
bool IsLazyExtensionsAblationExperimentActive() {
return tcmalloc::IsExperimentActive(
tcmalloc::Experiment::PROTOBUF_LAZY_EXTENSION_ABLATION);
}
} // namespace internal
} // namespace protobuf
} // namespace google
Loading…
Cancel
Save