Skip to content

Commit

Permalink
Fix #9366, save_stack causing win64 test failures when inlined
Browse files Browse the repository at this point in the history
  • Loading branch information
tkelman committed Dec 15, 2014
1 parent e93672d commit d9d38c7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/task.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,12 @@ void *jl_stackbase;
static jl_jmp_buf jl_base_ctx; // base context of stack
#endif

static void save_stack(jl_task_t *t)
#if defined(_OS_WINDOWS_) && !defined(_COMPILER_MINGW_)
static void __declspec(noinline)
#else
static void __attribute__((noinline))
#endif
save_stack(jl_task_t *t)
{
if (t->state == done_sym || t->state == failed_sym)
return;
Expand Down

0 comments on commit d9d38c7

Please sign in to comment.