openbsd-ports/www/chromium/patches/patch-chrome_renderer_render_thread_cc
espie 5cb978edde cut the "monster patches" into small pieces. pval can fix it to his liking
if he comes back.
In the mean time, fix build of chromium by adding the required
-I/usr/local/includes to gyp glue where needed.
2010-12-13 09:51:45 +00:00

22 lines
857 B
Plaintext

$OpenBSD: patch-chrome_renderer_render_thread_cc,v 1.1 2010/12/13 09:51:45 espie Exp $
--- chrome/renderer/render_thread.cc.orig Tue Mar 30 07:31:33 2010
+++ chrome/renderer/render_thread.cc Sun Nov 28 00:11:31 2010
@@ -827,7 +827,7 @@ void RenderThread::EnsureWebKitInitialized() {
}
void RenderThread::IdleHandler() {
-#if (defined(OS_WIN) || defined(OS_LINUX)) && defined(USE_TCMALLOC)
+#if !defined(OS_MACOSX) && defined(USE_TCMALLOC)
MallocExtension::instance()->ReleaseFreeMemory();
#endif
@@ -901,7 +901,7 @@ void RenderThread::OnPurgeMemory() {
while (!v8::V8::IdleNotification()) {
}
-#if (defined(OS_WIN) || defined(OS_LINUX)) && defined(USE_TCMALLOC)
+#if !defined(OS_MACOSX) && defined(USE_TCMALLOC)
// Tell tcmalloc to release any free pages it's still holding.
MallocExtension::instance()->ReleaseFreeMemory();
#endif