From: Phil Dawes Date: Fri, 4 Sep 2009 18:25:22 +0000 (+0100) Subject: Added data constructor to initialize bools in factorvmdata struct X-Git-Tag: 0.97~5502^2~2^2~11 X-Git-Url: https://gitweb.factorcode.org/gitweb.cgi?p=factor.git;a=commitdiff_plain;h=34ce33431784af6395f55264517cc06b54dc62a4 Added data constructor to initialize bools in factorvmdata struct --- diff --git a/vm/vm-data.hpp b/vm/vm-data.hpp index 701e35da9d..de5cf36632 100644 --- a/vm/vm-data.hpp +++ b/vm/vm-data.hpp @@ -100,6 +100,19 @@ struct factorvmdata { cell ic_to_pic_transitions; cell pic_to_mega_transitions; cell pic_counts[4]; /* PIC_TAG, PIC_HI_TAG, PIC_TUPLE, PIC_HI_TAG_TUPLE */ + + factorvmdata() + : profiling_p(false), + secure_gc(false), + gc_off(false), + performing_gc(false), + performing_compaction(false), + collecting_aging_again(false), + growing_data_heap(false), + fep_disabled(false), + full_output(false) + {} + }; } diff --git a/vm/vm.hpp b/vm/vm.hpp index efb0fa48e9..a199885f49 100644 --- a/vm/vm.hpp +++ b/vm/vm.hpp @@ -1,4 +1,4 @@ -#include "vm-data-dummy.hpp" +#include "vm-data.hpp" namespace factor {