Ignore:
Timestamp:
Mar 15, 2012, 4:04:39 PM (13 years ago)
Author:
[email protected]
Message:

CopiedSpace::tryAllocateOversize assumes system page size
https://bugs.webkit.org/show_bug.cgi?id=80615

Patch by Myles Maxfield <[email protected]> on 2012-03-15
Reviewed by Geoffrey Garen.

  • heap/CopiedSpace.cpp:

(JSC::CopiedSpace::tryAllocateOversize):

  • heap/CopiedSpace.h:

(CopiedSpace):

  • heap/CopiedSpaceInlineMethods.h:

(JSC::CopiedSpace::oversizeBlockFor):

  • wtf/BumpPointerAllocator.h:

(WTF::BumpPointerPool::create):

  • wtf/StdLibExtras.h:

(WTF::roundUpToMultipleOf):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/heap/CopiedSpace.h

    r110748 r110902  
    3636#include <wtf/OSAllocator.h>
    3737#include <wtf/PageAllocationAligned.h>
     38#include <wtf/PageBlock.h>
    3839#include <wtf/StdLibExtras.h>
    3940#include <wtf/ThreadingPrimitives.h>
     
    119120
    120121    static const size_t s_maxAllocationSize = 32 * KB;
    121     static const size_t s_pageSize = 4 * KB;
    122     static const size_t s_pageMask = ~(s_pageSize - 1);
    123122    static const size_t s_initialBlockNum = 16;
    124123    static const size_t s_blockMask = ~(HeapBlock::s_blockSize - 1);
Note: See TracChangeset for help on using the changeset viewer.