[svn:parrot] r48483 - trunk/src/gc
chromatic at svn.parrot.org
chromatic at svn.parrot.org
Sat Aug 14 00:48:53 UTC 2010
Author: chromatic
Date: Sat Aug 14 00:48:53 2010
New Revision: 48483
URL: https://trac.parrot.org/parrot/changeset/48483
Log:
[GC] Made a GC callback function constant.
We effectively use it as a constant anyway, so let the optimizer have at it.
Modified:
trunk/src/gc/gc_private.h
trunk/src/gc/mark_sweep.c
Modified: trunk/src/gc/gc_private.h
==============================================================================
--- trunk/src/gc/gc_private.h Sat Aug 14 00:33:01 2010 (r48482)
+++ trunk/src/gc/gc_private.h Sat Aug 14 00:48:53 2010 (r48483)
@@ -341,7 +341,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: trunk/src/gc/mark_sweep.c
==============================================================================
--- trunk/src/gc/mark_sweep.c Sat Aug 14 00:33:01 2010 (r48482)
+++ trunk/src/gc/mark_sweep.c Sat Aug 14 00:48:53 2010 (r48483)
@@ -788,7 +788,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
@@ -830,7 +830,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