blob: 931a44edc73ab89229e5178536108b732e29471c [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
10#pragma GCC diagnostic ignored "-Wsign-compare"
11#pragma GCC diagnostic ignored "-Wunused-variable"
12#pragma GCC diagnostic ignored "-Wempty-body"
Carl Shapiro69759ea2011-07-21 18:13:35 -070013
Ian Rogers30fab402012-01-23 15:43:46 -080014// ART specific morecore implementation
15#define MORECORE(x) art_heap_morecore(m, x)
16extern void* art_heap_morecore(void* m, intptr_t increment);
Carl Shapiro69759ea2011-07-21 18:13:35 -070017
Ian Rogers30fab402012-01-23 15:43:46 -080018// Ugly inclusion of C file so that ART specific #defines configure dlmalloc
19#include "dlmalloc/malloc.c"