Changeset 186263 in webkit


Ignore:
Timestamp:
Jul 3, 2015 1:39:08 PM (9 years ago)
Author:
mario@webkit.org
Message:

Crash on xLarge memory allocation using bmalloc on 32bit systems
https://bugs.webkit.org/show_bug.cgi?id=146440

Reviewed by Gustavo Noronha Silva.

Disable the gcc's -ftree-sra optimization (automatically enabled
with -O1 and higher levels) for WebCore and 32bit Intel architectures,
as that causes the crash in bmalloc when allocating large amounts of
memory from the texture mapper's tiled backing store implementation.

  • CMakeLists.txt: Pass -fno-free-sra to gcc on 32bit Intel architectures.
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/CMakeLists.txt

    r186169 r186263  
    35753575set_target_properties(WebCore PROPERTIES FOLDER "WebCore")
    35763576
     3577# The -ftree-sra optimization (implicit with -O2) causes crashes when
     3578# allocating large chunks of memory using bmalloc on Intel 32bit.
     3579# See https://bugs.webkit.org/show_bug.cgi?id=146440
     3580string(TOLOWER ${CMAKE_HOST_SYSTEM_PROCESSOR} LOWERCASE_CMAKE_HOST_SYSTEM_PROCESSOR)
     3581if (CMAKE_COMPILER_IS_GNUCXX AND "${LOWERCASE_CMAKE_HOST_SYSTEM_PROCESSOR}" MATCHES "(i[3-6]86|x86)$")
     3582    ADD_TARGET_PROPERTIES(WebCore COMPILE_FLAGS "-fno-tree-sra")
     3583endif ()
     3584
    35773585if (WebCore_OUTPUT_NAME)
    35783586    set_target_properties(WebCore PROPERTIES OUTPUT_NAME ${WebCore_OUTPUT_NAME})
  • trunk/Source/WebCore/ChangeLog

    r186261 r186263  
     12015-07-03  Mario Sanchez Prada  <mario@endlessm.com>
     2
     3        Crash on xLarge memory allocation using bmalloc on 32bit systems
     4        https://bugs.webkit.org/show_bug.cgi?id=146440
     5
     6        Reviewed by Gustavo Noronha Silva.
     7
     8        Disable the gcc's -ftree-sra optimization (automatically enabled
     9        with -O1 and higher levels) for WebCore and 32bit Intel architectures,
     10        as that causes the crash in bmalloc when allocating large amounts of
     11        memory from the texture mapper's tiled backing store implementation.
     12
     13        * CMakeLists.txt: Pass -fno-free-sra to gcc on 32bit Intel architectures.
     14
    1152015-07-03  Csaba Osztrogonác  <ossy@webkit.org>
    216
Note: See TracChangeset for help on using the changeset viewer.