1 // nogc.cc - Code to implement no GC.
3 /* Copyright (C) 1998, 1999, 2000 Free Software Foundation
5 This file is part of libgcj.
7 This software is copyrighted work licensed under the terms of the
8 Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
19 // Total amount of memory allocated.
20 static long total
= 0;
23 _Jv_AllocObj (jsize size
)
26 return calloc (size
, 1);
30 _Jv_AllocArray (jsize size
)
33 return calloc (size
, 1);
37 _Jv_AllocBytes (jsize size
)
40 return calloc (size
, 1);
44 _Jv_RegisterFinalizer (void *, _Jv_FinalizerFunc
*)
46 // FIXME: should actually register so that finalizers can be run on
51 _Jv_RunFinalizers (void)
56 _Jv_RunAllFinalizers (void)
58 // FIXME: should still run all finalizers.
67 _Jv_GCTotalMemory (void)
73 _Jv_GCFreeMemory (void)
79 _Jv_GCSetInitialHeapSize (size_t size
)
84 _Jv_GCSetMaximumHeapSize (size_t size
)