-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Rename JL_* envs to JULIA_* * Enable GC status printing for non-gc-debug build when there's a crash that is likely related to GC. (SegFault, type tag corruption) * Add an env to put the process to sleep before aborting so that one can attach a debugger later
- Loading branch information
Showing
10 changed files
with
55 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,12 @@ | |
|
||
#include <options.h> | ||
#include <uv.h> | ||
#ifndef _MSC_VER | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
yuyichao
Author
Contributor
|
||
#include <unistd.h> | ||
#include <sched.h> | ||
#else | ||
#define sleep(x) Sleep(1000*x) | ||
#endif | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
|
@@ -97,11 +103,8 @@ static inline void jl_gc_wb_buf(void *parent, void *bufptr) // parent isa jl_val | |
gc_setmark_buf(bufptr, jl_astaggedvalue(parent)->gc_bits); | ||
} | ||
|
||
#ifdef GC_DEBUG_ENV | ||
void gc_debug_print_status(void); | ||
#else | ||
#define gc_debug_print_status() | ||
#endif | ||
void gc_debug_critical_error(void); | ||
#if defined(GC_FINAL_STATS) | ||
void jl_print_gc_stats(JL_STREAM *s); | ||
#else | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Any reason not to use
_OS_WINDOWS_
here?