summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-05-17 04:20:33 (GMT)
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-05-17 04:20:33 (GMT)
commit5a1dfb04bc2b09fcf8f3427cac72d0ce52a45eb2 (patch)
tree7728caca8ae7edcfce5485dff764336143349f9b /vm_core.h
parentb86daec2027c615d7a4802215a3c3bd12a252df7 (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.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/vm_core.h b/vm_core.h
index 626b82e..e7fc515 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;