[pypy-commit] stmgc default: probably? quite unsure about this (see demo/demo_random)
arigo
noreply at buildbot.pypy.org
Sun Feb 15 15:40:02 CET 2015
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r1622:60f7ccae893c
Date: 2015-02-15 14:25 +0100
http://bitbucket.org/pypy/stmgc/changeset/60f7ccae893c/
Log: probably? quite unsure about this (see demo/demo_random)
diff --git a/c8/stm/gcpage.c b/c8/stm/gcpage.c
--- a/c8/stm/gcpage.c
+++ b/c8/stm/gcpage.c
@@ -96,12 +96,9 @@
object_t *_stm_allocate_old(ssize_t size_rounded_up)
{
- /* only for tests xxx but stm_setup_prebuilt() uses this now too */
+ /* this is for tests, and for stm_setup_prebuilt() */
stm_char *p = allocate_outside_nursery_large(size_rounded_up);
object_t *o = (object_t *)p;
-
- // sharing seg0 needs to be current:
- assert(STM_SEGMENT->segment_num == 0);
memset(REAL_ADDRESS(STM_SEGMENT->segment_base, o), 0, size_rounded_up);
o->stm_flags = GCFLAG_WRITE_BARRIER;
More information about the pypy-commit
mailing list