[Webkit-unassigned] [Bug 69942] When an API test fails, TestWebKitAPI crashes

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Dec 21 10:23:49 PST 2011


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





--- Comment #17 from David Kilzer (ddkilzer) <ddkilzer at webkit.org>  2011-12-21 10:23:49 PST ---
(In reply to comment #15)
> (In reply to comment #14)
> > Of course, the problem with this approach is that 'new' and 'delete' operators in JavaScriptCore headers now will NOT be redefined as fastMalloc() and fastFree(), so there will be mismatches when creating/deleting JSC objects.
> 
> I don't think TestWebKitAPI ever uses new to create JSC objects.

Well, more generally speaking, any JavaScriptCore, WebCore or WebKit header that uses operator 'new' or operator 'delete' is at risk of allocating memory using the wrong allocator if we disable these redefinitions in config.h.  (This assumes we want to be able to unit-test any class.)

-- 
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