]> granicus.if.org Git - php/commitdiff
This needs to be a long
authorRasmus Lerdorf <rasmus@php.net>
Wed, 29 May 2013 21:17:32 +0000 (14:17 -0700)
committerRasmus Lerdorf <rasmus@php.net>
Wed, 29 May 2013 21:22:43 +0000 (14:22 -0700)
Otherwise we are limited to a 32G opcache segment

ext/opcache/zend_shared_alloc.c
ext/opcache/zend_shared_alloc.h

index 5405751ac3ade123882876fdb8b52d4de793bd44..691c2a595a69bcf1692dcbcba8ed81c89cfadc6a 100644 (file)
@@ -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;
index b7f36299bf543db9c6234cb77b1cd1d36632cd15..40f1f89ec0c653d0f27a264cc31626a1518118dd 100644 (file)
@@ -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 */