Kaydet (Commit) 346f95ff authored tarafından Barry Warsaw's avatar Barry Warsaw

Upstream merge

...@@ -14,8 +14,8 @@ Core and Builtins ...@@ -14,8 +14,8 @@ Core and Builtins
format string that contains positional fields. Initial patch by format string that contains positional fields. Initial patch by
Julian Berman. Julian Berman.
- Issue #11627: Fix segfault when __new__ on a exception returns a non-exception - Issue #11627: Fix segfault when __new__ on a exception returns a
class. non-exception class.
- Issue #12149: Update the method cache after a type's dictionnary gets - Issue #12149: Update the method cache after a type's dictionnary gets
cleared by the garbage collector. This fixes a segfault when an instance cleared by the garbage collector. This fixes a segfault when an instance
...@@ -75,6 +75,13 @@ Library ...@@ -75,6 +75,13 @@ Library
- Issue #12451: xml.dom.pulldom: parse() now opens files in binary mode instead - Issue #12451: xml.dom.pulldom: parse() now opens files in binary mode instead
of the text mode (using the locale encoding) to avoid encoding issues. of the text mode (using the locale encoding) to avoid encoding issues.
Extension Modules
-----------------
- Issue #10309: Define _GNU_SOURCE so that mremap() gets the proper
signature. Without this, architectures where sizeof void* != sizeof int are
broken. Patch given by Hallvard B Furuseth.
C-API C-API
----- -----
......
...@@ -457,6 +457,11 @@ DEFAULT_MMAP_THRESHOLD default: 256K ...@@ -457,6 +457,11 @@ DEFAULT_MMAP_THRESHOLD default: 256K
#define LACKS_ERRNO_H #define LACKS_ERRNO_H
#define MALLOC_FAILURE_ACTION #define MALLOC_FAILURE_ACTION
#define MMAP_CLEARS 0 /* WINCE and some others apparently don't clear */ #define MMAP_CLEARS 0 /* WINCE and some others apparently don't clear */
#elif !defined _GNU_SOURCE
/* mremap() on Linux requires this via sys/mman.h
* See roundup issue 10309
*/
#define _GNU_SOURCE 1
#endif /* WIN32 */ #endif /* WIN32 */
#if defined(DARWIN) || defined(_DARWIN) #if defined(DARWIN) || defined(_DARWIN)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment