Double MAX_ALLOCATING_THREADS to fix segfaults with Go and Octave
for #1641
This commit is contained in:
parent
61659f8765
commit
a49203b48c
|
@ -497,7 +497,7 @@ static const int allocation_block_size = BUFFER_SIZE + sizeof(struct alloc_t);
|
||||||
#if defined(SMP) && !defined(USE_OPENMP)
|
#if defined(SMP) && !defined(USE_OPENMP)
|
||||||
/* This is the number of threads than can be spawned by the server, which is the
|
/* This is the number of threads than can be spawned by the server, which is the
|
||||||
server plus the number of threads in the thread pool */
|
server plus the number of threads in the thread pool */
|
||||||
# define MAX_ALLOCATING_THREADS MAX_CPU_NUMBER * 2 * MAX_PARALLEL_NUMBER +1
|
# define MAX_ALLOCATING_THREADS MAX_CPU_NUMBER * 2 * MAX_PARALLEL_NUMBER * 2
|
||||||
static int next_memory_table_pos = 0;
|
static int next_memory_table_pos = 0;
|
||||||
# if defined(HAS_COMPILER_TLS)
|
# if defined(HAS_COMPILER_TLS)
|
||||||
/* Use compiler generated thread-local-storage */
|
/* Use compiler generated thread-local-storage */
|
||||||
|
|
Loading…
Reference in New Issue