aboutsummaryrefslogtreecommitdiff
path: root/libgomp/env.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgomp/env.c')
-rw-r--r--libgomp/env.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libgomp/env.c b/libgomp/env.c
index a21adb3..d058043 100644
--- a/libgomp/env.c
+++ b/libgomp/env.c
@@ -61,6 +61,7 @@
#include "secure_getenv.h"
#include "environ.h"
+#include "spincount.h"
/* Default values of ICVs according to the OpenMP standard,
except for default-device-var. */
@@ -2431,7 +2432,10 @@ initialize_env (void)
if (wait_policy > 0)
gomp_spin_count_var = 30000000000LL;
else if (wait_policy < 0)
- gomp_spin_count_var = 300000LL;
+ {
+ gomp_spin_count_var = 300000LL;
+ do_adjust_default_spincount ();
+ }
}
/* gomp_throttled_spin_count_var is used when there are more libgomp
managed threads than available CPUs. Use very short spinning. */