Message78695
Documentation says that
========
There’s no chance that the reference count can overflow; at least as many bits
are used to hold the reference count as there are distinct memory locations in
virtual memory (assuming sizeof(Py_ssize_t) >= sizeof(void*)). Thus, the
reference count increment is a simple operation.
========
But Py_ssize_t is a signed type so in case of sizeof(Py_ssize_t) == sizeof
(void*)) it can only reference a half of memmory :). But because any python
object consumes much more than 2bytes this is not a problem. |
|
Date |
User |
Action |
Args |
2009-01-01 10:32:35 | exe | set | recipients:
+ exe, georg.brandl |
2009-01-01 10:32:35 | exe | set | messageid: <1230805955.17.0.970467276629.issue4800@psf.upfronthosting.co.za> |
2009-01-01 10:32:31 | exe | link | issue4800 messages |
2009-01-01 10:32:30 | exe | create | |
|