diff --git a/src/coreclr/gc/gc.h b/src/coreclr/gc/gc.h index e80853489a2410..a1586ce8f687f2 100644 --- a/src/coreclr/gc/gc.h +++ b/src/coreclr/gc/gc.h @@ -139,10 +139,6 @@ extern size_t gc_global_mechanisms[MAX_GLOBAL_GC_MECHANISMS_COUNT]; class DacHeapWalker; #endif -#ifdef _DEBUG -#define _LOGALLOC -#endif - #define MP_LOCKS #ifdef FEATURE_MANUALLY_MANAGED_CARD_BUNDLES diff --git a/src/coreclr/inc/log.h b/src/coreclr/inc/log.h index 31919219c8d0d2..3f608cee9e7db0 100644 --- a/src/coreclr/inc/log.h +++ b/src/coreclr/inc/log.h @@ -47,6 +47,10 @@ enum { #define ERROR 0 #define FATALERROR 0 +#ifdef _DEBUG +#define _LOGALLOC +#endif + #ifndef LOGGING #define LOG(x)