summaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-08 19:38:22 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-08 19:38:22 +0000
commit27f9e70795e500cb934395bf17446533b8e41f76 (patch)
tree4285553eb99c6d3097a8a009ef12b93d22cbc285 /proc.c
parent66d09c6d12109df49e7855207094555ec01345fb (diff)
vm_core.h (rb_env_t): use flexible array
* vm_core.h (rb_env_t): use flexible array This reduces allocations and speeds up the lambda calculus fizzbuzz (bm_app_lc_fizzbuzz.rb) benchmark [ruby-core:64858] * proc.c (get_local_variable_ptr): deconst to adjust for flex array * vm.c (env_mark, env_free, env_memsize): remove check for env->env * vm.c (env_alloc): single allocation for flex array * vm.c (vm_make_env_each): adjust env_alloc call git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proc.c b/proc.c
index a98bc4b471..63e2319114 100644
--- a/proc.c
+++ b/proc.c
@@ -401,7 +401,7 @@ bind_eval(int argc, VALUE *argv, VALUE bindval)
static VALUE *
get_local_variable_ptr(VALUE envval, ID lid)
{
- const rb_env_t *env;
+ rb_env_t *env;
do {
const rb_iseq_t *iseq;