diff options
author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-10-22 19:43:41 +0000 |
---|---|---|
committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-10-22 19:43:41 +0000 |
commit | 4046fa64423098f281f902e31c70673cc022ec08 (patch) | |
tree | 5b2911a12a79d2934e95d0632e658c09f9826b4a /libjava/include | |
parent | cb4952eb366794dedfb16f70a120a4393be1c567 (diff) | |
download | gcc-4046fa64423098f281f902e31c70673cc022ec08.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30133 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/include')
-rw-r--r-- | libjava/include/java-props.h | 4 | ||||
-rw-r--r-- | libjava/include/jvm.h | 21 |
2 files changed, 23 insertions, 2 deletions
diff --git a/libjava/include/java-props.h b/libjava/include/java-props.h index 65130da8814..81bdd7ff4ff 100644 --- a/libjava/include/java-props.h +++ b/libjava/include/java-props.h @@ -19,8 +19,8 @@ typedef struct size_t value_length; } property_pair; -// The compiler generates this declaration. -extern char *_Jv_Compiler_Properties[]; +// Set to NULL-terminated list of properties set at compile time. +extern const char **_Jv_Compiler_Properties; // Properties taken from the user's environment. extern property_pair *_Jv_Environment_Properties; diff --git a/libjava/include/jvm.h b/libjava/include/jvm.h index 7b0b476a2ed..d917a4f70f7 100644 --- a/libjava/include/jvm.h +++ b/libjava/include/jvm.h @@ -83,9 +83,30 @@ long _Jv_GCTotalMemory (void); /* Return approximation of total free memory. */ long _Jv_GCFreeMemory (void); +/* Set initial heap size. If SIZE==0, ignore. Should be run before + _Jv_InitGC. Not required to have any actual effect. */ +void _Jv_GCSetInitialHeapSize (size_t size); + +/* Set maximum heap size. If SIZE==0, unbounded. Should be run + before _Jv_InitGC. Not required to have any actual effect. */ +void _Jv_GCSetMaximumHeapSize (size_t size); + +/* External interface to setting the heap size. Parses ARG (a number + which can optionally have "k" or "m" appended and calls + _Jv_GCSetInitialHeapSize. */ +void _Jv_SetInitialHeapSize (const char *arg); + +/* External interface to setting the maximum heap size. Parses ARG (a + number which can optionally have "k" or "m" appended and calls + _Jv_GCSetMaximumHeapSize. */ +void _Jv_SetMaximumHeapSize (const char *arg); + /* Allocate some unscanned bytes. Throw exception if out of memory. */ void *_Jv_AllocBytesChecked (jsize size); +extern "C" void JvRunMain (jclass klass, int argc, const char **argv); +void _Jv_RunMain (const char* name, int argc, const char **argv); + // This function is used to determine the hash code of an object. inline jint _Jv_HashCode (jobject obj) |