Skip to content

Commit 1c4e986

Browse files
authored
[OpenMP][NFC] Remove unused debug lock (#127928)
1 parent 41cece8 commit 1c4e986

File tree

3 files changed

+0
-6
lines changed

3 files changed

+0
-6
lines changed

openmp/runtime/src/kmp.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3408,7 +3408,6 @@ extern kmp_bootstrap_lock_t
34083408
__kmp_threads expansion to co-exist */
34093409

34103410
extern kmp_lock_t __kmp_global_lock; /* control OS/global access */
3411-
extern kmp_lock_t __kmp_debug_lock; /* control I/O access for KMP_DEBUG */
34123411

34133412
extern enum library_type __kmp_library;
34143413

openmp/runtime/src/kmp_global.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -487,8 +487,6 @@ KMP_BOOTSTRAP_LOCK_INIT(__kmp_tp_cached_lock);
487487

488488
KMP_ALIGN_CACHE_INTERNODE
489489
KMP_LOCK_INIT(__kmp_global_lock); /* Control OS/global access */
490-
KMP_ALIGN_CACHE_INTERNODE
491-
KMP_LOCK_INIT(__kmp_debug_lock); /* Control I/O access for KMP_DEBUG */
492490
#else
493491
KMP_ALIGN_CACHE
494492

@@ -505,8 +503,6 @@ KMP_BOOTSTRAP_LOCK_INIT(__kmp_tp_cached_lock);
505503

506504
KMP_ALIGN(128)
507505
KMP_LOCK_INIT(__kmp_global_lock); /* Control OS/global access */
508-
KMP_ALIGN(128)
509-
KMP_LOCK_INIT(__kmp_debug_lock); /* Control I/O access for KMP_DEBUG */
510506
#endif
511507

512508
/* ----------------------------------------------- */

openmp/runtime/src/kmp_runtime.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7143,7 +7143,6 @@ static void __kmp_do_serial_initialize(void) {
71437143
__kmp_stats_init();
71447144
#endif
71457145
__kmp_init_lock(&__kmp_global_lock);
7146-
__kmp_init_lock(&__kmp_debug_lock);
71477146
__kmp_init_atomic_lock(&__kmp_atomic_lock);
71487147
__kmp_init_atomic_lock(&__kmp_atomic_lock_1i);
71497148
__kmp_init_atomic_lock(&__kmp_atomic_lock_2i);

0 commit comments

Comments
 (0)