[pypy-commit] stmgc copy-over-original2: Expand the explanation

arigo noreply at buildbot.pypy.org
Wed Jul 24 16:56:30 CEST 2013


Author: Armin Rigo <arigo at tunes.org>
Branch: copy-over-original2
Changeset: r431:23fd1341aaed
Date: 2013-07-24 16:56 +0200
http://bitbucket.org/pypy/stmgc/changeset/23fd1341aaed/

Log:	Expand the explanation

diff --git a/c4/demo_random.c b/c4/demo_random.c
--- a/c4/demo_random.c
+++ b/c4/demo_random.c
@@ -727,11 +727,12 @@
 {
     int i, status;
     
-    // seed changes daily
-    // a bit pointless for now..
+    /* pick a random seed from the time in seconds.
+       A bit pointless for now... because the interleaving of the
+       threads is really random. */
     default_seed = time(NULL);
-    default_seed -= (default_seed % (3600 * 24));
-    
+    printf("running with seed=%lld\n", (long long)default_seed);
+
     for (i = 0; i < SHARED_ROOTS; i++) {
         if (i % 3 == 0) {
             shared_roots[i] = allocate_pseudoprebuilt_with_hash(


More information about the pypy-commit mailing list