mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-18 05:48:55 +08:00
b8c3c4f014
* Makefile.in: Rebuilt. * Makefile.am (java/lang/ClassLoader.h): New target. * java/lang/natClassLoader.cc (_Jv_FindClass): Removed reference to `redirect'. * include/java-props.h (_Jv_Compiler_Properties): Changed declaration. * gcj/array.h (JvRunMain, _Jv_RunMain): Don't declare. * include/jvm.h (_Jv_GCSetInitialHeapSize, _Jv_GCSetMaximumHeapSize): Declare. (JvRunMain, _Jv_RunMain): Declare. (_Jv_SetMaximumHeapSize, _Jv_SetInitialHeapSize): Declare. * nogc.cc (_Jv_GCSetInitialHeapSize): New function. (_Jv_GCSetMaximumHeapSize): Likewise. * boehm.cc (_Jv_GCSetInitialHeapSize): New function. (_Jv_GCSetMaximumHeapSize): Likewise. * prims.cc (parse_heap_size): New function. (_Jv_SetInitialHeapSize): Likewise. (_Jv_SetMaximumHeapSize): Likewise. (_Jv_Compiler_Properties): New global. * gij.cc (help): New function. (version): Likewise. (heap_size): Likewise. (heap_max_size): Likewise. (main): Parse arguments. Set _Jv_Compiler_Properties. Include <config.h>, <java-props.h>. (_Jv_Compiler_Properties): Removed. From-SVN: r30133
92 lines
1.2 KiB
C++
92 lines
1.2 KiB
C++
// nogc.cc - Code to implement no GC.
|
|
|
|
/* Copyright (C) 1998, 1999 Cygnus Solutions
|
|
|
|
This file is part of libgcj.
|
|
|
|
This software is copyrighted work licensed under the terms of the
|
|
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
|
details. */
|
|
|
|
#include <config.h>
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
#include <gcj/cni.h>
|
|
#include <jvm.h>
|
|
|
|
// Total amount of memory allocated.
|
|
static long total = 0;
|
|
|
|
void *
|
|
_Jv_AllocObj (jsize size)
|
|
{
|
|
total += size;
|
|
return calloc (size, 1);
|
|
}
|
|
|
|
void *
|
|
_Jv_AllocArray (jsize size)
|
|
{
|
|
total += size;
|
|
return calloc (size, 1);
|
|
}
|
|
|
|
void *
|
|
_Jv_AllocBytes (jsize size)
|
|
{
|
|
total += size;
|
|
return calloc (size, 1);
|
|
}
|
|
|
|
void
|
|
_Jv_RegisterFinalizer (void *, _Jv_FinalizerFunc *)
|
|
{
|
|
// FIXME: should actually register so that finalizers can be run on
|
|
// exit.
|
|
}
|
|
|
|
void
|
|
_Jv_RunFinalizers (void)
|
|
{
|
|
}
|
|
|
|
void
|
|
_Jv_RunAllFinalizers (void)
|
|
{
|
|
// FIXME: should still run all finalizers.
|
|
}
|
|
|
|
void
|
|
_Jv_RunGC (void)
|
|
{
|
|
}
|
|
|
|
long
|
|
_Jv_GCTotalMemory (void)
|
|
{
|
|
return total;
|
|
}
|
|
|
|
long
|
|
_Jv_GCFreeMemory (void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
void
|
|
_Jv_GCSetInitialHeapSize (size_t size)
|
|
{
|
|
}
|
|
|
|
void
|
|
_Jv_GCSetMaximumHeapSize (size_t size)
|
|
{
|
|
}
|
|
|
|
void
|
|
_Jv_InitGC (void)
|
|
{
|
|
}
|