forked from microsoft/SynapseML
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Possible multithreading issue when two scores may come in parall…
…el they may not safely fill pointer values (microsoft#799) * Move transient var to transient lazy val * Try guaranteeing NativeLibrary is loaded everytime it is needed but only loaded once * Forgot some lightGBMlibConstants * Add freeing of resources, handle all memory in BoosterHandler * Remove serialization from BoosterHandler, some documentation and minor changes. By boosterHandler not being serializable, it forces Serializable objects to declare it as transient * Style forbigs implementing finalize method, Java does not guarantee order of finalization so it is dangerous. I wonder how is it guaranteed that the memory will be cleared though * Add finalize method to call free for Native C++ allocated memory * predict normal correct constant * Change implementation to a ThreadLocal based synchronization
- Loading branch information
Showing
1 changed file
with
103 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters