diff options
author | Koichi Sasada <ko1@atdot.net> | 2023-03-31 03:52:58 +0900 |
---|---|---|
committer | Koichi Sasada <ko1@atdot.net> | 2023-03-31 11:28:18 +0900 |
commit | 2093e4c2db1e19991e601bf5191eddb4652de35d (patch) | |
tree | 486cb12704655596fdec0227a37450da23d8b5f4 /vm.c | |
parent | 83667008b925c32b3ab70fb6ec70f7398e960d1e (diff) | |
download | ruby-2093e4c2db1e19991e601bf5191eddb4652de35d.tar.gz |
`nt->serial` for `RUBY_DEBUG_LOG`
Show native thread's serial on `RUBY_DEBUG_LOG`.
`nt->serial` is also stored into `ruby_nt_serial` if the compiler
supports `RB_THREAD_LOCAL_SPECIFIER`.
Diffstat (limited to 'vm.c')
-rw-r--r-- | vm.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -440,6 +440,9 @@ bool ruby_vm_keep_script_lines; #ifdef RB_THREAD_LOCAL_SPECIFIER RB_THREAD_LOCAL_SPECIFIER rb_execution_context_t *ruby_current_ec; +#ifdef RUBY_NT_SERIAL +RB_THREAD_LOCAL_SPECIFIER rb_atomic_t ruby_nt_serial; +#endif #ifdef __APPLE__ rb_execution_context_t * |