Event quickFindType can lead to deserialization
This commit is contained in:
parent
50e1fe55cd
commit
70c402f585
@ -450,6 +450,9 @@ namespace cling {
|
||||
|
||||
if (typeName.empty()) return TheQT;
|
||||
|
||||
// Could trigger deserialization of decls.
|
||||
Interpreter::PushTransactionRAII RAII(m_Interpreter);
|
||||
|
||||
// Deal with the most common case.
|
||||
// Going through this custom finder is both much faster
|
||||
// (6 times faster, 10.6s to 57.5s for 1 000 000 calls) and consumes
|
||||
@ -461,9 +464,6 @@ namespace cling {
|
||||
return quickFind;
|
||||
}
|
||||
|
||||
// Could trigger deserialization of decls.
|
||||
Interpreter::PushTransactionRAII RAII(m_Interpreter);
|
||||
|
||||
// Use P for shortness
|
||||
Parser& P = *m_Parser;
|
||||
ParserStateRAII ResetParserState(P);
|
||||
|
Loading…
x
Reference in New Issue
Block a user