Message141517
| Author |
zolnie |
| Recipients |
brian.curtin, pitrou, tim.golden, vladris, zolnie |
| Date |
2011年08月01日.14:30:01 |
| SpamBayes Score |
4.801648e-11 |
| Marked as misclassified |
No |
| Message-id |
<1312209002.24.0.861368279698.issue12562@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
OK. I will work around it.
I was using 'mapping object of a specified size that is backed by the system paging file instead of by a file in the file system' - map->handle == INVALID_HANDLE_VALUE (-1), i.e. shared memory for inter-process communication (not my choice)
A use case was when all process were stopped and one wanted to start "fresh" using the same tag but with a bigger size.
BTW, here's the result of the following script in Python 2.5
>>> import mmap
>>> map1 = mmap.mmap(fileno=-1, tagname='MyData', length=4096)
>>> map1[0] = 'a'
>>> map1[4095]='b'
>>> print len(map1), map1[0], map1[4095]
4096 a b
>>> map2 = mmap.mmap(fileno=-1, tagname='MyData', length=8192)
>>> print len(map2), map2[0], map2[4095]
8192 a b
which would indicate that it does 'resize' and preserves the data.
which means t |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年08月01日 14:30:02 | zolnie | set | recipients:
+ zolnie, pitrou, tim.golden, brian.curtin, vladris |
| 2011年08月01日 14:30:02 | zolnie | set | messageid: <1312209002.24.0.861368279698.issue12562@psf.upfronthosting.co.za> |
| 2011年08月01日 14:30:01 | zolnie | link | issue12562 messages |
| 2011年08月01日 14:30:01 | zolnie | create |
|