Ignore:
Timestamp:
Aug 10, 2009, 12:42:10 PM (16 years ago)
Author:
Darin Adler
Message:

FastMalloc.h has cross-platform code but marked as WinCE-only
https://bugs.webkit.org/show_bug.cgi?id=28160

Patch by Darin Adler <Darin Adler> on 2009-08-10
Reviewed by Mark Rowe.

1) The support for nothrow was inside #if PLATFORM(WINCE) even though it is

not platform-specific.

2) The code tried to override operator delete nothrow, which does not exist.
3) The code in the header checks the value of USE_SYSTEM_MALLOC, but the code

in FastMalloc.cpp checks only if the macro is defined.

  • wtf/FastMalloc.h: See above.
  • wtf/FastMalloc.cpp: Ditto.
File:
1 edited

Legend:

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

    r46725 r46999  
    11// Copyright (c) 2005, 2007, Google Inc.
    22// All rights reserved.
    3 // Copyright (C) 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
     3// Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
    44//
    55// Redistribution and use in source and binary forms, with or without
     
    9090#endif
    9191
    92 #if !defined(USE_SYSTEM_MALLOC) && defined(NDEBUG)
     92#if !(defined(USE_SYSTEM_MALLOC) && USE_SYSTEM_MALLOC) && defined(NDEBUG)
    9393#define FORCE_SYSTEM_MALLOC 0
    9494#else
    9595#define FORCE_SYSTEM_MALLOC 1
    9696#endif
    97 
    9897
    9998// Use a background thread to periodically scavenge memory to release back to the system
Note: See TracChangeset for help on using the changeset viewer.