Changeset 91113 in webkit


Ignore:
Timestamp:
Jul 15, 2011 2:24:32 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

Unreviewed, rolling out r90592.
http://trac.webkit.org/changeset/90592
https://bugs.webkit.org/show_bug.cgi?id=64627

Causes crashes with the web audio async decoding API
(Requested by jamesr on #webkit).

Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2011-07-15

  • html/canvas/ArrayBuffer.cpp:

(WebCore::ArrayBuffer::~ArrayBuffer):
(WebCore::ArrayBuffer::tryAllocate):

  • manual-tests/array-buffer-memory.html: Removed.
Location:
trunk/Source/WebCore
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r91112 r91113  
     12011-07-15  Sheriff Bot  <webkit.review.bot@gmail.com>
     2
     3        Unreviewed, rolling out r90592.
     4        http://trac.webkit.org/changeset/90592
     5        https://bugs.webkit.org/show_bug.cgi?id=64627
     6
     7        Causes crashes with the web audio async decoding API
     8        (Requested by jamesr on #webkit).
     9
     10        * html/canvas/ArrayBuffer.cpp:
     11        (WebCore::ArrayBuffer::~ArrayBuffer):
     12        (WebCore::ArrayBuffer::tryAllocate):
     13        * manual-tests/array-buffer-memory.html: Removed.
     14
    1152011-07-15  Kenneth Russell  <kbr@google.com>
    216
  • trunk/Source/WebCore/html/canvas/ArrayBuffer.cpp

    r90592 r91113  
    2626#include "config.h"
    2727#include "ArrayBuffer.h"
    28 
    29 #if USE(V8)
    30 #include "V8Binding.h"
    31 #endif
    3228
    3329#include <wtf/RefPtr.h>
     
    8177ArrayBuffer::~ArrayBuffer()
    8278{
    83 #if USE(V8)
    84     v8::V8::AdjustAmountOfExternalAllocatedMemory(-m_sizeInBytes);
    85 #endif
    8679    WTF::fastFree(m_data);
    8780}
     
    9992            return 0;
    10093    }
    101     if (WTF::tryFastCalloc(numElements, elementByteSize).getValue(result)) {
    102 #if USE(V8)
    103         v8::V8::AdjustAmountOfExternalAllocatedMemory(numElements * elementByteSize);
    104 #endif
     94    if (WTF::tryFastCalloc(numElements, elementByteSize).getValue(result))
    10595        return result;
    106     }
    10796    return 0;
    10897}
Note: See TracChangeset for help on using the changeset viewer.