Commit Graph

54 Commits

Author SHA1 Message Date
Xinchen Hui
dfc99d93d5 Remove redundant codes 2014-09-15 16:52:33 +08:00
Anatol Belski
c22458adc5 fix ZTS build 2014-09-12 21:38:39 +02:00
Xinchen Hui
243ec132e6 Forget to commit this part... 2014-09-13 02:00:15 +08:00
Xinchen Hui
78ce2557f5 Finally!!! Fixed segfault in GC
this must not be the final fix, but let's stop the segfault first and
use this to indicate where the problem is.

reproduced by phpspec
2014-09-13 01:55:49 +08:00
Dmitry Stogov
50a76860bd Fixed GC for inner-loops (ext/standard/tests/array/compact_variation1.phpt).
Fixed bug #63734.
2014-08-07 18:50:03 +04:00
Dmitry Stogov
414762fc12 Fixed GC (Zend/tests/bug63635.phpt) 2014-08-06 15:31:07 +04:00
Anatol Belski
f089d63ddd C89 compat 2014-05-13 14:04:53 +02:00
Dmitry Stogov
e99e6958bc Cleanup 2014-04-16 01:45:40 +04:00
Dmitry Stogov
b0b54e8db4 Fixed nested GC calls (valgrind error in Zend/tests/gc_016.phpt) 2014-04-14 22:41:42 +04:00
Dmitry Stogov
7402af380b Fixed destruction of objects and iterators on unclean request shutdown and GC (few cases are still unfixed).
Now we destroy objects it two steps. At first - object properties of all objects and only then the objects their selves.
2014-04-09 01:50:15 +04:00
Dmitry Stogov
76cc99fe60 Refactored ZVAL flags usage to simplify various checks (e.g. Z_REFCOUNTED(), candidate for GC, etc) 2014-04-03 15:26:23 +04:00
Dmitry Stogov
d8099d0468 Changed data layout to allow more efficient operations 2014-04-02 14:34:44 +04:00
Dmitry Stogov
887189ca31 Refactored IS_INDIRECT usage for CV and object properties to support HashTable resizing 2014-03-26 18:07:31 +04:00
Dmitry Stogov
b4b728fe85 don't mark zvals as rotts if they are already processed by GC 2014-03-21 21:36:46 +04:00
Dmitry Stogov
a9d21c1457 check if object store was freed before accessing particular object 2014-03-20 17:26:20 +04:00
Dmitry Stogov
2909c72b69 Improved GC compatibility 2014-03-20 00:29:20 +04:00
Dmitry Stogov
cb411f024d GC cleanup 2014-03-19 18:11:46 +04:00
Dmitry Stogov
120dfd1e04 GC cleanup 2014-03-19 17:55:42 +04:00
Dmitry Stogov
9385ddaff9 GC related fix 2014-03-19 17:25:19 +04:00
Dmitry Stogov
b7938ab1bd Refactored GC (incomplete) 2014-03-19 17:00:28 +04:00
Dmitry Stogov
f4cfaf36e2 Use better data structures (incomplete) 2014-02-10 10:04:30 +04:00
Xinchen Hui
c081ce628f Bump year 2014-01-03 11:08:10 +08:00
Xinchen Hui
a666285bc2 Happy New Year 2013-01-01 16:37:09 +08:00
Dmitry Stogov
3c1888f584 Fixed bug #63635 (Segfault in gc_collect_cycles) 2012-11-29 13:06:12 +04:00
Felipe Pena
8775a37559 - Year++ 2012-01-01 13:15:04 +00:00
Dmitry Stogov
b64e91ddeb Fixed bug #60139 (Anonymous functions create cycles not detected by the GC) 2011-11-02 06:31:33 +00:00
Felipe Pena
b57d9f41cf - Fixed ZTS build 2011-04-17 22:06:27 +00:00
Dmitry Stogov
e623543452 Improved GC to avaid reconstruction of HashTables for object properties 2011-04-15 09:57:43 +00:00
Felipe Pena
0203cc3d44 - Year++ 2011-01-01 02:17:06 +00:00
Dmitry Stogov
88bf6d2e16 Fixed GC bug 2010-09-03 09:27:47 +00:00
Stanislav Malyshev
de363cf818 fix #49192 - crash in GC when get_properties handler returns null 2010-04-01 22:54:03 +00:00
Sebastian Bergmann
35e83d2afb sed -i "s#1998-2009#1998-2010#g" **/*.c **/*.h **/*.php 2010-01-05 20:46:53 +00:00
Dmitry Stogov
31fd155b4c Improved GC speed and reduced stack usage 2009-04-03 18:52:36 +00:00
Dmitry Stogov
4d8a928716 Fixed bug #47343 (gc_collect_cycles causes a segfault when called within a destructor in one case) 2009-02-18 12:03:03 +00:00
Dmitry Stogov
c05dfd5605 Better fix for #47341 2009-02-09 08:55:35 +00:00
Derick Rethans
201c26283c - Fixed bug #47341: Calling gc_collect_cycles() with zend.enable_gc=0 causes
segfault.
2009-02-08 19:30:01 +00:00
Felipe Pena
1f44875c1b - Year++ 2009-01-02 20:36:30 +00:00
Arnaud Le Blanc
374723d056 MFB "Disabled $GLOBALS' refcount modification" 2008-09-14 15:20:16 +00:00
Marcus Boerger
3110bffd16 - Fix issue with destruction of overloaded objects
# The issue is that we assume default object handlers when calling method
# __destruct(). Now the default handlers might not be compatible with the
# correct handlers which would result in crashes or they simply do cannot
# support everything the object was supposed to do. The latter case will be
# demonstrated in ext/spl/tests/iterator_068.phpt.
2008-08-24 16:45:50 +00:00
Felipe Pena
2985b4f9e3 - Removed some TSRMLS_FETCH()s 2008-08-15 19:45:25 +00:00
Dmitry Stogov
0ab4c933e7 Fixed bug #45434 (circular reference causes segfault in gc_collect_cycles()) 2008-07-08 08:16:18 +00:00
Antony Dovgal
bcd74c270b fix spelling 2008-04-29 13:50:22 +00:00
Dmitry Stogov
2396f40eb5 Fixed GC slowdown 2008-04-29 13:43:49 +00:00
Felipe Pena
d69738604f - Removed unused variables 2008-04-24 16:15:33 +00:00
Dmitry Stogov
111954d7f1 Speedup GC initialization 2008-04-11 17:32:18 +00:00
Dmitry Stogov
90e570be3b Improve GC to support garbage created in destructors during objects utilization 2008-03-14 18:37:17 +00:00
Dmitry Stogov
3fe5fcaabc Removed commented code and unnecessary inline function 2008-03-14 13:35:54 +00:00
Dmitry Stogov
2b82e0d78a Fixed GC bug 2008-03-14 13:21:21 +00:00
Dmitry Stogov
8cd3e937e6 Prevented recursive collector invocation 2008-02-21 10:42:22 +00:00
Dmitry Stogov
41fc9ece97 Added checks for destoied objects 2008-02-20 09:46:05 +00:00