diff options
author | Jeremy Evans <code@jeremyevans.net> | 2020-10-28 15:27:00 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-28 15:27:00 -0700 |
commit | dfb3605bbee9c3cfbc1c354594c367472f29cb35 (patch) | |
tree | c45c7551fad0baeb053771468bd534b396bfd4bf /vm_core.h | |
parent | a99f52d5113a601b6d18bd671dfee24266689ffe (diff) |
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]
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3710
Merged-By: jeremyevans <code@jeremyevans.net>
Diffstat (limited to 'vm_core.h')
-rw-r--r-- | vm_core.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |