Skip to content

Commit

Permalink
Fix thread build on OS X with newest XCode by reducing JL_MAX_BT_SIZE.
Browse files Browse the repository at this point in the history
Fixes #15647
  • Loading branch information
andreasnoack committed Apr 5, 2016
1 parent a9e7e86 commit c2e3104
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/julia_threads.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,18 @@
# include <immintrin.h>
#endif

// JL_MAX_BT_SIZE has to be restricted on Clang 7.3.0
// See https://llvm.org/bugs/show_bug.cgi?id=27059
#ifdef __clang__
# if __clang_major__==7 & __clang_minor__==3 & __clang_patchlevel__==0
# define JL_MAX_BT_SIZE 4312
# else
# define JL_MAX_BT_SIZE 80000
# endif
#else
# define JL_MAX_BT_SIZE 80000
#endif
// This includes all the thread local states we care about for a thread.
#define JL_MAX_BT_SIZE 80000
typedef struct _jl_tls_states_t {
struct _jl_gcframe_t *pgcstack;
struct _jl_value_t *exception_in_transit;
Expand Down

0 comments on commit c2e3104

Please sign in to comment.