Suppose the heap consists of exactly the nine cars on three trains shown in Fig. 7.30 (i.e., ignore the ellipses). We are currently in panic mode. Object oi in car 11 has only one reference, from object o2 in car 12. That reference is rewritten. When we garbage collect car 11, what could happen to oi?
Fig. 7.30
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here