From 5a1dfb04bc2b09fcf8f3427cac72d0ce52a45eb2 Mon Sep 17 00:00:00 2001 From: normal Date: Thu, 17 May 2018 04:20:33 +0000 Subject: vm_trace: implement postponed_jobs as st_table st_table allows the use of st_shift to act as an order-preserving queue while allowing fast lookups to prevent duplicate jobs. In typical Ruby apps, this table will only have one entry for gc_finalize_deferred_register. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_core.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'vm_core.h') diff --git a/vm_core.h b/vm_core.h index 626b82ee1b..e7fc515680 100644 --- a/vm_core.h +++ b/vm_core.h @@ -591,8 +591,7 @@ typedef struct rb_vm_struct { struct st_table *ensure_rollback_table; /* postponed_job */ - struct rb_postponed_job_struct *postponed_job_buffer; - int postponed_job_index; + struct st_table *postponed_jobs; int src_encoding_index; -- cgit v1.2.3