summaryrefslogtreecommitdiff
path: root/os_dep.c
diff options
context:
space:
mode:
authorivmai <ivmai>2009-09-30 09:13:05 +0000
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 21:06:48 +0400
commit8e066c3bccd6d83f82d79e976ae0f36df3812e6d (patch)
tree5d54fc4630c2355828728e54ba1cbd00d9737f3b /os_dep.c
parent6d651f61d1690ffae0528830151159f21d27de26 (diff)
downloadbdwgc-8e066c3bccd6d83f82d79e976ae0f36df3812e6d.tar.gz
2009-09-30 Ivan Maidanski <ivmai@mail.ru> (really Hans Boehm)
* os_dep.c (PROTECT, UNPROTECT): Use distinct ABORT messages.
Diffstat (limited to 'os_dep.c')
-rw-r--r--os_dep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/os_dep.c b/os_dep.c
index c38aa61f..56e901fc 100644
--- a/os_dep.c
+++ b/os_dep.c
@@ -2598,12 +2598,12 @@ void GC_remove_protection(struct hblk *h, word nblocks, GC_bool is_ptrfree)
# define PROTECT(addr,len) \
if(vm_protect(GC_task_self,(vm_address_t)(addr),(vm_size_t)(len), \
FALSE,VM_PROT_READ) != KERN_SUCCESS) { \
- ABORT("vm_portect failed"); \
+ ABORT("vm_protect (PROTECT) failed"); \
}
# define UNPROTECT(addr,len) \
if(vm_protect(GC_task_self,(vm_address_t)(addr),(vm_size_t)(len), \
FALSE,VM_PROT_READ|VM_PROT_WRITE) != KERN_SUCCESS) { \
- ABORT("vm_portect failed"); \
+ ABORT("vm_protect (UNPROTECT) failed"); \
}
# else