Skip to content

Commit

Permalink
Initialize FinalizeObject::kind to a known value.
Browse files Browse the repository at this point in the history
This fixes the following valgrind error:
```
Conditional jump or move depends on uninitialised value(s)
rubinius::FinalizerThread::queue_objects(rubinius::State*) (finalize.cpp:383)
```
  • Loading branch information
jemc committed Jun 9, 2015
1 parent f211606 commit d7999e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vm/gc/finalize.hpp
Expand Up @@ -35,6 +35,7 @@ namespace rubinius {
public:
FinalizeObject()
: object(NULL)
, kind(eManaged)
, status(eLive)
, finalizer(0)
, ruby_finalizer(0)
Expand Down

0 comments on commit d7999e9

Please sign in to comment.