Message143845
Since mmap.resize uses MREMAP_MAYMOVE on Linux, it would be nice to warn users that pointers into their memory mapped regions will be invalid after resizes. Linux's manpage offers the following explanation:
"If the mapping is relocated, then absolute pointers into the old mapping location become invalid (offsets relative to the starting address of the mapping should be employed)."
Since the only way I know of to use pointers into mmaps from pure Python is to use ctypes.<type>.from_buffer(<mmap>), perhaps clarification would be better in the ctypes docs. |
|
Date |
User |
Action |
Args |
2011-09-10 20:24:19 | schmichael | set | recipients:
+ schmichael, docs@python |
2011-09-10 20:24:19 | schmichael | set | messageid: <1315686259.57.0.0304440203891.issue12957@psf.upfronthosting.co.za> |
2011-09-10 20:24:18 | schmichael | link | issue12957 messages |
2011-09-10 20:24:18 | schmichael | create | |
|