Steffen Daode Nurpmeso <sdao...@googlemail.com> added the comment: @ Ned Deily <rep...@bugs.python.org> wrote (2011-06-07 19:43+0200): > Thanks for the update. Since the fix will be in a future > version of OS X 10.7 Lion, and which has not been released yet, > so it is not appropriate to change mmap until there has been an > opportunity to test it.
It's really working fine. That i see that day! (Not that they start to fix the CoreAudio crashes...) > But even then, we would need to be careful about adding > a compile-time test as OS X binaries are often built to be > compatible for a range of operating system version so avoid > adding compilation conditionals unless really necessary. > If after 10.7 is released and someone is able to test that it > works as expected, the standard way to support it would be to > use the Apple-supplied availability macros to test for the > minimum supported OS level of the build assuming it makes enough > of a performance difference to bother to do so Of course it only moves the delay from before mmap(2) to after close(2). Well, i don't know, if hardcoding is not an option, a dynamic sysctl(2) lookup may do: kern.version = Darwin Kernel Version 10.7.0: Sat Jan 29 15:17:16 PST 2011 This is obviously not the right one. :) -- Ciao, Steffen sdaoden(*)(gmail.com) () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11277> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com