Skip to content
Permalink
Browse files

collect GC for when running under pypy (or Jython/IronPython)

  • Loading branch information
alex committed May 29, 2013
1 parent f58626a commit 4e8b93695be8fe9d9e198c3172258caccb9fede3
Showing with 3 additions and 0 deletions.
  1. +3 −0 topaz/objspace.py
@@ -1,5 +1,6 @@
from __future__ import absolute_import

import gc
import os
import sys
import weakref
@@ -105,6 +106,8 @@ def __init__(self, config):
self.w_class = self.getclassfor(W_ClassObject)
# We replace the one reference to our FakeClass with the real class.
self.w_basicobject.klass.superclass = self.w_class

gc.collect()
assert cls_reference() is None

self.w_symbol = self.getclassfor(W_SymbolObject)

0 comments on commit 4e8b936

Please sign in to comment.