mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
This needs to be a long
Otherwise we are limited to a 32G opcache segment
This commit is contained in:
parent
7e00d0994f
commit
29ee4b81f2
2 changed files with 3 additions and 3 deletions
|
@ -119,7 +119,7 @@ static void copy_shared_segments(void *to, void *from, int count, int size)
|
|||
}
|
||||
}
|
||||
|
||||
static int zend_shared_alloc_try(const zend_shared_memory_handler_entry *he, int requested_size, zend_shared_segment ***shared_segments_p, int *shared_segments_count, char **error_in)
|
||||
static int zend_shared_alloc_try(const zend_shared_memory_handler_entry *he, long requested_size, zend_shared_segment ***shared_segments_p, int *shared_segments_count, char **error_in)
|
||||
{
|
||||
int res;
|
||||
g_shared_alloc_handler = he->handler;
|
||||
|
@ -148,7 +148,7 @@ static int zend_shared_alloc_try(const zend_shared_memory_handler_entry *he, int
|
|||
return ALLOC_FAILURE;
|
||||
}
|
||||
|
||||
int zend_shared_alloc_startup(int requested_size)
|
||||
int zend_shared_alloc_startup(long requested_size)
|
||||
{
|
||||
zend_shared_segment **tmp_shared_segments;
|
||||
size_t shared_segments_array_size;
|
||||
|
|
|
@ -117,7 +117,7 @@ extern zend_smm_shared_globals *smm_shared_globals;
|
|||
|
||||
#define SHARED_ALLOC_REATTACHED (SUCCESS+1)
|
||||
|
||||
int zend_shared_alloc_startup(int requested_size);
|
||||
int zend_shared_alloc_startup(long requested_size);
|
||||
void zend_shared_alloc_shutdown(void);
|
||||
|
||||
/* allocate shared memory block */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue