Skip to content

Commit 25fcf69

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 adbd9f6 commit 25fcf69

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
@@ -815,6 +815,7 @@ bool TClingClassInfo::IsBase(const char *name) const
815815

816816
bool TClingClassInfo::IsEnum(cling::Interpreter *interp, const char *name)
817817
{
818+
R__LOCKGUARD(gInterpreterMutex);
818819
// Note: This is a static member function.
819820
TClingClassInfo info(interp, name);
820821
if (info.IsValid() && (info.Property() & kIsEnum)) {

0 commit comments

Comments
 (0)