The garbage collection mechanism of PHP features-the collection cycle is traditionally like the reference counting memory mechanism used by php in the past, which cannot handle cyclic reference memory leakage. However, 5.3.0 PHP uses the article»
The previous article introduced. the basic principles of net garbage collection and the internal mechanism of implementing the Finalize method for garbage collection; this article describes weak reference objects, generation, and multi-thread
Weak References: when the root object of a program points to an object, this object is reachable and cannot be recycled by the garbage collector, which is called a strong reference to the object. Strong references are relatively weak references.
1. The meaning of garbage collectionIn C + +, the memory occupied by an object is occupied until the end of the program and cannot be assigned to other objects until it is explicitly released, whereas in Java the memory becomes garbage when there is
1. Related ConceptsBasic recycling Algorithm
Reference Counting)The old recycling algorithm. The principle is that this object has a reference, that is, adding a count. deleting a reference reduces the count. During garbage collection, only
PHP5.3 has an in-depth understanding of the garbage collection mechanism (dynamic storage allocation solution. The garbage collection mechanism is a dynamic storage allocation solution. It automatically releases allocated memory blocks that are no
The garbage collection mechanism is a dynamic storage allocation solution that automatically releases allocated memory blocks that are no longer needed by the program. PHP also implements dynamic memory management at the language layer. the dynamic
The garbage collection mechanism is a dynamic storage allocation scheme. It automatically frees allocated blocks of memory that the program no longer needs. The process of automatically reclaiming memory is called garbage collection. The garbage
Learning--php life cycle of PHP kernel
Start of everything: SAPI interface
SAPI (Server application programming Interface) refers to a specific application of PHP programming interface, just like a PC, no matter what operating system installed, as
The garbage collection mechanism is a dynamic storage allocation solution that automatically releases allocated memory blocks that are no longer needed by the program. PHP also implements dynamic memory management at the language layer. the dynamic
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.