mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-25 05:45:11 +02:00
6983747: Remove obsolete dl_mutex lock
Unused dl_mutex lock has been removed. Reviewed-by: hseigel, coleenp, dholmes
This commit is contained in:
parent
afa2dbda46
commit
bdbad87334
2 changed files with 0 additions and 18 deletions
|
@ -158,9 +158,6 @@ static pid_t _initial_pid = 0;
|
|||
static int SR_signum = SIGUSR2;
|
||||
sigset_t SR_sigset;
|
||||
|
||||
// Used to protect dlsym() calls
|
||||
static pthread_mutex_t dl_mutex;
|
||||
|
||||
// Declarations
|
||||
static void unpackTime(timespec* absTime, bool isAbsolute, jlong time);
|
||||
|
||||
|
@ -2025,14 +2022,8 @@ void * os::Linux::dll_load_in_vmthread(const char *filename, char *ebuf,
|
|||
return result;
|
||||
}
|
||||
|
||||
// glibc-2.0 libdl is not MT safe. If you are building with any glibc,
|
||||
// chances are you might want to run the generated bits against glibc-2.0
|
||||
// libdl.so, so always use locking for any version of glibc.
|
||||
//
|
||||
void* os::dll_lookup(void* handle, const char* name) {
|
||||
pthread_mutex_lock(&dl_mutex);
|
||||
void* res = dlsym(handle, name);
|
||||
pthread_mutex_unlock(&dl_mutex);
|
||||
return res;
|
||||
}
|
||||
|
||||
|
@ -4641,8 +4632,6 @@ void os::init(void) {
|
|||
}
|
||||
// else it defaults to CLOCK_REALTIME
|
||||
|
||||
pthread_mutex_init(&dl_mutex, NULL);
|
||||
|
||||
// If the pagesize of the VM is greater than 8K determine the appropriate
|
||||
// number of initial guard pages. The user can change this with the
|
||||
// command line arguments, if needed.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue