| Jeroen Demeyer on Wed, 20 Jan 2016 10:33:01 +0100 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
| Re: Use DEBUGMEM>1 for all garbage collection warnings |
Same patch in "format-patch" format.
>From 08259fe3dbc2dbd1a4cd8801133b042b05e70365 Mon Sep 17 00:00:00 2001
From: Jeroen Demeyer <jdemeyer@cage.ugent.be>
Date: Wed, 20 Jan 2016 09:58:19 +0100
Subject: [PATCH 1/2] Use DEBUGMEM>1 for all garbage collection warnings
---
src/basemath/hnf_snf.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/basemath/hnf_snf.c b/src/basemath/hnf_snf.c
index 8f0e346..4f2e3cb 100644
--- a/src/basemath/hnf_snf.c
+++ b/src/basemath/hnf_snf.c
@@ -1352,7 +1352,7 @@ ZM_hnfcenter(GEN M)
for (i = 1; i <= j; i++) gel(Mk,i) = subii(gel(Mk,i), mulii(q,gel(Mj,i)));
if (gc_needed(av,1))
{
- if (DEBUGMEM) pari_warn(warnmem,"ZM_hnfcenter, j = %ld",j);
+ if (DEBUGMEM>1) pari_warn(warnmem,"ZM_hnfcenter, j = %ld",j);
M = gerepilecopy(av, M);
}
}
@@ -1533,7 +1533,7 @@ ZM_hnflll(GEN A, GEN *ptB, int remove)
if (gc_needed(av,3))
{
GEN b = D-1;
- if (DEBUGMEM) pari_warn(warnmem,"hnflll (reducing), kmax = %ld",kmax);
+ if (DEBUGMEM>1) pari_warn(warnmem,"hnflll (reducing), kmax = %ld",kmax);
gerepileall(av, B? 4: 3, &A, &lambda, &b, &B);
D = b+1;
}
@@ -1543,7 +1543,7 @@ ZM_hnflll(GEN A, GEN *ptB, int remove)
if (gc_needed(av,3))
{
GEN b = D-1;
- if (DEBUGMEM) pari_warn(warnmem,"hnflll, kmax = %ld / %ld",kmax,n-1);
+ if (DEBUGMEM>1) pari_warn(warnmem,"hnflll, kmax = %ld / %ld",kmax,n-1);
gerepileall(av, B? 4: 3, &A, &lambda, &b, &B);
D = b+1;
}
--
2.0.5