diff options
author | Tom Tromey <tromey@cygnus.com> | 1999-10-22 19:43:41 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 1999-10-22 19:43:41 +0000 |
commit | b8c3c4f0146f82c900a995c8e98b83a2147115fd (patch) | |
tree | 5b2911a12a79d2934e95d0632e658c09f9826b4a /libjava/boehm.cc | |
parent | 2fca54beb25b7aea46d0d7077df92ee7e3e051f6 (diff) | |
download | gcc-b8c3c4f0146f82c900a995c8e98b83a2147115fd.zip gcc-b8c3c4f0146f82c900a995c8e98b83a2147115fd.tar.gz gcc-b8c3c4f0146f82c900a995c8e98b83a2147115fd.tar.bz2 |
Makefile.in: Rebuilt.
* 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
Diffstat (limited to 'libjava/boehm.cc')
-rw-r--r-- | libjava/boehm.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libjava/boehm.cc b/libjava/boehm.cc index b300c37..fb11a11 100644 --- a/libjava/boehm.cc +++ b/libjava/boehm.cc @@ -393,6 +393,20 @@ _Jv_GCFreeMemory (void) } void +_Jv_GCSetInitialHeapSize (size_t size) +{ + size_t current = GC_get_heap_size (); + if (size > current) + GC_expand_hp (current - size); +} + +void +_Jv_GCSetMaximumHeapSize (size_t size) +{ + GC_set_max_heap_size ((GC_word) size); +} + +void _Jv_InitGC (void) { int proc; |