Commits

Sven Hager  committed 91f9cbc

fix gc builtin

  • Participants
  • Parent commits 0f061a5

Comments (0)

Files changed (1)

File rapydo/primitive.py

 from rapydo.jit import repeat_driver, while_driver, for_driver
 from pypy.rlib.rrandom import Random
 from pypy.rlib.rtimer import read_timestamp
+from pypy.rlib.rgc import collect
 
 all_builtins = {}
 all_specials = {}
 
     # _____________ gc _____________
 
+    @jit.dont_look_inside
     @expose("gc", builtins, interp_spec=[])
     def impl_gc(self, w_env, args_w):
         """ names=[]
         """
+        collect()
         return self.space.null()
 
 def set_specials(w_env, w_class, w_generic, w_method):