Skip to content

Commit 595471c

Browse files
committed
Fix cache size
Signed-off-by: Bob Weinand <bobwei9@hotmail.com>
1 parent e736aeb commit 595471c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/opcache/ZendAccelerator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4389,7 +4389,7 @@ static void preload_load(size_t orig_map_ptr_static_last)
43894389
if (orig_map_ptr_static_last != zend_map_ptr_static_last) {
43904390
/* preloaded static entries currently are all runtime cache pointers, just assign them as such */
43914391
size_t runtime_cache_size = zend_internal_run_time_cache_reserved_size();
4392-
ZCG(preloaded_internal_run_time_cache_size) = (zend_map_ptr_static_last - orig_map_ptr_static_last) * sizeof(void *);
4392+
ZCG(preloaded_internal_run_time_cache_size) = (zend_map_ptr_static_last - orig_map_ptr_static_last) * runtime_cache_size;
43934393
char *cache = pemalloc(ZCG(preloaded_internal_run_time_cache_size), 1);
43944394
ZCG(preloaded_internal_run_time_cache) = cache;
43954395

0 commit comments

Comments
 (0)