-
commit-queue@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=95923 Patch by Hojong Han <hojong.han@samsung.com> on 2013-06-03 Reviewed by Geoffrey Garen. Implements the activity triggered garbage collector. Additional GCs can be triggered by platfrom timer. It has sort of compaction effect not to make JSC heap grow fast so that memory usage becomes lower than usual. * PlatformEfl.cmake: Added. * heap/HeapTimer.cpp: (JSC): (JSC::HeapTimer::HeapTimer): (JSC::HeapTimer::~HeapTimer): (JSC::HeapTimer::add): (JSC::HeapTimer::stop): (JSC::HeapTimer::timerEvent): * heap/HeapTimer.h: (HeapTimer): * jsc.cpp: (main): * runtime/GCActivityCallback.cpp: (JSC): (JSC::DefaultGCActivityCallback::DefaultGCActivityCallback): (JSC::DefaultGCActivityCallback::scheduleTimer): (JSC::DefaultGCActivityCallback::cancelTimer): (JSC::DefaultGCActivityCallback::didAllocate): * runtime/GCActivityCallback.h: (GCActivityCallback): (JSC::GCActivityCallback::GCActivityCallback): (DefaultGCActivityCallback): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@151149 268f45cc-cd09-0410-ab3c-d52691b4dbfc
21e8c5f0