Skip to content
Snippets Groups Projects
Commit 788b8ce0 authored by scott snyder's avatar scott snyder
Browse files

AthenaMonitoringKernel: Hack to avoid TLS slowdown.

    
 Ensure that TLS defined in this library actually gets used.
 Avoids a potential slowdown in accessing TLS seen in simualation.
 See ATLASSIM-4932.
parent 54742397
No related branches found
No related tags found
No related merge requests found
......@@ -128,6 +128,12 @@ namespace std {
namespace {
// this exists to avoid reallocating memory on every invokeFillers call
thread_local Monitored::HistogramFiller::VariablesPack tl_vars ATLAS_THREAD_SAFE;
// Ensure that TLS defined in this library actually gets used.
// Avoids a potential slowdown in accessing TLS seen in simualation.
// See ATLASSIM-4932.
[[maybe_unused]]
const Monitored::HistogramFiller::VariablesPack& varDum = tl_vars;
}
void GenericMonitoringTool::invokeFillers(const std::vector<std::reference_wrapper<Monitored::IMonitoredVariable>>& monitoredVariables) const {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment