Skip to content

Commit d7999e9

Browse files
committedJun 9, 2015
Initialize FinalizeObject::kind to a known value.
This fixes the following valgrind error: ``` Conditional jump or move depends on uninitialised value(s) rubinius::FinalizerThread::queue_objects(rubinius::State*) (finalize.cpp:383) ```
1 parent f211606 commit d7999e9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎vm/gc/finalize.hpp

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ namespace rubinius {
3535
public:
3636
FinalizeObject()
3737
: object(NULL)
38+
, kind(eManaged)
3839
, status(eLive)
3940
, finalizer(0)
4041
, ruby_finalizer(0)

0 commit comments

Comments
 (0)