M 67 core/gc.c struct PNMemory *M = P->mem; M 127 core/gc.c static inline int NEW_BIRTH_REGION(struct PNMemory *M, void **wb, int sz) { M 128 core/gc.c int keeps = wb - (void **)M->birth_storeptr; M 131 core/gc.c PN_MEMCPY_N(wb + 1, M->birth_storeptr + 1, void *, keeps); M 146 core/gc.c struct PNMemory *M = P->mem; M 155 core/gc.c scanptr = (void *) M->old_cur; M 160 core/gc.c M->birth_lo, M->birth_hi, (long)(M->birth_hi - M->birth_lo), M 161 core/gc.c M->old_lo, M->old_hi, (long)(M->old_hi - M->old_lo), M 162 core/gc.c (long)((void *)M->birth_hi - (void *)M->birth_storeptr)); M 167 core/gc.c wb = (void **)M->birth_storeptr; M 168 core/gc.c for (storead = wb; storead < (void **)M->birth_hi; storead++) { M 175 core/gc.c while ((PN)scanptr < (PN)M->old_cur) M 180 core/gc.c sz = max(sz, potion_birth_suggest(sz, M->old_lo, M->old_cur)); M 182 core/gc.c sz = NEW_BIRTH_REGION(M, wb, sz); M 183 core/gc.c M->minors++; M 185 core/gc.c DBG_G(P,"(new young: %p -> %p = %ld)\n", M->birth_lo, M->birth_hi, (long)(M->birth_hi - M->birth_lo)); M 190 core/gc.c struct PNMemory *M = P->mem; M 195 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 221 core/gc.c M->old_cur = scanptr = newold + (sizeof(PN) * 2); M 226 core/gc.c wb = (void **)M->birth_storeptr; M 227 core/gc.c if (M->birth_lo != M) { M 228 core/gc.c while ((PN)protptr < (PN)M->protect) M 232 core/gc.c while ((PN)scanptr < (PN)M->old_cur) M 243 core/gc.c birthsiz = NEW_BIRTH_REGION(M, wb, siz + birthest); M 244 core/gc.c oldsiz = ((char *)M->old_cur - (char *)newold) + M 252 core/gc.c M->old_lo = newold; M 253 core/gc.c M->old_hi = (char *)newold + newoldsiz; M 254 core/gc.c M->majors++; M 262 core/gc.c struct PNMemory *M = P->mem; M 263 core/gc.c if (M->collecting) return; M 267 core/gc.c M->pass++; M 268 core/gc.c M->collecting = 1; M 270 core/gc.c if (M->old_lo == NULL) { M 277 core/gc.c } else if ((char *) M->old_cur + sz + potion_birth_suggest(sz, M->old_lo, M->old_cur) + M 278 core/gc.c ((char *) M->birth_hi - (char *) M->birth_lo) > (char *) M->old_hi) M 281 core/gc.c else if (M->pass % POTION_GC_PERIOD == POTION_GC_PERIOD) M 291 core/gc.c M->time += mytime() - time; M 293 core/gc.c M->dirty = 0; M 294 core/gc.c M->collecting = 0; M 398 core/gc.c struct PNMemory *M = P->mem; M 502 core/gc.c struct PNMemory *M = P->mem; M 631 core/gc.c struct PNMemory *M = (struct PNMemory *)page1; M 632 core/gc.c PN_MEMZERO(M, struct PNMemory); M 634 core/gc.c M->time = 0.0; M 643 core/gc.c M->cstack = (((_PN)sp & ((1<<5)-1)) == 0 ) M 646 core/gc.c M->cstack = sp; M 648 core/gc.c P = (Potion *)((char *)M + PN_ALIGN(sizeof(struct PNMemory), 8)); M 650 core/gc.c P->mem = M; M 652 core/gc.c M->birth_cur = (void *)((char *)P + PN_ALIGN(sizeof(Potion), 8)); M 659 core/gc.c struct PNMemory *M = P->mem; M 660 core/gc.c void *birthlo = (void *)M->birth_lo; M 661 core/gc.c void *birthhi = (void *)M->birth_hi; M 662 core/gc.c void *oldlo = (void *)M->old_lo; M 663 core/gc.c void *oldhi = (void *)M->old_hi; M 665 core/gc.c if (M->birth_lo != M) { M 666 core/gc.c void *protend = (void *)PN_ALIGN((_PN)M->protect, POTION_PAGESIZE); M 667 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 317 core/internal.c struct PNMemory *M = P->mem; M 325 core/internal.c end = M->cstack; M 120 core/mt19937ar.c for (j=N-M+1; --j; p++) M 121 core/mt19937ar.c *p = p[M] ^ TWIST(p[0], p[1]); M 123 core/mt19937ar.c for (j=M; --j; p++) M 124 core/mt19937ar.c *p = p[M-N] ^ TWIST(p[0], p[1]); M 126 core/mt19937ar.c *p = p[M-N] ^ TWIST(p[0], state[0]); M 674 core/potion.h struct PNMemory *M = P->mem; M 679 core/potion.h if (M->dirty || (char *)M->birth_cur + siz >= (char *)M->birth_storeptr - 2) M 681 core/potion.h res = (struct PNObject *)M->birth_cur; M 684 core/potion.h M->birth_cur = (char *)res + siz; M 694 core/potion.h struct PNMemory *M = P->mem; M 695 core/potion.h if ((x > (PN)M->birth_lo && x < (PN)M->birth_hi && (x < (PN)M || x >= (PN)M->protect)) || M 696 core/potion.h x == (PN)M->birth_storeptr[1] || M 697 core/potion.h x == (PN)M->birth_storeptr[2] || M 698 core/potion.h x == (PN)M->birth_storeptr[3]) M 700 core/potion.h *(M->birth_storeptr--) = (void *)x; M 701 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 219 test/api/potion-test.c struct PNMemory *M = P->mem; M 221 test/api/potion-test.c void *scanptr = (void *)((char *)M->birth_lo + PN_ALIGN(sizeof(struct PNMemory), 8)); M 222 test/api/potion-test.c while ((PN)scanptr < (PN)M->birth_cur) { M 227 test/api/potion-test.c M->birth_lo, M->birth_cur); M 247 test/api/potion-test.c CuAssert(T, "allocated object goes beyond GC pointer", (PN)scanptr <= (PN)M->birth_cur);