[svn:parrot] r48479 - branches/gc_threshold_tuning/src/gc
chromatic at svn.parrot.org
chromatic at svn.parrot.org
Sat Aug 14 00:32:52 UTC 2010
Author: chromatic
Date: Sat Aug 14 00:32:52 2010
New Revision: 48479
URL: https://trac.parrot.org/parrot/changeset/48479
Log:
[GC] Made a GC callback function constant.
We effectively use it as a constant anyway, so let the optimizer have at it.
Modified:
branches/gc_threshold_tuning/src/gc/gc_private.h
branches/gc_threshold_tuning/src/gc/mark_sweep.c
Modified: branches/gc_threshold_tuning/src/gc/gc_private.h
==============================================================================
--- branches/gc_threshold_tuning/src/gc/gc_private.h Sat Aug 14 00:32:49 2010 (r48478)
+++ branches/gc_threshold_tuning/src/gc/gc_private.h Sat Aug 14 00:32:52 2010 (r48479)
@@ -347,7 +347,7 @@
ARGMOD(Memory_Pools *mem_pools),
int flag,
ARGIN_NULLOK(void *arg),
- NOTNULL(pool_iter_fn func))
+ NOTNULL(const pool_iter_fn func))
__attribute__nonnull__(1)
__attribute__nonnull__(2)
__attribute__nonnull__(5)
Modified: branches/gc_threshold_tuning/src/gc/mark_sweep.c
==============================================================================
--- branches/gc_threshold_tuning/src/gc/mark_sweep.c Sat Aug 14 00:32:49 2010 (r48478)
+++ branches/gc_threshold_tuning/src/gc/mark_sweep.c Sat Aug 14 00:32:52 2010 (r48479)
@@ -793,7 +793,7 @@
/*
=item C<int header_pools_iterate_callback(PARROT_INTERP, Memory_Pools
-*mem_pools, int flag, void *arg, pool_iter_fn func)>
+*mem_pools, int flag, void *arg, const pool_iter_fn func)>
Iterates through header pools, invoking the given callback function on each
pool in the list matching the given criteria. Determines which pools to iterate
@@ -835,7 +835,7 @@
header_pools_iterate_callback(PARROT_INTERP,
ARGMOD(Memory_Pools *mem_pools),
int flag, ARGIN_NULLOK(void *arg),
- NOTNULL(pool_iter_fn func))
+ NOTNULL(const pool_iter_fn func))
{
ASSERT_ARGS(header_pools_iterate_callback)
More information about the parrot-commits
mailing list