diff options
author | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2023-03-09 16:05:47 +1300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-09 16:05:47 +1300 |
commit | 1658e7d96696a656d9bd0a0c84c82cde86914ba2 (patch) | |
tree | 8557b08cb8650da57dc69457c6aab1918fb75c45 /vm.c | |
parent | ea8b5e7359cf88ce02f30d6ac4beb6e4cb6dcb78 (diff) |
Remove SIGCHLD `waidpid`. (#7476)
* 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
@@ -2885,7 +2885,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); @@ -2895,7 +2894,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 @@ -2952,8 +2950,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) + |