Slide 64
Slide 64 text
32 !
33 def mark!
34 while(@worklist.any?)!
35 ref = remove(worklist)!
36 !
37 pointers(ref).each do |fld|!
38 child = fld!
39 !
40 if !child.nil? && !marked?(child)!
41 set_marked(child)!
42 add(@worklist, child)!
43 end!
44 end!
45 end!
46 end!
47