1.1 --- a/jitcraft/Heap.cpp Sat Jul 07 17:11:31 2012 -0700
1.2 +++ b/jitcraft/Heap.cpp Sat Jul 07 20:28:29 2012 -0700
1.3 @@ -22,6 +22,7 @@
1.4 #include "VirtualObjectVisitor.h"
1.5 #include "ObjectVisitor.h"
1.6 #include "Zone.h"
1.7 +#include "StringPool.h"
1.8
1.9 using namespace jc;
1.10
1.11 @@ -351,6 +352,9 @@
1.12 void
1.13 Heap::sweep()
1.14 {
1.15 + // Before destroying mark bits, sweep weak roots.
1.16 + zone_->symbols()->sweep();
1.17 +
1.18 // Note: we don't bother sweeping the LIFO space.
1.19 SweepOldSpace(&mapSpace_);
1.20 SweepOldSpace(&oldSpace_);