Download - Virtual Compaction

Transcript
Page 1: Virtual Compaction

UUNIVERSITY OF NIVERSITY OF MMASSACHUSETTS ASSACHUSETTS AAMHERST • MHERST • Department of Computer Science Department of Computer Science • 2008 • 2008

Virtual CompactionEmery Berger

University of Massachusetts Amherst

Page 2: Virtual Compaction

UUNIVERSITY OF NIVERSITY OF MMASSACHUSETTS ASSACHUSETTS AAMHERST • MHERST • Department of Computer Science Department of Computer Science • 2008 • 2008

Segregated Heap

Page 3: Virtual Compaction

UUNIVERSITY OF NIVERSITY OF MMASSACHUSETTS ASSACHUSETTS AAMHERST • MHERST • Department of Computer Science Department of Computer Science • 2008 • 2008

Awesome

Page 4: Virtual Compaction

UUNIVERSITY OF NIVERSITY OF MMASSACHUSETTS ASSACHUSETTS AAMHERST • MHERST • Department of Computer Science Department of Computer Science • 2008 • 2008

Awful

Page 5: Virtual Compaction

UUNIVERSITY OF NIVERSITY OF MMASSACHUSETTS ASSACHUSETTS AAMHERST • MHERST • Department of Computer Science Department of Computer Science • 2008 • 2008

If Only…

Page 6: Virtual Compaction

UUNIVERSITY OF NIVERSITY OF MMASSACHUSETTS ASSACHUSETTS AAMHERST • MHERST • Department of Computer Science Department of Computer Science • 2008 • 2008

If Only…

Page 7: Virtual Compaction

UUNIVERSITY OF NIVERSITY OF MMASSACHUSETTS ASSACHUSETTS AAMHERST • MHERST • Department of Computer Science Department of Computer Science • 2008 • 2008

If Only…

Page 8: Virtual Compaction

UUNIVERSITY OF NIVERSITY OF MMASSACHUSETTS ASSACHUSETTS AAMHERST • MHERST • Department of Computer Science Department of Computer Science • 2008 • 2008

But…

Page 9: Virtual Compaction

UUNIVERSITY OF NIVERSITY OF MMASSACHUSETTS ASSACHUSETTS AAMHERST • MHERST • Department of Computer Science Department of Computer Science • 2008 • 2008

Back to Awful

Page 10: Virtual Compaction

UUNIVERSITY OF NIVERSITY OF MMASSACHUSETTS ASSACHUSETTS AAMHERST • MHERST • Department of Computer Science Department of Computer Science • 2008 • 2008

But Wait…

Page 11: Virtual Compaction

UUNIVERSITY OF NIVERSITY OF MMASSACHUSETTS ASSACHUSETTS AAMHERST • MHERST • Department of Computer Science Department of Computer Science • 2008 • 2008

Wild and Crazy VM

Page 12: Virtual Compaction

UUNIVERSITY OF NIVERSITY OF MMASSACHUSETTS ASSACHUSETTS AAMHERST • MHERST • Department of Computer Science Department of Computer Science • 2008 • 2008

Wild and Crazy VM

Page 13: Virtual Compaction

UUNIVERSITY OF NIVERSITY OF MMASSACHUSETTS ASSACHUSETTS AAMHERST • MHERST • Department of Computer Science Department of Computer Science • 2008 • 2008

Wild and Crazy VM

Page 14: Virtual Compaction

UUNIVERSITY OF NIVERSITY OF MMASSACHUSETTS ASSACHUSETTS AAMHERST • MHERST • Department of Computer Science Department of Computer Science • 2008 • 2008

Virtual Compaction

Page 15: Virtual Compaction

UUNIVERSITY OF NIVERSITY OF MMASSACHUSETTS ASSACHUSETTS AAMHERST • MHERST • Department of Computer Science Department of Computer Science • 2008 • 2008

Bad

Page 16: Virtual Compaction

UUNIVERSITY OF NIVERSITY OF MMASSACHUSETTS ASSACHUSETTS AAMHERST • MHERST • Department of Computer Science Department of Computer Science • 2008 • 2008

Good

Page 17: Virtual Compaction

UUNIVERSITY OF NIVERSITY OF MMASSACHUSETTS ASSACHUSETTS AAMHERST • MHERST • Department of Computer Science Department of Computer Science • 2008 • 2008

Conclusion

Virtual compaction part of “Plug” memory leak tolerance for C++ [Novark, Berger, Zorn] – in preparation

Not yet part of general-purpose allocator Good for GC?


Top Related