summaryrefslogtreecommitdiff
path: root/reclaim.c
diff options
context:
space:
mode:
authorhboehm <hboehm>2007-06-07 04:53:32 +0200
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 19:06:40 +0200
commit16509ab0ddba3346db6ad5ca44a0c9e2cbda31a3 (patch)
tree47210e56e470e96e6de9ea57da8899a1cb21ab3f /reclaim.c
parente8a9ac333a5cb33944ec8a4c9c2884c4980c8cd7 (diff)
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 'reclaim.c')
-rw-r--r--reclaim.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/reclaim.c b/reclaim.c
index b1ff6b7..cd50fa4 100644
--- a/reclaim.c
+++ b/reclaim.c
@@ -112,7 +112,7 @@ GC_bool GC_block_nearly_full(hdr *hhdr)
ptr_t GC_reclaim_clear(struct hblk *hbp, hdr *hhdr, size_t sz,
ptr_t list, signed_word *count)
{
- int bit_no = 0;
+ word bit_no = 0;
word *p, *q, *plim;
signed_word n_bytes_found = 0;
@@ -160,7 +160,7 @@ ptr_t GC_reclaim_clear(struct hblk *hbp, hdr *hhdr, size_t sz,
ptr_t GC_reclaim_uninit(struct hblk *hbp, hdr *hhdr, size_t sz,
ptr_t list, signed_word *count)
{
- int bit_no = 0;
+ word bit_no = 0;
word *p, *plim;
signed_word n_bytes_found = 0;
@@ -187,7 +187,7 @@ ptr_t GC_reclaim_uninit(struct hblk *hbp, hdr *hhdr, size_t sz,
/*ARGSUSED*/
void GC_reclaim_check(struct hblk *hbp, hdr *hhdr, word sz)
{
- int bit_no = 0;
+ word bit_no = 0;
ptr_t p, plim;
GC_ASSERT(sz == hhdr -> hb_sz);
@@ -400,7 +400,7 @@ int GC_n_set_marks(hdr *hhdr)
void GC_print_block_descr(struct hblk *h, word /* struct PrintStats */ raw_ps)
{
hdr * hhdr = HDR(h);
- unsigned bytes = hhdr -> hb_sz;
+ size_t bytes = hhdr -> hb_sz;
struct Print_stats *ps;
unsigned n_marks = GC_n_set_marks(hhdr);
@@ -478,7 +478,7 @@ void GC_clear_fl_links(void **flp)
*/
void GC_start_reclaim(GC_bool report_if_found)
{
- int kind;
+ unsigned kind;
# if defined(PARALLEL_MARK) || defined(THREAD_LOCAL_ALLOC)
GC_ASSERT(0 == GC_fl_builder_count);
@@ -566,7 +566,7 @@ void GC_continue_reclaim(size_t sz /* granules */, int kind)
GC_bool GC_reclaim_all(GC_stop_func stop_func, GC_bool ignore_old)
{
word sz;
- int kind;
+ unsigned kind;
hdr * hhdr;
struct hblk * hbp;
struct obj_kind * ok;