X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fgencgc-internal.h;h=9ff5a19c14aef971a0ea88541d131fd26ec372f9;hb=8bc4923b67afbaed8914200cbabc948d9b5eaece;hp=eaa789849a3b24ca7e48959b95a070d9751c19fd;hpb=b85552a9ed94019afd70b11b069f3c9b0afdaaa8;p=sbcl.git diff --git a/src/runtime/gencgc-internal.h b/src/runtime/gencgc-internal.h index eaa7898..9ff5a19 100644 --- a/src/runtime/gencgc-internal.h +++ b/src/runtime/gencgc-internal.h @@ -72,9 +72,10 @@ struct page { * hard to achieve). */ int bytes_used; - /* It is important to know the offset to the first object in the - * page. Currently it's only important to know if an object starts - * at the beginning of the page in which case the offset would be 0. */ + /* The name of this field is not well-chosen for its actual use. + * This is the offset from the start of the page to the start + * of the alloc_region which contains/contained it. It's negative or 0 + */ int first_object_offset; }; @@ -83,6 +84,7 @@ struct page { /* the number of pages needed for the dynamic space - rounding up */ #define NUM_PAGES ((DYNAMIC_SPACE_SIZE+PAGE_BYTES-1)/PAGE_BYTES) + extern struct page page_table[NUM_PAGES];