spacepaste

  1.  
  2. diff -r 110e3c57792a rpython/memory/gctypelayout.py
  3. --- a/rpython/memory/gctypelayout.py Wed Feb 07 09:39:56 2018 -0500
  4. +++ b/rpython/memory/gctypelayout.py Wed Feb 07 12:01:23 2018 -0500
  5. @@ -241,10 +241,10 @@
  6. infobits |= T_HAS_GCPTR
  7. #
  8. fptrs = builder.special_funcptr_for_type(TYPE)
  9. + customdata = lltype.malloc(GCData.CUSTOM_DATA_STRUCT, flavor='raw',
  10. + immortal=True)
  11. + info.customdata = customdata
  12. if fptrs or has_special_memory_pressure(TYPE):
  13. - customdata = lltype.malloc(GCData.CUSTOM_DATA_STRUCT, flavor='raw',
  14. - immortal=True)
  15. - info.customdata = customdata
  16. if "destructor" in fptrs:
  17. customdata.customfunc = fptrs["destructor"]
  18. if "old_style_finalizer" in fptrs:
  19.