Skip to content
Snippets Groups Projects
Commit 5ca20a87 authored by jdh8d's avatar jdh8d
Browse files

added delayed dealloc functionality

parent aaf09f2f
No related branches found
No related tags found
No related merge requests found
......@@ -245,9 +245,9 @@ int zipr_is_addr_ok(int ret, unsigned int to_check)
{
page_no++;
#ifdef DEBUG_ADD
print_str_debug("checking page=");
print_int_debug((int)page_no);
print_str_debug("\n");
print_str_debug("checking page=");
print_int_debug((int)page_no);
print_str_debug("\n");
#endif
int i;
for(i=0;i<al->pairs;i++)
......@@ -277,3 +277,19 @@ int zipr_is_addr_ok(int ret, unsigned int to_check)
cgc_terminate(199);
return 0;
}
int zipr_delayed_deallocate(unsigned int ret_pc, reg_values_t rv)
{
void *addr=rv.ebx;
unsigned int length=rv.ecx;
static void* old_addr=0;
static unsigned int old_length=0;
cgc_deallocate(old_addr,old_length);
old_addr=addr;
old_length=length;
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment