Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
06cd5b6a
Commit
06cd5b6a
authored
Oct 21, 2019
by
Hai Shi
Committed by
Serhiy Storchaka
Oct 21, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-38465: Convert the type of exports counters to Py_ssize_t. (GH-16746)
parent
74142078
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
Include/bytearrayobject.h
Include/bytearrayobject.h
+4
-5
Misc/NEWS.d/next/Core and Builtins/2019-10-19-12-44-13.bpo-38465.V1L8c4.rst
...ore and Builtins/2019-10-19-12-44-13.bpo-38465.V1L8c4.rst
+1
-0
Modules/arraymodule.c
Modules/arraymodule.c
+1
-1
Modules/mmapmodule.c
Modules/mmapmodule.c
+1
-1
No files found.
Include/bytearrayobject.h
View file @
06cd5b6a
...
...
@@ -22,11 +22,10 @@ extern "C" {
#ifndef Py_LIMITED_API
typedef
struct
{
PyObject_VAR_HEAD
Py_ssize_t
ob_alloc
;
/* How many bytes allocated in ob_bytes */
char
*
ob_bytes
;
/* Physical backing buffer */
char
*
ob_start
;
/* Logical start inside ob_bytes */
/* XXX(nnorwitz): should ob_exports be Py_ssize_t? */
int
ob_exports
;
/* How many buffer exports */
Py_ssize_t
ob_alloc
;
/* How many bytes allocated in ob_bytes */
char
*
ob_bytes
;
/* Physical backing buffer */
char
*
ob_start
;
/* Logical start inside ob_bytes */
Py_ssize_t
ob_exports
;
/* How many buffer exports */
}
PyByteArrayObject
;
#endif
...
...
Misc/NEWS.d/next/Core and Builtins/2019-10-19-12-44-13.bpo-38465.V1L8c4.rst
0 → 100644
View file @
06cd5b6a
:class:`bytearray`, :class:`~array.array` and :class:`~mmap.mmap` objects allow now to export more than 2**31 buffers at a time.
\ No newline at end of file
Modules/arraymodule.c
View file @
06cd5b6a
...
...
@@ -43,7 +43,7 @@ typedef struct arrayobject {
Py_ssize_t
allocated
;
const
struct
arraydescr
*
ob_descr
;
PyObject
*
weakreflist
;
/* List of weak references */
in
t
ob_exports
;
/* Number of exported buffers */
Py_ssize_
t
ob_exports
;
/* Number of exported buffers */
}
arrayobject
;
static
PyTypeObject
Arraytype
;
...
...
Modules/mmapmodule.c
View file @
06cd5b6a
...
...
@@ -97,7 +97,7 @@ typedef struct {
#else
off_t
offset
;
#endif
int
exports
;
Py_ssize_t
exports
;
#ifdef MS_WINDOWS
HANDLE
map_handle
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment