X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fsgen%2Fsgen-conf.h;h=47173bc29c959a8bd3ed8f1fc52c2d256959092f;hb=a7c9e39f0f58a1dcd41475f5623f301f14e31da7;hp=53e962c2b702e7ea8a893dc940ea8d42d227b967;hpb=cfa6ff88d1d55bb54aa6cb25a26dbabe00e9db83;p=mono.git diff --git a/mono/sgen/sgen-conf.h b/mono/sgen/sgen-conf.h index 53e962c2b70..47173bc29c9 100644 --- a/mono/sgen/sgen-conf.h +++ b/mono/sgen/sgen-conf.h @@ -104,6 +104,20 @@ typedef mword SgenDescriptor; #endif #endif +#if defined (HOST_WASM) +#define DEFAULT_MAJOR SGEN_MAJOR_SERIAL +#define DEFAULT_SWEEP_MODE SGEN_SWEEP_SERIAL +#elif defined(HAVE_CONC_GC_AS_DEFAULT) +/* Use concurrent major on deskstop platforms */ +#define DEFAULT_MAJOR SGEN_MAJOR_CONCURRENT +#define DEFAULT_SWEEP_MODE SGEN_SWEEP_CONCURRENT +#else +#define DEFAULT_MAJOR SGEN_MAJOR_SERIAL +#define DEFAULT_SWEEP_MODE SGEN_SWEEP_CONCURRENT +#endif + + + /* * Maximum level of debug to enable on this build. * Making this a constant enables us to put logging in a lot of places and