From 3647314d89cecb3fcd2eb6e9569a22bfec1982fd Mon Sep 17 00:00:00 2001 From: Dimitry Ivanov Date: Wed, 13 Apr 2016 14:47:36 -0700 Subject: [PATCH] linker: remove unnecessary reset of constructors_called flag linker doesn't call d-tors for RTLD_NODELETE libraries. There is no need in reseting this flag in call_destructors (which is called from soinfo_unload). Change-Id: I3ed03fa7207b7acf598067276fbb8874e29b5e53 --- linker/linker.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/linker/linker.cpp b/linker/linker.cpp index bda713e70..f3370ec2b 100644 --- a/linker/linker.cpp +++ b/linker/linker.cpp @@ -3023,10 +3023,6 @@ void soinfo::call_destructors() { // DT_FINI should be called after DT_FINI_ARRAY if both are present. call_function("DT_FINI", fini_func_); - - // This is needed on second call to dlopen - // after library has been unloaded with RTLD_NODELETE - constructors_called = false; } void soinfo::add_child(soinfo* child) {