This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
cs330_f2016:lab14 [2016/11/15 18:54] morse |
cs330_f2016:lab14 [2016/11/15 21:32] morse |
||
---|---|---|---|
Line 40: | Line 40: | ||
===Stop and Copy=== | ===Stop and Copy=== | ||
- | For the stop-and-copy part of the assignment, you are given the initial tospace, which is identical to the original heap for the mark-and-sweep part. | + | For the stop-and-copy part of the assignment, you are given the initial fromspace, which is identical to the original heap for the mark-and-sweep part. |
However, the interpretation is slightly different: for mark-and-sweep, you have to identify blocks as free and maintain a free-block list. | However, the interpretation is slightly different: for mark-and-sweep, you have to identify blocks as free and maintain a free-block list. | ||
For stop-and-copy, there are no free blocks or a list of such. Instead, all memory above the single free pointer is unused and can be allocated. | For stop-and-copy, there are no free blocks or a list of such. Instead, all memory above the single free pointer is unused and can be allocated. |