diff options
author | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2023-03-15 19:48:27 +1300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-15 19:48:27 +1300 |
commit | 7fd53eeb46db261bbc20025cdab70096245a5cbe (patch) | |
tree | 49d8705a22f3c8e872469a950991bf1cbe65bfae /vm.c | |
parent | ce47ee00ae295b31dc023afb935a60ecc39a1f4b (diff) |
Remove SIGCHLD `waidpid`. (#7527)
* Remove `waitpid_lock` and related code.
* Remove un-necessary test.
* Remove `rb_thread_sleep_interruptible` dead code.
Notes
Notes:
Merged-By: ioquatix <samuel@codeotaku.com>
Diffstat (limited to 'vm.c')
-rw-r--r-- | vm.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -2877,7 +2877,6 @@ ruby_vm_destruct(rb_vm_t *vm) if (objspace) { rb_objspace_free(objspace); } - rb_native_mutex_destroy(&vm->waitpid_lock); rb_native_mutex_destroy(&vm->workqueue_lock); /* after freeing objspace, you *can't* use ruby_xfree() */ ruby_mimfree(vm); @@ -2887,7 +2886,6 @@ ruby_vm_destruct(rb_vm_t *vm) return 0; } -size_t rb_vm_memsize_waiting_list(struct ccan_list_head *waiting_list); // process.c size_t rb_vm_memsize_waiting_fds(struct ccan_list_head *waiting_fds); // thread.c size_t rb_vm_memsize_postponed_job_buffer(void); // vm_trace.c size_t rb_vm_memsize_workqueue(struct ccan_list_head *workqueue); // vm_trace.c @@ -2944,8 +2942,6 @@ vm_memsize(const void *ptr) return ( sizeof(rb_vm_t) + - rb_vm_memsize_waiting_list(&vm->waiting_pids) + - rb_vm_memsize_waiting_list(&vm->waiting_grps) + rb_vm_memsize_waiting_fds(&vm->waiting_fds) + rb_st_memsize(vm->loaded_features_index) + rb_st_memsize(vm->loading_table) + |