Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
rootpcm: Don't record the sizeof 'emulated' collection.
Instead record the size as reported by Cling or -1 if we don't have it
  • Loading branch information
pcanal committed Oct 26, 2020
commit feb56a13e63d702b288a993c4953c262246c0938
7 changes: 7 additions & 0 deletions core/meta/src/TProtoClass.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Persistent version of a TClass.
#include "TListOfEnums.h"
#include "TRealData.h"
#include "TError.h"
#include "TVirtualCollectionProxy.h"

#include <cassert>
#include <unordered_map>
Expand Down Expand Up @@ -120,6 +121,12 @@ TProtoClass::TProtoClass(TClass* cl):
// Info("TProtoClass","And is transient");
// }
// }
} else if (cl->GetCollectionProxy()->GetProperties() & TVirtualCollectionProxy::kIsEmulated) {
// The collection proxy is emulated has the wrong size.
if (cl->HasInterpreterInfo())
fSizeof = gCling->ClassInfo_Size(cl->GetClassInfo());
else
fSizeof = -1;
}

cl->CalculateStreamerOffset();
Expand Down