[Python-checkins] r84950 - in python/branches/py3k: Misc/NEWS Modules/mmapmodule.c

antoine.pitrou python-checkins at python.org
Tue Sep 21 18:08:27 CEST 2010


Author: antoine.pitrou
Date: Tue Sep 21 18:08:27 2010
New Revision: 84950
Log:
Issue #2643: msync() is not called anymore when deallocating an open mmap
object, only munmap().
Modified:
 python/branches/py3k/Misc/NEWS
 python/branches/py3k/Modules/mmapmodule.c
Modified: python/branches/py3k/Misc/NEWS
==============================================================================
--- python/branches/py3k/Misc/NEWS	(original)
+++ python/branches/py3k/Misc/NEWS	Tue Sep 21 18:08:27 2010
@@ -58,6 +58,9 @@
 Library
 -------
 
+- Issue #2643: msync() is not called anymore when deallocating an open mmap
+ object, only munmap().
+
 - logging: Changed LoggerAdapter implementation internally, to make it
 easier to subclass in a useful way.
 
Modified: python/branches/py3k/Modules/mmapmodule.c
==============================================================================
--- python/branches/py3k/Modules/mmapmodule.c	(original)
+++ python/branches/py3k/Modules/mmapmodule.c	Tue Sep 21 18:08:27 2010
@@ -125,7 +125,6 @@
 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 */


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /