Remove memory statistics for interrupt safety

Reading the memory statistics requires a call to fopen, which uses the
async-signal-unsafe function malloc. For this reason, interrupting
Madagascar could lead to a crash when coinciding with allocations.

Removing the memory statistics doesn’t do much harm, as this can still
be read from an outside program such as the benchmark runner.
master
Patrick Lühne 5 years ago
parent 6c25431873
commit 62ec122116
No known key found for this signature in database
GPG Key ID: 5F3611E97A70ABF
  1. 2
      Makefile
  2. 2
      main.c

@ -11,7 +11,7 @@ EXECUTABLE=Mp
#EXECUTABLE=M
#ARCH=-m32
INSTRUMENT = #-g -ggdb -pg
INSTRUMENT = -g -ggdb -pg
CONFIGURATION= -DLBD -DREPRTHREE -DWEIGHTS #-DFUIP #-DMULTICORE #-DSPREAD -DCOSTS -DCFMA -DCP3

@ -215,8 +215,6 @@ void printStatistics()
time2real(time10ms() - TIMEstart),
time2real(TIMEpreprocess - TIMEstart));
givememorystatistics();
printf("maxLearnedClauseLength: %i\n",stats_longest_learned);
if (numberOfGroundActionsAfterParsing > -1)

Loading…
Cancel
Save