M 63 core/gc.c struct PNMemory *M = P->mem; M 123 core/gc.c static inline int NEW_BIRTH_REGION(struct PNMemory *M, void **wb, int sz) { M 124 core/gc.c int keeps = wb - (void **)M->birth_storeptr; M 129 core/gc.c PN_MEMCPY_N(wb + 1, M->birth_storeptr + 1, void *, keeps); M 144 core/gc.c struct PNMemory *M = P->mem; M 153 core/gc.c scanptr = (void *) M->old_cur; M 158 core/gc.c M->birth_lo, M->birth_hi, (long)(M->birth_hi - M->birth_lo), M 159 core/gc.c M->old_lo, M->old_hi, (long)(M->old_hi - M->old_lo), M 160 core/gc.c (long)((void *)M->birth_hi - (void *)M->birth_storeptr)); M 165 core/gc.c wb = (void **)M->birth_storeptr; M 166 core/gc.c for (storead = wb; storead < (void **)M->birth_hi; storead++) { M 173 core/gc.c while ((PN)scanptr < (PN)M->old_cur) M 178 core/gc.c sz = max(sz, potion_birth_suggest(sz, M->old_lo, M->old_cur)); M 180 core/gc.c sz = NEW_BIRTH_REGION(M, wb, sz); M 181 core/gc.c M->minors++; M 183 core/gc.c DBG_Gv(P,"(new young: %p -> %p = %ld)\n", M->birth_lo, M->birth_hi, (long)(M->birth_hi - M->birth_lo)); M 188 core/gc.c struct PNMemory *M = P->mem; M 193 core/gc.c void *protptr = (void *)M + PN_ALIGN(sizeof(struct PNMemory), 8); M 208 core/gc.c prevoldlo = (void *)M->old_lo; M 209 core/gc.c prevoldhi = (void *)M->old_hi; M 210 core/gc.c prevoldcur = (void *)M->old_cur; M 215 core/gc.c M->birth_lo, M->birth_hi, (long)(M->birth_hi - M->birth_lo), M 216 core/gc.c M->old_lo, M->old_hi, (long)(M->old_hi - M->old_lo)); M 219 core/gc.c POTION_GC_THRESHOLD + 16 * POTION_PAGESIZE) + ((char *)M->birth_cur - (char *)M->birth_lo); M 226 core/gc.c M->old_cur = scanptr = newold + (sizeof(PN) * 2); M 231 core/gc.c wb = (void **)M->birth_storeptr; M 232 core/gc.c if (M->birth_lo != M) { M 233 core/gc.c while ((PN)protptr < (PN)M->protect) M 237 core/gc.c while ((PN)scanptr < (PN)M->old_cur) M 248 core/gc.c birthsiz = NEW_BIRTH_REGION(M, wb, siz + birthest); M 249 core/gc.c oldsiz = ((char *)M->old_cur - (char *)newold) + M 257 core/gc.c M->old_lo = newold; M 258 core/gc.c M->old_hi = (char *)newold + newoldsiz; M 259 core/gc.c M->majors++; M 267 core/gc.c struct PNMemory *M = P->mem; M 268 core/gc.c if (M->collecting) return; M 272 core/gc.c M->pass++; M 273 core/gc.c M->collecting = 1; M 275 core/gc.c if (M->old_lo == NULL) { M 286 core/gc.c } else if ((char *) M->old_cur + sz + potion_birth_suggest(sz, M->old_lo, M->old_cur) + M 287 core/gc.c ((char *) M->birth_hi - (char *) M->birth_lo) > (char *) M->old_hi) M 290 core/gc.c else if (M->pass % POTION_GC_PERIOD == POTION_GC_PERIOD) M 300 core/gc.c M->time += mytime() - time; M 302 core/gc.c M->dirty = 0; M 303 core/gc.c M->collecting = 0; M 414 core/gc.c struct PNMemory *M = P->mem; M 520 core/gc.c struct PNMemory *M = P->mem; M 664 core/gc.c struct PNMemory *M = (struct PNMemory *)page1; M 665 core/gc.c PN_MEMZERO(M, struct PNMemory); M 667 core/gc.c M->time = 0.0; M 676 core/gc.c M->cstack = (((_PN)sp & ((1<<5)-1)) == 0 ) M 679 core/gc.c M->cstack = sp; M 681 core/gc.c P = (Potion *)((char *)M + PN_ALIGN(sizeof(struct PNMemory), 8)); M 683 core/gc.c P->mem = M; M 685 core/gc.c M->birth_cur = (void *)((char *)P + PN_ALIGN(sizeof(Potion), 8)); M 692 core/gc.c struct PNMemory *M = P->mem; M 693 core/gc.c void *birthlo = (void *)M->birth_lo; M 694 core/gc.c void *birthhi = (void *)M->birth_hi; M 695 core/gc.c void *oldlo = (void *)M->old_lo; M 696 core/gc.c void *oldhi = (void *)M->old_hi; M 698 core/gc.c if (M->birth_lo != M) { M 699 core/gc.c void *protend = (void *)PN_ALIGN((_PN)M->protect, POTION_PAGESIZE); M 700 core/gc.c DBG_G(P,"GC page delete: %p - %p\n", M, protend); M 701 core/gc.c pngc_page_delete((void *)M, (char *)protend - (char *)M); M 29 core/gc.h M->t##_lo = p; \ M 30 core/gc.h M->t##_cur = p + (sizeof(PN) * 2); \ M 31 core/gc.h M->t##_hi = p + (s); \ M 35 core/gc.h M->birth_storeptr = (void *)(((void **)M->birth_hi) - (n)) M 38 core/gc.h *(M->birth_storeptr--) = (void *)p M 41 core/gc.h if (M->birth_lo == M && IN_BIRTH_REGION(M->protect)) { \ M 42 core/gc.h void *protend = (void *)PN_ALIGN((_PN)M->protect, POTION_PAGESIZE); \ M 43 core/gc.h pngc_page_delete(protend, (char *)M->birth_hi - (char *)protend); \ M 45 core/gc.h void *protend = (void *)M->birth_lo; \ M 46 core/gc.h pngc_page_delete(protend, (char *)M->birth_hi - (char *)protend); \ M 50 core/gc.h ((_PN)(p) >= (_PN)M && (_PN)(p) < (_PN)M->protect) M 53 core/gc.h ((_PN)(p) > (_PN)M->birth_lo && (_PN)(p) < (_PN)M->birth_hi) M 56 core/gc.h ((_PN)(p) > (_PN)M->old_lo && (_PN)(p) < (_PN)M->old_hi) M 329 core/internal.c struct PNMemory *M = P->mem; M 337 core/internal.c end = M->cstack; M 120 core/mt19937ar.c for (j=N-M+1; --j; p++) { M 123 core/mt19937ar.c *p = p[M] ^ TWIST(p[0], p[1]); M 126 core/mt19937ar.c for (j=M; --j; p++) { M 129 core/mt19937ar.c *p = p[M-N] ^ TWIST(p[0], p[1]); M 134 core/mt19937ar.c *p = p[M-N] ^ TWIST(p[0], state[0]); M 692 core/potion.h struct PNMemory *M = P->mem; M 702 core/potion.h assert(M); M 703 core/potion.h assert(M->birth_cur); M 704 core/potion.h assert(M->birth_storeptr); M 705 core/potion.h if (M->dirty || (char *)M->birth_cur + siz >= (char *)M->birth_storeptr - 2) M 707 core/potion.h res = (struct PNObject *)M->birth_cur; M 710 core/potion.h M->birth_cur = (char *)res + siz; M 720 core/potion.h struct PNMemory *M = P->mem; M 721 core/potion.h if ((x > (PN)M->birth_lo && x < (PN)M->birth_hi && (x < (PN)M || x >= (PN)M->protect)) || M 722 core/potion.h x == (PN)M->birth_storeptr[1] || M 723 core/potion.h x == (PN)M->birth_storeptr[2] || M 724 core/potion.h x == (PN)M->birth_storeptr[3]) M 726 core/potion.h *(M->birth_storeptr--) = (void *)x; M 727 core/potion.h if ((void **)M->birth_storeptr - 4 <= (void **)M->birth_cur) M 119 test/api/gc-test.c struct PNMemory *M = P->mem; M 220 test/api/potion-test.c struct PNMemory *M = P->mem; M 222 test/api/potion-test.c void *scanptr = (void *)((char *)M->birth_lo + PN_ALIGN(sizeof(struct PNMemory), 8)); M 223 test/api/potion-test.c while ((PN)scanptr < (PN)M->birth_cur) { M 228 test/api/potion-test.c M->birth_lo, M->birth_cur); M 248 test/api/potion-test.c CuAssert(T, "allocated object goes beyond GC pointer", (PN)scanptr <= (PN)M->birth_cur);