diff options
author | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2016-01-27 20:57:32 +0000 |
---|---|---|
committer | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2016-01-27 20:57:32 +0000 |
commit | bf0cc3a24161c4eed652cded15ef5887a030e12f (patch) | |
tree | eced7b2225b7fc87f3c270241edb3c6fcbdfd887 /openmp/runtime/src | |
parent | bf89c491c5a9c59609957bde82648f752bb089e7 (diff) | |
download | bcm5719-llvm-bf0cc3a24161c4eed652cded15ef5887a030e12f.tar.gz bcm5719-llvm-bf0cc3a24161c4eed652cded15ef5887a030e12f.zip |
Fixing comments.
Removing references to non-existent functions, fixing typos.
llvm-svn: 258985
Diffstat (limited to 'openmp/runtime/src')
-rw-r--r-- | openmp/runtime/src/kmp_barrier.cpp | 2 | ||||
-rw-r--r-- | openmp/runtime/src/kmp_runtime.c | 5 | ||||
-rw-r--r-- | openmp/runtime/src/z_Windows_NT_util.c | 5 |
3 files changed, 2 insertions, 10 deletions
diff --git a/openmp/runtime/src/kmp_barrier.cpp b/openmp/runtime/src/kmp_barrier.cpp index d7c73211c3a..e449a30c73a 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 9a84533fe3e..ae689c2cfd4 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 e305109e570..c109df4dd17 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. */ |