diff options
Diffstat (limited to 'vm.c')
| -rw-r--r-- | vm.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -2634,12 +2634,12 @@ rb_vm_each_stack_value(void *ptr, void (*cb)(VALUE, void*), void *ctx) if (ptr) { rb_vm_t *vm = ptr; rb_ractor_t *r = 0; - list_for_each(&vm->ractor.set, r, vmlr_node) { + ccan_list_for_each(&vm->ractor.set, r, vmlr_node) { VM_ASSERT(rb_ractor_status_p(r, ractor_blocking) || rb_ractor_status_p(r, ractor_running)); if (r->threads.cnt > 0) { rb_thread_t *th = 0; - list_for_each(&r->threads.set, th, lt_node) { + ccan_list_for_each(&r->threads.set, th, lt_node) { VM_ASSERT(th != NULL); rb_execution_context_t * ec = th->ec; if (ec->vm_stack) { @@ -2676,7 +2676,7 @@ rb_vm_mark(void *ptr) long i, len; const VALUE *obj_ary; - list_for_each(&vm->ractor.set, r, vmlr_node) { + ccan_list_for_each(&vm->ractor.set, r, vmlr_node) { // ractor.set only contains blocking or running ractors VM_ASSERT(rb_ractor_status_p(r, ractor_blocking) || rb_ractor_status_p(r, ractor_running)); @@ -2808,10 +2808,10 @@ ruby_vm_destruct(rb_vm_t *vm) return 0; } -size_t rb_vm_memsize_waiting_list(struct list_head *waiting_list); // process.c -size_t rb_vm_memsize_waiting_fds(struct list_head *waiting_fds); // thread.c +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 list_head *workqueue); // vm_trace.c +size_t rb_vm_memsize_workqueue(struct ccan_list_head *workqueue); // vm_trace.c // Used for VM memsize reporting. Returns the size of the at_exit list by // looping through the linked list and adding up the size of the structs. @@ -2862,7 +2862,7 @@ vm_memsize(const void *ptr) ); // TODO - // struct { struct list_head set; } ractor; + // struct { struct ccan_list_head set; } ractor; // void *main_altstack; #ifdef USE_SIGALTSTACK // struct rb_objspace *objspace; } |
