summaryrefslogtreecommitdiff
path: root/blacklst.c
diff options
context:
space:
mode:
authorhboehm <hboehm>2007-06-07 02:53:32 +0000
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 21:06:40 +0400
commit16509ab0ddba3346db6ad5ca44a0c9e2cbda31a3 (patch)
tree47210e56e470e96e6de9ea57da8899a1cb21ab3f /blacklst.c
parente8a9ac333a5cb33944ec8a4c9c2884c4980c8cd7 (diff)
downloadbdwgc-16509ab0ddba3346db6ad5ca44a0c9e2cbda31a3.tar.gz
2007-06-06 Hans Boehm <Hans.Boehm@hp.com>
* Makefile.am, Makefile.direct: Add NT_X64_STATIC_THREADS_MAKEFILE. * Makefile.in: Regenerate. * NT_X64_STATIC_THREADS_MAKEFILE: Fix warning flags. * allochblk.c, alloc.c, blacklst.c, dbg_malc.c, dyn_load.c, finalize.c, headers.c, mach_dep.c, malloc.c, mark.c, misc.c, obj_map.c, os_dep.c, ptr_chck.c, reclaim.c, typd_mlc.c, win32_threads.c, cord/de_win.c, include/gc_mark.h, include/private/gc_hdrs.h, include/private/gc_pmark.h, include/private/gc_priv.h, tests/test_cpp.cc: Replace old style function declarations. Clean up integral types. Remove register declarations. The change in malloc.c and the "int descr" declaration in mark.c are the most likely to have been real bugs outside of win64. * msvc_dbg.c: Disable on win64. * win32_threads.c: Add AMD64 support. * include/gc.h: no backtrace on AMD64 for now.
Diffstat (limited to 'blacklst.c')
-rw-r--r--blacklst.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/blacklst.c b/blacklst.c
index 9811fb11..afcad9c2 100644
--- a/blacklst.c
+++ b/blacklst.c
@@ -168,7 +168,7 @@ void GC_unpromote_black_lists(void)
{
if (!(GC_modws_valid_offsets[p & (sizeof(word)-1)])) return;
{
- register int index = PHT_HASH(p);
+ word index = PHT_HASH((word)p);
if (HDR(p) == 0 || get_pht_entry_from_index(GC_old_normal_bl, index)) {
# ifdef PRINT_BLACK_LIST
@@ -194,7 +194,7 @@ void GC_unpromote_black_lists(void)
void GC_add_to_black_list_stack(word p)
#endif
{
- register int index = PHT_HASH(p);
+ word index = PHT_HASH((word)p);
if (HDR(p) == 0 || get_pht_entry_from_index(GC_old_stack_bl, index)) {
# ifdef PRINT_BLACK_LIST
@@ -220,8 +220,8 @@ void GC_unpromote_black_lists(void)
*/
struct hblk * GC_is_black_listed(struct hblk *h, word len)
{
- register int index = PHT_HASH((word)h);
- register word i;
+ word index = PHT_HASH((word)h);
+ word i;
word nblocks = divHBLKSZ(len);
if (!GC_all_interior_pointers) {
@@ -259,7 +259,7 @@ word GC_number_stack_black_listed(struct hblk *start, struct hblk *endp1)
word result = 0;
for (h = start; h < endp1; h++) {
- register int index = PHT_HASH((word)h);
+ word index = PHT_HASH((word)h);
if (get_pht_entry_from_index(GC_old_stack_bl, index)) result++;
}