aboutsummaryrefslogtreecommitdiffstats
path: root/vm_core.h
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-05-17 04:20:33 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-05-17 04:20:33 +0000
commit166eeaa880e0d1dc2b4292806ae733ce1f77ee57 (patch)
tree7728caca8ae7edcfce5485dff764336143349f9b /vm_core.h
parent694ecd92f94af202d92498e3cbbf41f8e0a563c1 (diff)
downloadruby-166eeaa880e0d1dc2b4292806ae733ce1f77ee57.tar.gz
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
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h3
1 files changed, 1 insertions, 2 deletions
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;