From d9984f39d32f4cd692a35f4d803f7754ea262805 Mon Sep 17 00:00:00 2001 From: Koichi Sasada Date: Tue, 24 May 2022 02:56:59 +0900 Subject: remove `NON_SCALAR_THREAD_ID` support `NON_SCALAR_THREAD_ID` shows `pthread_t` is non-scalar (non-pointer) and only s390x is known platform. However, the supporting code is very complex and it is only used for deubg print information. So this patch removes the support of `NON_SCALAR_THREAD_ID` and make the code simple. --- vm.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'vm.c') diff --git a/vm.c b/vm.c index 3b478d848a..76041b0b91 100644 --- a/vm.c +++ b/vm.c @@ -3275,10 +3275,6 @@ th_init(rb_thread_t *th, VALUE self, rb_vm_t *vm) th->top_self = vm->top_self; // 0 while self == 0 th->value = Qundef; -#if defined(NON_SCALAR_THREAD_ID) && !defined(__wasm__) && !defined(__EMSCRIPTEN__) - th->nt->thread_id_string[0] = '\0'; -#endif - th->ec->errinfo = Qnil; th->ec->root_svar = Qfalse; th->ec->local_storage_recursive_hash = Qnil; -- cgit v1.2.3