Skip to content

Commit

Permalink
Properly assign rio_stream GC root.
Browse files Browse the repository at this point in the history
  • Loading branch information
brixen committed Mar 19, 2016
1 parent 23c9735 commit bcb42d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion machine/builtin/io.cpp
Expand Up @@ -596,7 +596,8 @@ namespace rubinius {
}

void RIOStream::bootstrap(STATE) {
GO(io).set(state->memory()->new_class<Class>(state, G(rubinius), "RIOStream"));
GO(rio_stream).set(state->memory()->new_class<Class, RIOStream>(
state, G(rubinius), "RIOStream"));
}

Object* RIOStream::close(STATE, Object* io, Object* allow_exception) {
Expand Down
3 changes: 1 addition & 2 deletions machine/globals.hpp
Expand Up @@ -56,7 +56,7 @@ namespace rubinius {
memory::TypedRoot<Class*> floatpoint, nmc, list, list_node;
memory::TypedRoot<Class*> channel, thread, thread_state, constantscope;
memory::TypedRoot<Class*> constant_table, lookup_table;
memory::TypedRoot<Class*> iseq, executable, native_function, iobuffer;
memory::TypedRoot<Class*> iseq, executable, native_function;
memory::TypedRoot<Class*> select, fdset, rio_stream;
memory::TypedRoot<Class*> included_module;

Expand Down Expand Up @@ -177,7 +177,6 @@ namespace rubinius {
iseq(&roots),
executable(&roots),
native_function(&roots),
iobuffer(&roots),
select(&roots),
fdset(&roots),
rio_stream(&roots),
Expand Down

0 comments on commit bcb42d3

Please sign in to comment.