Skip to content

Commit

Permalink
not unloading the ClassLoaders (to avoid the SEVERE WARNING) doesn't …
Browse files Browse the repository at this point in the history
…work either
  • Loading branch information
rhaschke committed Apr 3, 2016
1 parent f6d8ccc commit f32686f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/multi_library_class_loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,7 @@ enable_ondemand_loadunload_(enable_ondemand_loadunload)

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

std::vector<std::string> MultiLibraryClassLoader::getRegisteredLibraries()
Expand Down

0 comments on commit f32686f

Please sign in to comment.