Skip to content
Snippets Groups Projects

TrigDecisionTool: Fix thread-safety problem.

Merged Scott Snyder requested to merge ssnyder/athena:thread.TrigDecisionTool-20221028 into 22.0

CacheGlobalMemory::getChainGroups() is not thread-safe, since it returns a pointer to a map object which is supposed to be protected by a lock inside CacheGlobalMemory.

However, this is used only by ChainGroupFunctions::getChainGroup. Fix by removing getChainGroups() and moving the getChainGroup() logic inside CacheGlobalMemory where we can properly take the mutex.

See ATR-26495. Backported from master.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading