Re: [Mesa-dev] [RFC][PATCH] gallivm: Clean up llvm data structures upon destruction.

2018-07-18 Thread Marek Olšák
This is OK but the code also needs to compile with Visual C++. Marek On Wed, Jul 18, 2018 at 4:34 PM, David Riley wrote: > Without this change, dlopen()/dlclose() of any driver results in memory > being leaked which becomes problematic if things are being reinitialized > repeatedly (eg from a fu

[Mesa-dev] [RFC][PATCH] gallivm: Clean up llvm data structures upon destruction.

2018-07-18 Thread David Riley
Without this change, dlopen()/dlclose() of any driver results in memory being leaked which becomes problematic if things are being reinitialized repeatedly (eg from a fuzzer). Even with this change, repeated dlopen()/dlclose() results in a single LLVM mutex being allocated and never freed (used to