Java code, that by trace generates cpp code to reproduce situation. (Simply insert generated code block in main3.cpp)
Author - Nikita Zulyaev. Me only upgraded it to my purposes.
Huge memory leak in tracing fixed
Merge origin/master