Author: Nicolas Truessel <[email protected]>
Branch: quad-color-gc
Changeset: r91614:ef5bd5ed6279
Date: 2017-06-16 15:11 +0200
http://bitbucket.org/pypy/pypy/changeset/ef5bd5ed6279/

Log:    Update QCGC

diff --git a/rpython/translator/c/src/qcgc/qcgc.c 
b/rpython/translator/c/src/qcgc/qcgc.c
--- a/rpython/translator/c/src/qcgc/qcgc.c
+++ b/rpython/translator/c/src/qcgc/qcgc.c
@@ -88,8 +88,8 @@
                }
        }
 
-       // FIXME: alligned_alloc requires size to be a multiple of the alignment
-       object_t *result = aligned_alloc(QCGC_ARENA_SIZE, size);
+       size_t rounded_size = (size + QCGC_ARENA_SIZE - 1) & ~(QCGC_ARENA_SIZE 
- 1);
+       object_t *result = aligned_alloc(QCGC_ARENA_SIZE, rounded_size);
 #if QCGC_INIT_ZERO
        memset(result, 0, size);
 #endif
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to