コード例 #1
0
ファイル: refcounting.py プロジェクト: alkorzt/pypy
 def ll_decref_simple(adr):
     if adr:
         gcheader = llmemory.cast_adr_to_ptr(adr - gc_header_offset, HDRPTR)
         refcount = gcheader.refcount - 1
         if refcount == 0:
             llop.gc_free(lltype.Void, adr)
         else:
             gcheader.refcount = refcount
コード例 #2
0
ファイル: refcounting.py プロジェクト: xx312022850/pypy
 def ll_decref_simple(adr):
     if adr:
         gcheader = llmemory.cast_adr_to_ptr(adr - gc_header_offset, HDRPTR)
         refcount = gcheader.refcount - 1
         if refcount == 0:
             llop.gc_free(lltype.Void, adr)
         else:
             gcheader.refcount = refcount
コード例 #3
0
ファイル: refcounting.py プロジェクト: alkorzt/pypy
 def ll_no_pointer_dealloc(adr):
     llop.gc_free(lltype.Void, adr)
コード例 #4
0
ファイル: refcounting.py プロジェクト: xx312022850/pypy
 def ll_no_pointer_dealloc(adr):
     llop.gc_free(lltype.Void, adr)