/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- * vim: sw=2 ts=4 et :
*/ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include <stddef.h> // for size_t
#ifdefined(MALLOC_H) # include MALLOC_H // for memalign, malloc_size, malloc_us #endif// if defined(MALLOC_H)
#if !defined(MOZ_MEMORY) // When jemalloc is disabled, or when building the static runtime variant, // we need not to use the suffixes.
# include <stdlib.h> // for malloc, free # ifdefined(XP_UNIX) # include <unistd.h> # endif // if defined(XP_UNIX)
#ifndef __wasm__ # ifndef HAVE_MEMALIGN // We always have a definition of memalign, but system headers don't // necessarily come with a declaration. extern"C"void* memalign(size_t, size_t); # endif
#ifdefined(MOZ_MEMORY) # include "mozjemalloc_types.h" // mozmemory.h declares jemalloc_ptr_info(), but including that header in this // file is complicated. So we just redeclare it here instead, and include // mozjemalloc_types.h for jemalloc_ptr_info_t.
MOZ_JEMALLOC_API void jemalloc_ptr_info(constvoid* ptr,
jemalloc_ptr_info_t* info); #endif
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.