Skip to content

Commit f32686f

Browse files
committed
not unloading the ClassLoaders (to avoid the SEVERE WARNING) doesn't work either
1 parent f6d8ccc commit f32686f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/multi_library_class_loader.cpp

+1-4
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,7 @@ enable_ondemand_loadunload_(enable_ondemand_loadunload)
3939

4040
MultiLibraryClassLoader::~MultiLibraryClassLoader()
4141
{
42-
if (!isOnDemandLoadUnloadEnabled())
43-
shutdownAllClassLoaders(); // don't unload libs to avoid SEVERE WARNING
44-
// TODO: free ClassLoaders in active_class_loaders_
45-
// However, we still need them in on-demand-load-unload mode. Otherwise we risk seg-faults.
42+
shutdownAllClassLoaders();
4643
}
4744

4845
std::vector<std::string> MultiLibraryClassLoader::getRegisteredLibraries()

0 commit comments

Comments
 (0)