diff options
Diffstat (limited to 'ext/opcache/zend_shared_alloc.h')
-rw-r--r-- | ext/opcache/zend_shared_alloc.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/ext/opcache/zend_shared_alloc.h b/ext/opcache/zend_shared_alloc.h index b41f79b6e5..2a77dfbef7 100644 --- a/ext/opcache/zend_shared_alloc.h +++ b/ext/opcache/zend_shared_alloc.h @@ -2,7 +2,7 @@ +----------------------------------------------------------------------+ | Zend OPcache | +----------------------------------------------------------------------+ - | Copyright (c) 1998-2018 The PHP Group | + | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | @@ -33,6 +33,9 @@ # define USE_MMAP 1 # endif #elif defined(__linux__) || defined(_AIX) +# ifdef HAVE_SHM_MMAP_POSIX +# define USE_SHM_OPEN 1 +# endif # ifdef HAVE_SHM_IPC # define USE_SHM 1 # endif @@ -125,7 +128,15 @@ void zend_shared_alloc_shutdown(void); void *zend_shared_alloc(size_t size); /* copy into shared memory */ -void *_zend_shared_memdup(void *p, size_t size, zend_bool free_source); +void *zend_shared_memdup_get_put_free(void *source, size_t size); +void *zend_shared_memdup_put_free(void *source, size_t size); +void *zend_shared_memdup_free(void *source, size_t size); +void *zend_shared_memdup_get_put(void *source, size_t size); +void *zend_shared_memdup_put(void *source, size_t size); +void *zend_shared_memdup(void *source, size_t size); +void *zend_shared_memdup_arena_put(void *source, size_t size); +void *zend_shared_memdup_arena(void *source, size_t size); + int zend_shared_memdup_size(void *p, size_t size); int zend_accel_in_shm(void *ptr); @@ -154,6 +165,8 @@ void zend_shared_alloc_safe_unlock(void); void zend_shared_alloc_init_xlat_table(void); void zend_shared_alloc_destroy_xlat_table(void); void zend_shared_alloc_clear_xlat_table(void); +uint32_t zend_shared_alloc_checkpoint_xlat_table(void); +void zend_shared_alloc_restore_xlat_table(uint32_t checkpoint); void zend_shared_alloc_register_xlat_entry(const void *old, const void *new); void *zend_shared_alloc_get_xlat_entry(const void *old); |