<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Crash on xLarge memory allocation using bmalloc on 32bit systems"
   href="https://bugs.webkit.org/show_bug.cgi?id=146440#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Crash on xLarge memory allocation using bmalloc on 32bit systems"
   href="https://bugs.webkit.org/show_bug.cgi?id=146440">bug 146440</a>
              from <span class="vcard"><a class="email" href="mailto:mario&#64;webkit.org" title="Mario Sanchez Prada &lt;mario&#64;webkit.org&gt;"> <span class="fn">Mario Sanchez Prada</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=146440#c2">comment #2</a>)
<span class="quote">&gt; [...]
&gt; Also, should disabling this optimization could make sense as a reasonable
&gt; workaround for 2.8.3 (similar to what it's done in <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [EFL][GTK][Windows] Fix the regression caused by the jsCStack branch merge"
   href="show_bug.cgi?id=127777">bug 127777</a> with
&gt; -fno-omit-frame-pointer and -fno-tree-dce), would it be ok to propose a
&gt; patch for the CMake files for WebKitGTK+? (Adding Martin to CC)</span >

To be more precise, I was thinking perhaps of something like this:

diff --git a/Source/cmake/OptionsCommon.cmake b/Source/cmake/OptionsCommon.cmake
index 6691526..355d475 100644
--- a/Source/cmake/OptionsCommon.cmake
+++ b/Source/cmake/OptionsCommon.cmake
&#64;&#64; -99,6 +99,12 &#64;&#64; endif ()

 string(TOLOWER ${CMAKE_HOST_SYSTEM_PROCESSOR} LOWERCASE_CMAKE_HOST_SYSTEM_PROCESSOR)
 if (&quot;${CMAKE_CXX_COMPILER_ID}&quot; STREQUAL &quot;GNU&quot; AND &quot;${LOWERCASE_CMAKE_HOST_SYSTEM_PROCESSOR}&quot; MATCHES &quot;(i[3-6]86|x86)&quot;)
+    # The -ftree-sra optimization (implicit with -O2) causes crashes when
+    # allocating large chunks of memory using bmalloc on Intel 32bit.
+    # See <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Crash on xLarge memory allocation using bmalloc on 32bit systems"
   href="show_bug.cgi?id=146440">https://bugs.webkit.org/show_bug.cgi?id=146440</a>
+    set(CMAKE_C_FLAGS &quot;${CMAKE_C_FLAGS} -fno-tree-sra&quot;)
+    set(CMAKE_CXX_FLAGS &quot;${CMAKE_CXX_FLAGS} -fno-tree-sra&quot;)
+
     # To avoid out of memory when building with debug option in 32bit system.
     # See <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - [CMAKE] Fix build break because of memory exhausted."
   href="show_bug.cgi?id=77327">https://bugs.webkit.org/show_bug.cgi?id=77327</a>
     set(CMAKE_SHARED_LINKER_FLAGS_DEBUG &quot;-Wl,--no-keep-memory ${CMAKE_SHARED_LINKER_FLAGS_DEBUG}&quot;)</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>