Changeset 67371 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
Sep 13, 2010, 1:58:13 AM (15 years ago)
Author:
[email protected]
Message:

2010-09-13 Kwang Yul Seo <[email protected]>

Reviewed by Kent Tamura.

[BREWMP] Don't call _msize
https://bugs.webkit.org/show_bug.cgi?id=45556

Because Brew MP uses its own memory allocator, it is not correct to use
_msize in fastMallocSize. Add !PLATFORM(BREWMP) guard.

  • wtf/FastMalloc.cpp: (WTF::fastMallocSize):
Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r67306 r67371  
     12010-09-13  Kwang Yul Seo  <[email protected]>
     2
     3        Reviewed by Kent Tamura.
     4
     5        [BREWMP] Don't call _msize
     6        https://bugs.webkit.org/show_bug.cgi?id=45556
     7
     8        Because Brew MP uses its own memory allocator, it is not correct to use
     9        _msize in fastMallocSize. Add !PLATFORM(BREWMP) guard.
     10
     11        * wtf/FastMalloc.cpp:
     12        (WTF::fastMallocSize):
     13
    1142010-09-11  Simon Hausmann  <[email protected]>
    215
  • trunk/JavaScriptCore/wtf/FastMalloc.cpp

    r66883 r67371  
    385385#if OS(DARWIN)
    386386    return malloc_size(p);
    387 #elif COMPILER(MSVC)
     387#elif COMPILER(MSVC) && !PLATFORM(BREWMP)
     388    // Brew MP uses its own memory allocator, so _msize does not work on the Brew MP simulator.
    388389    return _msize(const_cast<void*>(p));
    389390#else
Note: See TracChangeset for help on using the changeset viewer.