Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r890:24a6732aec1d Date: 2014-02-27 12:25 +0100 http://bitbucket.org/pypy/stmgc/changeset/24a6732aec1d/
Log: comment fixes diff --git a/c7/stm/gcpage.h b/c7/stm/gcpage.h --- a/c7/stm/gcpage.h +++ b/c7/stm/gcpage.h @@ -3,12 +3,11 @@ complete pages, one at a time, which uniformly contain objects of size "8 * N" for some N in range(2, GC_N_SMALL_REQUESTS). We are taking from the lowest addresses "large" objects, which are at least - 128 bytes long, allocated by largemalloc.c. The limit was picked - from a run a PyPy, showing that (in this case) the number of - allocations of at least 128 bytes is a lot below 1%. + 288 bytes long, allocated by largemalloc.c. The limit is the same + as used in PyPy's default GC. */ -#define GC_N_SMALL_REQUESTS 16 +#define GC_N_SMALL_REQUESTS 36 static char *uninitialized_page_start; /* within segment 0 */ diff --git a/c7/stm/largemalloc.c b/c7/stm/largemalloc.c --- a/c7/stm/largemalloc.c +++ b/c7/stm/largemalloc.c @@ -36,9 +36,9 @@ /* The chunk has a total size of 'size'. It is immediately followed in memory by another chunk. This list ends with the last "chunk" - being actually only one word long, 'size_t prev_size'. Both this - last chunk and the theoretical chunk before the first one are - considered "not free". */ + being actually only two words long, with END_MARKER as 'size'. + Both this last chunk and the theoretical chunk before the first + one are considered "not free". */ } mchunk_t; #define FLAG_SORTED 1 @@ -64,7 +64,7 @@ /* The free chunks are stored in "bins". Each bin is a doubly-linked list of chunks. There are 84 bins, with largebin_index() giving the - correspondence between sizes are bin indices. + correspondence between sizes and bin indices. Each free chunk is preceeded in memory by a non-free chunk (or no chunk at all). Each free chunk is followed in memory by a non-free _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit