Skip to content

Commit ea49eef

Browse files
vepadulanopcanal
andcommitted
[core] Guard gInterpreterMutex in TClingClassInfo::IsEnum
Fixes #11515 This method leads to contention in some specific scenarios (see linked issue). Co-authored-by: Philippe Canal <[email protected]>
1 parent 29f0497 commit ea49eef

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/metacling/src/TClingClassInfo.cxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -813,6 +813,7 @@ bool TClingClassInfo::IsBase(const char *name) const
813813

814814
bool TClingClassInfo::IsEnum(cling::Interpreter *interp, const char *name)
815815
{
816+
R__LOCKGUARD(gInterpreterMutex);
816817
// Note: This is a static member function.
817818
TClingClassInfo info(interp, name);
818819
if (info.IsValid() && (info.Property() & kIsEnum)) {

0 commit comments

Comments
 (0)