Permalink
Browse files

We always create a code resource as marked initially

This ensures that if we create a new code resource after the object
storing it is already marked, we don't clean it up accidentally.

This can result in the code resource to be kept alive one more GC cycle
in cases where it's immediately discarded, but this is an unlikely
scenario with code resource objects.
  • Loading branch information...
dbussink committed May 29, 2013
1 parent d6f16da commit c41e3a66ff476864e5996ca0a536e1644e745c66
Showing with 1 addition and 1 deletion.
  1. +1 −1 vm/gc/code_resource.hpp
View
@@ -12,7 +12,7 @@ namespace rubinius {
public:
CodeResource()
: mark_(false)
: mark_(true)
, detached_(false)
{}

0 comments on commit c41e3a6

Please sign in to comment.