PERL_TRACK_MEMPOOL needs it to work without -DDEBUGGING.
Fixes for
0cb20dae370512c6 not addressed by 1f4d2d4e2e4bb7bb.
NORETURN_FUNCTION_END;
}
-#if defined (DEBUGGING) || defined(PERL_IMPLICIT_SYS)
+#if defined (DEBUGGING) || defined(PERL_IMPLICIT_SYS) || defined (PERL_TRACK_MEMPOOL)
# define ALWAYS_NEED_THX
#endif
Free_t
Perl_safesysfree(Malloc_t where)
{
-#if defined(DEBUGGING) && (defined(PERL_IMPLICIT_SYS) || defined(PERL_TRACK_MEMPOOL))
+#ifdef ALWAYS_NEED_THX
dTHX;
#else
dVAR;