Commits

Alex Gaynor committed 7f3bb1d

this isn't rpython, so it can be a set

Comments (0)

Files changed (1)

     return True
 has_gcflag_extra._subopnum = 1
 
-_gcflag_extras = {}
+_gcflag_extras = set()
 
 def get_gcflag_extra(gcref):
     "NOT_RPYTHON"
     "NOT_RPYTHON"
     assert gcref   # not NULL!
     try:
-        del _gcflag_extras[gcref]
+        _gcflag_extras.remove(gcref)
     except KeyError:
-        _gcflag_extras[gcref] = None
+        _gcflag_extras.add(gcref)
 toggle_gcflag_extra._subopnum = 3
 
 def assert_no_more_gcflags():