Raymond Toy pushed to branch issue-243-weak-pointer-to-static-array at cmucl / cmucl Commits: 9cb44e30 by Raymond Toy at 2024-02-17T19:59:54-08:00 Fix typo bug and remove comment In merging the if statements we should have used `&&` instead of `&`. - - - - - 1 changed file: - src/lisp/gencgc.c Changes: ===================================== src/lisp/gencgc.c ===================================== @@ -5570,16 +5570,12 @@ scan_weak_pointers(void) { struct weak_pointer *wp; - /* - * Now process the weak pointers. - */ - for (wp = weak_pointers; wp; wp = wp->next) { lispobj value = wp->value; lispobj *first_pointer = (lispobj *) PTR(value); wp->mark_bit = NIL; - if (Pointerp(value) & from_space_p(value)) { + if (Pointerp(value) && from_space_p(value)) { if (first_pointer[0] == 0x01) wp->value = first_pointer[1]; else { View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/9cb44e305299b41e951c584d... -- View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/9cb44e305299b41e951c584d... You're receiving this email because of your account on gitlab.common-lisp.net.
participants (1)
-
Raymond Toy (@rtoy)