if we use malloc, get memory out of malloc instead of using stacks. This is in order to avoid growing stacks that never contract again.
This commit is contained in:
@@ -251,6 +251,7 @@ typedef struct CEXPENTRY {
|
||||
typedef struct intermediates {
|
||||
char *freep;
|
||||
char *freep0;
|
||||
struct mem_blk *blks;
|
||||
struct PSEUDO *cpc;
|
||||
struct PSEUDO *CodeStart;
|
||||
struct PSEUDO *icpc;
|
||||
@@ -323,6 +324,7 @@ void STD_PROTO(Yap_emit_3ops,(compiler_vm_op,CELL,CELL,CELL, struct intermediate
|
||||
void STD_PROTO(Yap_emit_4ops,(compiler_vm_op,CELL,CELL,CELL,CELL, struct intermediates *));
|
||||
CELL *STD_PROTO(Yap_emit_extra_size,(compiler_vm_op,CELL,int, struct intermediates *));
|
||||
char *STD_PROTO(Yap_AllocCMem,(int, struct intermediates *));
|
||||
void STD_PROTO(Yap_ReleaseCMem, (struct intermediates *));
|
||||
int STD_PROTO(Yap_is_a_test_pred,(Term, Term));
|
||||
void STD_PROTO(Yap_bip_name,(Int, char *));
|
||||
#ifdef DEBUG
|
||||
|
Reference in New Issue
Block a user