diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-05-17 04:20:33 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-05-17 04:20:33 +0000 |
commit | 5a1dfb04bc2b09fcf8f3427cac72d0ce52a45eb2 (patch) | |
tree | 7728caca8ae7edcfce5485dff764336143349f9b /vm_core.h | |
parent | b86daec2027c615d7a4802215a3c3bd12a252df7 (diff) |
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.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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; |