summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-06-22 07:10:23 (GMT)
committerGitHub <noreply@github.com>2021-06-22 07:10:23 (GMT)
commitcf739332bd039cd2303b58663a804f784883820d (patch)
treea22be3b2faca9dcd651ba58e643fb82b07a66fae /Include
parentc032a12cbb7d6e2d6a292b0e9220c33ef7349d28 (diff)
downloadcpython-cf739332bd039cd2303b58663a804f784883820d.zip
cpython-cf739332bd039cd2303b58663a804f784883820d.tar.gz
cpython-cf739332bd039cd2303b58663a804f784883820d.tar.bz2
bpo-44458: Ensure BUFFER_BLOCK_SIZE symbol is statically allocated. (GH-26808) (GH-26844)
* bpo-44458: Ensure BUFFER_BLOCK_SIZE symbol is statically allocated. (cherry picked from commit 92c2e91580521ba5c85aa3205a0211df5b48689b) Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Diffstat (limited to 'Include')
-rw-r--r--Include/internal/pycore_blocks_output_buffer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/internal/pycore_blocks_output_buffer.h b/Include/internal/pycore_blocks_output_buffer.h
index 22546e9..28cf6fb 100644
--- a/Include/internal/pycore_blocks_output_buffer.h
+++ b/Include/internal/pycore_blocks_output_buffer.h
@@ -57,7 +57,7 @@ static const char unable_allocate_msg[] = "Unable to allocate output buffer.";
/* Block size sequence */
#define KB (1024)
#define MB (1024*1024)
-const Py_ssize_t BUFFER_BLOCK_SIZE[] =
+static const Py_ssize_t BUFFER_BLOCK_SIZE[] =
{ 32*KB, 64*KB, 256*KB, 1*MB, 4*MB, 8*MB, 16*MB, 16*MB,
32*MB, 32*MB, 32*MB, 32*MB, 64*MB, 64*MB, 128*MB, 128*MB,
OUTPUT_BUFFER_MAX_BLOCK_SIZE };