Advertisement
Guest User

Untitled

a guest
Jul 24th, 2019
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. diff -r 69d0c4bbdf2f rpython/rtyper/lltypesystem/rffi.py
  2. --- a/rpython/rtyper/lltypesystem/rffi.py Tue Jul 23 06:50:41 2019 +0200
  3. +++ b/rpython/rtyper/lltypesystem/rffi.py Wed Jul 24 09:16:48 2019 +0200
  4. @@ -868,6 +868,8 @@
  5. flag = '\x05' # successfully pinned
  6. else:
  7. flag = '\x06' # must still make a copy
  8. + from rpython.rlib.debug import debug_print
  9. + debug_print("get_nonmovingbuffer: flag =", ord(flag))
  10. if flag == '\x06':
  11. buf = lltype.malloc(TYPEP.TO, count + (TYPEP is CCHARP),
  12. flavor='raw')
  13. @@ -905,6 +907,8 @@
  14. Keep 'data' alive and unpin it if it was pinned (flag==\5).
  15. Otherwise free the non-moving copy (flag==\6).
  16. """
  17. + from rpython.rlib.debug import debug_print
  18. + debug_print("free_nonmovingbuffer: flag =", ord(flag))
  19. if flag == '\x05':
  20. rgc.unpin(data)
  21. if flag == '\x06':
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement