From: Jonathan Peyton Date: Wed, 27 Jan 2016 20:57:32 +0000 (+0000) Subject: Fixing comments. X-Git-Tag: llvmorg-3.9.0-rc1~15805 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bf0cc3a24161c4eed652cded15ef5887a030e12f;p=platform%2Fupstream%2Fllvm.git Fixing comments. Removing references to non-existent functions, fixing typos. llvm-svn: 258985 --- diff --git a/openmp/runtime/src/kmp_barrier.cpp b/openmp/runtime/src/kmp_barrier.cpp index d7c7321..e449a30 100644 --- a/openmp/runtime/src/kmp_barrier.cpp +++ b/openmp/runtime/src/kmp_barrier.cpp @@ -1457,8 +1457,6 @@ __kmp_join_barrier(int gtid) the kmp_task_team_t structs. */ if (KMP_MASTER_TID(tid)) { if (__kmp_tasking_mode != tskm_immediate_exec) { - // Master shouldn't call decrease_load(). // TODO: enable master threads. - // Master should have th_may_decrease_load == 0. // TODO: enable master threads. __kmp_task_team_wait(this_thr, team USE_ITT_BUILD_ARG(itt_sync_obj) ); } diff --git a/openmp/runtime/src/kmp_runtime.c b/openmp/runtime/src/kmp_runtime.c index 9a84533..ae689c2 100644 --- a/openmp/runtime/src/kmp_runtime.c +++ b/openmp/runtime/src/kmp_runtime.c @@ -637,8 +637,7 @@ DllMain( HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpReserved ) { // When the process terminates, worker threads disappear triggering // the problem of unreleased forkjoin lock as described below. - // A worker thread can take the forkjoin lock - // in __kmp_suspend_template()->__kmp_rml_decrease_load_before_sleep(). + // A worker thread can take the forkjoin lock. // The problem comes up if that worker thread becomes dead // before it releases the forkjoin lock. // The forkjoin lock remains taken, while the thread @@ -5699,7 +5698,7 @@ __kmp_reap_thread( // // The thread was killed asynchronously. If it was actively - // spinning in the in the thread pool, decrement the global count. + // spinning in the thread pool, decrement the global count. // // There is a small timing hole here - if the worker thread was // just waking up after sleeping in the pool, had reset it's diff --git a/openmp/runtime/src/z_Windows_NT_util.c b/openmp/runtime/src/z_Windows_NT_util.c index e305109..c109df4 100644 --- a/openmp/runtime/src/z_Windows_NT_util.c +++ b/openmp/runtime/src/z_Windows_NT_util.c @@ -19,11 +19,6 @@ #include "kmp_io.h" #include "kmp_wait_release.h" - - -/* ----------------------------------------------------------------------------------- */ -/* ----------------------------------------------------------------------------------- */ - /* This code is related to NtQuerySystemInformation() function. This function is used in the Load balance algorithm for OMP_DYNAMIC=true to find the number of running threads in the system. */