summaryrefslogtreecommitdiff
path: root/iseq.c
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2019-12-09 13:49:24 +0900
committerYusuke Endoh <mame@ruby-lang.org>2019-12-09 13:49:24 +0900
commit3cdb37d9db9b7776f6adf96c70eacc39773718b4 (patch)
tree69405deb275df8e8f48a1b4d3d218293204decbe /iseq.c
parent39c7230a7a7a039639d2cb3587c054554a1beb18 (diff)
Revert "vm_args.c (rb_warn_check): Use iseq_unique_id instead of its pointer"
This reverts commit 036bc1da6c6c9b0fa9b7f5968d897a9554dd770e. This caused a failure on iseq_binary mode. http://ci.rvm.jp/results/trunk-iseq_binary@silicon-docker/2474587 Numbering iseqs is not trivial due to dump/load.
Diffstat (limited to 'iseq.c')
-rw-r--r--iseq.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/iseq.c b/iseq.c
index b3c7ad53d3..7fbb906525 100644
--- a/iseq.c
+++ b/iseq.c
@@ -427,14 +427,11 @@ rb_iseq_memsize(const rb_iseq_t *iseq)
return size;
}
-static unsigned long fresh_iseq_unique_id = 0; /* -- Remove In 3.0 -- */
-
static rb_iseq_t *
iseq_alloc(void)
{
rb_iseq_t *iseq = iseq_imemo_alloc();
iseq->body = ZALLOC(struct rb_iseq_constant_body);
- iseq->body->iseq_unique_id = fresh_iseq_unique_id++; /* -- Remove In 3.0 -- */
return iseq;
}