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.
This commit is contained in:
parent
6c25431873
commit
62ec122116
2
Makefile
2
Makefile
@ -11,7 +11,7 @@ EXECUTABLE=Mp
|
|||||||
#EXECUTABLE=M
|
#EXECUTABLE=M
|
||||||
#ARCH=-m32
|
#ARCH=-m32
|
||||||
|
|
||||||
INSTRUMENT = #-g -ggdb -pg
|
INSTRUMENT = -g -ggdb -pg
|
||||||
|
|
||||||
CONFIGURATION= -DLBD -DREPRTHREE -DWEIGHTS #-DFUIP #-DMULTICORE #-DSPREAD -DCOSTS -DCFMA -DCP3
|
CONFIGURATION= -DLBD -DREPRTHREE -DWEIGHTS #-DFUIP #-DMULTICORE #-DSPREAD -DCOSTS -DCFMA -DCP3
|
||||||
|
|
||||||
|
2
main.c
2
main.c
@ -215,8 +215,6 @@ void printStatistics()
|
|||||||
time2real(time10ms() - TIMEstart),
|
time2real(time10ms() - TIMEstart),
|
||||||
time2real(TIMEpreprocess - TIMEstart));
|
time2real(TIMEpreprocess - TIMEstart));
|
||||||
|
|
||||||
givememorystatistics();
|
|
||||||
|
|
||||||
printf("maxLearnedClauseLength: %i\n",stats_longest_learned);
|
printf("maxLearnedClauseLength: %i\n",stats_longest_learned);
|
||||||
|
|
||||||
if (numberOfGroundActionsAfterParsing > -1)
|
if (numberOfGroundActionsAfterParsing > -1)
|
||||||
|
Loading…
Reference in New Issue
Block a user