From c3f6356cdc15470aa8a3603afd22cc3e213aada9 Mon Sep 17 00:00:00 2001 From: khizmax Date: Wed, 16 Nov 2016 10:20:31 +0300 Subject: [PATCH] Fixed: gcc-4.9 does not support DCAS for atomic (a lot of crashes in TaggedFreeList) --- cds/compiler/gcc/defs.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cds/compiler/gcc/defs.h b/cds/compiler/gcc/defs.h index 5c4fb8a3..055fd10d 100644 --- a/cds/compiler/gcc/defs.h +++ b/cds/compiler/gcc/defs.h @@ -104,7 +104,8 @@ // double-width CAS support // note: gcc-4.8 does not support double-word atomics -#if CDS_COMPILER_VERSION >= 40900 +// gcc-4.9: a lot of crashes when use DCAS +#if CDS_COMPILER_VERSION >= 50000 # if CDS_BUILD_BITS == 64 # ifdef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16 # define CDS_DCAS_SUPPORT -- 2.34.1