Skip to content

Commit

Permalink
identify all of the available task context creation algorithms with H…
Browse files Browse the repository at this point in the history
…AVE_ flags for better clarity and simplicity
  • Loading branch information
vtjnash committed Sep 24, 2015
1 parent d5fa0ec commit 30cd4b1
Show file tree
Hide file tree
Showing 3 changed files with 306 additions and 191 deletions.
7 changes: 2 additions & 5 deletions src/julia.h
Original file line number Diff line number Diff line change
Expand Up @@ -1386,13 +1386,10 @@ typedef struct _jl_task_t {
// hidden state:
#ifdef _OS_WINDOWS_
LPVOID fiber; // Fiber that this runs on
jl_jmp_buf ctx; // saved thread state
#else
unw_context_t ctx; // saved unwind context
#endif
jl_jmp_buf ctx; // saved thread state
void *stkbuf; // malloc'd memory
unsigned ssize; // sizeof the portion of stack used in stkbuf
uint8_t started;
int ssize; // sizeof the portion of stack used in stkbuf

// current exception handler
jl_handler_t *eh;
Expand Down
4 changes: 1 addition & 3 deletions src/options.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,8 @@

// task options ---------------------------------------------------------------

// select an implementation of stack switching.
// currently only COPY_STACKS is recommended.
// select whether to enable the COPY_STACKS stack switching optimization
#define COPY_STACKS

#define JL_STACK_SIZE (8*1024*1024)

// sanitizer defaults ---------------------------------------------------------
Expand Down
Loading

0 comments on commit 30cd4b1

Please sign in to comment.