New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix ownership problem in TMVAEvaluator (76X) #13003
Fix ownership problem in TMVAEvaluator (76X) #13003
Conversation
The TMVAEvaluator was meant to own the GBRForest if the TMVAEvaluator made the instance itself else it was not supposed to own it if it was given a GBRForest externally. However, for both cases the code used an std::unique_ptr and attempted to call 'release' in the case of non-ownership. The problem was multiple calls to initializeGBRForest still caused the code to delete a GBRForest which was not supposed to be owned. The code was changed to use an std::shared_ptr where we use a custom deallocator in the case of non-ownership (the deallocator does nothing). This problem was found in the IB RelVals.
A new Pull Request was created by @ferencek (Dinko Ferenček) for CMSSW_7_6_X. It involves the following packages: CommonTools/Utils @cvuosalo, @monttj, @cmsbuild, @slava77, @vadler, @davidlange6 can you please review it and eventually sign? Thanks. Following commands in first line of a comment are recognized
|
@cmsbuild please test |
The tests are being triggered in jenkins. |
…lem-from-CMSSW_7_6_3 Fix ownership problem in TMVAEvaluator (76X)
Backport of #12675