Fix for barrier problem: applications with many parallel regions (2^30) hang

The barrier states type doesn't need to be explicitly set.

llvm-svn: 256778
This commit is contained in:
Jonathan Peyton 2016-01-04 20:51:48 +00:00
parent 13ea29b5a1
commit 703d4042ad
1 changed files with 3 additions and 3 deletions

View File

@ -1671,9 +1671,9 @@ typedef struct kmp_disp {
#define KMP_BARRIER_UNUSED_BIT 1 /* bit that must never be set for valid state */ #define KMP_BARRIER_UNUSED_BIT 1 /* bit that must never be set for valid state */
#define KMP_BARRIER_BUMP_BIT 2 /* lsb used for bump of go/arrived state */ #define KMP_BARRIER_BUMP_BIT 2 /* lsb used for bump of go/arrived state */
#define KMP_BARRIER_SLEEP_STATE ((kmp_uint) (1 << KMP_BARRIER_SLEEP_BIT)) #define KMP_BARRIER_SLEEP_STATE (1 << KMP_BARRIER_SLEEP_BIT)
#define KMP_BARRIER_UNUSED_STATE ((kmp_uint) (1 << KMP_BARRIER_UNUSED_BIT)) #define KMP_BARRIER_UNUSED_STATE (1 << KMP_BARRIER_UNUSED_BIT)
#define KMP_BARRIER_STATE_BUMP ((kmp_uint) (1 << KMP_BARRIER_BUMP_BIT)) #define KMP_BARRIER_STATE_BUMP (1 << KMP_BARRIER_BUMP_BIT)
#if (KMP_BARRIER_SLEEP_BIT >= KMP_BARRIER_BUMP_BIT) #if (KMP_BARRIER_SLEEP_BIT >= KMP_BARRIER_BUMP_BIT)
# error "Barrier sleep bit must be smaller than barrier bump bit" # error "Barrier sleep bit must be smaller than barrier bump bit"