pike.git
/
src
/
builtin.cmod
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/builtin.cmod:1176:
*! @member float "average_slowness" *! When predicting the next gc interval, use a decaying average *! with this slowness factor. It should be a value between 0.0 and *! 1.0 that specifies the weight to give to the old average value. *! The remaining weight up to 1.0 is given to the last reading. *! @member function(:void) "pre_cb" *! This function is called when the gc starts. *! @member function(:void) "post_cb" *! This function is called when the mark and sweep pass of the gc *! is done.
-
*! @member function(object:void) "destruct_cb"
+
*! @member function(object
,int,int
:void) "destruct_cb"
*! This function is called once for each object that is part of *! a cycle just before the gc will destruct it.
-
+
*! The arguments are:
+
*! @dl
+
*! @item
+
*! The object to be destructed.
+
*! @item
+
*! The reason for it being destructed. One of:
+
*! @int
+
*! @value Object.DESTRUCT_CLEANUP
+
*! Destructed during exit.
+
*! @value Object.DESTRUCT_GC
+
*! Destructed during normal implicit or explicit @[gc()].
+
*! @endint
+
*! @item
+
*! The number of references it had.
+
*! @enddl
*! @member function(int:void) "done_cb" *! This function is called when the gc is done and about to exit. *! The argument is the same value as will be returned by gc(). *! @endmapping *! *! @seealso *! @[gc], @[Debug.gc_status] */ PMOD_EXPORT PIKEFUN mapping(string:mixed) gc_parameters (void|mapping(string:mixed) params)