




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





Prof. Su ECS 142 Lecture 18 1
Prof. Su ECS 142 Lecture 18 2
Prof. Su ECS 142 Lecture 18 3
Prof. Su ECS 142 Lecture 18 5
Prof. Su ECS 142 Lecture 18 6
Prof. Su ECS 142 Lecture 18 7
let x : A new A in { x y; ... }
Prof. Su ECS 142 Lecture 18 9
Prof. Su ECS 142 Lecture 18 10
Prof. Su ECS 142 Lecture 18 11
Frame 1 Frame 2
acc D E
Prof. Su ECS 142 Lecture 18 12
Prof. Su ECS 142 Lecture 18 19
Prof. Su ECS 142 Lecture 18 20
Prof. Su ECS 142 Lecture 18 21
old space new space
heap pointer
Prof. Su ECS 142 Lecture 18 23
root A B C D E F
Before collection:
new space
root
new space
After collection:
free
heap pointer
Prof. Su ECS 142 Lecture 18 24
Prof. Su ECS 142 Lecture 18 25
copied and scanned
scan
copied objects whose pointer fields were followed and fixed
copied objects whose pointer fields were NOT followed
copied empty
start alloc
Prof. Su ECS 142 Lecture 18 26
root A B C D E F new space
start scan alloc
Prof. Su ECS 142 Lecture 18 27
root A B C D E F
start scan
alloc
Prof. Su ECS 142 Lecture 18 28
root A B C D E F
scan
alloc
start
Prof. Su ECS 142 Lecture 18 29
root A^ B C D E F
scan
alloc
start
Prof. Su ECS 142 Lecture 18 30
root A^ B C D E F
scan
alloc
start
Prof. Su ECS 142 Lecture 18 37
Prof. Su ECS 142 Lecture 18 38
Prof. Su ECS 142 Lecture 18 39
Prof. Su ECS 142 Lecture 18 40
Prof. Su ECS 142 Lecture 18 41
Prof. Su ECS 142 Lecture 18 42
Prof. Su ECS 142 Lecture 18 43