[Webkit-unassigned] [Bug 95923] [EFL] Implement GCActivityCallback

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 21 23:46:44 PDT 2013


https://bugs.webkit.org/show_bug.cgi?id=95923





--- Comment #26 from Christophe Dumez <dchris at gmail.com>  2013-05-21 23:45:12 PST ---
(From update of attachment 202500)
View in context: https://bugs.webkit.org/attachment.cgi?id=202500&action=review

>>> Source/JavaScriptCore/heap/HeapTimer.h:42
>>> +#include <Ecore.h>
>> 
>> A forward declaration of Ecore_Timer would suffice here. And this include can be moved to the cpp.
> 
> Do you mean that it'd better move "#include <Ecore.h>" to the cpp?

Yes, and have a forward declaration here:
typedef struct _Ecore_Timer Ecore_Timer;

>>> Source/JavaScriptCore/runtime/GCActivityCallback.cpp:127
>>> +    m_timer = ecore_timer_add(newDelay, reinterpret_cast<Ecore_Task_Cb>(HeapTimer::timerEvent), this);
>> 
>> I would add a ASSERT(!m_timer); right before this line to make sure we never leak.
> 
> I'll fix to set m_timer as 0 in stop().

You already set m_timer to 0 in stop. All I ask for in an extra assert to make sure someone does not remove the stop() later on :)

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list