Changeset 147743 in webkit


Ignore:
Timestamp:
Apr 5, 2013 6:42:35 AM (11 years ago)
Author:
rakuco@webkit.org
Message:

[EFL] Disable GLOBAL_FAST_MALLOC_NEW by default.
https://bugs.webkit.org/show_bug.cgi?id=114031

Reviewed by Alexis Menard.

Follow what some other ports already do and avoid globally overriding
the new' and delete' operators with the ones in FastMalloc.

In many cases, third-party or client code allocates memory with
standard library calls but the memory gets deleted by FastMalloc,
causing a crash. The reverse (ie. memory being allocated by FastMalloc
and freed by the system libraries) is also possible.

Commits 135666 and 121018 provide more information about this, as well
as comment 6 in bug 89358.

  • wtf/Platform.h:
Location:
trunk/Source/WTF
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r147715 r147743  
     12013-04-05  Raphael Kubo da Costa  <raphael.kubo.da.costa@intel.com>
     2
     3        [EFL] Disable GLOBAL_FAST_MALLOC_NEW by default.
     4        https://bugs.webkit.org/show_bug.cgi?id=114031
     5
     6        Reviewed by Alexis Menard.
     7
     8        Follow what some other ports already do and avoid globally overriding
     9        the `new' and `delete' operators with the ones in FastMalloc.
     10
     11        In many cases, third-party or client code allocates memory with
     12        standard library calls but the memory gets deleted by FastMalloc,
     13        causing a crash. The reverse (ie. memory being allocated by FastMalloc
     14        and freed by the system libraries) is also possible.
     15
     16        Commits 135666 and 121018 provide more information about this, as well
     17        as comment 6 in bug 89358.
     18
     19        * wtf/Platform.h:
     20
    1212013-04-05  Benjamin Poulain  <bpoulain@apple.com>
    222
  • trunk/Source/WTF/wtf/Platform.h

    r147595 r147743  
    710710#endif
    711711
     712#if PLATFORM(EFL)
     713#define ENABLE_GLOBAL_FASTMALLOC_NEW 0
     714#endif
     715
    712716#if !defined(ENABLE_GLOBAL_FASTMALLOC_NEW)
    713717#define ENABLE_GLOBAL_FASTMALLOC_NEW 1
Note: See TracChangeset for help on using the changeset viewer.