Author: Armin Rigo <ar...@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;
 
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to