diff options
Diffstat (limited to 'ext/opcache/zend_shared_alloc.h')
-rw-r--r-- | ext/opcache/zend_shared_alloc.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/opcache/zend_shared_alloc.h b/ext/opcache/zend_shared_alloc.h index 2a77dfbef7..1dbc88d42e 100644 --- a/ext/opcache/zend_shared_alloc.h +++ b/ext/opcache/zend_shared_alloc.h @@ -75,6 +75,7 @@ typedef struct _zend_shared_segment { size_t size; + size_t end; size_t pos; /* position for simple stack allocator */ void *p; } zend_shared_segment; @@ -113,6 +114,9 @@ typedef struct _zend_smm_shared_globals { zend_shared_memory_state shared_memory_state; /* Pointer to the application's shared data structures */ void *app_shared_globals; + /* Reserved shared memory */ + void *reserved; + size_t reserved_size; } zend_smm_shared_globals; extern zend_smm_shared_globals *smm_shared_globals; @@ -121,10 +125,11 @@ extern zend_smm_shared_globals *smm_shared_globals; #define SHARED_ALLOC_REATTACHED (SUCCESS+1) -int zend_shared_alloc_startup(size_t requested_size); +int zend_shared_alloc_startup(size_t requested_size, size_t reserved_size); void zend_shared_alloc_shutdown(void); /* allocate shared memory block */ +void *zend_shared_alloc_pages(size_t requested_size); void *zend_shared_alloc(size_t size); /* copy into shared memory */ |