home *** CD-ROM | disk | FTP | other *** search
/ ftp.ee.pdx.edu / 2014.02.ftp.ee.pdx.edu.tar / ftp.ee.pdx.edu / pub / users / Harry / cse509 / cse509.slides / packet11 / slide12.gif < prev    next >
Graphics Interchange Format  |  2001-02-17  |  11KB  |  719x539  |  4-bit (4 colors)
Labels: dialog box | sky | web site | window
OCR: Object- Oriented Programming Mark-Sweep Optimization Problem: Repeated scans of memory Desired algorithim: WI hen we mark an object, push it on stack. Repeat: Pop next object off at stack Mark all reachable obiects until stack is empty Unfortunately: The stack may be arbitrarily deep No extra memory when the running! Solution: Allocate one extra word per object. Use this pointer maintain alinked list of obiects "the stack When a.t7 object 1S found to be reachable Set "mark' bit Add it.to the linked list HArTT Porter 2001 algorithm objects Hart