[pypy-commit] stmgc card-marking: Expose this value 100 too
arigo
noreply at buildbot.pypy.org
Tue Jul 1 10:45:34 CEST 2014
Author: Armin Rigo <arigo at tunes.org>
Branch: card-marking
Changeset: r1267:e1df81263680
Date: 2014-06-30 17:57 +0200
http://bitbucket.org/pypy/stmgc/changeset/e1df81263680/
Log: Expose this value 100 too
diff --git a/c7/stm/core.h b/c7/stm/core.h
--- a/c7/stm/core.h
+++ b/c7/stm/core.h
@@ -225,10 +225,10 @@
static uint8_t write_locks[WRITELOCK_END - WRITELOCK_START];
enum /* card values for write_locks */ {
- CARD_CLEAR = 0, /* card not used at all */
- CARD_MARKED = 100, /* card marked for tracing in the next gc */
- CARD_MARKED_OLD = 101, /* card was marked before, but cleared
- in a GC */
+ CARD_CLEAR = 0, /* card not used at all */
+ CARD_MARKED = _STM_CARD_MARKED, /* card marked for tracing in the next gc */
+ CARD_MARKED_OLD = 101, /* card was marked before, but cleared
+ in a GC */
};
diff --git a/c7/stmgc.h b/c7/stmgc.h
--- a/c7/stmgc.h
+++ b/c7/stmgc.h
@@ -110,6 +110,7 @@
void _stm_write_slowpath_card(object_t *, uintptr_t);
char _stm_write_slowpath_card_extra(object_t *);
char *_stm_write_slowpath_card_extra_base(void);
+#define _STM_CARD_MARKED 100
object_t *_stm_allocate_slowpath(ssize_t);
object_t *_stm_allocate_external(ssize_t);
void _stm_become_inevitable(const char*);
More information about the pypy-commit
mailing list