Suppose we perform a mark-and-compact garbage collection on each of the networks of Exercise 7.6.1. Also, suppose thati. Each object has size 100 bytes, andii. Initially, the nine objects in the heap are arranged in alphabetical order, starting at byte 0 of the heap.What is the address of each object after garbage collection?
Exercise 7.6.1
Show the steps of a mark-and-sweep garbage collector ona) Fig. 7.19 with the pointer A ->• B deleted.b) Fig. 7.19 with the pointer A -> C deleted.c) Fig. 7.20 with the pointer A-t D deleted.d) Fig. 7.20 with the object B deleted.
Fig. 7.19
Fig. 7.20
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here