Changeset 42344 in webkit for trunk/JavaScriptCore/wtf/Platform.h


Ignore:
Timestamp:
Apr 8, 2009, 6:14:07 PM (16 years ago)
Author:
[email protected]
Message:

2009-04-08 Paul Pedriana <[email protected]>

Reviewed by Darin Adler.

https://bugs.webkit.org/show_bug.cgi?id=20422
Allow custom memory allocation control.

  • wtf/FastAllocBase.h: New added file. Implements allocation base class.
  • wtf/TypeTraits.h: Augments existing type traits support as needed by FastAllocBase.
  • wtf/FastMalloc.h: Changed to support FastMalloc match validation.
  • wtf/FastMalloc.cpp: Changed to support FastMalloc match validation.
  • wtf/Platform.h: Added ENABLE_FAST_MALLOC_MATCH_VALIDATION; defaults to 0.
  • GNUmakefile.am: Updated to include added FastAllocBase.h.
  • JavaScriptCore.xcodeproj/project.pbxproj: Updated to include added FastAllocBase.h.
  • JavaScriptCore.vcproj/WTF/WTF.vcproj: Updated to include added FastAllocBase.h.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/wtf/Platform.h

    r42229 r42344  
    401401/* ENABLE macro defaults */
    402402
     403/* fastMalloc match validation allows for runtime verification that
     404   new is matched by delete, fastMalloc is matched by fastFree, etc. */
     405#if !defined(ENABLE_FAST_MALLOC_MATCH_VALIDATION)
     406#define ENABLE_FAST_MALLOC_MATCH_VALIDATION 0
     407#endif
     408
    403409#if !defined(ENABLE_ICONDATABASE)
    404410#define ENABLE_ICONDATABASE 1
Note: See TracChangeset for help on using the changeset viewer.