Skip to content

DPL: fixes for memory leak in CCDB object caching#15386

Open
ehellbar wants to merge 2 commits intoAliceO2Group:devfrom
ehellbar:pr15386
Open

DPL: fixes for memory leak in CCDB object caching#15386
ehellbar wants to merge 2 commits intoAliceO2Group:devfrom
ehellbar:pr15386

Conversation

@ehellbar
Copy link
Copy Markdown
Collaborator

@ehellbar ehellbar commented May 10, 2026

No description provided.

@ehellbar ehellbar requested a review from a team as a code owner May 10, 2026 14:43
@ehellbar ehellbar changed the title DPL: use per-path cache entry in ObjectCache DPL: fixes for memory leaks in CCDB caching May 10, 2026
@ehellbar ehellbar changed the title DPL: fixes for memory leaks in CCDB caching DPL: use per-path cache entry in ObjectCache May 10, 2026
@ehellbar ehellbar changed the title DPL: use per-path cache entry in ObjectCache DPL: fixes for memory leak in CCDB object caching May 10, 2026
@ehellbar ehellbar changed the title DPL: fixes for memory leak in CCDB object caching DPL: use per-path cache entry in ObjectCache May 10, 2026
@ehellbar ehellbar changed the title DPL: use per-path cache entry in ObjectCache DPL: fixes for memory leak in CCDB object caching May 10, 2026
// every CCDB update from that point onwards.
auto oldDPLCacheIt = helper->mapURL2DPLCache.find(path);
auto cacheId = allocator.adoptContainer(output, std::move(v), DataAllocator::CacheStrategy::Always, header::gSerializationMethodCCDB);
if (oldDPLCacheIt != helper->mapURL2DPLCache.end()) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to be a common pattern. Maybe worth a small helper?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe I can put the pruning inside the adoptContainer as you suggested in you former comment? this if (oldDPLCacheIt is anyway not really needed because the pruning is a no-op?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants