Gnash  0.8.10
Defines | Typedefs | Functions | Variables
jemalloc.c File Reference
#include "jemalloc_gnash.h"
#include <sys/types.h>
#include <errno.h>
#include <stdlib.h>
#include <limits.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include <sys/cdefs.h>
#include <sys/mman.h>
#include <sys/param.h>
#include <sys/time.h>
#include <sys/sysctl.h>
#include <sys/uio.h>
#include <pthread.h>
#include <sched.h>
#include <stdbool.h>
#include <stdint.h>
#include <strings.h>
#include <unistd.h>
#include "jemalloc_rb.h"

Defines

#define MALLOC_PRODUCTION
#define MOZ_MEMORY_NARENAS_DEFAULT_ONE
#define MALLOC_VALIDATE
#define VALGRIND_MALLOCLIKE_BLOCK(addr, sizeB, rzB, is_zeroed)
#define VALGRIND_FREELIKE_BLOCK(addr, rzB)
#define MALLOC_PAGEFILE
#define MALLOC_PAGEFILE_WRITE_SIZE   512
#define __DECONST(type, var)   ((type)(uintptr_t)(const void *)(var))
#define MADV_FREE   MADV_DONTNEED
#define MAP_NOSYNC   0
#define SIZE_T_MAX   SIZE_MAX
#define __DECONST(type, var)   ((type)(uintptr_t)(const void *)(var))
#define STRERROR_BUF   64
#define QUANTUM_2POW_MIN   4
#define SIZEOF_PTR_2POW   2
#define PIC
#define SIZEOF_PTR   (1U << SIZEOF_PTR_2POW)
#define SIZEOF_INT_2POW   2
#define CHUNK_2POW_DEFAULT   20
#define DIRTY_MAX_DEFAULT   (1U << 10)
#define CACHELINE_2POW   6
#define CACHELINE   ((size_t)(1U << CACHELINE_2POW))
#define TINY_MIN_2POW   1
#define SMALL_MAX_2POW_DEFAULT   9
#define SMALL_MAX_DEFAULT   (1U << SMALL_MAX_2POW_DEFAULT)
#define RUN_BFP   12
#define RUN_MAX_OVRHD   0x0000003dU
#define RUN_MAX_OVRHD_RELAX   0x00001800U
#define RUN_MAX_SMALL_2POW   15
#define RUN_MAX_SMALL   (1U << RUN_MAX_SMALL_2POW)
#define CPU_SPINWAIT
#define SPIN_LIMIT_2POW   11
#define BLOCK_COST_2POW   4
#define MALLOC_RTREE_NODESIZE   (1U << 14)
#define CHUNK_MAP_KEY   ((size_t)0x10U)
#define CHUNK_MAP_DIRTY   ((size_t)0x08U)
#define CHUNK_MAP_ZEROED   ((size_t)0x04U)
#define CHUNK_MAP_LARGE   ((size_t)0x02U)
#define CHUNK_MAP_ALLOCATED   ((size_t)0x01U)
#define UTRACE(a, b, c)
#define UMAX2S_BUFSIZE   21
#define _write   write
#define _malloc_message   malloc_message
#define assert(e)
#define malloc_spin_init   malloc_mutex_init
#define malloc_spin_lock   malloc_mutex_lock
#define malloc_spin_unlock   malloc_mutex_unlock
#define CHUNK_ADDR2BASE(a)   ((void *)((uintptr_t)(a) & ~chunksize_mask))
#define CHUNK_ADDR2OFFSET(a)   ((size_t)((uintptr_t)(a) & chunksize_mask))
#define CHUNK_CEILING(s)   (((s) + chunksize_mask) & ~chunksize_mask)
#define CACHELINE_CEILING(s)   (((s) + (CACHELINE - 1)) & ~(CACHELINE - 1))
#define QUANTUM_CEILING(a)   (((a) + quantum_mask) & ~quantum_mask)
#define PAGE_CEILING(s)   (((s) + pagesize_mask) & ~pagesize_mask)
#define SIZE_INV_SHIFT   21
#define SIZE_INV(s)   (((1U << SIZE_INV_SHIFT) / (s << QUANTUM_2POW_MIN)) + 1)
#define ZONE_INLINE

Typedefs

typedef pthread_mutex_t malloc_mutex_t
typedef pthread_mutex_t malloc_spinlock_t
typedef struct extent_node_s extent_node_t
typedef struct arena_s arena_t
typedef struct arena_bin_s arena_bin_t
typedef struct arena_chunk_map_s arena_chunk_map_t

Functions

typedef rb_tree (extent_node_t)
typedef rb_tree (arena_chunk_map_t)
typedef rb_tree (arena_chunk_t)
void _malloc_prefork (void)
void _malloc_postfork (void)
 rb_wrap (static, extent_tree_szad_, extent_tree_t, extent_node_t, link_szad, extent_szad_comp)
 rb_wrap (static, extent_tree_ad_, extent_tree_t, extent_node_t, link_ad, extent_ad_comp)
 rb_wrap (static, arena_chunk_tree_dirty_, arena_chunk_tree_t, arena_chunk_t, link_dirty, arena_chunk_comp)
 rb_wrap (static, arena_run_tree_, arena_run_tree_t, arena_chunk_map_t, link, arena_run_comp)
 rb_wrap (static, arena_avail_tree_, arena_avail_tree_t, arena_chunk_map_t, link, arena_avail_comp)
ZONE_INLINE void * malloc (size_t size)
void * memalign (size_t alignment, size_t size)
ZONE_INLINE int posix_memalign (void **memptr, size_t alignment, size_t size)
ZONE_INLINE void * valloc (size_t size)
ZONE_INLINE void * calloc (size_t num, size_t size)
ZONE_INLINE void * realloc (void *ptr, size_t size)
ZONE_INLINE void free (void *ptr)
size_t malloc_usable_size (const void *ptr)

Variables

const char * _malloc_options
void(* _malloc_message )(const char *p1, const char *p2, const char *p3, const char *p4) = wrtmessage

Define Documentation

#define __DECONST (   type,
  var 
)    ((type)(uintptr_t)(const void *)(var))
#define __DECONST (   type,
  var 
)    ((type)(uintptr_t)(const void *)(var))
#define _malloc_message   malloc_message
#define _write   write
#define assert (   e)

Referenced by accumulator_type::parse(), gnash::action_buffer::read(), gnash::action_buffer::readConstantPool(), gnash::action_buffer::read_string(), gnash::action_buffer::getFramePointer(), gnash::ActionExec::ActionExec(), gnash::ActionExec::operator()(), gnash::ActionExec::skip_actions(), gnash::amf::Writer::writeObject(), gnash::AOS4AggGlue::prepDrawingArea(), gnash::AquaGui::createWindow(), gnash::AquaOglGlue::render(), gnash::abc::as_class::stringValue(), gnash::findObject(), gnash::delVariable(), gnash::as_object::get_member(), gnash::as_object::init_readonly_property(), gnash::as_object::addInterface(), gnash::Trigger::call(), gnash::as_value::to_primitive(), gnash::as_value::to_bool(), gnash::as_value::writeAMF0(), gnash::operator<<(), gnash::media::ffmpeg::AudioDecoderFfmpeg::decode(), gnash::media::gst::AudioDecoderGst::~AudioDecoderGst(), gnash::media::AudioDecoderSimple::decode(), gnash::media::AudioDecoderSpeex::AudioDecoderSpeex(), gnash::media::gst::AudioInputGst::setGain(), gnash::media::AudioResampler::convert_raw_data(), gnash::Bitmap::Bitmap(), gnash::BitmapData_as::BitmapData_as(), gnash::BitmapData_as::width(), gnash::BitmapData_as::height(), gnash::BitmapData_as::transparent(), gnash::BitmapData_as::begin(), gnash::BitmapData_as::end(), gnash::BitmapMovie::BitmapMovie(), gnash::BitsReader::read_uint(), gnash::BitsReader::read_u16(), gnash::BitsReader::read_u32(), gnash::builtin_function::call(), gnash::Button::Button(), gnash::Button::trackAsMenu(), gnash::Button::isEnabled(), gnash::CallFrame::CallFrame(), gnash::CallFrame::markReachableResources(), gnash::SWF::CSMTextSettingsTag::loader(), gnash::SWF::jpeg_tables_loader(), gnash::SWF::DefineButtonCxformTag::loader(), gnash::SWF::DefineButtonSoundTag::loader(), gnash::SWF::DefineButtonSoundTag::getSound(), gnash::SWF::DefineButtonTag::loader(), gnash::SWF::DefineButton2Tag::loader(), gnash::SWF::ButtonAction::ButtonAction(), gnash::SWF::ButtonRecord::instantiate(), gnash::SWF::DefineButtonTag::addSoundTag(), gnash::SWF::DefineButtonTag::buttonSound(), gnash::SWF::DefineEditTextTag::loader(), gnash::SWF::DefineFontAlignZonesTag::loader(), gnash::SWF::DefineFontNameTag::loader(), gnash::SWF::DefineFontTag::loader(), gnash::SWF::DefineFontTag::readCodeTable(), gnash::SWF::DefineFontInfoTag::loader(), gnash::SWF::DefineSceneAndFrameLabelDataTag::loader(), gnash::SWF::DefineShapeTag::loader(), gnash::SWF::DefineTextTag::loader(), gnash::SWF::DefineText2Tag::loader(), gnash::SWF::DefineVideoStreamTag::loader(), gnash::DisplayList::placeDisplayObject(), gnash::DisplayList::replaceDisplayObject(), gnash::DisplayList::moveDisplayObject(), gnash::DisplayList::removeDisplayObject(), gnash::DisplayList::swapDepths(), gnash::DisplayList::insertDisplayObject(), gnash::DisplayList::unload(), gnash::DisplayList::display(), gnash::DisplayList::add_invalidated_bounds(), gnash::DisplayObject::DisplayObject(), gnash::DisplayObject::getNextUnnamedInstanceName(), gnash::DisplayObject::set_visible(), gnash::DisplayObject::setWidth(), gnash::DisplayObject::setHeight(), gnash::DisplayObject::set_event_handlers(), gnash::DisplayObject::getTargetPath(), gnash::DisplayObject::getTarget(), gnash::DisplayObject::destroy(), gnash::getDisplayObjectProperty(), gnash::DisplayObject::get_environment(), gnash::DisplayObject::getMask(), gnash::DisplayObjectContainer::DisplayObjectContainer(), gnash::DumpGui::setRenderHandlerSize(), gnash::DynamicShape::finalize(), gnash::DynamicShape::lineTo(), gnash::DynamicShape::curveTo(), gnash::sound::EmbedSound::data(), gnash::event_id::functionName(), gnash::event_id::functionURI(), gnash::SWF::ExportAssetsTag::loader(), gnash::SWF::ExportAssetsTag::executeState(), gnash::gui::FBAggGlue::createRenderHandler(), gnash::fileio_fopen(), gnash::fileio_fclose(), gnash::fileio_fread(), gnash::fileio_fgetc(), gnash::fileio_fgets(), gnash::fileio_gets(), gnash::fileio_getchar(), gnash::fileio_fwrite(), gnash::fileio_fputc(), gnash::fileio_putchar(), gnash::fileio_fflush(), gnash::fileio_fseek(), gnash::fileio_ftell(), gnash::fileio_asyncmode(), gnash::fileio_feof(), gnash::fileio_unlink(), gnash::GradientFill::GradientFill(), gnash::BitmapFill::BitmapFill(), gnash::GradientFill::setLerp(), gnash::setLerp(), gnash::GradientFill::setRecords(), gnash::GradientFill::record(), gnash::FltkGui::renderBuffer(), gnash::FltkGui::setInvalidatedRegions(), gnash::FltkAggGlue::initBuffer(), gnash::FltkCairoGlue::initBuffer(), gnash::fn_call::arg(), gnash::fn_call::drop_bottom(), gnash::Font::Font(), gnash::Font::glyphCount(), gnash::Font::get_advance(), gnash::fontlib::get_font(), gnash::fontlib::add_font(), gnash::FreetypeGlyphsProvider::unitsPerEM(), gnash::FreetypeGlyphsProvider::descent(), gnash::FreetypeGlyphsProvider::ascent(), gnash::Function::Function(), gnash::Function::call(), gnash::Function::setLength(), gnash::GcResource::markReachableResources(), gnash::GC::addCollectable(), gnash::geometry::pointTest(), gnash::Path::reset(), gnash::invoke(), gnash::image::GnashImage::update(), gnash::image::ImageRGBA::setPixel(), gnash::image::mergeAlpha(), gnash::image::Input::readSWFJpeg3(), gnash::image::scanline(), gnash::image::JpegInput::read(), gnash::image::JpegInput::getHeight(), gnash::image::JpegInput::getWidth(), gnash::image::JpegInput::getComponents(), gnash::image::JpegInput::readScanline(), gnash::clamp(), gnash::GnashTextureFormat::GnashTextureFormat(), gnash::GnashVaapiImage::update(), NPN_MemFree(), NPN_RetainObject(), NPN_ReleaseObject(), gnash::GtkGui::createWindow(), gnash::GtkGui::setInvalidatedRegions(), gnash::GtkGlue::render(), gnash::GtkAggGlue::setRenderHandlerSize(), gnash::gui::GtkOvgGlue::setRenderHandlerSize(), gnash::Gui::updateStageMatrix(), gnash::Gui::resize_view(), gnash::Gui::toggleSound(), gnash::Gui::notifyMouseWheel(), gnash::Gui::notifyMouseClick(), gnash::Gui::refreshView(), gnash::Gui::play(), gnash::Gui::stop(), gnash::Gui::start(), gnash::Gui::takeScreenShot(), gnash::Gui::setMovieDefinition(), gnash::Gui::setStage(), gnash::HaikuAggGlue::createRenderHandler(), gnash::HaikuAggGlue::prepDrawingArea(), gnash::HaikuAggGlue::render(), gnash::SWF::ImportAssetsTag::loader(), gnash::InteractiveObject::InteractiveObject(), rb_wrap(), memalign(), realloc(), free(), malloc_usable_size(), gnash::qwidget::mouseMoveEvent(), gnash::KdeAggGlue::initBuffer(), gnash::KdeAggGlue::render(), gnash::KdeAggGlue::setInvalidatedRegions(), KlashPart::stop(), gnash::LineStyle::read_morph(), gnash::sound::LiveSound::getDecodedData(), gnash::sound::LiveSound::decodedSamplesAhead(), gnash::LoadVariablesThread::process(), gnash::abc::Machine::execute(), gnash::abc::Machine::immediateFunction(), gnash::media::MediaHandler::createMediaParser(), gnash::media::MediaHandler::createFlashAudioDecoder(), gnash::media::ffmpeg::MediaHandlerFfmpeg::createMediaParser(), gnash::media::gst::MediaHandlerGst::createMediaParser(), gnash::media::gst::MediaHandlerGst::createAudioDecoder(), gnash::media::haiku::MediaHandlerHaiku::createMediaParser(), gnash::media::gst::MediaParserGst::~MediaParserGst(), gnash::movie_root::~movie_root(), gnash::movie_root::setLevel(), gnash::movie_root::swapLevels(), gnash::movie_root::dropLevel(), gnash::movie_root::setDimensions(), gnash::movie_root::mouseMoved(), gnash::movie_root::mouseClick(), gnash::movie_root::mousePosition(), gnash::movie_root::setDragState(), gnash::movie_root::addIntervalTimer(), gnash::movie_root::advanceMovie(), gnash::movie_root::display(), gnash::movie_root::setFocus(), gnash::movie_root::pushAction(), gnash::movie_root::markReachableResources(), gnash::movie_root::findCharacterByTarget(), gnash::movie_root::addLiveChar(), gnash::movie_root::setHostFD(), gnash::MovieClip::MovieClip(), gnash::MovieClip::pathElement(), gnash::MovieClip::advance(), gnash::MovieClip::execute_init_action_buffer(), gnash::MovieClip::goto_frame(), gnash::MovieClip::add_display_object(), gnash::MovieClip::replace_display_object(), gnash::MovieClip::handleFocus(), gnash::MovieClip::trackAsMenu(), gnash::MovieClip::set_textfield_variable(), gnash::MovieClip::getDisplayListObject(), gnash::MovieClip::constructAsScriptObject(), gnash::MovieClip::construct(), gnash::MovieClip::getLoadedMovie(), gnash::MovieFactory::makeMovie(), gnash::MovieLoader::processCompletedRequests(), mysqldb::size_method(), gnash::IncrementalRename::operator()(), gnash::NativeFunction::call(), gnash::NetConnection_as::validateURL(), gnash::NetConnection_as::connect(), gnash::BufferedAudioStreamer::fetch(), gnash::initObjectClass(), gnash::renderer::openvg::OpenVGBitmap::image(), gnash::SWF::PlaceObject2Tag::loader(), gnash::Player::run(), gnash::PlayHead::setState(), gnash::PlayHead::seekTo(), gnash::Qt4AggGlue::initBuffer(), gnash::Qt4CairoGlue::prepDrawingArea(), gnash::Qt4CairoGlue::render(), gnash::Qt4OglGlue::prepDrawingArea(), gnash::Qt4OglGlue::render(), gnash::Qt4Gui::setClipboard(), gnash::Qt4Gui::renderBuffer(), gnash::Qt4Gui::setInvalidatedRegions(), gnash::Qt4Gui::getScreenDPI(), gnash::Qt4Gui::screenResolution(), gnash::geometry::Range2d< int >::Range2d(), gnash::geometry::Range2d< int >::setTo(), gnash::geometry::Range2d< int >::width(), gnash::geometry::Range2d< int >::height(), gnash::geometry::Range2d< int >::scale(), gnash::geometry::Range2d< int >::getMinX(), gnash::geometry::Range2d< int >::getMaxX(), gnash::geometry::Range2d< int >::getMinY(), gnash::geometry::Range2d< int >::getMaxY(), gnash::geometry::Range2d< int >::getArea(), gnash::geometry::Range2d::getArea(), gnash::ref_counted::~ref_counted(), gnash::ref_counted::add_ref(), gnash::ref_counted::drop_ref(), gnash::SWF::RemoveObjectTag::read(), gnash::SWF::RemoveObjectTag::loader(), gnash::agg_bitmap_info::image(), gnash::StyleHandler::is_solid(), gnash::StyleHandler::add_bitmap(), gnash::Renderer_cairo::drawVideoFrame(), gnash::Renderer_cairo::getPixel(), gnash::renderer::opengl::Tesselator::combine(), gnash::rtmp::RTMP::readSocket(), gnash::rtmp::RTMP::sendPacket(), gnash::rtmp::payloadSize(), gnash::rtmp::payloadData(), gnash::rtmp::payloadEnd(), handleInvoke(), gnash::RunResources::streamProvider(), gnash::RunResources::tagLoaders(), gnash::SWF::ScriptLimitsTag::loader(), gnash::SdlAggGlue::prepDrawingArea(), gnash::SdlCairoGlue::prepDrawingArea(), gnash::SdlOglGlue::prepDrawingArea(), gnash::SWF::SetBackgroundColorTag::loader(), gnash::Shape::pointInShape(), gnash::Shape::Shape(), gnash::SWF::ShapeRecord::read(), gnash::SharedMem::attach(), gnash::SharedObjectLibrary::getLocal(), gnash::SimpleBuffer::append(), gnash::geometry::SnappingRanges2d< T >::setSnapFactor(), gnash::geometry::SnappingRanges2d< T >::getRange(), gnash::Socket::connect(), gnash::sound::sound_handler::addSoundBlock(), gnash::sound::sound_handler::delete_all_sounds(), gnash::sound::sound_handler::stopStreamingSound(), gnash::sound::sound_handler::attach_aux_streamer(), gnash::SWF::SoundStreamHeadTag::loader(), gnash::SWF::StartSoundTag::loader(), gnash::SWF::StartSound2Tag::loader(), gnash::StaticText::StaticText(), gnash::sound::StreamingSoundData::append(), gnash::StreamProvider::namingPolicy(), gnash::SWF::StreamSoundBlockTag::loader(), gnash::string_table::noCase(), gnash::SWFMatrix::transform(), gnash::SWFMovie::SWFMovie(), gnash::SWFMovieDefinition::addDisplayObject(), gnash::SWFMovieDefinition::add_font(), gnash::SWFMovieDefinition::get_font(), gnash::SWFMovieDefinition::addBitmap(), gnash::SWFMovieDefinition::add_sound_sample(), gnash::SWFMovieDefinition::readHeader(), gnash::SWFMovieDefinition::completeLoad(), gnash::SWFMovieDefinition::read_all_swf(), gnash::SWFMovieDefinition::registerExport(), gnash::SWFMovieDefinition::addControlTag(), gnash::SWFMovieDefinition::getPlaylist(), gnash::SWFRect::set_lerp(), gnash::SWFRect::clamp(), gnash::SWFRect::get_x_min(), gnash::SWFRect::get_x_max(), gnash::SWFRect::get_y_min(), gnash::SWFRect::get_y_max(), gnash::SWFRect::expand_to_circle(), gnash::SWFStream::read(), gnash::SWFStream::read_uint(), gnash::SWFStream::get_tag_end_position(), gnash::SWFStream::open_tag(), gnash::SWFStream::close_tag(), gnash::SWF::SymbolClassTag::loader(), gnash::SWF::frame_label_loader(), gnash::SWF::sprite_loader(), gnash::SWF::define_sound_loader(), gnash::SWF::file_attributes_loader(), gnash::SWF::metadata_loader(), gnash::SWF::serialnumber_loader(), gnash::SWF::reflex_loader(), gnash::SWF::TagLoadersTable::registerLoader(), gnash::TextField::TextField(), gnash::TextField::removeTextField(), gnash::TextField::replaceSelection(), gnash::Video::Video(), gnash::Video::display(), gnash::Video::add_invalidated_bounds(), gnash::media::ffmpeg::VideoConverterFfmpeg::convert(), gnash::media::gst::VideoDecoderGst::pop(), gnash::SWF::VideoFrameTag::loader(), gnash::media::gst::VideoInputGst::setWebcam(), gnash::media::gst::VideoInputGst::play(), gnash::InterruptableVirtualClock::resume(), gnash::VM::markReachableResources(), gnash::VM::currentCall(), gnash::VM::popCallFrame(), gnash::VM::registerNative(), gnash::VM::getSharedObjectLibrary(), gnash::XMLNode_as::appendChild(), gnash::XMLNode_as::insertBefore(), gnash::XMLNode_as::getPrefixForNamespace(), and gnash::XMLNode_as::setObject().

#define BLOCK_COST_2POW   4
#define CACHELINE   ((size_t)(1U << CACHELINE_2POW))
#define CACHELINE_2POW   6
#define CACHELINE_CEILING (   s)    (((s) + (CACHELINE - 1)) & ~(CACHELINE - 1))
#define CHUNK_2POW_DEFAULT   20
#define CHUNK_ADDR2BASE (   a)    ((void *)((uintptr_t)(a) & ~chunksize_mask))
#define CHUNK_ADDR2OFFSET (   a)    ((size_t)((uintptr_t)(a) & chunksize_mask))

Referenced by free().

#define CHUNK_CEILING (   s)    (((s) + chunksize_mask) & ~chunksize_mask)
#define CHUNK_MAP_ALLOCATED   ((size_t)0x01U)
#define CHUNK_MAP_DIRTY   ((size_t)0x08U)
#define CHUNK_MAP_KEY   ((size_t)0x10U)

Referenced by rb_wrap().

#define CHUNK_MAP_LARGE   ((size_t)0x02U)
#define CHUNK_MAP_ZEROED   ((size_t)0x04U)
#define CPU_SPINWAIT
#define DIRTY_MAX_DEFAULT   (1U << 10)
#define MADV_FREE   MADV_DONTNEED
#define MALLOC_PAGEFILE
#define MALLOC_PAGEFILE_WRITE_SIZE   512
#define MALLOC_PRODUCTION
#define MALLOC_RTREE_NODESIZE   (1U << 14)
#define malloc_spin_init   malloc_mutex_init
#define malloc_spin_lock   malloc_mutex_lock

Referenced by _malloc_prefork().

#define malloc_spin_unlock   malloc_mutex_unlock

Referenced by _malloc_postfork().

#define MALLOC_VALIDATE
#define MAP_NOSYNC   0
#define MOZ_MEMORY_NARENAS_DEFAULT_ONE
#define PAGE_CEILING (   s)    (((s) + pagesize_mask) & ~pagesize_mask)
#define PIC
#define QUANTUM_2POW_MIN   4
#define QUANTUM_CEILING (   a)    (((a) + quantum_mask) & ~quantum_mask)
#define RUN_BFP   12
#define RUN_MAX_OVRHD   0x0000003dU
#define RUN_MAX_OVRHD_RELAX   0x00001800U
#define RUN_MAX_SMALL   (1U << RUN_MAX_SMALL_2POW)
#define RUN_MAX_SMALL_2POW   15
#define SIZE_INV (   s)    (((1U << SIZE_INV_SHIFT) / (s << QUANTUM_2POW_MIN)) + 1)
#define SIZE_INV_SHIFT   21
#define SIZE_T_MAX   SIZE_MAX

Referenced by calloc().

#define SIZEOF_INT_2POW   2

Referenced by rb_wrap().

#define SIZEOF_PTR   (1U << SIZEOF_PTR_2POW)
#define SIZEOF_PTR_2POW   2
#define SMALL_MAX_2POW_DEFAULT   9
#define SMALL_MAX_DEFAULT   (1U << SMALL_MAX_2POW_DEFAULT)
#define SPIN_LIMIT_2POW   11
#define STRERROR_BUF   64
#define TINY_MIN_2POW   1
#define UMAX2S_BUFSIZE   21
#define UTRACE (   a,
  b,
 
)

Referenced by malloc(), memalign(), calloc(), realloc(), and free().

#define VALGRIND_FREELIKE_BLOCK (   addr,
  rzB 
)
#define VALGRIND_MALLOCLIKE_BLOCK (   addr,
  sizeB,
  rzB,
  is_zeroed 
)
#define ZONE_INLINE

Typedef Documentation

typedef struct arena_bin_s arena_bin_t
typedef struct arena_chunk_map_s arena_chunk_map_t
typedef struct arena_s arena_t
typedef struct extent_node_s extent_node_t
typedef pthread_mutex_t malloc_mutex_t
typedef pthread_mutex_t malloc_spinlock_t

Function Documentation

void _malloc_postfork ( void  )
void _malloc_prefork ( void  )

References gnash::key::i, and malloc_spin_lock.

ZONE_INLINE void* calloc ( size_t  num,
size_t  size 
)

References SIZE_T_MAX, _malloc_message, and UTRACE.

ZONE_INLINE void free ( void *  ptr)
ZONE_INLINE void* malloc ( size_t  size)
size_t malloc_usable_size ( const void *  ptr)

References assert.

void* memalign ( size_t  alignment,
size_t  size 
) [inline]

References assert, _malloc_message, and UTRACE.

Referenced by posix_memalign(), and valloc().

ZONE_INLINE int posix_memalign ( void **  memptr,
size_t  alignment,
size_t  size 
)

References _malloc_message, and memalign().

typedef rb_tree ( extent_node_t  )
typedef rb_tree ( arena_chunk_map_t  )

References rb_node.

typedef rb_tree ( arena_chunk_t  )
rb_wrap ( static  ,
extent_tree_szad_  ,
extent_tree_t  ,
extent_node_t  ,
link_szad  ,
extent_szad_comp   
)
rb_wrap ( static  ,
extent_tree_ad_  ,
extent_tree_t  ,
extent_node_t  ,
link_ad  ,
extent_ad_comp   
)

References assert.

rb_wrap ( static  ,
arena_chunk_tree_dirty_  ,
arena_chunk_tree_t  ,
arena_chunk_t  ,
link_dirty  ,
arena_chunk_comp   
)

References assert.

rb_wrap ( static  ,
arena_run_tree_  ,
arena_run_tree_t  ,
arena_chunk_map_t  ,
link  ,
arena_run_comp   
)

References CHUNK_MAP_KEY, and gnash::key::a.

rb_wrap ( static  ,
arena_avail_tree_  ,
arena_avail_tree_t  ,
arena_chunk_map_t  ,
link  ,
arena_avail_comp   
)
ZONE_INLINE void* realloc ( void *  ptr,
size_t  size 
)
ZONE_INLINE void* valloc ( size_t  size)

References memalign().


Variable Documentation

void(* _malloc_message)(const char *p1, const char *p2, const char *p3, const char *p4) = wrtmessage
const char* _malloc_options