Ignore:
Timestamp:
Feb 22, 2007, 7:59:10 AM (18 years ago)
Author:
weinig
Message:

Reviewed by Maciej.

Fix ARM-specific alignment problem in FastMalloc
http://bugs.webkit.org/show_bug.cgi?id=12841

  • wtf/FastMalloc.cpp: Modify how pageheap_memory is declared to ensure proper alignment on architectures such as ARM
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/wtf/FastMalloc.cpp

    r19245 r19791  
    11141114// Page-level allocator
    11151115static SpinLock pageheap_lock = SPINLOCK_INITIALIZER;
    1116 static char pageheap_memory[sizeof(TCMalloc_PageHeap)];
     1116static void* pageheap_memory[(sizeof(TCMalloc_PageHeap) + sizeof(void*) - 1) / sizeof(void*)];
    11171117static bool phinited = false;
    11181118
Note: See TracChangeset for help on using the changeset viewer.