aboutsummaryrefslogtreecommitdiffstats
path: root/gc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/gc.c b/gc.c
index 8b6aab0fcb..c9dde3d557 100644
--- a/gc.c
+++ b/gc.c
@@ -482,13 +482,13 @@ rb_newobj_from_heap(void)
#if USE_VALUE_CACHE
static VALUE
-rb_fill_value_cache(yarv_thread_t *th)
+rb_fill_value_cache(rb_thead_t *th)
{
int i;
VALUE rv;
/* LOCK */
- for (i=0; i<YARV_VALUE_CACHE_SIZE; i++) {
+ for (i=0; i<RUBY_VM_VALUE_CACHE_SIZE; i++) {
VALUE v = rb_newobj_from_heap();
th->value_cache[i] = v;
@@ -505,7 +505,7 @@ VALUE
rb_newobj(void)
{
#if USE_VALUE_CACHE && 1
- yarv_thread_t *th = GET_THREAD();
+ rb_thead_t *th = GET_THREAD();
VALUE v = *th->value_cache_ptr;
if (v) {
@@ -562,7 +562,7 @@ static int grow_direction;
static int
stack_grow_direction(VALUE *addr)
{
- yarv_thread_t *th = GET_THREAD();
+ rb_thead_t *th = GET_THREAD();
SET_STACK_END;
if (STACK_END > addr) return grow_direction = 1;
@@ -582,7 +582,7 @@ stack_grow_direction(VALUE *addr)
int
ruby_stack_length(VALUE **p)
{
- yarv_thread_t *th = GET_THREAD();
+ rb_thead_t *th = GET_THREAD();
SET_STACK_END;
if (p) *p = STACK_UPPER(STACK_END, STACK_START, STACK_END);
return STACK_LENGTH;
@@ -592,7 +592,7 @@ int
ruby_stack_check(void)
{
int ret;
- yarv_thread_t *th = GET_THREAD();
+ rb_thead_t *th = GET_THREAD();
CHECK_STACK(ret);
return ret;
}
@@ -1337,7 +1337,7 @@ garbage_collect(void)
{
struct gc_list *list;
jmp_buf save_regs_gc_mark;
- yarv_thread_t *th = GET_THREAD();
+ rb_thead_t *th = GET_THREAD();
if (GC_NOTIFY) printf("start garbage_collect()\n");
@@ -1442,7 +1442,7 @@ garbage_collect(void)
}
void
-yarv_machine_stack_mark(yarv_thread_t *th)
+yarv_machine_stack_mark(rb_thead_t *th)
{
#if STACK_GROW_DIRECTION < 0
rb_gc_mark_locations(th->machine_stack_end, th->machine_stack_start);