[Webkit-unassigned] [Bug 27029] [Qt] Allow custom memory allocation control in the whole JSCore

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Oct 1 07:28:25 PDT 2009


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





--- Comment #17 from Simon Hausmann <hausmann at webkit.org>  2009-10-01 07:28:25 PDT ---
(From update of attachment 40364)

> +#if PLATFORM(QT) && PLATFORM(UNIX)
> +#include <unistd.h>
> +#endif
>  #if COMPILER(MSVC)
>  #ifndef WIN32_LEAN_AND_MEAN
>  #define WIN32_LEAN_AND_MEAN
> @@ -2274,12 +2277,18 @@ static inline TCMalloc_PageHeap* getPage
>  #define pageheap getPageHeap()
>  
>  #if USE_BACKGROUND_THREAD_TO_SCAVENGE_MEMORY
> -#if PLATFORM(WIN)
> +#if PLATFORM(WIN_OS)
>  static void sleep(unsigned seconds)
>  {
>      ::Sleep(seconds * 1000);
>  }
>  #endif
> +#if PLATFORM(QT) && PLATFORM(UNIX)
> +static void sleep(unsigned seconds)
> +{
> +    ::sleep(seconds);
> +}
> +#endif

On a second thought, why is the sleep() overload needed here only for the Qt
port?

The Gtk+ port builds TCSystemMalloc.cpp and doesn't seem to need the sleep()
forward
function.

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