make gc work outside debugging
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@28 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
parent
581fce5ee1
commit
e98f8d7106
@ -2550,8 +2550,8 @@ compaction_phase(tr_fr_ptr old_TR, CELL *current_env, yamop *curp, CELL *max)
|
|||||||
YP_fprintf(YP_stderr,"[GC] Oops on iptop-H (%d) vs %d\n", iptop-(CELL_PTR *)H, total_marked);
|
YP_fprintf(YP_stderr,"[GC] Oops on iptop-H (%d) vs %d\n", iptop-(CELL_PTR *)H, total_marked);
|
||||||
#endif
|
#endif
|
||||||
if (iptop < (CELL_PTR *)ASP-1024 && 10*total_marked < H-H0) {
|
if (iptop < (CELL_PTR *)ASP-1024 && 10*total_marked < H-H0) {
|
||||||
#ifdef DEBUG_IN
|
|
||||||
int effectiveness = (((H-H0)-total_marked)*100)/(H-H0);
|
int effectiveness = (((H-H0)-total_marked)*100)/(H-H0);
|
||||||
|
#ifdef DEBUG
|
||||||
fprintf(stderr,"using pointers (%d)\n", effectiveness);
|
fprintf(stderr,"using pointers (%d)\n", effectiveness);
|
||||||
#endif
|
#endif
|
||||||
quicksort((CELL_PTR *)H, 0, (iptop-(CELL_PTR *)H)-1);
|
quicksort((CELL_PTR *)H, 0, (iptop-(CELL_PTR *)H)-1);
|
||||||
|
Reference in New Issue
Block a user