This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
| Author | schmir |
|---|---|
| Recipients | schmir |
| Date | 2008年04月16日.16:29:00 |
| SpamBayes Score | 0.2302948 |
| Marked as misclassified | No |
| Message-id | <1208363341.7.0.215523027719.issue2643@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
on unix it does call msync however.
here is the relevant part from mmapmodule.c:
static void
mmap_object_dealloc(mmap_object *m_obj)
{
#ifdef MS_WINDOWS
if (m_obj->data != NULL)
UnmapViewOfFile (m_obj->data);
if (m_obj->map_handle != INVALID_HANDLE_VALUE)
CloseHandle (m_obj->map_handle);
if (m_obj->file_handle != INVALID_HANDLE_VALUE)
CloseHandle (m_obj->file_handle);
if (m_obj->tagname)
PyMem_Free(m_obj->tagname);
#endif /* MS_WINDOWS */
#ifdef UNIX
if (m_obj->fd >= 0)
(void) close(m_obj->fd);
if (m_obj->data!=NULL) {
msync(m_obj->data, m_obj->size, MS_SYNC);
munmap(m_obj->data, m_obj->size);
}
#endif /* UNIX */
Py_TYPE(m_obj)->tp_free((PyObject*)m_obj);
} |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2008年04月16日 16:29:01 | schmir | set | spambayes_score: 0.230295 -> 0.2302948 recipients: + schmir |
| 2008年04月16日 16:29:01 | schmir | set | spambayes_score: 0.230295 -> 0.230295 messageid: <1208363341.7.0.215523027719.issue2643@psf.upfronthosting.co.za> |
| 2008年04月16日 16:29:01 | schmir | link | issue2643 messages |
| 2008年04月16日 16:29:00 | schmir | create | |