From af6ac3375475d52c1c4ddb779c3e40cc30038feb Mon Sep 17 00:00:00 2001 From: Jonathan Peyton Date: Tue, 26 Sep 2017 20:12:16 +0000 Subject: [PATCH] Remove unused t_single_lock Add padding inside team structure to keep same structure size. git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@314242 91177308-0d34-0410-b5e6-96231b3b80d8 --- runtime/src/kmp.h | 2 +- runtime/src/kmp_runtime.cpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/runtime/src/kmp.h b/runtime/src/kmp.h index f2895db..c0cb8de 100644 --- a/runtime/src/kmp.h +++ b/runtime/src/kmp.h @@ -2536,7 +2536,7 @@ typedef struct KMP_ALIGN_CACHE kmp_base_team { KMP_ALIGN_CACHE kmp_ordered_team_t t_ordered; kmp_balign_team_t t_bar[bs_last_barrier]; volatile int t_construct; // count of single directive encountered by team - kmp_lock_t t_single_lock; // team specific lock + char pad[sizeof(kmp_lock_t)]; // padding to maintain performance on big iron // Master only // --------------------------------------------------------------------------- diff --git a/runtime/src/kmp_runtime.cpp b/runtime/src/kmp_runtime.cpp index 6b8d062..60325ae 100644 --- a/runtime/src/kmp_runtime.cpp +++ b/runtime/src/kmp_runtime.cpp @@ -4444,7 +4444,6 @@ static void __kmp_initialize_team(kmp_team_t *team, int new_nproc, #endif /* KMP_ARCH_X86 || KMP_ARCH_X86_64 */ team->t.t_construct = 0; - __kmp_init_lock(&team->t.t_single_lock); team->t.t_ordered.dt.t_value = 0; team->t.t_master_active = FALSE;