
It was not a problem with the particular collector. All allocation sites need to update the gc-roots-key with their static information.
14 lines
173 B
Racket
14 lines
173 B
Racket
#lang plai/gc2/mutator
|
|
(allocator-setup "../good-collectors/good-collector.rkt" 10)
|
|
|
|
; 3
|
|
(define (go)
|
|
; 2
|
|
(let ([obj 'z])
|
|
9 10
|
|
; 3
|
|
(symbol? obj)))
|
|
|
|
; 2
|
|
(go)
|