__ZN3WTF10fastMallocEm
__ZN3WTF11fastReallocEPvm
__ZN3WTF16fastZeroedMallocEm
+__ZN3WTF27releaseFastMallocFreeMemoryEv
__ZN3WTF8fastFreeEPv
__ZNK3KJS11PropertyMap3getERKNS_10IdentifierE
__ZNK3KJS11PropertyMap4saveERNS_15SavedPropertiesE
_JSLockDropAllLocks
_JSLockRecoverAllLocks
_JSSetJavaScriptCollectionThread
-_releaseFastMallocFreeMemory
// Copyright (c) 2005, 2007, Google Inc.
// All rights reserved.
+// Copyright (C) 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
return realloc(p, n);
}
-} // namespace WTF
-
-extern "C" {
void releaseFastMallocFreeMemory() { }
-}
+
+} // namespace WTF
#if PLATFORM(DARWIN)
// This symbol is present in the JavaScriptCore exports file even when FastMalloc is disabled.
extern "C" const int jscore_fastmalloc_introspection = 0;
#endif
-#else
+#else // FORCE_SYSTEM_MALLOC
#if HAVE(STDINT_H)
#include <stdint.h>
static FastMallocZone zone(pageheap, &thread_heaps, static_cast<TCMalloc_Central_FreeListPadded*>(central_cache));
}
-extern "C" {
+#endif
+
void releaseFastMallocFreeMemory()
{
SpinLockHolder h(&pageheap_lock);
pageheap->ReleaseFreePages();
}
-}
-
-#endif
#if WTF_CHANGES
} // namespace WTF
#endif
-#endif // USE_SYSTEM_MALLOC
+#endif // FORCE_SYSTEM_MALLOC
-// -*- mode: c++; c-basic-offset: 4 -*-
/*
- * This file is part of the KDE libraries
- * Copyright (C) 2005 Apple Computer, Inc.
+ * Copyright (C) 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
void fastMallocAllow();
#endif
+ void releaseFastMallocFreeMemory();
+
} // namespace WTF
using WTF::fastMalloc;
WTF_PRIVATE_INLINE void operator delete(void* p) { fastFree(p); }
WTF_PRIVATE_INLINE void* operator new[](size_t s) { return fastMalloc(s); }
WTF_PRIVATE_INLINE void operator delete[](void* p) { fastFree(p); }
-
-extern "C" {
-void releaseFastMallocFreeMemory();
-}
#endif
#endif // _CRTDBG_MAP_ALLOC