From 7ff2233608f1f110e112ae576fa829618ce181ae Mon Sep 17 00:00:00 2001 From: Stas Boukarev Date: Tue, 1 Oct 2013 02:27:23 +0400 Subject: [PATCH] Fix is_linkage_table_addr in win32-os.c The aptly misnamed function in_range_p doesn't actually take START and END of the range as arguments, but START and SIZE. change in_range_p(addr, LINKAGE_TABLE_SPACE_START, LINKAGE_TABLE_SPACE_END) to in_range_p(addr, LINKAGE_TABLE_SPACE_START, LINKAGE_TABLE_SPACE_SIZE) --- src/runtime/win32-os.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/win32-os.c b/src/runtime/win32-os.c index 1d5d590..d0df136 100644 --- a/src/runtime/win32-os.c +++ b/src/runtime/win32-os.c @@ -997,7 +997,7 @@ in_range_p(os_vm_address_t a, lispobj sbeg, size_t slen) boolean is_linkage_table_addr(os_vm_address_t addr) { - return in_range_p(addr, LINKAGE_TABLE_SPACE_START, LINKAGE_TABLE_SPACE_END); + return in_range_p(addr, LINKAGE_TABLE_SPACE_START, LINKAGE_TABLE_SPACE_SIZE); } static boolean is_some_thread_local_addr(os_vm_address_t addr); -- 1.7.10.4