Raymond Toy pushed to branch issue-243-weak-pointer-to-static-array at cmucl / cmucl

Commits:

1 changed file:

Changes:

  • src/lisp/gencgc.c
    ... ... @@ -5579,14 +5579,12 @@ scan_weak_pointers(void)
    5579 5579
     	lispobj *first_pointer = (lispobj *) PTR(value);
    
    5580 5580
     
    
    5581 5581
     	wp->mark_bit = NIL;
    
    5582
    -	if (Pointerp(value)) {
    
    5583
    -            if (from_space_p(value)) {
    
    5584
    -                if (first_pointer[0] == 0x01)
    
    5585
    -                    wp->value = first_pointer[1];
    
    5586
    -                else {
    
    5587
    -                    wp->value = NIL;
    
    5588
    -                    wp->broken = T;
    
    5589
    -                }
    
    5582
    +	if (Pointerp(value) & from_space_p(value)) {
    
    5583
    +            if (first_pointer[0] == 0x01)
    
    5584
    +                wp->value = first_pointer[1];
    
    5585
    +            else {
    
    5586
    +                wp->value = NIL;
    
    5587
    +                wp->broken = T;
    
    5590 5588
                 }
    
    5591 5589
             }
    
    5592 5590
         }