Skip to content

Commit ac31862

Browse files
committed
identify all of the available task context creation algorithms with HAVE_ flags for better clarity and simplicity
1 parent 0f9280e commit ac31862

File tree

3 files changed

+306
-191
lines changed

3 files changed

+306
-191
lines changed

src/julia.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1386,13 +1386,10 @@ typedef struct _jl_task_t {
13861386
// hidden state:
13871387
#ifdef _OS_WINDOWS_
13881388
LPVOID fiber; // Fiber that this runs on
1389-
jl_jmp_buf ctx; // saved thread state
1390-
#else
1391-
unw_context_t ctx; // saved unwind context
13921389
#endif
1390+
jl_jmp_buf ctx; // saved thread state
13931391
void *stkbuf; // malloc'd memory
1394-
unsigned ssize; // sizeof the portion of stack used in stkbuf
1395-
uint8_t started;
1392+
int ssize; // sizeof the portion of stack used in stkbuf
13961393

13971394
// current exception handler
13981395
jl_handler_t *eh;

src/options.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,8 @@
8787

8888
// task options ---------------------------------------------------------------
8989

90-
// select an implementation of stack switching.
91-
// currently only COPY_STACKS is recommended.
90+
// select whether to enable the COPY_STACKS stack switching optimization
9291
#define COPY_STACKS
93-
9492
#define JL_STACK_SIZE (8*1024*1024)
9593

9694
// sanitizer defaults ---------------------------------------------------------

0 commit comments

Comments
 (0)