blob: 2429ccc3a8cfa0a59ddbf9232a3477b1a4e5b538 [file] [log] [blame]
Ian Rogers30fab402012-01-23 15:43:46 -08001// Copyright 2012 Google Inc. All Rights Reserved.
2#define FOR_DLMALLOC_C // Avoid inclusion of src/malloc.h
3#include "dlmalloc.h"
Carl Shapiro69759ea2011-07-21 18:13:35 -07004
Ian Rogers30fab402012-01-23 15:43:46 -08005#include <stddef.h>
6#include <stdint.h>
7#include <stdlib.h>
Carl Shapiro69759ea2011-07-21 18:13:35 -07008
Ian Rogers30fab402012-01-23 15:43:46 -08009// Disable GCC diagnostics so that -Werror won't fail
Ian Rogers30fab402012-01-23 15:43:46 -080010#pragma GCC diagnostic ignored "-Wunused-variable"
11#pragma GCC diagnostic ignored "-Wempty-body"
Carl Shapiro69759ea2011-07-21 18:13:35 -070012
Ian Rogers30fab402012-01-23 15:43:46 -080013// ART specific morecore implementation
14#define MORECORE(x) art_heap_morecore(m, x)
15extern void* art_heap_morecore(void* m, intptr_t increment);
Carl Shapiro69759ea2011-07-21 18:13:35 -070016
Ian Rogers30fab402012-01-23 15:43:46 -080017// Ugly inclusion of C file so that ART specific #defines configure dlmalloc
18#include "dlmalloc/malloc.c"