diff options
author | Andreas Jaeger <aj@suse.de> | 2004-04-25 06:17:51 +0200 |
---|---|---|
committer | Andreas Jaeger <aj@gcc.gnu.org> | 2004-04-25 06:17:51 +0200 |
commit | ececf1b9193288e70953b7fa6378e6f4f801c5b1 (patch) | |
tree | 7f188e9aea803dcbaea2d3dc621a760e51ef5721 /boehm-gc | |
parent | 6eb91cc09360afe7adf795f3f768992ecfa3b77a (diff) | |
download | gcc-ececf1b9193288e70953b7fa6378e6f4f801c5b1.zip gcc-ececf1b9193288e70953b7fa6378e6f4f801c5b1.tar.gz gcc-ececf1b9193288e70953b7fa6378e6f4f801c5b1.tar.bz2 |
* mark.c (GC_mark_from): Use pointer as prefetch argument.
From-SVN: r81155
Diffstat (limited to 'boehm-gc')
-rw-r--r-- | boehm-gc/ChangeLog | 4 | ||||
-rw-r--r-- | boehm-gc/mark.c | 8 |
2 files changed, 8 insertions, 4 deletions
diff --git a/boehm-gc/ChangeLog b/boehm-gc/ChangeLog index 182fef1..8195dd2 100644 --- a/boehm-gc/ChangeLog +++ b/boehm-gc/ChangeLog @@ -1,3 +1,7 @@ +2004-04-25 Andreas Jaeger <aj@suse.de> + + * mark.c (GC_mark_from): Use pointer as prefetch argument. + 2004-04-06 H.J. Lu <hongjiu.lu@intel.com> * include/private/gcconfig.h (PREFETCH): Use __builtin_prefetch diff --git a/boehm-gc/mark.c b/boehm-gc/mark.c index ca94729..fffd62a 100644 --- a/boehm-gc/mark.c +++ b/boehm-gc/mark.c @@ -684,7 +684,7 @@ mse * mark_stack_limit; current = *current_p; FIXUP_POINTER(current); if ((ptr_t)current >= least_ha && (ptr_t)current < greatest_ha) { - PREFETCH(current); + PREFETCH((ptr_t)current); HC_PUSH_CONTENTS((ptr_t)current, mark_stack_top, mark_stack_limit, current_p, exit1); } @@ -760,7 +760,7 @@ mse * mark_stack_limit; FIXUP_POINTER(deferred); limit = (word *)((char *)limit - ALIGNMENT); if ((ptr_t)deferred >= least_ha && (ptr_t)deferred < greatest_ha) { - PREFETCH(deferred); + PREFETCH((ptr_t)deferred); break; } if (current_p > limit) goto next_object; @@ -770,7 +770,7 @@ mse * mark_stack_limit; FIXUP_POINTER(deferred); limit = (word *)((char *)limit - ALIGNMENT); if ((ptr_t)deferred >= least_ha && (ptr_t)deferred < greatest_ha) { - PREFETCH(deferred); + PREFETCH((ptr_t)deferred); break; } if (current_p > limit) goto next_object; @@ -787,7 +787,7 @@ mse * mark_stack_limit; if ((ptr_t)current >= least_ha && (ptr_t)current < greatest_ha) { /* Prefetch the contents of the object we just pushed. It's */ /* likely we will need them soon. */ - PREFETCH(current); + PREFETCH((ptr_t)current); HC_PUSH_CONTENTS((ptr_t)current, mark_stack_top, mark_stack_limit, current_p, exit2); } |