00001 /* 00002 * Copyright (C) 2008, The EROS Group, LLC. 00003 * All rights reserved. 00004 * 00005 * Redistribution and use in source and binary forms, with or 00006 * without modification, are permitted provided that the following 00007 * conditions are met: 00008 * 00009 * - Redistributions of source code must contain the above 00010 * copyright notice, this list of conditions, and the following 00011 * disclaimer. 00012 * 00013 * - Redistributions in binary form must reproduce the above 00014 * copyright notice, this list of conditions, and the following 00015 * disclaimer in the documentation and/or other materials 00016 * provided with the distribution. 00017 * 00018 * - Neither the names of the copyright holders nor the names of any 00019 * of any contributors may be used to endorse or promote products 00020 * derived from this software without specific prior written 00021 * permission. 00022 * 00023 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 00024 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 00025 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 00026 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 00027 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 00028 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 00029 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 00030 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 00031 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 00032 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 00033 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00034 */ 00035 00045 #include <stdlib.h> 00046 00047 extern void *GC_malloc(size_t nBytes) 00048 { 00049 return calloc(1, nBytes); 00050 } 00051 00052 extern void *GC_malloc_atomic(size_t nBytes) 00053 { 00054 return calloc(1, nBytes); 00055 } 00056
1.4.7