Skip to content

Repeated calls to TClass::GetClass/TClassEdit::ResolveTypedef hoard memory #9029

Open
@amete

Description

@amete

Hi everyone,

We came across this issue in ATLAS recently. There were similar reports in the past, such as ROOT-7254, but there is none that's still open as far as I could see.

Describe the bug

Repeatedly calling TClass::GetClass/TClassEdit::ResolveTypedef w/ an input such as std::vector<int>::value_size seems to create memory hoarding.

To Reproduce

Either of these python scripts should reproduce the issue:

import ROOT

while True:
    ROOT.TClass.GetClass("std::vector<int>::value_size")
import ROOT

while True:
    ROOT.TClassEdit.ResolveTypedef("std::vector<int>::value_size")

Setup

Tested with both ROOT versions 6.24/00 and 6.24/06 in the ATLAS production environment.

Please let us know, many thanks.

Best,
Serhan

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions