[Webkit-unassigned] [Bug 88344] Fix FastMalloc.cpp compile error for MSVC in 64-bit

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 12 12:28:37 PDT 2012


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





--- Comment #10 from Ryosuke Niwa <rniwa at webkit.org>  2012-06-12 12:28:37 PST ---
(In reply to comment #8)
> The preprocessor cannot use the sizeof operator.  Since this would add a maximum of 64 bytes per TCMalloc_Central_FreeListPadded and there is only an array of kNumClasses of these objects, and kNumClasses is 68, this would use a maximum of 4420 bytes.  I don't think this is anything to worry about.

Oops, you're right. However, we can use template specialization based on sizeof.

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