fixed a couple typos in comments
original commit: 9e2347eeb2bd57b35f96f0f1938ef84d624ed6a4
This commit is contained in:
parent
51db0ddbc1
commit
0d0e876fb7
2
c/gc.c
2
c/gc.c
|
@ -212,7 +212,7 @@ static ptr copy(pp, pps) ptr pp; ISPC pps; {
|
||||||
if (counts == Sfalse) {
|
if (counts == Sfalse) {
|
||||||
IGEN grtd = rtd == pp ? tg : GENERATION(rtd);
|
IGEN grtd = rtd == pp ? tg : GENERATION(rtd);
|
||||||
S_G.countof[grtd][countof_rtd_counts] += 1;
|
S_G.countof[grtd][countof_rtd_counts] += 1;
|
||||||
/* allocte counts struct in same generation as rtd. initialize timestamp & counts */
|
/* allocate counts struct in same generation as rtd. initialize timestamp & counts */
|
||||||
find_room(space_data, grtd, type_typed_object, size_rtd_counts, counts);
|
find_room(space_data, grtd, type_typed_object, size_rtd_counts, counts);
|
||||||
RTDCOUNTSTYPE(counts) = type_rtd_counts;
|
RTDCOUNTSTYPE(counts) = type_rtd_counts;
|
||||||
RTDCOUNTSTIMESTAMP(counts) = S_G.gctimestamp[0];
|
RTDCOUNTSTIMESTAMP(counts) = S_G.gctimestamp[0];
|
||||||
|
|
|
@ -21,8 +21,8 @@ Low-level Memory management strategy:
|
||||||
* maintain getmem-allocated segment info and dirty vector tables
|
* maintain getmem-allocated segment info and dirty vector tables
|
||||||
* after each collection, run through the list of chunks. If all
|
* after each collection, run through the list of chunks. If all
|
||||||
segments in a chunk are empty, the chunk is a candidate for return
|
segments in a chunk are empty, the chunk is a candidate for return
|
||||||
to the O/S. Return (freeem) as many chunks as possible without going
|
to the O/S. Return (freemem) as many chunks as possible without going
|
||||||
below a user-defined threshhold of empty segments (determined as a
|
below a user-defined threshold of empty segments (determined as a
|
||||||
multiple of the occupied nonstatic segments). Bias return to the
|
multiple of the occupied nonstatic segments). Bias return to the
|
||||||
most recently allocated chunks.
|
most recently allocated chunks.
|
||||||
* getmem/freemem may be implemented with malloc/free; we use them
|
* getmem/freemem may be implemented with malloc/free; we use them
|
||||||
|
|
Loading…
Reference in New Issue
Block a user