aboutsummaryrefslogtreecommitdiffstats
path: root/vm_core.h
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2020-10-28 15:27:00 -0700
committerGitHub <noreply@github.com>2020-10-28 15:27:00 -0700
commitdfb3605bbee9c3cfbc1c354594c367472f29cb35 (patch)
treec45c7551fad0baeb053771468bd534b396bfd4bf /vm_core.h
parenta99f52d5113a601b6d18bd671dfee24266689ffe (diff)
downloadruby-dfb3605bbee9c3cfbc1c354594c367472f29cb35.tar.gz
Add Thread.ignore_deadlock accessor
Setting this to true disables the deadlock detector. It should only be used in cases where the deadlock could be broken via some external means, such as via a signal. Now that $SAFE is no longer used, replace the safe_level_ VM flag with ignore_deadlock for storing the setting. Fixes [Bug #13768]
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_core.h b/vm_core.h
index 8525bfcf3e..02e777fb06 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -595,7 +595,7 @@ typedef struct rb_vm_struct {
unsigned int running: 1;
unsigned int thread_abort_on_exception: 1;
unsigned int thread_report_on_exception: 1;
- unsigned int safe_level_: 1;
+ unsigned int thread_ignore_deadlock: 1;
/* object management */
VALUE mark_object_ary;