diff options
author | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2018-03-30 19:55:11 +0000 |
---|---|---|
committer | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2018-03-30 19:55:11 +0000 |
commit | 1e6bb8d5de52252e12f41955e6c608d23193917e (patch) | |
tree | eedc0c75422cc54e417672078ab0d69dc4b74f76 /openmp/runtime/src/z_Linux_util.cpp | |
parent | 526fbf8e33e6888f1efaf48c826fb12da0354e09 (diff) | |
download | bcm5719-llvm-1e6bb8d5de52252e12f41955e6c608d23193917e.tar.gz bcm5719-llvm-1e6bb8d5de52252e12f41955e6c608d23193917e.zip |
Minor cleanup in __kmp_atfork_child()
This change removes the unnecessary lock operation on __kmp_initz_lock inside
the __kmp_atfork_child() function for Linux; the lock variable is initialized
in the same function later.
Patch by Hansang Bae
Differential Revision: https://reviews.llvm.org/D44949
llvm-svn: 328900
Diffstat (limited to 'openmp/runtime/src/z_Linux_util.cpp')
-rw-r--r-- | openmp/runtime/src/z_Linux_util.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/openmp/runtime/src/z_Linux_util.cpp b/openmp/runtime/src/z_Linux_util.cpp index f50dac06d19..c087dcc0638 100644 --- a/openmp/runtime/src/z_Linux_util.cpp +++ b/openmp/runtime/src/z_Linux_util.cpp @@ -1267,7 +1267,6 @@ static void __kmp_atfork_parent(void) { clean data structures in initial states. Don't worry about freeing memory allocated by parent, just abandon it to be safe. */ static void __kmp_atfork_child(void) { - __kmp_release_bootstrap_lock(&__kmp_initz_lock); __kmp_release_bootstrap_lock(&__kmp_forkjoin_lock); /* TODO make sure this is done right for nested/sibling */ // ATT: Memory leaks are here? TODO: Check it and fix. |