Closed
Description
When compiling multiple times:
- keep a weak reference to the existing
RootContext
- after compiling, do
System.gc()
- assert that the weak reference is dead, so the
RootContext
was gc-ed - later refinement: use yourkit api to print out the links from the root (alive) objects to the objects that were supposed to be dead