Skip to content
Snippets Groups Projects
  1. Apr 02, 2000
    • green's avatar
      JVMPI changes... · 89d1c158
      green authored
      Sun Apr  2 08:27:18 2000  Anthony Green  <green@redhat.com>
      
              * configure: Rebuilt.
      	* configure.in: Add --disable-jvmpi.
              * include/config.h.in: Rebuilt.
              * acconfig.h: Add ENABLE_JVMPI.
      
      	* include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
              (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
              (_Jv_JVMPI_Notify_THREAD_END): New define.
              (_Jv_JVMPI_Notify_THREAD_END): New define.
              * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
      	(_Jv_JVMPI_Notify_THREAD_END): Declare.
              (_Jv_JVMPI_Notify_THREAD_END): Declare.
      
      	* prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
              events.
      
              * java/lang/natThread.cc: Include JVMPI headers if necessary.
              (finish_): Generate JVMPI thread end events.
              (run_): Generate JVMPI thread start events.
      	* gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
              preloaded JNI library.
              Include JVMPI headers if necessary.
              (run): Generate JVMPI thread start events.
      
              * boehm.cc: Define GC_disable and GC_enable.
      	(_Jv_DisableGC): New function.
              (_Jv_EnableGC): New function.
              (disable_gc_mutex): Declare.
              * nogc.cc (_Jv_DisableGC): New function.
      	(_Jv_EnableGC): New function.
      
              * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
              (_Jv_JVMPI_Interface): Define.
              (jvmpiEnableEvent): New function.
              (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
      
              * include/jvmpi.h: New file.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32866 138bc75d-0d04-0410-961f-82ee72b054a4
      89d1c158
  2. Mar 07, 2000
  3. Feb 21, 2000
  4. Jan 21, 2000
    • tromey's avatar
      * java/lang/reflect/natConstructor.cc (newInstance): Use · ac88f99c
      tromey authored
      	_Jv_CallAnyMethodA.
      	* include/jvm.h: Declare _Jv_CallAnyMethodA.
      	* java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
      	from _Jv_CallNonvirtualMethodA.  Changed interface; overloaded.
      	Include <jni.h>.
      	(COPY): Removed.
      	(invoke): Use _Jv_CallAnyMethodA.
      	(VAL): Redefined.
      	* java/lang/Class.h (Class): Declare JvGetFirstStaticField,
      	JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
      	functions.
      	(struct _Jv_Method): Added getNextMethod method.
      	(JvNumMethods): New function.
      	(JvGetFirstMethod): Likewise.
      	* gcj/field.h (JvGetFirstStaticField): New function.
      	(JvNumStaticFields): Likewise.
      	(getNextField): Renamed from getNextInstanceField.
      	(struct _Jv_Field): New method getClass.
      	* jni.cc: Wrote many new functions.
      	* include/jni.h (JNI_TRUE): Define.
      	(JNI_FALSE): Likewise.
      	(jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
      	jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
      	jcharArray, jfloatArray, jdoubleArray): New typedefs.
      	(jfieldID, jmethodID): Likewise.
      	(JNI_COMMIT, JNI_ABORT): New defines.
      	(JNINativeMethod): New struct.
      	(struct JNINativeInterface): Correctly declared more entries.
      	(class _Jv_JNIEnv): Added `ex' member.
      	(JNI_VERSION_1_1): New define.
      	(JNI_VERSION_1_2): Likewise.
      
      	* boehm.cc (_Jv_MarkObj): Use getNextField, not
      	getNextInstanceField.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31553 138bc75d-0d04-0410-961f-82ee72b054a4
      ac88f99c
  5. Jan 19, 2000
  6. Nov 05, 1999
  7. Nov 03, 1999
  8. Nov 02, 1999
  9. Oct 22, 1999
    • tromey's avatar
      * Makefile.in: Rebuilt. · 4046fa64
      tromey authored
      	* 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
      4046fa64
  10. Sep 10, 1999
    • tromey's avatar
      * configure: Rebuilt. · 5e25b6c0
      tromey authored
      	* configure.in: Build include/Makefile.
      	* Makefile.in: Rebuilt.
      	* Makefile.am (SUBDIRS): Added gcj and include.
      	(install-data-local): New target.
      	(extra_headers): New macro.
      	* include/Makefile.in: New file.
      	* include/Makefile.am: New file.
      
      	* interpret.cc: Don't include gcj/field.h or gcj/cni.h.
      	* java/lang/reflect/natField.cc: Don't include gcj/field.h or
      	gcj/cni.h.
      	* boehm.cc: Don't include java-threads.h or gcj/field.h.
      	* resolve.cc: Include config.h.
      	* defineclass.cc: Include config.h.
      	* include/java-interp.h: Don't include config.h.
      	* include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
      	cni.h.
      
      	* gcj/javaprims.h: Regenerated namespace decls.
      	* classes.pl (scan): Don't put `;' after closing brace.
      
      	* Makefile.in: Rebuilt.
      	* Makefile.am (INCLUDES): Added -I for top_srcdir.
      	* configure.in: Create gcj/Makefile.
      	* gcj/Makefile.in: New file.
      	* gcj/Makefile.am: New file.
      	* java/lang/Object.h: Don't include any other headers.
      	* gcj/array.h: Renamed from include/java-array.h.
      	* gcj/field.h: Renamed from include/java-field.h.
      	* gcj/method.h: Renamed from include/java-method.h.
      	* gcj/cni.h, gcj/javaprims.h: Moved from include/.
      	Updated all files to reflect new include structure.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29278 138bc75d-0d04-0410-961f-82ee72b054a4
      5e25b6c0
  11. Aug 24, 1999
  12. Aug 10, 1999
    • green's avatar
      Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> · dc9f8d59
      green authored
              * Makefile: Rebuilt.
      	* Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
      	builds.
      
      	* java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if
      	present.
      
      	* configure: Rebuilt.
      	* configure.in: Properly align --help output, fix capitalization
      	and punctuation.
      	* acinclude.m4: Likewise.
      
      1999-08-09  Kresten Krab Thorup  <krab@gnu.org>
      
      	* include/javaprims.h (_Jv_word, _Jv_word2): New types.
      
      	* include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word.
      	(_Jv_callInterpretedMethod): Unused. Remove.
      	(_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class):
      	Use ffi_raw.
      	* include/java-cpool.h (_Jv_get, _Jv_put): Remove.
      	(_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word.
      	* boehm.cc (_Jv_MarkObj): Use _Jv_word.
      	* interpret.cc: use _Jv_word.
      	* defineclass.cc: use_Jv_word.
      	* resolve.cc: Use _Jv_word.
      	(_Jv_ResolvePoolEntry): Return _Jv_word.
      	* java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool.
      	* java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word.
      
      	* interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
      	Change comment.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28641 138bc75d-0d04-0410-961f-82ee72b054a4
      dc9f8d59
  13. Aug 08, 1999
    • green's avatar
      1999-08-09 Anthony Green <green@cygnus.com> · 9a6624c4
      green authored
              * gij.cc: New file.
      
              * include/config.h.in: Rebuilt.
              * acconfig.h: Add INTERPRETER.
      
              * configure: Rebuilt.
      
              * Makefile.in: Rebuilt.
              * Makefile.am (libffi_files): Identify the libffi object files for
              inclusion in libgcj.
              (LIBFFIINCS): Define.
      
              * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
              Dummy definition for configurations without an interpreter.
      
              * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to
              java::lang::Boolean constructor.
      
              * include/java-interp.h: Always include java-cpool.h.
      
              * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0
              when INTERPRETER not defined.
      
              * java/lang/Class.h (finalize): Define.
      
              * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch
              IOException from File.getCanonicalPath.
              (getStream): Likewise.
      
              * NEWS: More news.
              * THANKS: More thanks.
      
      1999-08-09  Kresten Krab Thorup  <krab@gnu.org>
      
              * resolve.cc (get_ffi_type_from_signature): Generate uint16 for
              jchar type.
              (_Jv_PrepareClass): Allow non-abstract classes to
              have abstract subclasses.
              (_Jv_ResolvePoolEntry): Revert subclass check for protected
              fields and methods.
              * interpret.cc (continue1/perform_invoke): Don't sign extend
              uint16 return val.
              (continue1/lshl,lshr): Push long, not int.
              (continue1/ulshr): Use UINT64, not long long.
              * defineclass.cc (handleFieldsEnd): Handle case when all fields
              are static.
              * java/lang/natClass.cc (forName): Add call to _Jv_InitClass.
              * java/lang/FirstThread.java (run): Add top-level exception
              handler.
              (run0): Renamed from run.
      
      1999-08-08  Kresten Krab Thorup  <krab@gnu.org>
      
              * configure.in (--with-interpreter): Added.
              * include/config.h.in (INTERPRETER): Added.
      
              * java/lang/ClassLoader.java: File replaced.
              * java/lang/VMClassLoader.java: New file.
              * java/lang/natClassLoader.cc: New file.
              * gnu/gcj/runtime/MethodInvocation.java: New file.
              * gnu/gcj/util/path/SearchPath.java: New file.
              * gnu/gcj/util/path/PathEntry.java: New file.
              * gnu/gcj/util/path/DirectoryPathEntry.java: New file.
              * gnu/gcj/util/path/ZipPathEntry.java: New file.
              * gnu/gcj/util/path/URLPathEntry.java: New file.
              * gnu/gcj/util/path/CacheEntry.java: New file.
              * include/java-interp.h: New file.
              * include/java-cpool.h: New file.
              * include/java-insns.h: New file.
              * defineclass.cc: New file.
              * interpret.cc: New file.
              * resolve.cc: New file.
      
              * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass,
              _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass,
              _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc.
              (finalize): New.
              (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE,
              STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_
              prefix.
              (initializeClass): Use new JV_ prefixed names.  Also, call
              ClassLoader::resolveClass instead of _Jv_ResolveClass.
      
              * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING,
              JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED,
              JV_STATE_LINKED): New.
              (_Jv_WaitForState, _Jv_RegisterInitiatingLoader,
              _Jv_UnregisterClass, _Jv_InternClassStrings): New friends.
              (_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod,
              _Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass,
              _Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod,
              _Jv_InterpMethodInvocation): New friends for interpreter.
              (finalize): New.
              (CONSTANT_Class, CONSTANT_String, etc.): Moved to
              include/java-cpool.h and renamed with JV_ prefix.
      
              * include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New
              decls.
              (_Jv_UnregisterClass): New decl.
      
              * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
              class loader argument.
              (_Jv_FindClass): Use class loader.
      
              * prims.cc (_Jv_makeUtf8Const): New function.
              (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass.
              (_Jv_NewPrimArray): Ditto.
              (_Jv_FindClassFromSignature): Ditto.
              * java/lang/reflect/natArray.cc (newInstance): Ditto.
              * java/lang/reflect/natMethod.cc (getType): Ditto.
      
              * include/java-field.h (_Jv_Field::isRef): Make robust for
              non-resolved contexts.
      
              * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields.
              Also, don't mark class->next field.
      
              * java/lang/VirtualMachineError.java: Added FIXME note.
      
              * configure.in (INTERPSPEC): New spec.
              * libgcj.spec.in: Added INTERPSPEC.
              * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and
              gnu/gcj/runtime/MethodInvocation.
              (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc.
              (ordinary_java_source_files): Added above mentioned java classes.
      
              * configure: Rebuilt.
              * Makefile.in: Rebuilt.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28597 138bc75d-0d04-0410-961f-82ee72b054a4
      9a6624c4
  14. Aug 03, 1999
  15. Apr 07, 1999
Loading