Changeset 35055 in webkit for trunk/JavaScriptCore/wtf


Ignore:
Timestamp:
Jul 7, 2008, 8:30:43 PM (17 years ago)
Author:
[email protected]
Message:

releaseFastMallocFreeMemory() should always be defined

Reviewed by Darin.

  • JavaScriptCore.exp: Changed to export C++ binding for WTF::releaseFastMallocFreeMemory() instead of C binding for releaseFastMallocFreeMemory().
  • wtf/FastMalloc.cpp: Moved definitions of releaseFastMallocFreeMemory() to be in the WTF namespace regardless whether FORCE_SYSTEM_MALLOC is defined.
  • wtf/FastMalloc.h: Moved releaseFastMallocFreeMemory() from extern "C" binding to WTF::releaseFastMallocFreeMemory().
Location:
trunk/JavaScriptCore/wtf
Files:
2 edited

Legend:

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

    r34824 r35055  
    11// Copyright (c) 2005, 2007, Google Inc.
    22// All rights reserved.
     3// Copyright (C) 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
    34//
    45// Redistribution and use in source and binary forms, with or without
     
    197198}
    198199
     200void releaseFastMallocFreeMemory() { }
     201
    199202} // namespace WTF
    200 
    201 extern "C" {
    202 void releaseFastMallocFreeMemory() { }
    203 }
    204203
    205204#if PLATFORM(DARWIN)
     
    209208#endif
    210209
    211 #else
     210#else // FORCE_SYSTEM_MALLOC
    212211
    213212#if HAVE(STDINT_H)
     
    36883687}
    36893688
    3690 extern "C" {
     3689#endif
     3690
    36913691void releaseFastMallocFreeMemory()
    36923692{
     
    36943694    pageheap->ReleaseFreePages();
    36953695}
    3696 }
    3697 
    3698 #endif
    36993696
    37003697#if WTF_CHANGES
     
    37023699#endif
    37033700
    3704 #endif // USE_SYSTEM_MALLOC
     3701#endif // FORCE_SYSTEM_MALLOC
  • trunk/JavaScriptCore/wtf/FastMalloc.h

    r34028 r35055  
    1 // -*- mode: c++; c-basic-offset: 4 -*-
    21/*
    3  *  This file is part of the KDE libraries
    4  *  Copyright (C) 2005 Apple Computer, Inc.
     2 *  Copyright (C) 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
    53 *
    64 *  This library is free software; you can redistribute it and/or
     
    4139#endif
    4240
     41    void releaseFastMallocFreeMemory();
     42
    4343} // namespace WTF
    4444
     
    7171WTF_PRIVATE_INLINE void* operator new[](size_t s) { return fastMalloc(s); }
    7272WTF_PRIVATE_INLINE void operator delete[](void* p) { fastFree(p); }
    73 
    74 extern "C" {
    75 void releaseFastMallocFreeMemory();
    76 }
    7773#endif
    7874
Note: See TracChangeset for help on using the changeset viewer.