[m-rev.] diff: disable code which mentions redzone and handler if they aren't defined
Peter Ross
pro at missioncriticalit.com
Tue Oct 19 06:54:58 AEST 2004
Hi,
===================================================================
Estimated hours taken: 0.25
Branches: main
runtime/mercury_memory_handlers.c:
Disable code that accesses the fields redzone and handler when they
don't exist.
Index: runtime/mercury_memory_handlers.c
===================================================================
RCS file: /home/mercury1/repository/mercury/runtime/mercury_memory_handlers.c,v
retrieving revision 1.27
diff -u -r1.27 mercury_memory_handlers.c
--- runtime/mercury_memory_handlers.c 21 Aug 2002 11:27:43 -0000 1.27
+++ runtime/mercury_memory_handlers.c 18 Oct 2004 20:49:09 -0000
@@ -136,6 +136,7 @@
}
while(zone != NULL) {
+ #ifdef MR_CHECK_OVERFLOW_VIA_MPROTECT
if (MR_memdebug) {
fprintf(stderr, "checking %s#%d: %p - %p\n",
zone->name, zone->id, (void *) zone->redzone,
@@ -151,6 +152,7 @@
return zone->handler(fault_addr, zone, context);
}
+ #endif
zone = zone->next;
}
--
Software Engineer (Work) +32 2 757 10 15
Mission Critical (Mobile) +32 485 482 559
--------------------------------------------------------------------------
mercury-reviews mailing list
post: mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the reviews
mailing list