Event quickFindType can lead to deserialization

This commit is contained in:
Philippe Canal 2015-09-29 14:44:52 -05:00 committed by sftnight
parent 50e1fe55cd
commit 70c402f585

View File

@ -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);