cacao.git
16 years agoMerged revisions 8245-8298 via svnmerge from
michi [Mon, 13 Aug 2007 08:41:18 +0000 (08:41 +0000)]
Merged revisions 8245-8298 via svnmerge from
svn+ssh://michi@c1.complang.tuwien.ac.at/ahome/cacao/svn/cacao/trunk

........
  r8246 | michi | 2007-07-31 13:36:03 +0200 (Tue, 31 Jul 2007) | 2 lines

  * src/vm/jit/sparc64/md.c: Fixed file header.
........
  r8247 | michi | 2007-07-31 14:06:44 +0200 (Tue, 31 Jul 2007) | 10 lines

  * src/vm/jit/arm/arch.h, src/vm/jit/powerpc/arch.h, src/vm/jit/sparc64/arch.h,
  src/vm/jit/alpha/arch.h, src/vm/jit/s390/arch.h, src/vm/jit/mips/arch.h,
  src/vm/jit/powerpc64/arch.h, src/vm/jit/i386/arch.h, src/vm/jit/x86_64/arch.h
  (REPLACEMENT_STUB_SIZE): Removed obsolete define.

  * src/vm/jit/powerpc/md.c, src/vm/jit/sparc64/md.c, src/vm/jit/alpha/md.c,
  src/vm/jit/mips/md.c, src/vm/jit/powerpc64/md.c, src/vm/jit/i386/md.c,
  src/vm/jit/x86_64/md.c
  (md_patch_replacement_point): We have to use trap instructions here.
........
  r8248 | twisti | 2007-07-31 14:47:11 +0200 (Tue, 31 Jul 2007) | 6 lines

  * configure.ac: Only check AC_PROG_JAVAC and AC_PROG_JAR for CLDC-1.1
  and GNU.

  * m4/classpath.m4 (AC_CHECK_WITH_CLASSPATH_CLASSES): Changed default
  value for different configurations..
........
  r8249 | panzi | 2007-07-31 14:59:03 +0200 (Tue, 31 Jul 2007) | 257 lines

  * src/lib/gnu/java/lang/reflect/Method.java
  (annotations): Added.
  (parameterAnnotations): Added.
  (annotationDefault): Added.

  * src/lib/gnu/java/lang/reflect/Field.java
  (annotations): Added.

  * src/lib/gnu/sun/reflect: New directory.
  * src/lib/gnu/sun/reflect/generics: New directory.
  * src/lib/gnu/sun/reflect/generics/parser: New directory.
  * src/lib/gnu/sun/reflect/generics/parser/SignatureFormatError.java:
  New file.

  * src/lib/gnu/sun/reflect/generics/parser/SignatureParser.java:
  New file. This class parses type signatures and returns the acording type
  as a java.lang.Class instance.

  * src/lib/gnu/sun/reflect/ConstantPool.java [WITH_CLASSPATH_GNU]:
  New file.

  * src/lib/gnu/sun/reflect/annotation: New directory.
  * src/lib/gnu/sun/reflect/annotation/AnnotationTypeMismatchExceptionProxy.java
  [WITH_CLASSPATH_GNU]: Copied file from OpenJDK.

  * src/lib/gnu/sun/reflect/annotation/TypeNotPresentExceptionProxy.java
  [WITH_CLASSPATH_GNU]: Copied file from OpenJDK.

  * src/lib/gnu/sun/reflect/annotation/AnnotationParser.java
  [WITH_CLASSPATH_GNU]: Copied file from OpenJDK and changed a bit so
  it can be used with GNU Classpath.
  [WITH_CLASSPATH_GNU] (parseAnnotationsIntoArray): Added for
  convenience.
  [WITH_CLASSPATH_GNU] (parseAnnotationDefault): Added for convenience.

  * src/lib/gnu/sun/reflect/annotation/AnnotationType.java
  [WITH_CLASSPATH_GNU]: Copied file from OpenJDK and changed a bit so
  it can be used with GNU Classpath.
  [WITH_CLASSPATH_GNU] (annotationTypes): Added to emulate
  sun.misc.SharedSecrets.getJavaLangAccess().getAnnotationType() and
  sun.misc.SharedSecrets.getJavaLangAccess().setAnnotationType().

  * src/lib/Makefile.am [WITH_CLASSPATH_GNU] [ENABLE_ANNOTATIONS]: Added
  classes needed by annotations support.

  * src/native/vm/nativevm.h
  [ENABLE_ANNOTATIONS] (_Jv_sun_reflect_ConstantPool_init): Added.

  * src/native/vm/java_lang_Class.c
  [WITH_CLASSPATH_GNU] [ENABLE_ANNOTATIONS] (vmcore/annotation.h):
  Include added.
  [WITH_CLASSPATH_GNU] [ENABLE_ANNOTATIONS]
  (native/include/sun_reflect_ConstantPool.h): Include added.
  [WITH_CLASSPATH_GNU] [ENABLE_ANNOTATIONS]
  (_Jv_java_lang_Class_getDeclaredAnnotations): Implemented.

  * src/native/vm/gnu/java_lang_VMClass.c
  [WITH_CLASSPATH_GNU] [ENABLE_ANNOTATIONS]
  (Java_java_lang_VMClass_getDeclaredAnnotations): Implemented.

  * src/native/vm/gnu/sun_reflect_ConstantPool.c [ENABLE_ANNOTATIONS]:
  Added implementation of sun.reflect.ConstantPool class. This is an copy
  of the according functions from src/native/vm/sun/jvm.c for I don't know
  how to unify it better (needs to be discussed).

  * src/native/vm/gnu/java_lang_reflect_Method.c
  [ENABLE_ANNOTATIONS] (vm/vm.h): Added include.
  [ENABLE_ANNOTATIONS] (native/include/sun_reflect_ConstantPool.h):
  Added include.
  [ENABLE_ANNOTATIONS] (Java_java_lang_reflect_Method_getDefaultValue):
  Implemented.

  * src/native/vm/gnu/Makefile.am
  [ENABLE_ANNOTATIONS] (SUN_REFLECT_SOURCES): Added sun_reflect_ConstantPool.c

  * src/native/vm/java_lang_Class.h
  [WITH_CLASSPATH_GNU] [ENABLE_ANNOTATIONS]
  (_Jv_java_lang_Class_getDeclaredAnnotations): Added.

  * src/native/vm/sun/jvm.c
  (assert.h): Added include.
  (native/include/java_lang_Integer.h): Added include.
  (native/include/java_lang_Long.h): Added include.
  (native/include/java_lang_Short.h): Added include.
  (native/include/java_lang_Byte.h): Added include.
  (native/include/java_lang_Character.h): Added include.
  (native/include/java_lang_Boolean.h): Added include.
  (native/include/java_lang_Float.h): Added include.
  (native/include/java_lang_Double.h): Added include.
  [ENABLE_ANNOTATIONS] (native/include/sun_reflect_ConstantPool.h):
  Added include.
  (JVM_GetDeclaringClass): Implemented.
  (JVM_GetClassAnnotations) [ENABLE_ANNOTATIONS]: Implemented.
  (JVM_GetFieldAnnotations): Implemented.
  (JVM_GetMethodAnnotations): Implemented.
  (JVM_GetMethodDefaultAnnotationValue): Implemented.
  (JVM_GetMethodParameterAnnotations): Implemented.
  [ENABLE_ANNOTATIONS] (JVM_GetClassConstantPool): Implemented.
  (JVM_ConstantPoolGetSize): Implemented.
  (JVM_ConstantPoolGetClassAt): Implemented.
  (JVM_ConstantPoolGetClassAtIfLoaded): Implemented.
  (JVM_ConstantPoolGetMethodAt): Implemented.
  (JVM_ConstantPoolGetMethodAtIfLoaded): Implemented.
  (JVM_ConstantPoolGetFieldAt): Implemented.
  (JVM_ConstantPoolGetFieldAtIfLoaded): Implemented.
  (JVM_ConstantPoolGetIntAt): Implemented.
  (JVM_ConstantPoolGetLongAt): Implemented.
  (JVM_ConstantPoolGetFloatAt): Implemented.
  (JVM_ConstantPoolGetDoubleAt): Implemented.
  (JVM_ConstantPoolGetStringAt): Implemented.
  (JVM_ConstantPoolGetUTF8At): Implemented.
  (JVM_GetArrayElement): Quickly implemented (will be rewritten by
  twisti). I needed this function in a testcase and not directly for
  annotations support.

  * src/native/vm/reflect.c
  [ENABLE_ANNOTATIONS] (mm/memmory.h): Added include.
  (reflect_constructor_new) [ENABLE_ANNOTATIONS]: Load annotations and
  parameter annotations.
  (reflect_field_new) [ENABLE_ANNOTATIONS]: Load annotations.
  (reflect_method_new) [ENABLE_ANNOTATIONS]: Load annotations, parameter
  annotations and annotation default value.

  * src/native/vm/nativevm.c [WITH_CLASSPATH_GNU] [ENABLE_ANNOTATIONS]
  (_Jv_sun_reflect_ConstantPool_init): Added call.

  * src/native/include/Makefile.am
  [WITH_CLASSPATH_GNU] [ENABLE_ANNOTATIONS] (JAVASE_HEADER_FILES):
  Added sun_reflect_ConstantPool.h

  * src/vmcore/class.c
  [ENABLE_ANNOTATIONS] (class_sun_reflect_ConstantPool): Added.
  [ENABLE_ANNOTATIONS] (class_sun_reflect_annotation_AnnotationParser):
  Added.
  (class_load_attributes) [ENABLE_ANNOTATIONS]: Load annotations.
  (class_free) [ENABLE_ANNOTATIONS]: Free annotations.

  * src/vmcore/loader.c
  (loader_init) [ENABLE_ANNOTATIONS]: Load
  class_sun_reflect_ConstantPool.
  (loader_init) [ENABLE_ANNOTATIONS] [WITH_CLASSPATH_GNU]: Load
  class_sun_reflect_annotation_AnnotationParser.

  * src/vmcore/annotation.c [!ENABLE_ANNOTATIONS]: Error: annotation
  support has to be enabled when compling this file.
  (assert.h): Added include.
  (toolbox/logging.h): Added include.
  (annotation_bytearray_new): Added.
  (annotation_bytearray_free): Added.
  (annotation_bytearrays_new): Added.
  (annotation_bytearrays_resize): Added.
  (annotation_bytearrays_insert): Added.
  (annotation_bytearrays_free): Added.
  (annotation_load_attribute_body): Added. Maybe this function should be
  called loader_load_attribute_body and located in vmcore/loader.c?
  (annotation_load_method_attribute_annotationdefault): Added.
  (annotation_load_method_attribute_runtimevisibleparameterannotations):
  Added.
  (annotation_load_method_attribute_runtimeinvisibleparameterannotations):
  Added.
  (annotation_load_class_attribute_runtimevisibleannotations): Added.
  (annotation_load_class_attribute_runtimeinvisibleannotations): Added.
  (annotation_load_method_attribute_runtimevisibleannotations): Added.
  (annotation_load_method_attribute_runtimeinvisibleannotations): Added.
  (annotation_load_field_attribute_runtimevisibleannotations): Added.
  (annotation_load_field_attribute_runtimeinvisibleannotations): Added.

  * src/vmcore/class.h
  [ENABLE_ANNOTATIONS] (runtimevisibleannotationscount): Removed.
  [ENABLE_ANNOTATIONS] (runtimevisibleannotations): Removed.
  [ENABLE_ANNOTATIONS] (annotations): Added. Bytearray of the unparsed
  annotations or NULL if none.
  [ENABLE_ANNOTATIONS] (method_annotations): Added. Array of bytearrays
  of method annotations. This Array is only as big as needed or NULL if
  there are no method annotations at all.
  [ENABLE_ANNOTATIONS] (method_parameterannotations): Added. Array of bytearrays
  of method parameter annotations. This Array is only as big as needed
  or NULL if there are no method parameter annotations at all.
  [ENABLE_ANNOTATIONS] (method_annotationdefaults): Added. Array of bytearrays
  of method annotation default values. This Array is only as big as
  needed or NULL if there are no method annotation default values at all.
  [ENABLE_ANNOTATIONS] (field_annotations): Added. Array of bytearrays
  of field annotations. This Array is only as big as needed or NULL if
  there are no field annotations at all.
  [ENABLE_ANNOTATIONS] (class_sun_reflect_ConstantPool): Added.
  [ENABLE_ANNOTATIONS] [WITH_CLASSPATH_GNU]
  (class_sun_reflect_annotation_AnnotationParser): Added.

  * src/vmcore/annotation.h
  (annotation_bytearray_t): Added. Used to store unparsed (parameter-) annotations or
  unparsed annotation default values in.
  (annotation_bytearrays_t): Added. Array of bytearrays.
  (annotation_bytearray_new): Added.
  (annotation_bytearray_free): Added.
  (annotation_bytearrays_new): Added.
  (annotation_bytearrays_resize): Added.
  (annotation_bytearrays_insert): Added.
  (annotation_bytearrays_free): Added.
  (annotation_load_class_attribute_runtimeinvisibleannotations): Added.
  (annotation_load_method_attribute_runtimevisibleannotations): Added.
  (annotation_load_method_attribute_runtimeinvisibleannotations): Added.
  (annotation_load_field_attribute_runtimevisibleannotations): Added.
  (annotation_load_field_attribute_runtimeinvisibleannotations): Added.
  (annotation_load_method_attribute_annotationdefault): Added.
  (annotation_load_method_attribute_runtimevisibleparameterannotations):
  Added.
  (annotation_load_method_attribute_runtimeinvisibleparameterannotations):
  Added.

  * src/vmcore/method.c
  (method_load) [ENABLE_ANNOTATIONS]: Load annotations, parameter
  annotations and annotation default values.
  [ENABLE_ANNOTATIONS] (method_get_annotations): Added.
  [ENABLE_ANNOTATIONS] (method_get_parameterannotations): Added.
  [ENABLE_ANNOTATIONS] (method_get_annotationdefault): Added.

  * src/vmcore/method.h
  [ENABLE_ANNOTATIONS] (method_get_annotations): Added.
  [ENABLE_ANNOTATIONS] (method_get_parameterannotations): Added.
  [ENABLE_ANNOTATIONS] (method_get_annotationdefault): Added.

  * src/vmcore/field.c
  (mm/memory.h): Added include.
  (vmcore/annotations.h): Added include.
  (field_load) [ENABLE_ANNOTATIONS]: Laod annotations.
  [ENABLE_ANNOTATIONS] (field_get_annotations): Added.

  * src/vmcore/utf8.c
  [ENABLE_ANNOTATIONS] (utf_sun_reflect_ConstantPool): Added.
  [ENABLE_ANNOTATIONS] (utf_RuntimeInvisibleAnnotations): Added.
  [ENABLE_ANNOTATIONS] (utf_RuntimeVisibleParameterAnnotations): Added.
  [ENABLE_ANNOTATIONS] (utf_RuntimeInvisibleParameterAnnotations):
  Added.
  [ENABLE_ANNOTATIONS] (utf_AnnotationDefault): Added.
  [ENABLE_ANNOTATIONS] [WITH_CLASSPATH_GNU]
  (utf_sun_reflect_annotation_AnnotationParser): Added.

  * src/vmcore/field.h
  [ENABLE_ANNOTATIONS] (field_get_annotations): Added.

  * src/vmcore/Makefile.am
  [ENABLE_ANNOTATIONS] (ANNOTATION_SOURCES): Only compile annotations
  sources when annotations are enabled.

  * src/vmcore/utf8.h
  [ENABLE_ANNOTATIONS] (utf_sun_reflect_ConstantPool): Added.
  [ENABLE_ANNOTATIONS] (utf_RuntimeInvisibleAnnotations): Added.
  [ENABLE_ANNOTATIONS] (utf_RuntimeVisibleParameterAnnotations): Added.
  [ENABLE_ANNOTATIONS] (utf_RuntimeInvisibleParameterAnnotations):
  Added.
  [ENABLE_ANNOTATIONS] (utf_AnnotationDefault): Added.
  [ENABLE_ANNOTATIONS] [WITH_CLASSPATH_GNU]
  (utf_sun_reflect_annotation_AnnotationParser): Added.

  * configure.ac (ENABLE_ANNOTATIONS): Added configure option --enable-annotations.
........
  r8250 | twisti | 2007-07-31 15:16:43 +0200 (Tue, 31 Jul 2007) | 3 lines

  * m4/annotations.m4: New file.
  * configure.ac: Use AC_CHECK_ENABLE_ANNOTATIONS.
........
  r8251 | pm | 2007-08-01 17:26:59 +0200 (Wed, 01 Aug 2007) | 9 lines

  * jit/patcher.h: Added #error if included on s390.
  * jit/patcher-common.h: Made declarations visible on s390.
  * jit/s390/asmpart.S (asm_patcher_wrapper): removed.
  * jit/s390/emit.c (emit_patcher_stubs): removed, (emit_patcher_traps): added.
  * jit/s390/codegen.h (PATCHER_LONGBRANCHES_NOPS_SKIP, PATCHER_LONGBRANCHES_NOPS): removed, (PATCHER_CALL_SIZE, PATCHER_NOPS, PATCHER_NOPS_SKIP) adapted to patching via signals.
  * jit/s390/codegen.c (codegen_emit, codegen_emit_stub_native): Adapted to paching via signals.
  * jit/s390/md.c (md_signal_handler_sigill, md_signal_handler_sigsegv): added support for exceptions_new_hardware_exception returning NULL.
  * jit/s390/patcher.c: Adapted to paching via signals.
........
  r8252 | twisti | 2007-08-02 00:47:17 +0200 (Thu, 02 Aug 2007) | 5 lines

  * m4/ac_prog_javac.m4 (AC_PROG_JAVAC): Removed -1.5 from ecj.

  * src/lib/Makefile.am (vm.zip): Added -source 1.5 -target 1.5. Thanks
  to Mark Wielaard.
........
  r8253 | twisti | 2007-08-02 16:46:00 +0200 (Thu, 02 Aug 2007) | 2 lines

  * src/native/vm/sun/jvm.c (JVM_RaiseSignal): New function.
........
  r8254 | pm | 2007-08-03 20:43:30 +0200 (Fri, 03 Aug 2007) | 3 lines

   * src/vm/jit/patcher-common.c (patcher_handler): Call LOCK_MONITOR_EXIT instead of LOCK_MONITOR_ENTER in double-patching handler code.
........
  r8255 | michi | 2007-08-03 21:06:37 +0200 (Fri, 03 Aug 2007) | 7 lines

  * src/vm/jit/patcher-common.c (patcher_list_reset): Added.
  (patcher_add_patch_ref) [!NDEBUG]: Added sanity check.

  * src/vm/jit/patcher-common.h (patcher_list_reset): Added.

  * src/vm/jit/codegen-common.c (codegen_reset): Resets the patcher list.
........
  r8256 | twisti | 2007-08-05 12:58:21 +0200 (Sun, 05 Aug 2007) | 3 lines

  * src/native/vm/sun/jvm.c (JVM_Available) [FIONREAD]: Use
  HotSpot-compatible code.
........
  r8257 | twisti | 2007-08-05 13:04:21 +0200 (Sun, 05 Aug 2007) | 4 lines

  * src/vm/jit/patcher-common.c (stdint.h): Added.
  (patcher_list_free): Removed unused variable pr.
  (patcher_add_patch_ref): Fixed warning.
........
  r8258 | edwin | 2007-08-05 22:15:27 +0200 (Sun, 05 Aug 2007) | 2 lines

  * src/vm/jit/replace.c (replace_new_sourceframe): Fixed documentation.
........
  r8259 | edwin | 2007-08-05 22:41:25 +0200 (Sun, 05 Aug 2007) | 3 lines

  * src/vm/jit/replace.c (replace_read_executionstate): Improved comments.
  (replace_write_executionstate): Likewise.
........
  r8260 | michi | 2007-08-06 14:19:01 +0200 (Mon, 06 Aug 2007) | 13 lines

  * src/vm/jit/emit-common.c (emit_patcher_traps): Added.

  * src/vm/jit/emit-common.h (emit_trap): Added prototype.

  * src/vm/jit/alpha/emit.c (emit_patcher_traps): Removed (moved to emit-common).
  (emit_trap): Implemented.

  * src/vm/jit/arm/emit.c: Likewise.

  * src/vm/jit/powerpc/emit.c: Likewise.

  * src/vm/jit/s390/emit.c: Likewise.
........
  r8261 | michi | 2007-08-06 14:42:31 +0200 (Mon, 06 Aug 2007) | 3 lines

  * src/vm/jit/codegen-common.c (codegen_add_patch_ref): Removed obsolete code
  about PATCHER_LONGBRANCHES_NOPS.
........
  r8262 | panzi | 2007-08-06 14:44:01 +0200 (Mon, 06 Aug 2007) | 97 lines

  * src/lib/gnu/java/lang/reflect/Method.java
  (java.lang.annotation.Annotation): Added import.
  (java.util.Map): Added import.
  (sun.refelct.annotation.AnnotationParser): Added import.
  (declaredAnnotations): Added field (inspired by OpenJDK).
  (getAnnotation): Added method.
  (getDeclaredAnnotations): Added method.
  (declaredAnnotations): Added method (inspired by OpenJDK).
  (getParameterAnnotations): Added method.

  * src/lib/gnu/java/lang/reflect/Field.java
  (java.lang.annotation.Annotation): Added import.
  (java.util.Map): Added import.
  (sun.refelct.annotation.AnnotationParser): Added import.
  (declaredAnnotations): Added field (inspired by OpenJDK).
  (getAnnotation): Added method.
  (getDeclaredAnnotations): Added method.
  (declaredAnnotations): Added method (inspired by OpenJDK).

  * src/lib/gnu/java/lang/reflect/Constructor.java:
  Copied file from GNU Classpath.
  (java.lang.annotation.Annotation): Added import.
  (java.util.Map): Added import.
  (sun.refelct.annotation.AnnotationParser): Added import.
  (declaredAnnotations): Added field (inspired by OpenJDK).
  (getAnnotation): Added method.
  (getDeclaredAnnotations): Added method.
  (declaredAnnotations): Added method (inspired by OpenJDK).
  (getParameterAnnotations): Added method.

  * src/lib/gnu/sun/reflect/generics/parser/SignatureFormatError.java:
  Removed.

  * src/lib/gnu/sun/reflect/generics/parser/SignatureParser.java:
  Removed. I figured out which class of GNU Classpath to use to replace
  this self written class.

  * src/lib/gnu/sun/reflect/annotation/AnnotationParser.java:
  Added a few comments.
  (sun.reflect.generics.parser.SignatureParser): Removed import.
  (sun.reflect.generics.parser.SignatureFormatError): Removed import.
  (gnu.java.lang.reflect.FieldSignatureParser): Added import.
  (parseParameterAnnotations): Added method.
  (parseSig): Changed method so it uses GNU Classpaths FieldSignatureParser.

  * src/lib/Makefile.am
  (VM_JAVA_FILES): Added $(top_srcdir)/src/lib/gnu/java/lang/reflect/Constructor.java
  (VM_CLASS_FILES): Added classes/java/lang/reflect/Constructor.class

  * src/native/vm/java_lang_Class.c
  [WITH_CLASSPATH_GNU] [ENABLE_ANNOTATIONS]
  (_Jv_java_lang_Class_getDeclaredAnnotations): Cache methodinfo for
  sun.reflect.annotation.AnnotationParser.parseAnnotationsIntoArray.

  * src/native/vm/gnu/java_lang_reflect_Method.c
  [ENABLE_ANNOTATIONS] (native/vm/reflect.h): Added include.
  [ENABLE_ANNOTATIONS] (declaredAnnotations): Added method.
  [ENABLE_ANNOTATIONS] (getParameterAnnotations): Added method.
  [ENABLE_ANNOTATIONS] (Java_java_lang_reflect_Method_getDefaultValue):
  Cache methodinfo for sun.reflect.annotation.AnnotationParser.parseDefaultValue.
  [ENABLE_ANNOTATIONS] (Java_java_lang_reflect_Method_declaredAnnotations): Added.
  [ENABLE_ANNOTATIONS] (Java_java_lang_reflect_Method_getParameterAnnotations): Added.

  * src/native/vm/gnu/java_lang_reflect_Field.c
  [ENABLE_ANNOTATIONS] (native/include/sun_reflect_ConstantPool.h): Added include.
  [ENABLE_ANNOTATIONS] (native/vm/reflect.h): Added include.
  [ENABLE_ANNOTATIONS] (declaredAnnotations): Added method.
  [ENABLE_ANNOTATIONS] (Java_java_lang_reflect_Field_declaredAnnotations): Added.

  * src/native/vm/gnu/java_lang_reflect_Constructor.c
  [ENABLE_ANNOTATIONS] (vm/vm.h): Added include.
  [ENABLE_ANNOTATIONS] (native/include/sun_reflect_ConstantPool.h): Added include.
  [ENABLE_ANNOTATIONS] (native/vm/reflect.h): Added include.
  [ENABLE_ANNOTATIONS] (declaredAnnotations): Added method.
  [ENABLE_ANNOTATIONS] (getParameterAnnotations): Added method.
  [ENABLE_ANNOTATIONS] (Java_java_lang_reflect_Constructor_declaredAnnotations): Added.
  [ENABLE_ANNOTATIONS] (Java_java_lang_reflect_Constructor_getParameterAnnotations): Added.

  * src/native/vm/reflect.c
  [WITH_CLASSPATH_GNU] [ENABLE_ANNOTATIONS] (vm/vm.h): Added include.
  [WITH_CLASSPATH_GNU] [ENABLE_ANNOTATIONS] (native/include/sun_reflect_ConstantPool.h): Added include.
  [WITH_CLASSPATH_GNU] [ENABLE_ANNOTATIONS] (reflect_get_declaredannotatios): Added.
  [WITH_CLASSPATH_GNU] [ENABLE_ANNOTATIONS] (reflect_get_parameterannotations): Added.

  * src/native/vm/reflect.h
  [WITH_CLASSPATH_GNU] [ENABLE_ANNOTATIONS] (reflect_get_declaredannotatios): Added.
  [WITH_CLASSPATH_GNU] [ENABLE_ANNOTATIONS] (reflect_get_parameterannotations): Added.

  * src/native/vm/sun/jvm.c
  (JVM_GetDeclaredClasses): Implemented (needed by a testcase of mine).

  * src/vmcore/method.c (method_get_parametercount): Added.
  This function gets the parameter count of a method (not counting the
  this pointer of non-static methods). Returns -1 in case of an error.

  * src/vmcore/method.h (method_get_parametercount): Added.
........
  r8263 | twisti | 2007-08-06 16:41:05 +0200 (Mon, 06 Aug 2007) | 3 lines

  * src/vm/jit/mips/arch.h (SUPPORT_PASS_FLOATARGS_IN_INTREGS): Removed
  duplicate define.
........
  r8264 | twisti | 2007-08-06 18:02:28 +0200 (Mon, 06 Aug 2007) | 33 lines

  * src/vm/jit/patcher-common.h: Added __MIPS__ for new patcher
  functions.

  * src/vm/jit/patcher.h: Added __MIPS__ to include-check.

  * src/vm/jit/mips/emit.c (vm/jit/patcher-common.h): Added.
  (emit_patcher_stubs): Removed.
  (emit_trap): Added.

  * src/vm/jit/mips/codegen.c (vm/jit/patcher.h): Removed.
  (vm/jit/patcher-common.h): Added.
  (codegen_emit): Replaced codegen_add_patch_ref with
  patcher_add_patch_ref, and emit_patcher_stubs with emit_patcher_traps.
  (codegen_emit_stub_native): Likewise.

  * src/vm/jit/mips/codegen.h (PATCHER_CALL_INSTRUCTIONS): Changed to 1.
  (PATCHER_CALL_SIZE): Changed to 1*4.
  (PATCHER_NOPS): Emit only one NOP.

  * src/vm/jit/mips/linux/md-os.c (md_signal_handler_sigsegv): Check for
  exception, set PC in trap-case.

  * src/vm/jit/mips/irix/md-os.c (md_signal_handler_sigsegv): Check for
  exception.

  * src/vm/jit/mips/patcher.c: Renamed function to new patcher
  functions, and use patcher references.
  (vm/jit/patcher.h): Removed.
  (vm/jit/patcher-common.h): Added
  (patcher_wrapper): Removed.

  * src/vm/jit/mips/asmpart.S (asm_patcher_wrapper): Removed.
........
  r8265 | twisti | 2007-08-06 18:10:42 +0200 (Mon, 06 Aug 2007) | 3 lines

  * src/vm/jit/emit-common.c: Set Id keyword.
  * src/vm/jit/emit-common.h: Likewise.
........
  r8266 | twisti | 2007-08-07 10:26:38 +0200 (Tue, 07 Aug 2007) | 3 lines

  * src/threads/threads-common.c (threads_preinit): Fixed compiler
  warning.
........
  r8267 | twisti | 2007-08-07 13:07:48 +0200 (Tue, 07 Aug 2007) | 4 lines

  * src/vm/jit/i386/emit.c (emit_trap): New function.
  * src/vm/jit/powerpc64/emit.c: Likewise.
  * src/vm/jit/x86_64/emit.c: Likewise.
........
  r8268 | twisti | 2007-08-07 15:24:43 +0200 (Tue, 07 Aug 2007) | 34 lines

  * src/vmcore/field.c (mm/memory.h): Added.
  (vm/global.h): Likewise.
  (field_load): Allocate value memory only for static and final fields.

  * src/vmcore/field.h (fieldinfo): Made value a pointer.

  * src/vmcore/loader.c (load_class_from_classbuffer): Allocate
  fieldinfo's on the C heap.

  * src/native/jni.c: fieldinfo->value is now a pointer.
  * src/native/vm/sun_misc_Unsafe.c: Likewise.
  * src/native/vm/gnu/java_lang_reflect_Field.c: Likewise.

  * src/vm/jit/alpha/codegen.c,
  src/vm/jit/alpha/patcher.c,
  src/vm/jit/arm/codegen.c,
  src/vm/jit/arm/patcher.c,
  src/vm/jit/i386/codegen.c,
  src/vm/jit/i386/patcher.c,
  src/vm/jit/m68k/codegen.c,
  src/vm/jit/m68k/patcher.c,
  src/vm/jit/mips/codegen.c,
  src/vm/jit/mips/patcher.c,
  src/vm/jit/powerpc/codegen.c,
  src/vm/jit/powerpc/patcher.c,
  src/vm/jit/powerpc64/codegen.c,
  src/vm/jit/powerpc64/patcher.c,
  src/vm/jit/s390/codegen.c,
  src/vm/jit/s390/patcher.c,
  src/vm/jit/sparc64/codegen.c,
  src/vm/jit/sparc64/patcher.c,
  src/vm/jit/x86_64/codegen.c,
  src/vm/jit/x86_64/patcher.c: Likewise.
........
  r8269 | twisti | 2007-08-07 21:21:33 +0200 (Tue, 07 Aug 2007) | 3 lines

  * tests/rtMissedIn0: Removed.
  * tests/rtIn: Likewise.
........
  r8270 | twisti | 2007-08-08 15:57:12 +0200 (Wed, 08 Aug 2007) | 49 lines

  * src/vm/vm.c (vm_array_store_flt): Handle __POWERPC__ correctly.
  (vm_vmargs_from_valist): Removed.
  (vm_vmargs_from_jvalue): Likewise.
  (vm_vmargs_from_objectarray): Likewise.
  (vm_call_method_vmarg): Likewise.
  (vm_call_method_int_vmarg): Likewise.
  (vm_call_method_int_valist): Likewise.
  (vm_call_method_int_jvalue): Likewise.
  (vm_call_method_long_vmarg): Likewise.
  (vm_call_method_long_valist): Likewise.
  (vm_call_method_long_jvalue): Likewise.
  (vm_call_method_float_vmarg): Likewise.
  (vm_call_method_float_valist): Likewise.
  (vm_call_method_float_jvalue): Likewise.
  (vm_call_method_double_vmarg): Likewise.
  (vm_call_method_double_valist): Likewise.
  (vm_call_method_double_jvalue): Likewise.
  (vm_call_method_valist): Removed old implementation.
  (vm_call_method_jvalue): Likewise.

  * src/vm/vm.h: Removed old prototypes.
  * src/vm/jit/asmpart.h: Likewise.

  * src/vm/exceptions.c (exceptions_handle_exception) [__POWERPC__]: Get
  monitor object correctly (talk to Michi because of ARM).

  * src/native/jni.c (_Jv_jni_invokeNative): Removed old implementation.

  * src/vm/jit/powerpc/linux/md-abi.c (md_param_alloc): Use 8-byte
  stackslots.
  (md_param_alloc_native): Implemented native ABI.

  * src/vm/jit/powerpc/emit.c (emit_load): Merged TYPE_FLT and TYPE_DBL.
  (emit_store): Likewise
  * src/vm/jit/powerpc/darwin/md-abi.c: Likewise.

  * src/vm/jit/powerpc/arch.h (HAS_4BYTE_STACKSLOT): Removed.
  (ALIGN_LONGS_IN_MEMORY): Likewise.
  (ALIGN_DOUBLES_IN_MEMORY): Likewise.

  * src/vm/jit/powerpc/codegen.c: Implemented 8-byte stackslots, always
  load and store float-values as double (PowerPC's internal register
  representation is the same).

  * src/vm/jit/powerpc/asmpart.S (asm_vm_call_method): Use new argument
  array.
  (asm_handle_exception): Restore callee-saved registers from the
  correct location.
........
  r8271 | twisti | 2007-08-08 16:07:56 +0200 (Wed, 08 Aug 2007) | 7 lines

  * src/vm/vm.h (vm_arg): Removed.

  * src/vm/jit/tools/genoffsets.c (main): Removed sizevmarg,
  offvmargtype and offvmargdata.

  * src/vm/jit/m68k/md.c (md_init): Removed some obsolete checks.
........
  r8272 | twisti | 2007-08-08 16:55:00 +0200 (Wed, 08 Aug 2007) | 7 lines

  * src/threads/threads-common.c (stdint.h): Added.
  (threads_thread_free): Also save and restore the thread state (this is
  required for CLDC1.1, but is generally a good idea).

  * src/native/vm/java_lang_Thread.c (isAlive) [WITH_CLASSPATH_CLDC1_1]:
  Check for NULL.
........
  r8273 | twisti | 2007-08-08 17:33:15 +0200 (Wed, 08 Aug 2007) | 8 lines

  * src/vmcore/class.c (class_isanysubclass): Don't use
  ASM_GETCLASSVALUES_ATOMIC anymore, we will change that to use the
  class-renumbering lock.

  * src/vm/builtin.c (builtin_canstore): Likewise.
  (builtin_canstore_onedim): Likewise.
  (builtin_canstore_onedim_class): Likewise.
........
  r8274 | twisti | 2007-08-08 17:58:17 +0200 (Wed, 08 Aug 2007) | 45 lines

  * src/vm/jit/tools: Removed.

  * configure.ac (AC_CONFIG_FILES): Removed src/vm/jit/tools/Makefile.
  * src/vm/jit/Makefile.am (DIST_SUBDIRS): Removed tools.
  (SUBDIRS): Likewise.

  * src/threads/critical.c (stdint.h): Added.
  (vm/jit/asmpart.h): Removed.
  (critical_init): Don't call critical_register_asm_critical_sections.
  (critical_register_asm_critical_sections): Removed.

  * src/vm/jit/asmpart.h (ASM_GETCLASSVALUES_ATOMIC): Removed.
  (asm_criticalsections): Likewise.
  (asm_getclassvalues_atomic): Likewise.
  (intrp_asm_getclassvalues_atomic): Likewise.

  * src/vm/jit/alpha/Makefile.am,
  src/vm/jit/arm/Makefile.am,
  src/vm/jit/i386/Makefile.am,
  src/vm/jit/m68k/Makefile.am,
  src/vm/jit/mips/Makefile.am,
  src/vm/jit/powerpc/Makefile.am,
  src/vm/jit/powerpc64/Makefile.am,
  src/vm/jit/s390/Makefile.am,
  src/vm/jit/sparc64/Makefile.am,
  src/vm/jit/x86_64/Makefile.am (BUILT_SOURCES): Removed
  (CLEANFILES): Likewise.
  (offsets.h): Likewise.

  * src/vm/jit/alpha/asmpart.S,
  src/vm/jit/arm/asmpart.S,
  src/vm/jit/i386/asmpart.S,
  src/vm/jit/m68k/asmpart.S,
  src/vm/jit/mips/asmpart.S,
  src/vm/jit/powerpc/asmpart.S,
  src/vm/jit/powerpc64/asmpart.S,
  src/vm/jit/s390/asmpart.S,
  src/vm/jit/sparc64/asmpart.S,
  src/vm/jit/x86_64/asmpart.S (offsets.h): Removed.
  (asm_getclassvalues_atomic): Likewise.
  (asm_criticalsections): Likewise.

  * src/vm/jit/powerpc/darwin/md-asm.h (asm_criticalsections): Removed.
  (asm_getclassvalues_atomic): Likewise.
........
  r8275 | twisti | 2007-08-08 18:05:40 +0200 (Wed, 08 Aug 2007) | 12 lines

  * src/vm/jit/alpha,
  src/vm/jit/arm,
  src/vm/jit/i386,
  src/vm/jit/m68k,
  src/vm/jit/mips,
  src/vm/jit/parisc,
  src/vm/jit/powerpc,
  src/vm/jit/powerpc64,
  src/vm/jit/s390,
  src/vm/jit/sparc64,
  src/vm/jit/x86_64 (svn:ignore): Removed offsets.h.
........
  r8276 | twisti | 2007-08-08 18:09:14 +0200 (Wed, 08 Aug 2007) | 2 lines

  * src/vm/jit/arm/asmpart.S (offsets.h): Removed.
........
  r8277 | michi | 2007-08-08 18:42:11 +0200 (Wed, 08 Aug 2007) | 9 lines

  * src/vmcore/linker.c (linker_compute_subclasses): Added attention notice about
  the locking mechanism.

  * src/vmcore/class.c (class_isanysubclass): Uses linker_classrenumber_lock now.

  * src/vm/builtin.c (builtin_canstore): Likewise.
  (builtin_canstore_onedim): Likewise.
  (builtin_canstore_onedim_class): Likewise.
........
  r8278 | michi | 2007-08-08 19:10:18 +0200 (Wed, 08 Aug 2007) | 5 lines

  * src/vm/jit/s390/emit.c (emit_replacement_stubs): Removed obsolete function.
  * src/vm/jit/s390/codegen.c (codegen_emit): Do not create replacement stubs.
  * src/vm/jit/replace.c (replace_me): No longer call asm_replacement_in.
  * src/vm/jit/asmpart.h [ENABLE_REPLACEMENT]: Removed obsolete prototypes.
........
  r8279 | michi | 2007-08-09 11:36:57 +0200 (Thu, 09 Aug 2007) | 7 lines

  * src/vm/jit/alpha/linux/md-os.c
  [ENABLE_REPLACEMENT] (md_replace_executionstate_read): Implemented.
  [ENABLE_REPLACEMENT] (md_replace_executionstate_write): Likewise.

  * src/vm/jit/alpha/asmpart.S (asm_replacement_out): Removed.
  (asm_replacement_in): Likewise.
........
  r8280 | twisti | 2007-08-09 13:28:51 +0200 (Thu, 09 Aug 2007) | 2 lines

  * NEWS: Added 0.99 release and some news.
........
  r8281 | twisti | 2007-08-09 14:09:17 +0200 (Thu, 09 Aug 2007) | 2 lines

  * NEWS: Added news.
........
  r8282 | twisti | 2007-08-09 14:18:47 +0200 (Thu, 09 Aug 2007) | 7 lines

  * src/vm/signal.c (vm/types.h): Removed.
  (signal_init): Use signal_register_signal.
  (signal_register_signal): New function.

  * src/vm/signallocal.h (vm/types.h): Removed.
  (signal_register_signal): New function.
........
  r8283 | twisti | 2007-08-09 17:10:05 +0200 (Thu, 09 Aug 2007) | 30 lines

  * src/vm/exceptions.c (toolbox/logging.h): Removed.
  (vm/jit/disass.h): Likewise.
  (exceptions_new_hardware_exception): Likewise.

  * src/vm/exceptions.h (exceptions_new_hardware_exception): Likewise.

  * src/vm/signal.c (stdint.h): Added.
  (toolbox/logging.h): Likewise.
  (vm/jit/codegen-common.h): Likewise.
  (vm/jit/disass.h): Likewise.
  (vm/jit/patcher-common.h): Likewise.
  (signal_handle): New function.

  * src/vm/signallocal.h (signal_handle): Likewise.

  * src/vm/jit/alpha/linux/md-os.c,
  src/vm/jit/arm/linux/md-os.c,
  src/vm/jit/i386/darwin/md-os.c,
  src/vm/jit/i386/linux/md-os.c,
  src/vm/jit/m68k/linux/md-os.c,
  src/vm/jit/mips/irix/md-os.c,
  src/vm/jit/mips/linux/md-os.c,
  src/vm/jit/powerpc/darwin/md-os.c,
  src/vm/jit/powerpc/linux/md-os.c,
  src/vm/jit/powerpc64/linux/md-os.c,
  src/vm/jit/s390/md.c,
  src/vm/jit/sparc64/linux/md-os.c,
  src/vm/jit/sparc64/solaris/md-os.c,
  src/vm/jit/x86_64/linux/md-os.c: Use new signal_handle function.
........
  r8284 | michi | 2007-08-10 10:58:39 +0200 (Fri, 10 Aug 2007) | 26 lines

  * src/native/llni.h: Added LLNI (low level native interface).

  Use LLNI macros throughout the whole codebase:
  * src/vm/jit/stacktrace.c
  * src/vm/string.c
  * src/vm/builtin.c
  * src/vm/exceptions.c
  * src/vm/vm.c
  * src/native/jni.c
  * src/native/vm/java_lang_ClassLoader.c
  * src/native/vm/java_lang_Class.c
  * src/native/vm/java_lang_String.c
  * src/native/vm/java_lang_Object.c
  * src/native/vm/gnu/java_lang_VMThread.c
  * src/native/vm/gnu/java_lang_reflect_Method.c
  * src/native/vm/gnu/java_lang_reflect_Field.c
  * src/native/vm/gnu/java_lang_reflect_Constructor.c
  * src/native/vm/gnu/java_lang_VMThrowable.c
  * src/native/vm/java_lang_Thread.c
  * src/native/vm/sun_misc_Unsafe.c
  * src/native/vm/reflect.c
  * src/native/vm/java_lang_reflect_Method.c
  * src/native/vm/java_lang_reflect_Constructor.c
  * src/threads/threads-common.c
  * src/threads/native/threads.c
........
  r8285 | michi | 2007-08-10 11:20:04 +0200 (Fri, 10 Aug 2007) | 5 lines

  * src/native/vm/gnu/java_lang_reflect_Method.c: Fixed merge problem in
  previous revision 8284.

  * src/native/vm/gnu/java_lang_reflect_Constructor.c: Likewise.
........
  r8286 | michi | 2007-08-10 12:46:17 +0200 (Fri, 10 Aug 2007) | 9 lines

  * src/vm/jit/powerpc/patcher.c (patcher_get_putfield): Fixed severe bug for
  unalligned long field offsets.

  * src/vmcore/linker.c [__POWERPC__ && __DARWIN__]: Long fields are 4-byte
  alligned in structs.

  * src/vm/jit/patcher-common.c [TRACE_PATCHER]: Left patcher trace code hanging
  around, might come handy again.
........
  r8287 | twisti | 2007-08-10 17:10:29 +0200 (Fri, 10 Aug 2007) | 2 lines

  * src/native/jni.c (_Jv_JNI_FromReflectedField): Added missing ;.
........
  r8288 | twisti | 2007-08-10 17:12:00 +0200 (Fri, 10 Aug 2007) | 34 lines

  * src/vmcore/primitive.c: Removed.
  * src/vmcore/primitive.h: Likewise.

  * src/vmcore/Makefile.am (libvmcore_la_SOURCES): Removed
  primitive.[ch].

  * src/vmcore/primitivecore.c: New file.
  * src/vm/primitive.c: Likwise.
  * src/vm/primitive.h: Likewise.

  * src/vm/Makefile.am (libvm_la_SOURCES): Added primitive.[ch].

  * src/cacaoh/dummy.c (vm/primitive.h): Added.
  (primitive_class_get_by_type): New function.
  (primitive_class_get_by_char): Likewise.

  * src/native/jni.c,
  src/native/vm/gnu/java_lang_VMClassLoader.c,
  src/native/vm/gnu/java_lang_reflect_Field.c,
  src/native/vm/java_lang_Class.c,
  src/native/vm/sun/jvm.c,
  src/vm/builtin.c,
  src/vm/jit/verify/typecheck-stackbased.c,
  src/vm/jit/verify/typecheck-typeinferer.c,
  src/vm/jit/verify/typecheck.c,
  src/vm/jit/verify/typeinfo.c,
  src/vm/resolve.c,
  src/vm/string.c,
  src/vm/vm.c,
  src/vmcore/descriptor.c,
  src/vmcore/field.c,
  src/vmcore/linker.c,
  src/vmcore/loader.c: Changed primitive.h include.
........
  r8289 | twisti | 2007-08-10 17:18:05 +0200 (Fri, 10 Aug 2007) | 3 lines

  * src/native/vm/reflect.c (reflect_field_new): Fixed compilation.
  (reflect_method_new): Likewise.
........
  r8290 | twisti | 2007-08-11 12:25:40 +0200 (Sat, 11 Aug 2007) | 6 lines

  * src/native/vm/sun/jvm.c (JVM_GC): Call GC-call directly, use
  TRACEJVMCALLS.
  (JVM_TotalMemory): Likewise.
  (JVM_FreeMemory): Likewise.
  (JVM_NewArray): Use TRACEJVMCALLS.
........
  r8291 | twisti | 2007-08-11 12:43:45 +0200 (Sat, 11 Aug 2007) | 41 lines

  * src/vm/primitive.c (native/jni.h): Added.
  (native/llni.h): Likewise.
  (native/include/java_lang_Boolean.h,
  native/include/java_lang_Byte.h,
  native/include/java_lang_Short.h,
  native/include/java_lang_Character.h,
  native/include/java_lang_Integer.h,
  native/include/java_lang_Long.h,
  native/include/java_lang_Float.h,
  native/include/java_lang_Double.h): Likewise.
  (vm/builtin.h): Likewise.
  (vm/vm.h): Likewise.
  (primitive_box): New function.
  (primitive_unbox): Likewise.
  (PRIMITIVE_BOX_TYPE): New macro for primitive_box_xxx functions.
  (PRIMITIVE_UNBOX_TYPE): New macro for primitive_unbox_xxx functions.

  * src/vm/primitive.h (primitive_box): Added.
  (primitive_unbox): Likewise.
  (primitive_box_boolean,
  primitive_box_byte,
  primitive_box_char,
  primitive_box_short,
  primitive_box_int,
  primitive_box_long,
  primitive_box_float,
  primitive_box_double): Likewise.
  (primitive_unbox_boolean,
  primitive_unbox_byte,
  primitive_unbox_char,
  primitive_unbox_short,
  primitive_unbox_int,
  primitive_unbox_long,
  primitive_unbox_float,
  primitive_unbox_double): Likewise.

  * src/native/jni.c (_Jv_jni_invokeNative): Use primitive-box
  functions.

  * src/native/vm/gnu/java_lang_reflect_Field.c (get): Likewise.
........
  r8292 | twisti | 2007-08-11 14:39:28 +0200 (Sat, 11 Aug 2007) | 13 lines

  * src/vm/vm.c (VM_CALL_METHOD): New macro.
  (VM_CALL_METHOD_VALIST): Likewise.
  (VM_CALL_METHOD_JVALUE): Likewise.
  (VM_CALL_ARRAY): Likewise.

  * src/vm/vm.h (vm_call_method_int): Changed return type to
  stdint-type.
  (vm_call_method_int_valist): Likewise.
  (vm_call_method_int_jvalue): Likewise.
  (vm_call_method_long): Likewise.
  (vm_call_method_long_valist): Likewise.
  (vm_call_method_long_jvalue): Likewise.
........
  r8293 | twisti | 2007-08-11 14:40:22 +0200 (Sat, 11 Aug 2007) | 2 lines

  * src/vm/vm.h: Set Id keyword.
........
  r8294 | ajordan | 2007-08-11 15:42:25 +0200 (Sat, 11 Aug 2007) | 6 lines

  * src/vm/jit/sparc64/md-abi.c (md_param_alloc_native): Fixed pending issue from
  regoff change.
  * src/vm/jit/sparc64/codegen.c (codegen_emit_stub_native): Likewise.

  * src/vm/jit/sparc64/emit.c (emit_trap): Added.
........
  r8295 | michi | 2007-08-11 19:57:24 +0200 (Sat, 11 Aug 2007) | 106 lines

  * src/vm/global.h (java_handle_t): Added typedef.
  (java_object_t): New name for what was formerly known as java_objectheader.

  Adapted to above changes and decided where to use handles:
  * src/vm/initialize.c
  * src/vm/properties.h
  * src/vm/jit/arm/codegen.c
  * src/vm/jit/powerpc/codegen.c
  * src/vm/jit/codegen-common.h
  * src/vm/jit/sparc64/codegen.c
  * src/vm/jit/sparc64/patcher.c
  * src/vm/jit/alpha/codegen.c
  * src/vm/jit/optimizing/recompile.c
  * src/vm/jit/patcher-common.c
  * src/vm/jit/s390/codegen.c
  * src/vm/jit/show.c
  * src/vm/jit/patcher-common.h
  * src/vm/jit/mips/codegen.c
  * src/vm/jit/patcher.h
  * src/vm/jit/m68k/codegen.c
  * src/vm/jit/powerpc64/codegen.c
  * src/vm/jit/i386/codegen.c
  * src/vm/jit/i386/patcher.c
  * src/vm/jit/replace.c
  * src/vm/jit/asmpart.h
  * src/vm/jit/x86_64/codegen.c
  * src/vm/jit/x86_64/patcher.c
  * src/vm/jit/replace.h
  * src/vm/jit/stacktrace.c
  * src/vm/jit/stacktrace.h
  * src/vm/jit/codegen-common.c
  * src/vm/jit/jit.h
  * src/vm/builtin.c
  * src/vm/string.c
  * src/vm/primitive.c
  * src/vm/builtin.h
  * src/vm/signal.c
  * src/vm/primitive.h
  * src/vm/exceptions.c
  * src/vm/vm.c
  * src/vm/finalizer.c
  * src/vm/exceptions.h
  * src/vm/stringlocal.h
  * src/vm/vm.h
  * src/vm/properties.c
  * src/native/jni.c
  * src/native/vm/java_lang_ClassLoader.c
  * src/native/vm/cldc1.1/com_sun_cldchi_jvm_JVM.c
  * src/native/vm/cldc1.1/java_lang_Class.c
  * src/native/vm/cldc1.1/java_lang_String.c
  * src/native/vm/cldc1.1/java_lang_Object.c
  * src/native/vm/cldc1.1/java_lang_System.c
  * src/native/vm/cldc1.1/java_lang_Throwable.c
  * src/native/vm/java_lang_Class.c
  * src/native/vm/gnu/gnu_java_lang_management_VMMemoryMXBeanImpl.c
  * src/native/vm/gnu/java_lang_VMClassLoader.c
  * src/native/vm/gnu/gnu_classpath_VMSystemProperties.c
  * src/native/vm/gnu/java_lang_reflect_Method.c
  * src/native/vm/gnu/java_lang_VMRuntime.c
  * src/native/vm/gnu/gnu_classpath_VMStackWalker.c
  * src/native/vm/gnu/java_lang_reflect_Field.c
  * src/native/vm/gnu/java_lang_reflect_Constructor.c
  * src/native/vm/gnu/java_lang_VMThrowable.c
  * src/native/vm/java_lang_Object.c
  * src/native/vm/java_lang_String.c
  * src/native/vm/java_lang_Thread.c
  * src/native/vm/sun_misc_Unsafe.c
  * src/native/vm/sun/jvm.c
  * src/native/vm/reflect.c
  * src/native/vm/java_lang_Runtime.c
  * src/native/vm/java_lang_reflect_Method.c
  * src/native/vm/reflect.h
  * src/native/vm/java_lang_Runtime.h
  * src/native/vm/java_lang_reflect_Constructor.c
  * src/native/jni.h
  * src/native/native.c
  * src/native/native.h
  * src/toolbox/hashtable.h
  * src/toolbox/util.c
  * src/toolbox/list.h
  * src/toolbox/avl.c
  * src/toolbox/avl.h
  * src/toolbox/hashtable.c
  * src/mm/memory.c
  * src/threads/none/threads.h
  * src/threads/threads-common.c
  * src/threads/lock-common.h
  * src/threads/native/threads.h
  * src/threads/native/lock.c
  * src/threads/native/threads.c
  * src/threads/native/lock.h
  * src/vmcore/class.c
  * src/vmcore/loader.c
  * src/vmcore/suck.h
  * src/vmcore/class.h
  * src/vmcore/loader.h
  * src/vmcore/method.c
  * src/vmcore/method.h
  * src/vmcore/classcache.c
  * src/vmcore/classcache.h
  * src/vmcore/linker.c
  * src/vmcore/linker.h
  * src/cacaoh/headers.h
  * src/cacaoh/dummy.c
  * src/cacaoh/headers.c
........
  r8296 | pm | 2007-08-12 00:38:38 +0200 (Sun, 12 Aug 2007) | 11 lines

   * src/vm/exceptions.c (exceptions_handle_exception) [__S390__]: Synchronization object is at SP - IsSync - 8.
   * src/vm/vm.c (vm_array_store_flt) [__S390__]: Float value is in bytes 4-7 of uint64_t.
   * src/vm/jit/s390/arch.h,
  src/vm/jit/s390/asmpart.S,
  src/vm/jit/s390/codegen.c,
  src/vm/jit/s390/emit.c,
  src/vm/jit/s390/md.c,
  src/vm/jit/s390/md-abi.c,
  src/vm/jit/s390/md-asm.h: Changed a lot for 8 byte stackslots.
........
  r8297 | michi | 2007-08-12 02:02:48 +0200 (Sun, 12 Aug 2007) | 35 lines

  * src/native/localref.c: Added new file.
  * src/native/localref.h: Likewise.

  * src/native/Makefile.am: Added above two files.

  * src/vm/jit/codegen-common.c (codegen_start_native_call)
  (codegen_finish_native_call): Use separate function to deal with localrefs.

  * src/native/jni.h: Moved localref stuff to own file.
  * src/native/jni.c: Likewise.
  (JNI_CALL_VIRTUAL_METHOD): Added new macro.
  (JNI_CALL_NONVIRTUAL_METHOD): Likewise.
  (JNI_GET_FIELD): Likewise.
  (JNI_SET_FIELD): Likewise.
  (JNI_CALL_STATIC_METHOD): Likewise.
  (JNI_GET_STATIC_FIELD): Likewise.
  (JNI_SET_STATIC_FIELD): Likewise.
  (JNI_NEW_ARRAY): Likewise.
  (JNI_GET_ARRAY_ELEMENTS): Likewise.
  (JNI_RELEASE_ARRAY_ELEMENTS): Likewise.
  (JNI_GET_ARRAY_REGION): Likewise.
  (JNI_SET_ARRAY_REGION): Likewise.

  * src/threads/native/threads.h,
  * src/vm/jit/arm/codegen.c,
  * src/vm/jit/powerpc/codegen.c,
  * src/vm/jit/sparc64/codegen.c,
  * src/vm/jit/alpha/codegen.c,
  * src/vm/jit/s390/codegen.c,
  * src/vm/jit/mips/codegen.c,
  * src/vm/jit/m68k/codegen.c,
  * src/vm/jit/powerpc64/codegen.c,
  * src/vm/jit/i386/codegen.c,
  * src/vm/jit/x86_64/codegen.c: Added missing include.
........
  r8298 | pm | 2007-08-12 20:49:16 +0200 (Sun, 12 Aug 2007) | 7 lines

  * src/vm/jit/dseg.c (dseg_get_linenumber_from_pc) [__S390__]: Clear most significant bit of passed pc parameter.
  * src/vm/jit/s390/asmpart.S (asm_handle_exception): Rewritten to be wrapper for md_handle_exception.
  * src/vm/jit/s390/md.c (md_handle_exception): New function.
  * src/vm/jit/s390/md-abi.h (FLT_SAV_CNT): 2, (FLT_RES_CNT): 0.
  * src/vm/jit/s390/md-abi.c (abi_registers_float_saved): Added f4 and f6, (nregdescfloat): Made f4 and f6 saved registers.
........

--HG--
branch : exact-gc

16 years agoMerged revisions 8187-8244 via svnmerge from
michi [Tue, 31 Jul 2007 09:55:04 +0000 (09:55 +0000)]
Merged revisions 8187-8244 via svnmerge from
svn+ssh://michi@c1.complang.tuwien.ac.at/ahome/cacao/svn/cacao/trunk

........
  r8189 | ajordan | 2007-07-07 14:03:38 +0200 (Sat, 07 Jul 2007) | 2 lines

  * src/vm/jit/sparc64/solaris/md-os.c: Implemented hardware exception handling.
........
  r8190 | twisti | 2007-07-08 15:42:06 +0200 (Sun, 08 Jul 2007) | 4 lines

  * src/vm/jit/powerpc/linux/md-abi.c (vm/types.h): Removed.
  (stdint.h): Added and use stdint-types in this file.
  (_ALIGN): Removed and use ALIGN_2 in this file.
........
  r8191 | twisti | 2007-07-08 17:15:53 +0200 (Sun, 08 Jul 2007) | 8 lines

  * src/vm/jit/powerpc/emit.c (stdint.h): Added
  (emit_verbosecall_enter): Reimplemented (this implementation is much
  simpler and maybe should be extended to trace also arguments on the
  stack). Darwin support is still missing.

  * src/vm/jit/powerpc/darwin/md-abi.h (TRACE_ARGS_NUM): Changed to 4.
  * src/vm/jit/powerpc/linux/md-abi.h (TRACE_ARGS_NUM): Likewise.
........
  r8192 | twisti | 2007-07-09 13:18:48 +0200 (Mon, 09 Jul 2007) | 3 lines

  * src/vm/jit/x86_64/linux/md-os.c (md_signal_handler_sigsegv): Fixed
  typo.
........
  r8193 | twisti | 2007-07-09 16:37:49 +0200 (Mon, 09 Jul 2007) | 2 lines

  * src/vm/global.h (ALIGN_2): Use logical arithmetic.
........
  r8194 | twisti | 2007-07-10 15:44:37 +0200 (Tue, 10 Jul 2007) | 9 lines

  * src/vmcore/options.c (opt_TraceJavaCalls): Added.
  (options_XX): Added opt_TraceJavaCalls.
  (options_xx): Likewise.

  * src/vmcore/options.h (opt_TraceJavaCalls): Added.

  * src/vm/vm.c (XXusage): Removed -verbose:call.
  (vm_create): Likewise.
........
  r8195 | pm | 2007-07-11 13:27:55 +0200 (Wed, 11 Jul 2007) | 3 lines

  * src/vm/jit/s390/codegen.c (codegen_emit): Extended maximal interface table offset from 12 bit to 16 bit in ICMD_INVOKEINTERFACE.
  * src/vm/jit/s390/patcher.c (patcher_invokeinterface): Likewise.
........
  r8196 | twisti | 2007-07-11 15:54:21 +0200 (Wed, 11 Jul 2007) | 5 lines

  * src/vm/jit/powerpc/codegen.c (codegen_emit): Fixed bug when taking
  out double arguments.
  (codegen_emit_stub_native): Use switch-case for saving and restoring
  argument registers.
........
  r8197 | twisti | 2007-07-11 21:17:04 +0200 (Wed, 11 Jul 2007) | 3 lines

  * src/vm/jit/x86_64/asmpart.S (asm_vm_call_method): Fixed stack
  alignment.
........
  r8198 | twisti | 2007-07-12 09:16:24 +0200 (Thu, 12 Jul 2007) | 10 lines

  * src/vm/jit/alpha/asmpart.S (asm_vm_call_method): Rewritten for new
  argument passing.

  * src/vm/jit/alpha/md-abi.c (md_param_alloc): Set pd->index.

  * src/native/jni.c: Added __ALPHA__ ifdef.
  * src/vm/vm.c: Likewise.
  * src/vm/vm.h: Likewise.
  * src/vm/jit/asmpart.h: Likewise.
........
  r8199 | michi | 2007-07-13 02:39:49 +0200 (Fri, 13 Jul 2007) | 7 lines

  * src/vmcore/statistics.h (size_patchref): Added.
  * src/vmcore/statistics.c (size_patchref): Added.
  (statistics_print_memory_usage): Print size of patcher references.

  * src/vm/jit/patcher-common.c (patcher_add_patch_ref, patcher_list_free)
  [ENABLE_STATISTICS] Set size of patcher references accordingly.
........
  r8200 | twisti | 2007-07-15 11:47:21 +0200 (Sun, 15 Jul 2007) | 2 lines

  * src/vm/vm.c: Build fix.
........
  r8201 | twisti | 2007-07-15 12:37:50 +0200 (Sun, 15 Jul 2007) | 9 lines

  * src/vmcore/primitive.c (stdint.h): Added.
  (primitive_arrayclass_get_by_name): New function.

  * src/vmcore/primitive.h (stdint.h): Added.
  (primitive_arrayclass_get_by_name): Likewise.

  * src/native/vm/sun/jvm.c (JVM_NewArray): Implemented handling for
  primitive arrays.
........
  r8202 | twisti | 2007-07-15 14:08:18 +0200 (Sun, 15 Jul 2007) | 3 lines

  * src/native/include/Makefile.am [WITH_CLASSPATH_SUN]
  (JAVASE_HEADER_FILES): Added sun_reflect_ConstantPool.h.
........
  r8203 | twisti | 2007-07-15 14:30:04 +0200 (Sun, 15 Jul 2007) | 16 lines

  * src/vmcore/primitive.c (primitive_class_is_primitive): Removed.
  * src/vmcore/primitive.h: Likewise.

  * src/vmcore/class.c (class_is_primitive): New function.
  (class_isanysubclass): Use class_is_primitive.
  * src/vmcore/class.h: Likewise.

  * src/native/vm/java_lang_Class.c (isPrimitive): Use
  class_is_primitive.
  (getDeclaringClass): Likewise.
  (getDeclaredClasses): Likewise.

  * src/native/vm/sun/jvm.c (JVM_GetProtectionDomain): Likewise.
  (JVM_IsPrimitiveClass): Likewise.
  (JVM_NewArray): Likewise.
........
  r8204 | twisti | 2007-07-15 14:44:22 +0200 (Sun, 15 Jul 2007) | 4 lines

  * src/native/vm/sun/jvm.c (JVM_ArrayCopy): Fixed warnings.
  (JVM_GetStackTraceElement): Likewise.
  (JVM_FindLoadedClass): Likewise.
........
  r8205 | twisti | 2007-07-15 14:45:40 +0200 (Sun, 15 Jul 2007) | 2 lines

  * src/native/vm/sun/jvm.c: Set Id keyword.
........
  r8206 | twisti | 2007-07-15 16:26:33 +0200 (Sun, 15 Jul 2007) | 7 lines

  * src/vmcore/options.c (opt_TraceJVMCalls): Added.
  * src/vmcore/options.h: Likewise.

  * src/native/vm/sun/jvm.c (vmcore/options.h): Added.
  (DEBUG_JVM): Renamed to TRACEJVMCALLS.
  (JVM_GetArrayLength): Implemented.
........
  r8207 | twisti | 2007-07-16 17:18:32 +0200 (Mon, 16 Jul 2007) | 6 lines

  * src/vmcore/class.c (class_get_declaringclass): New function.
  * src/vmcore/class.h: Likewise.

  * src/native/vm/java_lang_Class.c (getDeclaringClass): Use
  class_get_declaringclass.
........
  r8208 | twisti | 2007-07-17 11:06:22 +0200 (Tue, 17 Jul 2007) | 3 lines

  * src/native/jni.c (TRACEJNICALLS): Added but still unused.
  (JNI_GetCreatedJavaVMs): Implemented.
........
  r8209 | twisti | 2007-07-17 22:13:23 +0200 (Tue, 17 Jul 2007) | 9 lines

  * src/vmcore/class.c (vm/resolve.h): Added.
  (class_define): Changed signature.
  * src/vmcore/class.h (class_define): Likewise.

  * src/native/jni.c (_Jv_JNI_DefineClass): Bug fix, use class_define.

  * src/native/vm/java_lang_ClassLoader.c (defineClass): Use
  class_define.
........
  r8210 | twisti | 2007-07-18 14:51:00 +0200 (Wed, 18 Jul 2007) | 50 lines

  * src/vm/jit/allocator/simplereg.c: Replaced HAS_4BYTE_STACKSLOT with
  SIZEOF_VOID_P == 4.

  * src/vm/jit/i386/emit.c (vm/jit/abi.h): Added.
  (emit_verbosecall_enter): Changed to 8-byte stackslots.

  * src/vm/jit/i386/codegen.c (codegen_emit): Changed to 8-byte
  stackslots.
  (codegen_emit_stub_native): Likewise.

  * src/vm/jit/i386/arch.h (HAS_4BYTE_STACKSLOT): Removed.
  (ALIGN_LONGS_IN_MEMORY): Likewise.
  (ALIGN_DOUBLES_IN_MEMORY): Likewise.

  * src/vm/jit/i386/asmpart.S (asm_vm_call_method): Rewritten for new
  argument passing.
  (asm_handle_exception): Use 8-byte stackslots.

  * src/vm/jit/i386/md-abi.c (md_param_alloc): Use 8-byte stackslots and
  set pd->index.
  (md_param_alloc_native): New function.

  * src/vm/global.h (ALIGN_EVEN): New macro.
  (ALIGN_ODD): Likewise.
  (ALIGN_2): Defined to ALIGN_EVEN.

  * src/vm/builtintable.inc (builtintable_function): Removed #ifdef for
  java.lang.VMSystem.arraycopy, this works now correctly.

  * src/vm/builtin.c (builtintable_init): Set ACC_METHOD_BUILTIN when
  parsing the decriptor.

  * src/vm/jit_interface.h (md_param_alloc_native): Added.

  * src/vm/exceptions.c (exceptions_handle_exception): Temporarily added
  __I386__ to get the monitor object correctly.

  * src/vmcore/descriptor.c (descriptor_pool_parse_method_descriptor):
  Check for ACC_METHOD_BUILTIN flag.
  (descriptor_params_from_paramtypes): Likewise.

  * src/cacaoh/dummy.c (md_param_alloc_native): Added.

  * src/vm/jit/asmpart.h: Added __I386__ ifdef.
  * src/vm/vm.c: Likewise.
  * src/vm/vm.h: Likewise.
  * src/native/jni.c: Likewise.
  (_Jv_jni_invokeNative): Check for exception too when
  vm_array_from_objectarray returns.
........
  r8211 | michi | 2007-07-18 21:52:23 +0200 (Wed, 18 Jul 2007) | 25 lines

  * src/vm/jit/replace.h (REPLACEMENT_EMIT_STUBS): Removed macro.

  * src/vm/jit/emit-common.h (emit_replacement_stubs): Removed.

  * src/vm/jit/arm/emit.c,
  * src/vm/jit/arm/codegen.c,
  * src/vm/jit/powerpc/emit.c,
  * src/vm/jit/powerpc/codegen.c,
  * src/vm/jit/sparc64/emit.c,
  * src/vm/jit/sparc64/codegen.c,
  * src/vm/jit/alpha/emit.c,
  * src/vm/jit/alpha/codegen.c,
  * src/vm/jit/s390/emit.c,
  * src/vm/jit/mips/emit.c,
  * src/vm/jit/mips/codegen.c,
  * src/vm/jit/m68k/codegen.c,
  * src/vm/jit/powerpc64/emit.c,
  * src/vm/jit/powerpc64/codegen.c,
  * src/vm/jit/i386/emit.c,
  * src/vm/jit/i386/codegen.c,
  * src/vm/jit/x86_64/emit.c,
  * src/vm/jit/x86_64/codegen.c
  (emit_replacement_stubs): Removed.
  (codegen_emit): Do not create replacement stubs anymore.
........
  r8212 | twisti | 2007-07-18 21:59:32 +0200 (Wed, 18 Jul 2007) | 14 lines

  * src/vm/vm.c (opts): Added -XX.
  (usage): Small text change.

  * src/vmcore/options.c (opt_DebugStackFrameInfo): Added.
  (opt_DebugStackTrace): Likewise.
  (options_XX): Added type and some documentation.
  (options_xxusage): New function.
  (options_xx): Do more error checking.

  * src/vmcore/options.h (option_t): Added type and renamed option to
  value.
  (opt_DebugStackFrameInfo): Added.
  (opt_DebugStackTrace): Likewise.
........
  r8213 | michi | 2007-07-18 22:08:26 +0200 (Wed, 18 Jul 2007) | 5 lines

  * src/vmcore/options.h (opt_replace_verbose): Removed.
  * src/vmcore/options.c (opt_replace_verbose): Removed.
  * src/vm/vm.c [ENABLE_INLINING]: Removed options -ir and -iR, this is now
  called -XX:TraceReplacement.
........
  r8214 | michi | 2007-07-18 22:27:12 +0200 (Wed, 18 Jul 2007) | 2 lines

  * src/vmcore/options.c (options_XX): Fixed -XX:TraceReplacement.
........
  r8215 | michi | 2007-07-18 22:31:21 +0200 (Wed, 18 Jul 2007) | 6 lines

  * src/vm/jit/code.h (codeinfo) [ENABLE_REPLACEMENT]: Removed obsolet pointer
  to replacementstubs.

  * src/vm/jit/codegen-common.c (codegen_finish) [ENABLE_REPLACEMENT]: Do not
  resolve pointer to replacementstubs.
........
  r8216 | michi | 2007-07-19 15:51:21 +0200 (Thu, 19 Jul 2007) | 20 lines

  * src/vm/jit/powerpc/emit.c (emit_patcher_traps): Formerly known
  as emit_patcher_stubs, now emits traps instead of stubs.

  * src/vm/jit/powerpc/codegen.c (codegen_emit, codegen_emit_stub_native): Call the
  new patcher functions and adapted to above change.

  * src/vm/jit/powerpc/patcher.c: Adapted patchers to new signature for traps.
  (patcher_wrapper): Removed, this is obsolete.

  * src/vm/jit/powerpc/asmpart.S (asm_patcher_wrapper): Removed, this is obsolete.

  * src/vm/jit/powerpc/linux/md-os.c (md_signal_handler_sigsegv): Only calls the
  exception handling if exception object present.

  * src/vm/jit/powerpc/darwin/md-os.c (md_signal_handler_sigsegv): Likewise.

  * src/vm/jit/patcher-common.h [__POWERPC__]: Enabled new patcher stuff.

  * src/vm/jit/patcher.h [__POWERPC__]: Defined away old patcher stuff.
........
  r8217 | michi | 2007-07-19 17:44:41 +0200 (Thu, 19 Jul 2007) | 3 lines

  * src/vm/jit/arm/md-os.c (md_signal_handler_sigsegv): Added additional
  debug output.
........
  r8218 | michi | 2007-07-19 18:33:19 +0200 (Thu, 19 Jul 2007) | 5 lines

  * src/vm/jit/s390/md.c (md_get_method_patch_address): Fixed cornercase
  for replacement.

  * src/vm/jit/m68k/md.c (md_get_method_patch_address): Likewise.
........
  r8219 | twisti | 2007-07-20 18:52:11 +0200 (Fri, 20 Jul 2007) | 6 lines

  * src/vmcore/class.c (class_get_superclass): New function.
  * src/vmcore/class.h: Likewise.

  * src/native/jni.c (_Jv_JNI_GetSuperclass): Use class_get_superclass.
  * src/native/vm/java_lang_Class.c (getSuperclass): Likewise.
........
  r8220 | twisti | 2007-07-22 17:37:52 +0200 (Sun, 22 Jul 2007) | 8 lines

  * src/vmcore/options.c (opt_TraceJNICalls): Added.
  * src/vmcore/options.h: Likewise.

  * src/native/jni.c (TRACEJNICALLS): Enabled.
  (_Jv_JNI_GetStringLength): Added TRACEJNICALLS.
  (_Jv_JNI_NewStringUTF): Likewise.
  (_Jv_JNI_GetStringUTFLength): Likewise.
........
  r8221 | twisti | 2007-07-22 21:31:41 +0200 (Sun, 22 Jul 2007) | 3 lines

  * src/native/jni.c (_Jv_JNI_GetSuperclass): Fixed TRACEJNICALLS.
  (_Jv_JNI_GetStringUTFRegion): Bugfix, start at offset to copy data.
........
  r8222 | twisti | 2007-07-22 22:07:55 +0200 (Sun, 22 Jul 2007) | 3 lines

  * src/threads/native/threads.h (threads_yield): Removed.
  * src/threads/threads-common.h (threads_yield): Added.
........
  r8223 | twisti | 2007-07-22 22:43:05 +0200 (Sun, 22 Jul 2007) | 3 lines

  * src/vmcore/class.c (class_get_signature): New function.
  * src/vmcore/class.h: Likewise.
........
  r8224 | twisti | 2007-07-23 21:07:48 +0200 (Mon, 23 Jul 2007) | 2 lines

  * src/vmcore/class.h (classinfo): Removed unused listnode.
........
  r8225 | twisti | 2007-07-23 23:33:16 +0200 (Mon, 23 Jul 2007) | 5 lines

  * src/native/vm/sun_misc_Unsafe.c (vm/stringlocal.h): Added.
  (putInt): New function.
  (getObject): Likewise.
  (defineClass): Likewise.
........
  r8226 | twisti | 2007-07-24 10:21:23 +0200 (Tue, 24 Jul 2007) | 4 lines

  * src/native/vm/sun_misc_Unsafe.c [WITH_CLASSPATH_SUN]
  (native/include/java_security_ProtectionDomain.h): Removed #ifdef.
  (defineClass) [WITH_CLASSPATH_GNU]: Renamed pd to protectionDomain.
........
  r8227 | twisti | 2007-07-24 13:55:07 +0200 (Tue, 24 Jul 2007) | 16 lines

  * src/vmcore/loader.c (vmcore/field.h): Added.
  (load_field): Removed.
  (load_class_from_classbuffer): Call field_load.

  * src/vmcore/field.c (stdint.h): Added.
  (vm/exceptions.h): Likewise.
  (vm/stringlocal.h): Likewise.
  (vm/vm.h): Likewise.
  (vmcore/descriptor.h): Likewise.
  (vmcore/loader.h): Likewise.
  (vmcore/options.h): Likewise.
  (vmcore/suck.h): Likewise.
  (field_load): New function.

  * src/vmcore/field.h (field_load): Added.
........
  r8228 | twisti | 2007-07-24 14:37:25 +0200 (Tue, 24 Jul 2007) | 12 lines

  * src/vmcore/loader.c (vmcore/method.h): Added.
  (loader_load_method): Removed.
  (load_class_from_classbuffer): Call method_load.

  * src/vmcore/method.c (stdint.h): Added.
  (threads/lock-common): Likewise.
  (vm/exceptions.h): Likewise.
  (vmcore/suck.h): Likewise.
  (method_load): New function.

  * src/vmcore/method.h (method_load): Added.
........
  r8229 | twisti | 2007-07-24 20:42:44 +0200 (Tue, 24 Jul 2007) | 2 lines

  * src/vmcore/field.h (vmcore/loader.h): Added.
........
  r8230 | twisti | 2007-07-25 10:23:10 +0200 (Wed, 25 Jul 2007) | 9 lines

  * src/vm/string.c,
  src/vm/vm.c,
  src/vmcore/class.c,
  src/vmcore/class.h,
  src/vmcore/loader.c,
  src/vmcore/options.c,
  src/vmcore/options.h: Removed eager-loading stuff (as it was broken
  anyways).
........
  r8231 | twisti | 2007-07-25 16:21:24 +0200 (Wed, 25 Jul 2007) | 6 lines

  * src/vmcore/class.c [ENABLE_JAVASE] (class_get_signature): Only for
  JavaSE.
  * src/vmcore/class.h: Likewise.

  * src/vmcore/method.h (vmcore/loader.h): Added.
........
  r8232 | twisti | 2007-07-25 16:51:40 +0200 (Wed, 25 Jul 2007) | 4 lines

  * src/vmcore/descriptor.c (vm/vm.h): Added.
  (descriptor_to_basic_type): Code cleanup.
  (descriptor_typesize): Likewise.
........
  r8233 | twisti | 2007-07-25 17:11:20 +0200 (Wed, 25 Jul 2007) | 5 lines

  * src/vmcore/descriptor.c (descriptor_to_basic_type): Changed return
  type to int.
  (descriptor_typesize): Likewise.
  * src/vmcore/descriptor.h: Likewise.
........
  r8234 | twisti | 2007-07-26 10:21:25 +0200 (Thu, 26 Jul 2007) | 4 lines

  * src/vmcore/linker.c (dummy_alignment_long_t): New structure.
  (dummy_alignment_double_t): Likewise.
  (linker_init): Added long/double alignment check.
........
  r8235 | twisti | 2007-07-26 10:29:24 +0200 (Thu, 26 Jul 2007) | 3 lines

  * THIRDPARTY: Fixed classes path, added contrib/mapfile-vers-product,
  src/lib/gnu/sun/misc/Unsafe.java
........
  r8236 | twisti | 2007-07-27 12:18:17 +0200 (Fri, 27 Jul 2007) | 22 lines

  * src/vm/vm.c (version): Removed configuration output.
  (vm_printconfig): New function.
  (vm_create): Set bootclasspath and classpath whenever changed and
  don't call properties_postinit. This fixes a bug with
  -Djava.class.path.
  * src/vm/vm.h (vm_printconfig): Added.

  * src/vm/properties.c (properties_init): Set java.vm.info for all
  JavaSE configurations.
  (properties_postinit): Removed.
  * src/vm/properties.h (properties_postinit): Likewise.

  * src/vmcore/options.c (opt_PrintConfig): Added.
  (options_xx): Likewise.
  * src/vmcore/options.h (opt_PrintConfig): Likewise.

  * src/vmcore/suck.c (suck_add_from_property): Reset the bootclasspath
  after it changed.

  * src/cacaoh/dummy.c (properties_add): New dummy.
  (vm_printconfig): Likewise.
........
  r8237 | twisti | 2007-07-27 18:15:29 +0200 (Fri, 27 Jul 2007) | 16 lines

  * src/vmcore/class.c (class_sun_reflect_MagicAccessorImpl): Added.
  (class_issubclass): Don't get super-class directly, it can be
  unresolved. Use class_get_superclass.

  * src/vmcore/class.h (class_sun_reflect_MagicAccessorImpl): Added.

  * src/vmcore/loader.c (loader_init): Load
  class_sun_reflect_MagicAccessorImpl.

  * src/vmcore/linker.c (linker_init): Link
  class_sun_reflect_MagicAccessorImpl.

  * src/vm/access.c (access_is_accessible_class) [WITH_CLASSPATH_SUN]:
  Added sun/reflect/MagicAccessorImpl check.
  (access_is_accessible_member): Likewise.
........
  r8238 | twisti | 2007-07-27 20:41:53 +0200 (Fri, 27 Jul 2007) | 4 lines

  * src/vmcore/class.c (class_resolve_superclass): New function.
  (class_issubclass): Use class_resolve_superclass.
  (class_get_superclass): Likewise.
........
  r8239 | twisti | 2007-07-29 21:21:18 +0200 (Sun, 29 Jul 2007) | 3 lines

  * src/vm/vm.c (vm_create) [WITH_CLASSPATH_SUN]: Set bootclasspath as
  HotSpot does.
........
  r8240 | pm | 2007-07-29 22:36:47 +0200 (Sun, 29 Jul 2007) | 7 lines

  * src/vm/jit/replace.c: Enaled replacement on s390.
  * src/vm/jit/s390/arch.h,
  src/vm/jit/s390/codegen.h,
  src/vm/jit/s390/codegen.c,
  src/vm/jit/s390/emit.c,
  src/vm/jit/s390/md.c: Changed a lot: implemented profiling, fixed bugs found by mauve, begun work on replacament.
........
  r8241 | twisti | 2007-07-30 11:26:31 +0200 (Mon, 30 Jul 2007) | 4 lines

  * m4/ac_prog_javac.m4 (AC_PROG_JAVAC): Try javac as first
  compiler. Left jikes in there so configure can finish on machines
  where we don't have a javac or ecj.
........
  r8242 | twisti | 2007-07-31 10:45:35 +0200 (Tue, 31 Jul 2007) | 4 lines

  * src/mm/boehm.c (heap_allocate): Call GC_REGISTER_FINALIZER_NO_ORDER
  instead of GC_REGISTER_FINALIZER. This fixes the GC heap memory leak
  seen with e.g. Jetty.
........
  r8243 | michi | 2007-07-31 10:57:54 +0200 (Tue, 31 Jul 2007) | 21 lines

  * src/vm/exceptions.c (exceptions_new_hardware_exception): Do not create sfi.
  * src/vm/exceptions.h (exceptions_new_hardware_exception): Changed signature.

  * src/vm/jit/arm/linux/md-os.c
  * src/vm/jit/powerpc/linux/md-os.c
  * src/vm/jit/powerpc/darwin/md-os.c
  * src/vm/jit/sparc64/linux/md-os.c
  * src/vm/jit/sparc64/solaris/md-os.c
  * src/vm/jit/alpha/linux/md-os.c
  * src/vm/jit/s390/md.c
  * src/vm/jit/mips/linux/md-os.c
  * src/vm/jit/mips/irix/md-os.c
  * src/vm/jit/m68k/linux/md-os.c
  * src/vm/jit/powerpc64/linux/md-os.c
  * src/vm/jit/i386/darwin/md-os.c
  * src/vm/jit/i386/linux/md-os.c
  * src/vm/jit/x86_64/linux/md-os.c:
  Signal handlers create the sfi now.
  Adapted to above changes.
  Exception object variable is now called "e" on all archs.
........
  r8244 | michi | 2007-07-31 11:30:28 +0200 (Tue, 31 Jul 2007) | 4 lines

  * src/vm/jit/replace.c (replace_me_wrapper): Added.
  * src/vm/jit/replace.h (replace_me_wrapper): Added.
  * src/vm/exceptions.c (exceptions_new_hardware_exception): Call above function.
........

--HG--
branch : exact-gc

16 years ago* src/vm/jit/alpha/codegen.c (codegen_emit): ICMD_BUILTIN now calls stubs.
michi [Fri, 6 Jul 2007 00:31:03 +0000 (00:31 +0000)]
* src/vm/jit/alpha/codegen.c (codegen_emit): ICMD_BUILTIN now calls stubs.
(codegen_emit_stub_builtin): Implemented.

* src/vm/jit/alpha/linux/md-os.c (md_signal_handler_sigusr1): Implemented.

--HG--
branch : exact-gc

16 years agoMerged revisions 8183-8186 via svnmerge from
michi [Thu, 5 Jul 2007 23:52:19 +0000 (23:52 +0000)]
Merged revisions 8183-8186 via svnmerge from
svn+ssh://michi@c1.complang.tuwien.ac.at/ahome/cacao/svn/cacao/trunk

........
  r8184 | michi | 2007-07-05 23:11:01 +0200 (Thu, 05 Jul 2007) | 5 lines

  * src/vm/jit/code.c (code_get_stack_frame_size): Removed.
  * src/vm/jit/code.h: Likewise.

  * src/vm/jit/replace.c: Use code->stackframesize instead of above function.
........
  r8185 | michi | 2007-07-05 23:34:47 +0200 (Thu, 05 Jul 2007) | 3 lines

  * src/vm/jit/arm/md.c (md_get_method_patch_address): Added the replacement
  magic about mptr being NULL sometimes.
........
  r8186 | michi | 2007-07-06 01:48:16 +0200 (Fri, 06 Jul 2007) | 18 lines

  * src/vm/jit/alpha/emit.c (emit_patcher_traps): Formerly known
  as emit_patcher_stubs, now emits traps instead of stubs.

  * src/vm/jit/alpha/codegen.c (codegen_emit, codegen_emit_stub_native): Call the
  new patcher functions and adapted to above change.

  * src/vm/jit/alpha/patcher.c: Adapted patchers to new signature for traps.
  (patcher_wrapper): Removed, this is obsolete.

  * src/vm/jit/alpha/asmpart.S (asm_patcher_wrapper): Removed, this is obsolete.

  * src/vm/jit/alpha/linux/md-os.c (md_signal_handler_sigsegv): Only calls the
  exception handling if exception object present.

  * src/vm/jit/patcher-common.h [__ALPHA__]: Enabled new patcher stuff.

  * src/vm/jit/patcher.h [__ALPHA__]: Defined away old patcher stuff.
........

--HG--
branch : exact-gc

16 years agoMerged revisions 8179-8182 via svnmerge from
michi [Thu, 5 Jul 2007 20:37:05 +0000 (20:37 +0000)]
Merged revisions 8179-8182 via svnmerge from
svn+ssh://michi@c1.complang.tuwien.ac.at/ahome/cacao/svn/cacao/trunk

........
  r8182 | michi | 2007-07-05 22:36:16 +0200 (Thu, 05 Jul 2007) | 2 lines

  * src/vm/jit/arm/codegen.c (codegen_emit): Replacement points are created.
........

--HG--
branch : exact-gc

16 years ago* src/threads/native/threads.c: Fixed bogus ifdef.
michi [Thu, 5 Jul 2007 20:23:10 +0000 (20:23 +0000)]
* src/threads/native/threads.c: Fixed bogus ifdef.

* src/vm/jit/arm/linux/md-os.c (md_signal_handler_sigusr1): Implemented.

* src/vm/jit/arm/codegen.c (codegen_emit): ICMD_BUILTIN now calls stubs.
(codegen_emit_stub_builtin): Implemented.
(codegen_emit_stub_native) [ENABLE_GC_CACAO]: Saved registers are stored in sfi.

* src/mm/cacao-gc/gc.h: Added ARM to ported architecture list.

--HG--
branch : exact-gc

16 years ago* src/mm/cacao-gc/gc.c (gc_reference_register): Fixed problem with threads_init.
michi [Thu, 5 Jul 2007 11:41:40 +0000 (11:41 +0000)]
* src/mm/cacao-gc/gc.c (gc_reference_register): Fixed problem with threads_init.

--HG--
branch : exact-gc

16 years agoMerged revisions 8137-8178 via svnmerge from
michi [Thu, 5 Jul 2007 11:21:08 +0000 (11:21 +0000)]
Merged revisions 8137-8178 via svnmerge from
svn+ssh://michi@c1.complang.tuwien.ac.at/ahome/cacao/svn/cacao/trunk

........
  r8139 | twisti | 2007-06-24 12:12:27 +0200 (Sun, 24 Jun 2007) | 3 lines

  * src/vm/jit/stacktrace.c (stacktrace_print_trace): Handle
  WITH_CLASSPATH_SUN properly.
........
  r8142 | pm | 2007-06-25 20:58:11 +0200 (Mon, 25 Jun 2007) | 3 lines

  * src/vm/jit/s390/tests/jasmin.status: Added.
........
  r8143 | twisti | 2007-06-26 17:47:43 +0200 (Tue, 26 Jun 2007) | 3 lines

  * src/vm/jit/i386/patcher.c (patcher_builtin_multianewarray): Dont'
  patch function address.
........
  r8144 | pm | 2007-06-26 23:16:35 +0200 (Tue, 26 Jun 2007) | 3 lines

  * src/vm/jit/s390/tests/dacapo.status: Added more dacapo eclipse results.
........
  r8145 | michi | 2007-06-27 10:54:10 +0200 (Wed, 27 Jun 2007) | 16 lines

  * src/vm/jit/patcher-common.h: Added.
  * src/vm/jit/patcher-common.t: Added.
  * src/vm/jit/Makefile.am: Added above two files.

  * src/vm/jit/code.h (codeinfo): Added patcher list.
  * src/vm/jit/code.c (code_codeinfo_new, code_codeinfo_free): Patcher list is
  created and freed together with codeinfo.

  * src/vm/jit/codegen-common.c (codegen_finish): Absolute PCs for patchers are
  resolved.

  * src/vm/jit/emit-common.h (emit_patcher_traps): Added prototype.

  * src/vm/exception.c (exceptions_new_hardware_exception): Patcher handler is
  called if needed.
........
  r8146 | michi | 2007-06-27 11:04:17 +0200 (Wed, 27 Jun 2007) | 3 lines

  * src/vm/exceptions.h: Added EXCEPTION_HARDWARE_COMPILER.
  * src/vm/exceptions.c (exceptions_init): Made check clearer.
........
  r8147 | twisti | 2007-06-27 11:23:24 +0200 (Wed, 27 Jun 2007) | 2 lines

  * src/native/vm/gnu/java_lang_VMRuntime.c (unistd.h): Added.
........
  r8149 | twisti | 2007-06-27 15:26:49 +0200 (Wed, 27 Jun 2007) | 3 lines

  * src/native/vm/sun_misc_Unsafe.c (putObject): New function.
  (park): New function, but not implemented.
........
  r8150 | twisti | 2007-06-27 20:35:40 +0200 (Wed, 27 Jun 2007) | 6 lines

  * src/mm/boehm.c (gc_init): Set GC_all_interior_pointers to 0 and call
  GC_INIT very late.

  * src/vm/vm.c (vm_create): Initialze the GC before all other
  subsystems.
........
  r8151 | pm | 2007-06-27 22:08:30 +0200 (Wed, 27 Jun 2007) | 2 lines

  * src/vm/jit/s390/codegen.c (codegen_emit): Replace some load/stores by a mvc.
........
  r8152 | pm | 2007-06-27 22:37:45 +0200 (Wed, 27 Jun 2007) | 2 lines

  * src/vm/jit/s390/codegen.c (codegen_emit): Fix profiling code.
........
  r8153 | ajordan | 2007-06-27 22:56:03 +0200 (Wed, 27 Jun 2007) | 12 lines

  * src/vm/jit/sparc64/md-abi.h: Removed faulty register offset
  multiplication from REG_WINDOW_TRANSPOSE.

  * src/vm/jit/sparc64/asmpart.S: fixed offsets.h include.

  * src/vm/jit/sparc64/solaris/macro_rename.h: Added include,
  which renames the REG_SP defined from Solaris sys headers to
  REG_SP_SOLARIS and defines mine.
  * src/vm/jit/sparc64/emit.c: Used here.
  * src/vm/jit/sparc64/codegen.c: Used here.
  * src/vm/jit/sparc64/patcher.c: Used here.
........
  r8154 | ajordan | 2007-06-27 22:56:57 +0200 (Wed, 27 Jun 2007) | 2 lines

  * configure.ac: Added librt for SPARC/Solaris.
........
  r8155 | ajordan | 2007-06-27 23:53:44 +0200 (Wed, 27 Jun 2007) | 6 lines

  * src/vm/builtin.c (builtin_f2l): Added for DISABLE_GC.
  (builtin_d2l): Likewise.

  * src/native/jni.c (_Jv_jni_invokeNative): Added SPARC to defines, corrected
  bitwise & for ARM.
........
  r8156 | ajordan | 2007-06-28 00:07:28 +0200 (Thu, 28 Jun 2007) | 2 lines

  * configure.ac: Check for librt should only be done on Solaris.
........
  r8157 | michi | 2007-06-28 00:12:32 +0200 (Thu, 28 Jun 2007) | 3 lines

  * src/vm/vm.c: Fixed messed up ifdefs introduced with M68K.
  * src/vm/vm.h: Likewise.
........
  r8158 | ajordan | 2007-06-28 02:01:34 +0200 (Thu, 28 Jun 2007) | 6 lines

  * src/vm/jit/sparc64/md-abi.c (md_param_alloc): Added absolute offsets for
  native arguments (reguse * 8).

  * src/vm/jit/sparc64/codegen.c (codegen_emit_stub_native): Adapted to
  change above.
........
  r8159 | michi | 2007-06-28 02:31:31 +0200 (Thu, 28 Jun 2007) | 5 lines

  * src/vm/jit/verify/typecheck-typeinferer.c: Removed patcher.h include.
  * src/vm/jit/verify/typecheck.c: Likewise.
  * src/vm/jit/parse.c: Likewise.
  * src/vm/builtin.c: Likewise.
........
  r8160 | michi | 2007-06-28 03:52:19 +0200 (Thu, 28 Jun 2007) | 26 lines

  * src/vm/jit/arm/emit.c (emit_patcher_traps): Formerly known
  as emit_patcher_stubs, now emits traps instead of stubs.

  * src/vm/jit/arm/codegen.c (codegen_emit, codegen_emit_stub_native): Call the
  new patcher functions and adapted to above change.

  * src/vm/jit/arm/patcher.c: Adapted patchers to new signature for traps.
  (patcher_get_putfield): Fixed severe bug for long values.
  (patcher_wrapper): Removed, this is obsolete.

  * src/vm/jit/arm/codegen.h (M_TRAP): Added.

  * src/vm/jit/arm/asmpart.S (asm_patcher_wrapper): Removed, this is obsolete.

  * src/vm/jit/arm/linux/md-os.c (md_signal_handler_sigill): Only calls the
  exception handling if exception object present.

  * src/vm/jit/patcher-common.c: Fixed includes.

  * src/vm/jit/patcher-common.h [__ARM__]: Added prototypes for patcher functions.
  (patchref_t): Added datap.

  * src/vm/jit/patcher.h [__ARM__]: Defined away old patcher stuff.

  * src/vm/jit/codegen-common.c (codegen_finish): Resolves pr->datap as well.
........
  r8161 | twisti | 2007-06-28 12:30:08 +0200 (Thu, 28 Jun 2007) | 11 lines

  * src/vm/global.h (ACC_CLASS_REFERENCE_MASK): Added.
  (ACC_CLASS_SOFT_REFERENCE): Renamed to ACC_CLASS_REFERENCE_SOFT.
  (ACC_CLASS_WEAK_REFERENCE): Renamed to ACC_CLASS_REFERENCE_WEAK.
  (ACC_CLASS_PHANTOM_REFERENCE): Renamed to ACC_CLASS_REFERENCE_PHANTOM.

  * src/vmcore/class.c (class_create_classinfo): Flag soft/weak/phantom
  reference classes.

  * src/vmcore/linker.c (link_class_intern): Inherit the reference
  flags.
........
  r8162 | twisti | 2007-06-28 15:40:37 +0200 (Thu, 28 Jun 2007) | 2 lines

  * src/native/vm/sun/jvm.c: Added copyright header.
........
  r8163 | twisti | 2007-06-29 20:53:55 +0200 (Fri, 29 Jun 2007) | 16 lines

  * configure.ac (AC_CHECK_HEADERS): Added netdb.h, ucontext.h.
  (AC_CHECK_FUNCS): Added gethostbyname, htons, malloc, recv, send.
  (AC_CHECK_ENABLE_ZLIB): Moved code to function.
  (AC_CHECK_ENABLE_LTDL): Likewise.

  * m4/zlib.m4: New file.
  * m4/ltdl.m4: Likewise.

  * src/native/native.c [ENABLE_LTDL && HAVE_LTDL_H] (ltdl.h): Added
  #ifdef.
  [ENABLE_LTDL] (hashtable_library): Likewise.
  (native_init) [ENABLE_LTDL]: Likewise.
  [ENABLE_LTDL] (native_library_open): Likewise.
  [ENABLE_LTDL] (native_library_add): Likewise.
  [ENABLE_LTLD] (native_library_find): Likewise.
........
  r8164 | twisti | 2007-06-29 20:56:08 +0200 (Fri, 29 Jun 2007) | 2 lines

  * src/native/native.c (native_library_find): Typo.
........
  r8165 | twisti | 2007-06-29 21:02:08 +0200 (Fri, 29 Jun 2007) | 4 lines

  * src/native/vm/java_lang_Runtime.c [ENABLE_LTDL && HAVE_LTDL_H]
  (ltdl.h): Added #ifdef.
  (loadLibrary) [ENABLE_LTDL]: Likewise.
........
  r8166 | twisti | 2007-06-29 21:45:17 +0200 (Fri, 29 Jun 2007) | 9 lines

  * src/native/native.c: Removed wrong comment.

  * src/native/native.h [ENABLE_LTDL && HAVE_LTDL_H] (ltdl.h): Added
  #ifdef.
  [ENABLE_LTDL] (hashtable_library_loader_entry): Likewise.
  [ENABLE_LTDL] (hashtable_library_name_entry): Likewise.
  [ENABLE_LTDL] (native_library_open, native_library_add)
  (native_library_find): Likewise.
........
  r8167 | twisti | 2007-06-29 22:27:41 +0200 (Fri, 29 Jun 2007) | 3 lines

  * src/native/native.h (hashtable_library_name_entry): Moved up, build
  fix.
........
  r8168 | twisti | 2007-06-30 14:20:48 +0200 (Sat, 30 Jun 2007) | 2 lines

  * src/mm/nogc.c (vm/vm.h): Added.
........
  r8169 | twisti | 2007-06-30 14:33:50 +0200 (Sat, 30 Jun 2007) | 18 lines

  * src/vmcore/class.c (class_is_array): New function.
  (class_is_interface): Likewise.
  * src/vmcore/class.h: Likewise.

  * src/native/vm/java_lang_Class.c (stdint.h): Added.
  (isInterface): Made JNI function, use class_is_interface.
  (isArray): Made JNI function, use class_is_array.
  * src/native/vm/java_lang_Class.h: Likewise.

  * src/native/vm/cldc1.1/java_lang_Class.c (methods): Register common
  methods for isInterface and isArray.
  (isInterface): Removed.
  (isArray): Likewise.

  * src/native/vm/gnu/java_lang_VMClass.c (isInterface): Changed to JNI
  call.
  (isArray): Likewise.
........
  r8170 | twisti | 2007-06-30 16:03:18 +0200 (Sat, 30 Jun 2007) | 23 lines

  * src/native/jni.c [ENABLE_JAVASE] (native/vm/reflect.h): Added.
  (_Jv_JNI_ToReflectedMethod): Implemented.

  * src/native/vm/java_lang_Class.c [ENABLE_JAVASE]
  (native/vm/reflect.h): Added.
  (getDeclaredFields): Use reflect_field_new.
  (getDeclaredMethods): Use reflect_method_new.
  (getDeclaredConstructors): Use reflect_constructor_new.
  (getEnclosingConstructor): Use reflect_constructor_new.
  (getEnclosingMethod): Use reflect_method_new.

  * src/native/vm/sun/jvm.c (jio_vsnprintf): Added count check.
  (jio_snprintf): Implemented.
  (JVM_IsInterface): Use class_is_interface.
  (JVM_IsArrayClass): Use class_is_array.
  (JVM_InvokeMethod): Disabled debug output.

  * src/native/vm/reflect.c: New file.
  * src/native/vm/reflect.h: Likewise.

  * src/native/vm/Makefile.am [ENABLE_JAVASE] (REFLECT_SOURCES): Added.
  (libnativevm_la_SOURCES): Added REFLECT_SOURCES.
........
  r8171 | twisti | 2007-06-30 16:13:58 +0200 (Sat, 30 Jun 2007) | 2 lines

  * src/native/vm/reflect.c: Fixed includes.
........
  r8172 | twisti | 2007-06-30 16:14:52 +0200 (Sat, 30 Jun 2007) | 3 lines

  * src/native/vm/reflect.c: Added Id keyword.
  * src/native/vm/reflect.h: Likewise.
........
  r8173 | twisti | 2007-06-30 19:40:09 +0200 (Sat, 30 Jun 2007) | 3 lines

  * src/native/vm/sun/jvm.c (JVM_Available): Fixed return value (seems
  it's a boolean value, 1 is OK, 0 is error).
........
  r8174 | twisti | 2007-07-01 19:49:25 +0200 (Sun, 01 Jul 2007) | 2 lines

  * src/vmcore/options.c (options_xx): Fixed warnings.
........
  r8175 | twisti | 2007-07-02 16:07:24 +0200 (Mon, 02 Jul 2007) | 3 lines

  * src/vm/exceptions.c (exceptions_init) [!(__ARM__ && __LINUX__)]:
  Don't mmap page 0x0 on arm-linux.
........
  r8176 | twisti | 2007-07-03 17:43:14 +0200 (Tue, 03 Jul 2007) | 3 lines

  * src/vm/jit/i386/darwin/Makefile.am (AM_CPPFLAGS): Added
  -I$(top_builddir)/src.
........
  r8177 | twisti | 2007-07-03 18:05:27 +0200 (Tue, 03 Jul 2007) | 3 lines

  * src/native/vm/sun_misc_Unsafe.c (methods): Added unpark.
  (unpark): New function, but unimplemented.
........
  r8178 | michi | 2007-07-05 13:13:20 +0200 (Thu, 05 Jul 2007) | 22 lines

  * src/vm/exceptions.c (exceptions_new_hardware_exception):  Stackframeinfo block
  is now on the stack of the signal handler function.

  * src/vm/exceptions.h (exceptions_new_hardware_exception): Changed signature.

  * src/vm/jit/arm/linux/md-os.c (md_signal_handler_sigsegv): Passes sfi to
  exceptions function.

  * src/vm/jit/powerpc/linux/md-os.c: Likewise.
  * src/vm/jit/powerpc/darwin/md-os.c: Likewise.
  * src/vm/jit/sparc64/linux/md-os.c: Likewise.
  * src/vm/jit/sparc64/solaris/md-os.c: Likewise.
  * src/vm/jit/alpha/linux/md-os.c: Likewise.
  * src/vm/jit/s390/md.c: Likewise.
  * src/vm/jit/mips/linux/md-os.c: Likewise.
  * src/vm/jit/mips/irix/md-os.c: Likewise.
  * src/vm/jit/m68k/linux/md-os.c: Likewise.
  * src/vm/jit/powerpc64/linux/md-os.c: Likewise.
  * src/vm/jit/i386/darwin/md-os.c: Likewise.
  * src/vm/jit/i386/linux/md-os.c: Likewise.
  * src/vm/jit/x86_64/linux/md-os.c: Likewise.
........

--HG--
branch : exact-gc

16 years ago* src/native/vm/gnu/java_lang_VMClassLoader.c
michi [Mon, 25 Jun 2007 13:35:26 +0000 (13:35 +0000)]
* src/native/vm/gnu/java_lang_VMClassLoader.c
(Java_java_lang_VMClassLoader_findLoadedClass):
Fixed bug with classloader entry not being registered.

--HG--
branch : exact-gc

16 years ago* src/vmcore/class.c (class_define, class_array_of): Fixed compiler warnings.
michi [Mon, 25 Jun 2007 13:26:23 +0000 (13:26 +0000)]
* src/vmcore/class.c (class_define, class_array_of): Fixed compiler warnings.
* src/vmcore/class.h: Likewise.

--HG--
branch : exact-gc

16 years ago* src/vm/jit/i386/codegen.c (codegen_emit_stub_builtin): Adapted to multiplied
michi [Fri, 22 Jun 2007 20:01:51 +0000 (20:01 +0000)]
* src/vm/jit/i386/codegen.c (codegen_emit_stub_builtin): Adapted to multiplied
regoff value.

* src/vm/jit/m68k/codegen.c (codegen_emit_stub_builtin): Likewise.

--HG--
branch : exact-gc

16 years agoMerged revisions 8123-8136 via svnmerge from
michi [Fri, 22 Jun 2007 16:41:36 +0000 (16:41 +0000)]
Merged revisions 8123-8136 via svnmerge from
svn+ssh://michi@c1.complang.tuwien.ac.at/ahome/cacao/svn/cacao/trunk

........
  r8125 | twisti | 2007-06-21 12:02:14 +0200 (Thu, 21 Jun 2007) | 4 lines

  * configure.ac (AC_CHECK_HEADERS): Added sys/socket.h.
  (AC_CHECK_FUNCS): Added accept, close, connect, getsockname, listen,
  setsockopt, shutdown, socket.
........
  r8126 | twisti | 2007-06-21 12:42:35 +0200 (Thu, 21 Jun 2007) | 2 lines

  * configure.ac (AC_CHECK_FUNCS): Added gethostname.
........
  r8127 | michi | 2007-06-21 13:55:56 +0200 (Thu, 21 Jun 2007) | 19 lines

  * src/vm/jit/arm/arch.h: Removed HAS_4BYTE_STACKSLOT, ALIGN_LONGS_IN_MEMORY and
  ALIGN_DOUBLES_IN_MEMORY.

  * src/vm/jit/arm/md-abi.c (md_param_alloc): Changed to 8-byte stackslots and
  set pd->index correctly.

  * src/vm/jit/arm/codegen.c: Changed to 8-byte stackslots (spilled regs and
  arguments only).

  * src/vm/jit/arm/asmpart.S (asm_vm_call_method): Reimplemented to fit new
  argument passing. Changed to 8-byte stackslots.

  * src/vm/vm.c (vm_array_store_flt, vm_array_store_dbl)
  [SUPPORT_PASS_FLOATARGS_IN_INTREGS]: Fixed.

  * src/vm/vm.c: Added ARM ifdefs.
  * src/vm/vm.h: Added ARM ifdefs.
  * src/native/jni.c: Added ARM ifdefs.
........
  r8128 | tbfg | 2007-06-21 18:29:53 +0200 (Thu, 21 Jun 2007) | 11 lines

  * src/vm/jit/m68k/linux/md-abi.h: Prepared 8 byte stackslots.
  * src/vm/jit/m68k/linux/md-abi.c: Likewise.
  * src/vm/jit/m68k/emit.c: Likewise.
  * src/vm/jit/m68k/arch.h: Likewise.
  * src/vm/jit/m68k/codegen.c: Likewise.
  * src/vm/jit/m68k/asmpart.S: Likewise.
  * src/vm/jit/asmpart.h: Likewise.
  * src/vm/vm.c: Likewise.
  * src/vm/vm.h: Likewise.
  * src/native/jni.c: Likewise.
........
  r8130 | twisti | 2007-06-22 10:50:37 +0200 (Fri, 22 Jun 2007) | 5 lines

  * src/vmcore/options.c (opt_ThreadStackSize): Added.
  (options_xx): Option and values are seperated by '=', not by ':'
  (let's keep compatible to Sun).
  * src/vmcore/options.h (opt_ThreadStackSize): Added.
........
  r8131 | tbfg | 2007-06-22 11:37:00 +0200 (Fri, 22 Jun 2007) | 3 lines

  * src/vm/jit/m68k/emit.c (emit_verbosecall_enter): Fixed for 8 byte stack slots.
  * src/vm/jit/m68k/asmpart.S (asm_vm_call_method): Fixed location of method address.
........
  r8132 | twisti | 2007-06-22 13:15:47 +0200 (Fri, 22 Jun 2007) | 44 lines

  * configure.ac,
  contrib/mapfile-vers-product,
  m4/classpath.m4,
  src/cacao/Makefile.am,
  src/lib/Makefile.am,
  src/lib/gnu/java/lang/reflect,
  src/lib/gnu/java/lang/reflect/Field.java,
  src/lib/gnu/java/lang/reflect/Method.java,
  src/lib/gnu/sun,
  src/lib/gnu/sun/misc,
  src/lib/gnu/sun/misc/Unsafe.java,
  src/native/include/Makefile.am,
  src/native/jni.c,
  src/native/jni.h,
  src/native/native.c,
  src/native/native.h,
  src/native/vm/Makefile.am,
  src/native/vm/gnu/java_lang_reflect_Field.c,
  src/native/vm/gnu/java_lang_reflect_Method.c,
  src/native/vm/java_lang_Class.c,
  src/native/vm/java_lang_ClassLoader.c,
  src/native/vm/java_lang_Object.c,
  src/native/vm/java_lang_Object.h,
  src/native/vm/java_lang_Thread.c,
  src/native/vm/java_lang_reflect_Constructor.c,
  src/native/vm/java_lang_reflect_Method.c,
  src/native/vm/nativevm.c,
  src/native/vm/nativevm.h,
  src/native/vm/sun,
  src/native/vm/sun/Makefile.am,
  src/native/vm/sun/jvm.c,
  src/native/vm/sun_misc_Unsafe.c,
  src/threads/native/threads.c,
  src/threads/threads-common.c,
  src/vm/properties.c,
  src/vm/vm.c,
  src/vm/vm.h,
  src/vmcore/class.h,
  src/vmcore/field.c,
  src/vmcore/field.h,
  src/vmcore/utf8.c,
  src/vmcore/utf8.h: Initial support for using OpenJDK libraries as Java
  core libraries.
........
  r8133 | twisti | 2007-06-22 15:29:38 +0200 (Fri, 22 Jun 2007) | 2 lines

  * m4/classpath.m4: Added Id keyword.
........
  r8134 | twisti | 2007-06-22 16:49:10 +0200 (Fri, 22 Jun 2007) | 8 lines

  * src/vmcore/options.c (opt_MaxPermSize): Added.
  (opt_PermSize): Likewise.
  (options_xx): Check for +/- for boolean options (still some work
  left).

  * src/vmcore/options.h (opt_MaxPermSize): Added.
  (opt_PermSize): Likewise.
........
  r8135 | twisti | 2007-06-22 17:31:05 +0200 (Fri, 22 Jun 2007) | 6 lines

  * src/lib/gnu/sun/misc/Unsafe.java: Updated to openjdk rev239.

  * src/native/vm/sun_misc_Unsafe.c (arrayBaseOffset): Implemented.
  (arrayIndexScale): Likewise.
  (addressSize): Likewise.
........
  r8136 | michi | 2007-06-22 18:33:40 +0200 (Fri, 22 Jun 2007) | 2 lines

  * src/vm/jit/replace.c: Adapted to multiplied regoff value.
........

--HG--
branch : exact-gc

16 years ago* src/mm/cacao-gc/gc.h: Added SPARC64 to the architectures that support exactGC
ajordan [Fri, 22 Jun 2007 08:47:15 +0000 (08:47 +0000)]
* src/mm/cacao-gc/gc.h: Added SPARC64 to the architectures that support exactGC

* src/vm/jit/sparc64/emit.c (emit_replacement_stubs): Added stub-like
implementation only non-trappable GC points will work.

* src/vm/jit/sparc64/codegen.c (codegen_emit): Added replacement points.
(codegen_emit_stub_builtin): Implemented.

* src/vm/jit/sparc64/patcher.c (patcher_wrapper): Temp debug print, to see when
extern sfi is created.

--HG--
branch : exact-gc

16 years ago* src/mm/cacao-gc/heap.h: Fixed includes.
michi [Thu, 21 Jun 2007 09:21:14 +0000 (09:21 +0000)]
* src/mm/cacao-gc/heap.h: Fixed includes.

--HG--
branch : exact-gc

16 years agoMerged revisions 8056-8122 via svnmerge from
michi [Wed, 20 Jun 2007 23:50:55 +0000 (23:50 +0000)]
Merged revisions 8056-8122 via svnmerge from
svn+ssh://michi@c1.complang.tuwien.ac.at/ahome/cacao/svn/cacao/trunk

........
  r8058 | twisti | 2007-06-10 21:30:25 +0200 (Sun, 10 Jun 2007) | 2 lines

  * src/native/jni.c (_Jv_jni_vmargs_from_objectarray): Indent.
........
  r8059 | twisti | 2007-06-10 21:31:28 +0200 (Sun, 10 Jun 2007) | 4 lines

  * src/vm/vm.c (vm_vmargs_from_valist): Use TYPE_-defines instead of
  PRIMITIVETYPE_ ones.
  (vm_vmargs_from_jvalue): Likewise.
........
  r8060 | twisti | 2007-06-10 22:00:40 +0200 (Sun, 10 Jun 2007) | 48 lines

  * src/vm/global.h (PRIMITIVETYPE_*): Removed.
  (ARRAYTYPE_*): Likewise.

  * src/vm/jit/verify/typecheck-typeinferer.c (vmcore/primitive.h): Added.
  * src/vm/jit/verify/typecheck.c: Likewise.
  * src/vm/jit/verify/typecheck-stackbased.c: Likewise.
  * src/vm/jit/verify/typeinfo.c: Likewise.
  * src/vm/builtin.c: Likewise.
  * src/native/jni.c: Likewise.
  * src/native/vm/gnu/java_lang_VMClassLoader.c: Likewise.
  * src/native/vm/gnu/java_lang_reflect_Field.c: Likewise.
  * src/vmcore/descriptor.c: Likewise.

  * src/vm/string.c (vmcore/primitive.h): Added.
  (stringtable_update): Use new primitive functions.

  * src/vm/resolve.c: Likewise.
  (resolve_class_from_typedesc): Use new primitive functions.

  * src/vm/vm.c (vmcore/primitive.h): Added.
  (vm_create): Call primitive_init.

  * src/native/vm/java_lang_Class.c (vmcore/primitive.h): Added.
  (isPrimitive): Use primitive_class_is_primitive.
  (getDeclaringClass): Likewise.
  (getDeclaredClasses): Likewise.
  (getComponentType): Use primitive_class_get_by_type.

  * src/vmcore/class.c (class_is_primitive): Removed.
  (class_primitive_get): Removed.
  * src/vmcore/class.c: Likewise.

  * src/vmcore/primitive.c: New file.
  * src/vmcore/primitive.h: Likewise.

  * src/vmcore/Makefile.am (libvmcore_la_SOURCES): Added primitive.[ch].

  * src/vmcore/linker.c (vmcore/primitive.h): Added.
  (primitivetype_table): Removed.
  (linker_init): Removed link_primitivetype_table call.
  (link_primitivetype_table): Removed.

  * src/vmcore/linker.h (primitivetypeinfo): Removed.
  (primitivetype_table): Removed.

  * src/vm/jit/verify/typecheck-builtins.inc: Removed Contact, Authors
  from header.
........
  r8061 | twisti | 2007-06-11 09:59:36 +0200 (Mon, 11 Jun 2007) | 3 lines

  * src/vmcore/primitive.c (primitive_class_get_by_char): New function.
  * src/vmcore/primitive.h (primitive_class_get_by_char): Added.
........
  r8062 | twisti | 2007-06-11 10:12:14 +0200 (Mon, 11 Jun 2007) | 59 lines

  * src/vm/resolve.c (resolve_class_from_name): Call
  exceptions_classnotfoundexception_to_noclassdeffounderror in exception
  case.

  * src/vm/exceptions.c (vmcore/method.h): Added.
  (exceptions_throw_utf_throwable): Added object-initialize code.
  (exceptions_throw_utf_exception): Likewise.
  (exceptions_throw_noclassdeffounderror_cause): New function.
  (classnotfoundexception_to_noclassdeffounderror): Renamed to
  exceptions_classnotfoundexception_to_noclassdeffounderror.
  (exceptions_print_stacktrace): Don't use exceptionptr directly.

  * src/vm/exceptions.h (exceptions_throw_noclassdeffounderror_cause):
  Added.
  (classnotfoundexception_to_noclassdeffounderror): Renamed to
  exceptions_classnotfoundexception_to_noclassdeffounderror.

  * src/vm/vm.c (opts): Added XX:.
  (vm_create): Likewise.
  (vm_run): Call exceptions_throw_noclassdeffounderror_cause when
  main-class is not found.

  * src/native/vm/java_lang_Class.c (forName): Don't convert exception.

  * src/native/vm/gnu/java_lang_VMClassLoader.c (getPrimitiveClass): Use
  primitive_class_get_by_char.
  (loadClass): Don't convert exception.

  * src/native/native.c (native_new_and_init_string): Use
  class_findmethod instead of class_resolveclassmethod.
  (native_new_and_init_throwable): Removed.
  (native_new_and_init_exception): Likewise.

  * src/native/native.h (native_new_and_init_throwable): Removed.
  (native_new_and_init_exception): Likewise.

  * src/vmcore/class.c (class_array_of): Smaller code changes.

  * src/vmcore/loader.c (vmcore/primitive.h): Added.
  (load_class_from_classloader): Don't convert exception.
  (load_class_bootstrap): Throw ClassNotFoundException instead of
  NoClassDefFoundError.
  (load_newly_created_array): Likewise, check if primitive-array type is
  valid.

  * src/vmcore/utf8.c (utf_initCause): Added.
  (utf_java_lang_Throwable__java_lang_Throwable): Likewise.
  (utf8_init): Initialize new variables.

  * src/vmcore/utf8.h (utf_initCause): Added.
  (utf_java_lang_Throwable__java_lang_Throwable): Likewise.

  * src/cacaoh/dummy.c (exceptions_throw_classnotfoundexception): New
  function.
  (classnotfoundexception_to_noclassdeffounderror): Removed.

  * src/vmcore/options.c (options_xx): New function.
  * src/vmcore/options.h (options_xx): Added.
........
  r8063 | twisti | 2007-06-11 16:44:58 +0200 (Mon, 11 Jun 2007) | 6 lines

  * src/vmcore/method.c (method_returntype_get): New function.
  * src/vmcore/method.h (method_returntype_get): Added.

  * src/native/vm/gnu/java_lang_reflect_Method.c (getReturnType): Use
  method_returntype_get.
........
  r8064 | twisti | 2007-06-11 17:11:01 +0200 (Mon, 11 Jun 2007) | 11 lines

  * src/native/vm/java_lang_reflect_Method.c: New file.
  * src/native/vm/java_lang_reflect_Method.h: Likewise.

  * src/native/vm/Makefile.am [ENABLE_JAVASE]
  (JAVA_LANG_REFLECT_METHOD_SOURCES): Added
  (libnativevm_la_SOURCES): Added JAVA_LANG_REFLECT_METHOD_SOURCES.

  * src/native/vm/gnu/java_lang_reflect_Method.c
  (native/vm/java_lang_reflect_Method.h): Added.
  (invokeNative): Use _Jv_java_lang_reflect_Method_invoke.
........
  r8065 | pm | 2007-06-11 17:22:09 +0200 (Mon, 11 Jun 2007) | 3 lines

  * src/vm/jit/s390/emit.c (emit_load_s1_notzero, emit_load_s2_notzero, emit_load_s1_but, emit_load_s2_but): Correctly handle float regissters.
  * src/vm/jit/s390/tests/dacapo.status: Include dacapo lusearch results.
........
  r8066 | twisti | 2007-06-12 11:08:12 +0200 (Tue, 12 Jun 2007) | 4 lines

  * src/vm/vm.c (opts): Added OPT_EA, OPT_DA.
  (usage): Print help for OPT_EA, OPT_DA.
  (vm_create): Ignore OPT_EA, OPT_DA.
........
  r8067 | twisti | 2007-06-12 14:32:18 +0200 (Tue, 12 Jun 2007) | 4 lines

  * src/native/vm/gnu/java_lang_reflect_Constructor.c (constructNative):
  Added asserts for declaringClass and slot.
  * src/native/vm/gnu/java_lang_reflect_Method.c (invokeNative): Likewise.
........
  r8068 | pm | 2007-06-12 17:50:35 +0200 (Tue, 12 Jun 2007) | 5 lines

  * src/vm/jits/390/codegen.h (N_BRC_BACK_PATCH, N_LTEBR, N_LTDBR, N_LTXBR, DD_0, ..., DD_3): added, (M_CVTFI, M_CVTDI) changed to round to nearest.
  * src/vm/jits/390/codegen.c (codegen_emit): In ICMD_F2I and ICMD_D2I correct handling of corner cases, ICMD_LALOAD fix.
  * src/vm/jit/s390/md.c (md_dump_context): Include information on java method in dump.
  * src/vm/jits/390/tests/dacapo.status: Noted dacapo eclipse results.
........
  r8069 | twisti | 2007-06-13 16:08:24 +0200 (Wed, 13 Jun 2007) | 4 lines

  * src/native/jni.c (stdint.h): Added.
  (_Jv_jni_vmargs_from_objectarray): Use stdint-types, use global class
  variables.
........
  r8070 | twisti | 2007-06-13 16:26:41 +0200 (Wed, 13 Jun 2007) | 16 lines

  * src/native/jni.c (_Jv_jni_vmargs_from_objectarray): Removed.
  (_Jv_jni_invokeNative): Use vm_vmargs_from_objectarray.

  * src/vm/vm.c (stdint.h): Added.
  (native/include/java_lang_Byte.h)
  (native/include/java_lang_Character.h)
  (native/include/java_lang_Short.h)
  (native/include/java_lang_Integer.h)
  (native/include/java_lang_Boolean.h)
  (native/include/java_lang_Long.h)
  (native/include/java_lang_Float.h)
  (native/include/java_lang_Double.h): Likewise.
  (vm_vmargs_from_objectarray): New function.

  * src/vm/vm.h (vm_vmargs_from_objectarray): Added.
........
  r8071 | twisti | 2007-06-13 19:37:55 +0200 (Wed, 13 Jun 2007) | 3 lines

  * src/vm/jit/tools/genoffsets.c (main): Removed some obsolete stuff.
  * src/vm/jit/m68k/md.c (md_init): Removed offobjvftbl check.
........
  r8072 | twisti | 2007-06-13 20:31:19 +0200 (Wed, 13 Jun 2007) | 4 lines

  * tests/regression/native/testarguments.java,
  tests/regression/native/testarguments.c,
  tests/regression/native/testarguments.output: Added address test.
........
  r8073 | twisti | 2007-06-13 23:54:27 +0200 (Wed, 13 Jun 2007) | 4 lines

  * src/vm/jit/tools/genoffsets.c (vmcore/class.h): Removed.
  (vmcore/linker.h): Likewise.
  (vmcore/method.h): Likewise.
........
  r8074 | twisti | 2007-06-14 00:27:17 +0200 (Thu, 14 Jun 2007) | 43 lines

  * src/vm/jit/mips/asmpart.S (asm_vm_call_method): Rewritten for new
  argument passing.

  * src/vm/jit/mips/md-abi.c (stdarg.h): Added.
  (mm/memory.h): Likewise.
  (md_param_alloc): Set pd->index.

  * src/vm/jit/asmpart.h (stdint.h): Added new function prototypes.

  * src/vm/vm.c (md-abi.h): Added.
  (vm_array_store_int): New function.
  (vm_array_store_lng): Likewise.
  (vm_array_store_flt): Likewise.
  (vm_array_store_dbl): Likewise.
  (vm_array_store_adr): Likewise.
  (vm_array_from_valist): Likewise.
  (vm_array_from_jvalue): Likewise.
  (vm_array_from_objectarray): Likewise.
  (vm_call_method_valist): New version added.
  (vm_call_method_jvalue): Likewise.
  (vm_call_array): New function.
  (vm_call_int_array): Likewise.
  (vm_call_method_int_valist): New version added.
  (vm_call_method_int_jvalue): Likewise.
  (vm_call_method_long_valist): Likewise.
  (vm_call_method_long_jvalue): Likewise.
  (vm_call_long_array): New function.
  (vm_call_method_float_vmarg): Added vm_abort.
  (vm_call_method_double_vmarg): Likwise.

  * src/vm/vm.h (stdarg.h): Added.
  (vmcore/class.h): Likewise.
  (vmcore/method.h): Likewise.
  (vm_array_from_objectarray): Likewise.
  (vm_call_array): Likewise.
  (vm_call_int_array): Likewise.
  (vm_call_long_array): Likewise.

  * src/native/jni.c (_Jv_jni_invokeNative): Added new version.

  * src/vmcore/descriptor.h (stdint.h): Added.
  (paramdesc): Added index field (this is temporarily).
........
  r8075 | twisti | 2007-06-14 02:38:53 +0200 (Thu, 14 Jun 2007) | 3 lines

  * src/vm/jit/mips/asmpart.S (asm_vm_call_method) [!WORDS_BIGENDIAN]:
  Fixed bug (use lw instead of ld), better code in the stack copy loop.
........
  r8076 | twisti | 2007-06-14 11:35:31 +0200 (Thu, 14 Jun 2007) | 2 lines

  * src/vm/vm.c: Fixed typos.
........
  r8077 | twisti | 2007-06-14 11:44:12 +0200 (Thu, 14 Jun 2007) | 8 lines

  * src/vm/vm.c (arch.h): Added.
  (vm/jit/abi-asm.h): Likewise.
  (vm_array_store_int): Use ARG_CNT define.
  (vm_array_store_dbl): Likewise.
  (vm_array_store_flt): Likewise.
  (vm_array_store_dbl): Likewise.
  (vm_array_store_adr) [HAS_ADDRESS_REGISTER_FILE]: Changed offset.
........
  r8078 | twisti | 2007-06-14 12:20:02 +0200 (Thu, 14 Jun 2007) | 2 lines

  * src/vm/vm.c (vm_call_method_long_vmarg): Removed vm_abort.
........
  r8079 | twisti | 2007-06-14 13:06:48 +0200 (Thu, 14 Jun 2007) | 3 lines

  * src/vm/vm.c (vm_array_from_objectarray): For TYPE_ADR param can be
  NULL, that's ok (jboss is a testcase for that).
........
  r8080 | twisti | 2007-06-14 13:12:11 +0200 (Thu, 14 Jun 2007) | 10 lines

  * src/vm/jit/x86_64/asmpart.S (asm_vm_call_method): Rewritten for new
  argument passing.

  * src/vm/jit/x86_64/md-abi.c (md_param_alloc): Set pd->index.

  * src/vm/vm.c: Added __X86_64__ ifdef.
  * src/vm/vm.h: Likewise.
  * src/native/jni.c: Likewise.
  * src/vm/jit/asmpart.h: Likewise.
........
  r8081 | tbfg | 2007-06-14 14:07:03 +0200 (Thu, 14 Jun 2007) | 4 lines

  src/vm/jit/m68k/disass.c: Changed bfd_mach_mcf_isa_b_float_emac to
  bfd_mach_mcfv4e as needed for newer binutils.
........
  r8082 | tbfg | 2007-06-14 14:10:49 +0200 (Thu, 14 Jun 2007) | 6 lines

  * src/vm/jit/emit-common.c: Added emit_branch statistics.
  * src/vmcore/statistics.c: Likewise.
  * src/vmcore/statistics.h: Added count_emit_branch,
  count_emit_branch_8bit, count_emit_branch_16bit,
  count_emit_branch_32bit, count_emit_branch_64bit.
........
  r8085 | tbfg | 2007-06-14 17:12:54 +0200 (Thu, 14 Jun 2007) | 2 lines

  * src/vm/jit/emit-common.c: Fixed warning related to STATISTICS.
........
  r8086 | twisti | 2007-06-14 17:31:54 +0200 (Thu, 14 Jun 2007) | 3 lines

  * src/vmcore/loader.c: Removed commented
  exceptions_throw_noclassdeffounderror calls.
........
  r8087 | twisti | 2007-06-14 18:01:12 +0200 (Thu, 14 Jun 2007) | 6 lines

  * src/vm/exceptions.c (exceptions_get_exception)
  (exceptions_set_exception, exceptions_clear_exception)
  (exceptions_get_and_clear_exception): Moved these low leve function to
  the top of the file.
  * src/vm/exceptions.h: Likewise.
........
  r8088 | twisti | 2007-06-14 18:05:42 +0200 (Thu, 14 Jun 2007) | 2 lines

  * src/native/vm/java_lang_Class.c (forName): Removed unused variables.
........
  r8089 | twisti | 2007-06-14 18:06:31 +0200 (Thu, 14 Jun 2007) | 2 lines

  * src/native/vm/java_lang_Class.c: Added Id keyword.
........
  r8090 | twisti | 2007-06-14 18:07:37 +0200 (Thu, 14 Jun 2007) | 3 lines

  * src/vm/exceptions.c: Don't use exceptionptr directly anymore, access
  it only with functions.
........
  r8091 | twisti | 2007-06-14 18:10:33 +0200 (Thu, 14 Jun 2007) | 3 lines

  * src/threads/native/threads.c: Don't use exceptionptr directly
  anymore.
........
  r8092 | twisti | 2007-06-14 18:12:35 +0200 (Thu, 14 Jun 2007) | 3 lines

  * src/native/native.c (native_findfunction): Use
  exceptions_throw_unsatisfiedlinkerror.
........
  r8093 | twisti | 2007-06-14 18:51:44 +0200 (Thu, 14 Jun 2007) | 5 lines

  * src/vm/jit/emit-common.c (emit_bccz) [STATISTICS]: Is called
  ENABLE_STATISTICS.
  (emit_label_bccz): Likewise.
  (emit_label): Likewise.
........
  r8094 | ajordan | 2007-06-16 03:15:41 +0200 (Sat, 16 Jun 2007) | 15 lines

  * src/vmcore/statistics.h: Added more fine grained spill statistics.
  * src/vmcore/statistics.c: Likewise.

  * src/vm/jit/jit.h: New defines for spill statistics. Old ones are deprecated,
  won't increase the counters.

  * src/vm/jit/codegen-common.c (codegen_increase): Defined SPARC64 for
  2-instr-patcher-stub-call workaround.
  (codegen_add_patch_ref): Likewise.
  (codegen_reg_of_var): Removed obsolete spill counting.

  * src/vm/jit/sparc64/emit.c: Changed for new spill statistics.
  * src/vm/jit/sparc64/linux/md-os.c (md_critical_section_restart): Fixed.
........
  r8095 | ajordan | 2007-06-16 21:56:19 +0200 (Sat, 16 Jun 2007) | 6 lines

  * src/vm/jit/sparc64/codegen.c (codegen_emit): Improved integer argument passing
  by swapping variable allocation instead of copying.

  * src/vm/jit/sparc64/md-abi.h: Turned %i0 into saved reg.
  * src/vm/jit/sparc64/md-abi.c: Likewise.
........
  r8096 | pm | 2007-06-17 15:45:58 +0200 (Sun, 17 Jun 2007) | 8 lines

  * src/vm/jit/s390/asmpart.S
  src/vm/jit/s390/codegen.h,
  src/vm/jit/s390/codegen.c,
  src/vm/jit/s390/emit.c,
  src/vm/jit/s390/md.c,
  src/vm/jit/s390/patcher.c,
  src/vm/jit/s390/tests/dacapo.status: Optimized loads from data segment: the procedure vector now always points 4092 bytes before the data segment, so a lot of loads have a positive displacement. Removed dead code.
........
  r8097 | pm | 2007-06-17 16:50:16 +0200 (Sun, 17 Jun 2007) | 3 lines

  * src/vm/jit/s390/codegen.c (codegen_emit): More data segment load optimalisations.
  * src/vm/jit/s390/md.c (md_get_method_patch_address): Adapt to changes in codegen_emit.
........
  r8099 | tbfg | 2007-06-18 20:26:58 +0200 (Mon, 18 Jun 2007) | 20 lines

  * src/vm/jit/powerpc64/linux/md-abi.c (md_param_alloc): Set index.

  * src/vm/jit/powerpc64/asmpart.S (asm_vm_call_method): New parameter
  format, do not call asm_jit_compile any more.

  * src/vm/jit/asmpart.h: Enable new parameter format function
  prototypes.

  * src/vm/vm.h: Likewise.

  * src/vm/vm.c (vm_array_store_int): Although ppc64 is big endian
  do not big endianize the new parameter format.
  (vm_array_store_flt): Likewise.
  (vm_array_store_adr): Likewise.
  (vm_vmargs_from_valist): ppc64 like alpha uses doubles everywhere.
  (vm_vmargs_from_jvalue): When HAS_ADDRESS_REGISTER_FILE is defined
  address register arguments are between float and memuse.

  * src/native/jni.c: Enable new parameter function calling.
........
  r8100 | twisti | 2007-06-18 22:18:14 +0200 (Mon, 18 Jun 2007) | 7 lines

  * src/vm/exceptions.c (exceptions_throw_utf_throwable): Call
  (Ljava/lang/Throwable;)V initializer and resolve the method with
  class_resolveclassmethod to get possible exceptions.
  (exceptions_throw_utf_cause): New function.
  (exceptions_throw_noclassdeffounderror_cause): Use
  exceptions_throw_utf_cause.
........
  r8101 | twisti | 2007-06-19 20:07:59 +0200 (Tue, 19 Jun 2007) | 4 lines

  * src/cacaoh/dummy.c [ENABLE_THREADS] (pthread.h): Removed.
  (threads/threads-common.h): Added.
  [ENABLE_THREADS] (threads_current_threadobject_key): Added #ifdef.
........
  r8102 | twisti | 2007-06-19 20:09:16 +0200 (Tue, 19 Jun 2007) | 2 lines

  * src/cacaoh/dummy.c: Added Id keyword.
........
  r8103 | twisti | 2007-06-19 21:43:00 +0200 (Tue, 19 Jun 2007) | 21 lines

  * src/native/vm/nativevm.c (nativevm_init)
  [ENABLE_JAVASE && WITH_CLASSPATH_GNU]: Call
  _Jv_java_util_concurrent_atomic_AtomicLong_init.

  * src/native/vm/Makefile.am [ENABLE_JAVASE]
  (JAVA_UTIL_CONCURRENT_ATOMIC_ATOMICLONG_SOURCES): Added.
  (libnativevm_la_SOURCES): Added
  JAVA_UTIL_CONCURRENT_ATOMIC_ATOMICLONG_SOURCES.

  * src/native/vm/java_util_concurrent_atomic_AtomicLong.c: New file.
  * src/native/vm/java_util_concurrent_atomic_AtomicLong.h: Likewise.

  * src/native/vm/gnu/Makefile.am (libnativevmcore_la_SOURCES): Added
  java_util_concurrent_atomic_AtomicLong.c.

  * src/native/vm/gnu/java_util_concurrent_atomic_AtomicLong.c: New
  file.

  * src/native/include/Makefile.am (JAVASE_HEADER_FILES): Added
  java_util_concurrent_atomic_AtomicLong.h.
........
  r8104 | twisti | 2007-06-19 23:15:00 +0200 (Tue, 19 Jun 2007) | 5 lines

  * src/cacaoh/dummy.c (stdint.h): Added.
  (vm/types.h): Removed and replaced all old types with stdint ones.
  (threads/threads-common.h): Removed.
  [ENABLE_THREADS] (threads_current_threadobject_key): Removed.
........
  r8105 | twisti | 2007-06-19 23:47:51 +0200 (Tue, 19 Jun 2007) | 3 lines

  * src/cacaoh/headers.c (stdint.h): Added and use stdint-types.
  (vm/types.h): Removed.
........
  r8106 | twisti | 2007-06-20 00:50:17 +0200 (Wed, 20 Jun 2007) | 11 lines

  * src/vm/vm.c (vm_call_float_array): New function.
  (vm_call_method_float_valist): Likewise.
  (vm_call_method_float_jvalue): Likewise.
  (vm_call_double_array): Likewise.
  (vm_call_method_double_valist): Likewise.
  (vm_call_method_double_jvalue): Likewise.

  * src/vm/vm.h: Defined new functions.
  * src/vm/jit/asmpart.h: Likewise.
  * src/native/jni.c: Use new functions.
........
  r8107 | twisti | 2007-06-20 13:11:59 +0200 (Wed, 20 Jun 2007) | 3 lines

  * src/vm/vm.c (vm_array_store_int) [SIZEOF_VOID_P == 4]: Only do the
  integer shift on 32-bit architectures.
........
  r8108 | ajordan | 2007-06-20 14:05:26 +0200 (Wed, 20 Jun 2007) | 11 lines

  * src/vm/jit/sparc64/md-abi.c (md_param_alloc): Added pd->index setting.

  * src/vm/jit/sparc64/asmpart.S (asm_vm_call_method): Get parameters from
  new array.

  * src/vm/jit/asmpart.h: Enable new parameter passing for SPARC64.
  * src/vm/vm.h: Likewise.
  * src/vm/vm.c: Likewise.
  (vm_array_store_flt): For SPARC, shift float arguments on stack to low word too.
........
  r8109 | twisti | 2007-06-20 14:22:56 +0200 (Wed, 20 Jun 2007) | 3 lines

  * src/native/vm/nativevm.h [ENABLE_JAVASE && WITH_CLASSPATH_GNU]:
  Added _Jv_java_util_concurrent_atomic_AtomicLong_init.
........
  r8110 | twisti | 2007-06-20 14:24:32 +0200 (Wed, 20 Jun 2007) | 3 lines

  * src/cacaoh/cacaoh.c (HEAP_MAXSIZE, HEAP_STARTSIZE): Removed.
  (main): Removed heapmaxsize, heapstartsize.
........
  r8111 | twisti | 2007-06-20 15:51:38 +0200 (Wed, 20 Jun 2007) | 10 lines

  * src/native/vm/gnu/gnu_java_lang_management_VMClassLoadingMXBeanImpl.c,
  src/native/vm/gnu/gnu_java_lang_management_VMRuntimeMXBeanImpl.c,
  src/native/vm/gnu/gnu_java_lang_management_VMThreadMXBeanImpl.c,
  src/native/vm/gnu/java_lang_VMObject.c,
  src/native/vm/gnu/java_lang_VMRuntime.c,
  src/native/vm/gnu/java_lang_VMThread.c,
  src/native/vm/gnu/java_lang_reflect_Field.c,
  src/native/vm/sun_misc_Unsafe.c: Use stdint-types because of conflicts
  with generated header files.
........
  r8112 | twisti | 2007-06-20 19:54:36 +0200 (Wed, 20 Jun 2007) | 28 lines

  * src/vm/vm.c (XXusage): Removed -verbose:memory.
  (vm_create): Likewise.

  * src/mm/memory.c (memory_thread): Rewritten to use new variables.

  * src/vmcore/options.c (errno.h): Added.
  (stdint.h): Likewise
  (stdio.h): Likewise.
  (stdlib.h): Likewise.
  (opt_verbosememory): Removed.
  (opt_ProfileGCMemoryUsage): Added.
  (opt_ProfileMemoryUsage): Likewise.
  (opt_ProfileMemoryUsageGNUPlot): Likewise.
  (options_XX): Likewise.
  (options_xx): Implemented.

  * src/vmcore/options.h (stdint.h): Added.
  (option_t): Likewise.
  (opt_ProfileGCMemoryUsage): Likewise.
  (opt_ProfileMemoryUsage): Likewise.
  (opt_ProfileMemoryUsageGNUPlot): Likewise.
  (options_xx): Changed signature.

  * src/vmcore/statistics.c (statistics_print_gc_memory_usage):
  Rewritten to use new variables and GNU Plot output.

  * configure.ac (AC_CHECK_FUNCS): Added atoi, atol, strchr, strncmp.
........
  r8113 | twisti | 2007-06-20 20:05:39 +0200 (Wed, 20 Jun 2007) | 5 lines

  * src/vmcore/statistics.c (statistics_print_gc_memory_usage): Call
  fflush.

  * configure.ac (AC_CHECK_FUNCS): Added fflush, fopen, fprintf.
........
  r8114 | twisti | 2007-06-20 20:57:41 +0200 (Wed, 20 Jun 2007) | 3 lines

  * src/threads/threads-common.c (threads_preinit): Added another
  linuxthreads check.
........
  r8115 | michi | 2007-06-20 21:14:05 +0200 (Wed, 20 Jun 2007) | 41 lines

  * src/vm/vm.c (vm_array_store_int, vm_array_store_adr, vm_array_store_lng,
  vm_array_store_flt, vm_array_store_dbl): Uses pd->index for inmemory arguments.

  * src/vm/jit/allocator/simplereg.c: The regoff value is a real offset
  (multiplied by the stackslot size) for inmemory variables now.

  * src/vm/jit/arm/md-abi.c (md_param_alloc): Set pd->regoff as described above.
  * src/vm/jit/arm/emit.c: Adapted to above changes.
  * src/vm/jit/arm/codegen.c: Adapted to above changes.

  * src/vm/jit/powerpc/linux/md-abi.c,
  * src/vm/jit/powerpc/netbsd/md-abi.c,
  * src/vm/jit/powerpc/emit.c,
  * src/vm/jit/powerpc/darwin/md-abi.c,
  * src/vm/jit/powerpc/codegen.c,
  * src/vm/jit/sparc64/emit.c,
  * src/vm/jit/sparc64/md-abi.h,
  * src/vm/jit/sparc64/codegen.c,
  * src/vm/jit/sparc64/md-abi.c,
  * src/vm/jit/alpha/emit.c,
  * src/vm/jit/alpha/codegen.c,
  * src/vm/jit/alpha/md-abi.c,
  * src/vm/jit/s390/emit.c,
  * src/vm/jit/s390/codegen.c,
  * src/vm/jit/s390/md-abi.c,
  * src/vm/jit/mips/emit.c,
  * src/vm/jit/mips/codegen.c,
  * src/vm/jit/mips/md-abi.c,
  * src/vm/jit/m68k/emit.c,
  * src/vm/jit/m68k/linux/md-abi.c,
  * src/vm/jit/m68k/codegen.c,
  * src/vm/jit/powerpc64/linux/md-abi.c,
  * src/vm/jit/powerpc64/emit.c,
  * src/vm/jit/powerpc64/codegen.c,
  * src/vm/jit/i386/emit.c,
  * src/vm/jit/i386/codegen.c,
  * src/vm/jit/i386/md-abi.c,
  * src/vm/jit/x86_64/emit.c,
  * src/vm/jit/x86_64/codegen.c,
  * src/vm/jit/x86_64/md-abi.c: Likewise.
........
  r8116 | michi | 2007-06-20 22:30:56 +0200 (Wed, 20 Jun 2007) | 5 lines

  * src/vm/jit/arm/codegen.c (codegen_emit, codegen_emit_stub_native):
  Changed cd->stackframesize from wordcount to bytecount.

  * src/vm/jit/arm/emit.c (emit_verbosecall_enter): Adapted to above change.
........
  r8117 | pm | 2007-06-20 23:20:53 +0200 (Wed, 20 Jun 2007) | 3 lines

  * src/vm/jit/s390/codegen.h,
  src/vm/jit/s390/codegen.c (codegen_emit): Support another hercules bug in F2D.
........
  r8119 | twisti | 2007-06-21 00:05:10 +0200 (Thu, 21 Jun 2007) | 3 lines

  * src/vmcore/statistics.c (statistics_print_gc_memory_usage):
  Different print-format for different pointer-sizes.
........
  r8120 | twisti | 2007-06-21 00:11:24 +0200 (Thu, 21 Jun 2007) | 13 lines

  * src/vmcore/options.c (opt_verboseexception): Removed.
  (opt_TraceExceptions): Added.
  (options_xx): Handle OPT_TraceExceptions.

  * src/vmcore/options.h (opt_verboseexception): Removed.
  (opt_TraceExceptions): Added.

  * src/vm/exceptions.c (exceptions_handle_exception): Replaced
  opt_verboseexception with opt_TraceExceptions.

  * src/vm/vm.c (XXusage): Removed opt_verboseexception.
  (vm_create): Likewise.
........
  r8121 | michi | 2007-06-21 01:32:34 +0200 (Thu, 21 Jun 2007) | 7 lines

  * src/vmcore/options.c [ENABLE_REPLACEMENT] (opt_TraceReplacement): Added.
  (options_xx) [ENABLE_REPLACEMENT]: Handle OPT_TraceReplacement.

  * src/vmcore/options.h [ENABLE_REPLACEMENT] (opt_TraceReplacement): Added.

  * src/vm/jit/replace.c: Use opt_TraceReplacement mentioned above.
........

--HG--
branch : exact-gc

16 years ago* tests/gc/ClassInit.java: Changed trigger for static initializer from method
michi [Wed, 20 Jun 2007 23:39:22 +0000 (23:39 +0000)]
* tests/gc/ClassInit.java: Changed trigger for static initializer from method
call to field access.

--HG--
branch : exact-gc

16 years ago* src/mm/cacao-gc/gc.c (gc_reference_unregister): Added.
michi [Wed, 20 Jun 2007 21:23:05 +0000 (21:23 +0000)]
* src/mm/cacao-gc/gc.c (gc_reference_unregister): Added.

--HG--
branch : exact-gc

16 years ago* src/mm/cacao-gc/rootset.h (rootset_t): Removed ss and es from rootset.
michi [Thu, 14 Jun 2007 14:48:30 +0000 (14:48 +0000)]
* src/mm/cacao-gc/rootset.h (rootset_t): Removed ss and es from rootset.
* src/mm/cacao-gc/rootset.c: Adapted to above changes.

--HG--
branch : exact-gc

16 years ago* src/mm/cacao-gc/rootset.h (rootset_entry_t) Added. Rootsets can be resized.
michi [Thu, 14 Jun 2007 14:16:52 +0000 (14:16 +0000)]
* src/mm/cacao-gc/rootset.h (rootset_entry_t) Added. Rootsets can be resized.
* src/mm/cacao-gc/rootset.c (rootset_resize) Added.

* src/mm/cacao-gc/copy.c: Adapted to above changes.
* src/mm/cacao-gc/heap.c: Likewise.
* src/mm/cacao-gc/compact.c: Likewise.
* src/mm/cacao-gc/mark.c: Likewise.

--HG--
branch : exact-gc

16 years ago* tests/gc/ClassInit: Testcase for static class initializers works correct now.
michi [Sun, 10 Jun 2007 15:48:01 +0000 (15:48 +0000)]
* tests/gc/ClassInit: Testcase for static class initializers works correct now.

--HG--
branch : exact-gc

16 years agoMerged revisions 8034-8055 via svnmerge from
michi [Sun, 10 Jun 2007 14:49:57 +0000 (14:49 +0000)]
Merged revisions 8034-8055 via svnmerge from
svn+ssh://michi@c1.complang.tuwien.ac.at/ahome/cacao/svn/cacao/trunk

........
  r8041 | twisti | 2007-06-07 18:21:11 +0200 (Thu, 07 Jun 2007) | 4 lines

  * configure.ac (AC_CHECK_HEADERS): Check for sys/select.h, sys/stat.h,
  sys/types.h.
  (AC_CHECK_FUNCS): Check for fstat, ioctl, select.
........
  r8042 | twisti | 2007-06-07 19:43:29 +0200 (Thu, 07 Jun 2007) | 9 lines

  * src/vmcore/class.c (class_primitive_get): New function.
  * src/vmcore/class.h (class_primitive_get): Added.

  * src/vmcore/linker.c (primitivetype_table): Changed layout.
  (link_primitivetype_table): Store UTF-8 name in table.

  * src/vmcore/linker.h (primitivetypeinfo): Changed layout, added
  cname, changed name to UTF-8.
........
  r8043 | twisti | 2007-06-07 21:22:31 +0200 (Thu, 07 Jun 2007) | 2 lines

  * configure.ac (AC_CHECK_FUNCS): Added open, strerror.
........
  r8044 | twisti | 2007-06-07 21:24:35 +0200 (Thu, 07 Jun 2007) | 5 lines

  * src/vm/builtin.c (builtin_nanotime): New function.
  (builtin_currenttimemillis): Use builtin_nanotime.

  * src/vm/builtin.h (builtin_nanotime): Added.
........
  r8045 | twisti | 2007-06-07 23:52:21 +0200 (Thu, 07 Jun 2007) | 2 lines

  * src/native/jni.c (_Jv_JNI_FatalError): Changed error message.
........
  r8046 | pm | 2007-06-08 00:02:16 +0200 (Fri, 08 Jun 2007) | 4 lines

  * src/vm/jit/s390/emit.c (emit_verbosecall_enter): Fix passing of float argument 2 to builtin_verbosecall_enter.
  * src/vm/builtin.c (builtin_print_argument): Fix malfunctioning conversion from s8 to float on s390.
........
  r8047 | twisti | 2007-06-08 00:20:37 +0200 (Fri, 08 Jun 2007) | 13 lines

  * src/vmcore/utf8.c (utf_java_security_PrivilegedActionException):
  Added.
  (utf8_init): Initialize utf_java_security_PrivilegedActionException.

  * src/vmcore/utf8.h (utf_java_security_PrivilegedActionException):
  Added.

  * src/vm/exceptions.c (exceptions_throw_privilegedactionexception):
  New function.

  * src/vm/exceptions.h (exceptions_throw_privilegedactionexception):
  Added.
........
  r8048 | twisti | 2007-06-08 00:41:54 +0200 (Fri, 08 Jun 2007) | 11 lines

  * src/vmcore/utf8.c (utf_java_lang_Exception__V): Added.
  (utf8_init): Initialize utf_java_lang_Exception__V.
  * src/vmcore/utf8.h (utf_java_lang_Exception__V): Added.

  * src/vm/exceptions.c (exceptions_throw_utf_exception): New function.
  (exceptions_throw_privilegedactionexception): Use
  exceptions_throw_utf_exception.

  * src/native/native.c (native_new_and_init_exception): New function.
  * src/native/native.h (native_new_and_init_exception): Added.
........
  r8049 | twisti | 2007-06-08 01:30:45 +0200 (Fri, 08 Jun 2007) | 6 lines

  * src/vmcore/class.c (class_define): New function.
  * src/vmcore/class.h (class_define): Added.

  * src/native/vm/java_lang_ClassLoader.c (defineClass): Use
  class_define.
........
  r8050 | twisti | 2007-06-08 22:04:34 +0200 (Fri, 08 Jun 2007) | 2 lines

  * configure.ac (AC_CHECK_FUNCS): Added lseek.
........
  r8051 | twisti | 2007-06-08 22:42:54 +0200 (Fri, 08 Jun 2007) | 3 lines

  * m4/classpath.m4 (AC_CHECK_WITH_CLASSPATH_INCLUDEDIR): Check for
  jni_md.h too.
........

--HG--
branch : exact-gc

16 years ago* src/mm/cacao-gc/heap.c (heap_update_references, heap_increase_size): Added.
michi [Sun, 10 Jun 2007 14:35:26 +0000 (14:35 +0000)]
* src/mm/cacao-gc/heap.c (heap_update_references, heap_increase_size): Added.
* src/mm/cacao-gc/region.c (region_resize): Added.
* src/mm/cacao-gc/gc.c (gc_collect): Heap gets resized if it's too small.

* src/mm/cacao-gc/gc.c (gc_reference_register): Can be called without gc_init.

--HG--
branch : exact-gc

16 years ago* src/mm/cacao-gc/rootset.c (rootset_from_thread): Fixed typo.
michi [Sun, 10 Jun 2007 14:10:04 +0000 (14:10 +0000)]
* src/mm/cacao-gc/rootset.c (rootset_from_thread): Fixed typo.

--HG--
branch : exact-gc

16 years ago* src/native/vm/java_lang_Class.c (_Jv_java_lang_Class_getClassLoader): Handle
michi [Sun, 10 Jun 2007 13:46:53 +0000 (13:46 +0000)]
* src/native/vm/java_lang_Class.c (_Jv_java_lang_Class_getClassLoader): Handle
indirection cell of bootstrap classloader properly.

--HG--
branch : exact-gc

16 years ago* src/threads/threads-common.c [ENABLE_GC_CACAO]: References to java.lang.Thread
michi [Sun, 10 Jun 2007 13:44:33 +0000 (13:44 +0000)]
* src/threads/threads-common.c [ENABLE_GC_CACAO]: References to java.lang.Thread
now get registered uppon threadobject creation.

* src/threads/native/threads.c (threads_init) [ENABLE_GC_CACAO]: Register
mainthreadobject with the GC as well.

--HG--
branch : exact-gc

16 years ago* src/mm/cacao-gc/rootset.c (rootset_from_thread): Add syncslots to the rootset.
michi [Thu, 7 Jun 2007 15:02:32 +0000 (15:02 +0000)]
* src/mm/cacao-gc/rootset.c (rootset_from_thread): Add syncslots to the rootset.

--HG--
branch : exact-gc

16 years ago* src/vm/jit/m68k/codegen.c (codegen_emit): Enabled rplpoints for ICMD_BUILTIN.
michi [Thu, 7 Jun 2007 13:46:55 +0000 (13:46 +0000)]
* src/vm/jit/m68k/codegen.c (codegen_emit): Enabled rplpoints for ICMD_BUILTIN.
* src/vm/jit/i386/codegen.c: Likewise.
* src/vm/jit/x86_64/codegen.c: Likewise.

--HG--
branch : exact-gc

16 years ago* src/vm/jit/replace.c (replace_create_replacement_points) [ENABLE_GC_CACAO]:
michi [Thu, 7 Jun 2007 13:39:59 +0000 (13:39 +0000)]
* src/vm/jit/replace.c (replace_create_replacement_points) [ENABLE_GC_CACAO]:
Create replacement points for builtin invokations as well.

* src/vm/jit/replace.h: Added REPLACEMENT_POINT_FORGC_BUILTIN
and REPLACEMENT_POINT_FORGC_BUILTIN_RETURN.

--HG--
branch : exact-gc

16 years ago* src/mm/cacao-gc/rootset.c: Fixed some compiler wanings and verbose output.
michi [Thu, 7 Jun 2007 13:36:47 +0000 (13:36 +0000)]
* src/mm/cacao-gc/rootset.c: Fixed some compiler wanings and verbose output.
* src/mm/cacao-gc/gc.c: Likewise.

--HG--
branch : exact-gc

16 years ago* src/mm/cacao-gc/rootset.c (rootset_from_classes): Fixed alignment problem.
michi [Thu, 7 Jun 2007 12:31:31 +0000 (12:31 +0000)]
* src/mm/cacao-gc/rootset.c (rootset_from_classes): Fixed alignment problem.

--HG--
branch : exact-gc

16 years ago* src/mm/cacao-gc/rootset.c (rootset_from_thread): Fixed verbose output.
michi [Thu, 7 Jun 2007 12:09:51 +0000 (12:09 +0000)]
* src/mm/cacao-gc/rootset.c (rootset_from_thread): Fixed verbose output.

--HG--
branch : exact-gc

16 years agoMerged revisions 8027-8033 via svnmerge from
michi [Thu, 7 Jun 2007 11:30:15 +0000 (11:30 +0000)]
Merged revisions 8027-8033 via svnmerge from
svn+ssh://michi@c1.complang.tuwien.ac.at/ahome/cacao/svn/cacao/trunk

........
  r8032 | tbfg | 2007-06-07 13:23:52 +0200 (Thu, 07 Jun 2007) | 2 lines

  * src/vm/jit/m68k/linux/md-abi.c: Additional defines for address registers.
........

--HG--
branch : exact-gc

16 years ago* src/vm/jit/replace.c (replace_find_replacement_point): Fixed assertion.
michi [Thu, 7 Jun 2007 11:29:38 +0000 (11:29 +0000)]
* src/vm/jit/replace.c (replace_find_replacement_point): Fixed assertion.
* src/mm/cacao-gc/gc.h [__M68K__]: Added this architecture.
* src/mm/cacao-gc/heap.c (heap_alloc_intern): Removed debug code.

--HG--
branch : exact-gc

16 years ago* linux/md-os.c (md_signal_handler_sigusr1): Implemented.
tbfg [Thu, 7 Jun 2007 11:21:36 +0000 (11:21 +0000)]
* linux/md-os.c (md_signal_handler_sigusr1): Implemented.
* emit.c (emit_replacement_stubs): Partially implemented.
* md.c (md_init): Disabled santiy checks.
* arch.h (REPLACEMENT_PATCH_SIZE): Defined to 0 for now.
* codegen.c (codegen_emit_stub_builtin): Implemented.

--HG--
branch : exact-gc

16 years ago* src/vm/jit/x86_64/linux/md-os.c (md_signal_handler_sigusr1): Implemented.
michi [Thu, 7 Jun 2007 11:05:01 +0000 (11:05 +0000)]
* src/vm/jit/x86_64/linux/md-os.c (md_signal_handler_sigusr1): Implemented.

--HG--
branch : exact-gc

16 years ago* src/vm/jit/replace.c (replace_pop_native_frame, replace_push_native_frame)
michi [Thu, 7 Jun 2007 10:53:04 +0000 (10:53 +0000)]
* src/vm/jit/replace.c (replace_pop_native_frame, replace_push_native_frame)
[HAS_ADDRESS_REGISTER_FILE]: Adapted to restore saved address registers as well.

--HG--
branch : exact-gc

16 years ago* src/mm/cacao-gc/rootset.c (rootset_readout): Use thread list instead of table.
michi [Thu, 7 Jun 2007 10:37:31 +0000 (10:37 +0000)]
* src/mm/cacao-gc/rootset.c (rootset_readout): Use thread list instead of table.
* src/mm/cacao-gc/gc.c (gc_collect): Fixed deadlock with threads_dump.

--HG--
branch : exact-gc

16 years agoMerged revisions 7940-8026 via svnmerge from
michi [Thu, 7 Jun 2007 10:30:33 +0000 (10:30 +0000)]
Merged revisions 7940-8026 via svnmerge from
svn+ssh://michi@c1.complang.tuwien.ac.at/ahome/cacao/svn/cacao/trunk

........
  r7941 | twisti | 2007-05-23 13:59:51 +0200 (Wed, 23 May 2007) | 6 lines

  * src/vm/exceptions.c (new_exception_int): Removed.
  * src/vm/exceptions.h (new_exception_int): Likewise.

  * src/native/native.c (native_new_and_init_int): Likewise.
  * src/native/native.h (native_new_and_init_int): Likewise.
........
  r7942 | twisti | 2007-05-23 14:40:31 +0200 (Wed, 23 May 2007) | 24 lines

  * src/vm/exceptions.c (threads/lock-common.h): Added.
  [ENABLE_THREADS] (threads/native/threads.h): Removed.
  [!ENABLE_THREADS] (threads/none/threads.h): Likewise.
  (threads/threads-common.h): Added.
  (new_exception_message): Removed.
  (exceptions_throw_classcircularityerror): Use
  exceptions_throw_utf_utf.
  (exceptions_throw_classformaterror): Likewise.
  (classnotfoundexception_to_noclassdeffounderror): Fixed warning.
  (exceptions_throw_incompatibleclasschangeerror): Use
  exceptions_throw_utf_utf.
  (exceptions_throw_internalerror): Likewise.
  (exceptions_throw_unsupportedclassversionerror): Likewise.
  (exceptions_throw_verifyerror): Likewise.
  (exceptions_throw_verifyerror_for_stack): Likewise.
  (exceptions_new_arithmeticexception): Likewise.
  (exceptions_new_classcastexception): Use exceptions_new_class_utf.
  (exceptions_print_exception): Fixed warnings.

  * src/vmcore/utf8.c (utf_division_by_zero): Added.
  (utf8_init): Likewise.

  * src/vmcore/utf8.h (utf_division_by_zero): Likewise.
........
  r7943 | twisti | 2007-05-23 15:09:28 +0200 (Wed, 23 May 2007) | 4 lines

  * src/vmcore/linker.c (linker_compute_subclasses): We don't ship the
  critical-section stuff with this release, since it's broken on some
  architectures because of boehm.
........
  r7944 | tbfg | 2007-05-23 16:15:00 +0200 (Wed, 23 May 2007) | 3 lines

  * src/vm/jit/powerpc64/emit.c (MCODECHECK): Increase values to fix canary corruption.
  * src/vm/jit/powerpc64/codegen.c (MCODECHECK): Increase values to fix canary corruption.
........
  r7945 | twisti | 2007-05-23 17:25:18 +0200 (Wed, 23 May 2007) | 5 lines

  * src/vm/jit/powerpc64/codegen.c (codegen_emit): ICMD_INSTANCEOF:
  Removed unused supervftbl.

  * src/vm/jit/emit-common.h [__POWERPC64__] (emit_bnan): Enabled.
........
  r7946 | twisti | 2007-05-23 17:43:53 +0200 (Wed, 23 May 2007) | 2 lines

  * configure.ac (OPT_CFLAGS): Changed to -O2.
........
  r7947 | twisti | 2007-05-23 17:57:41 +0200 (Wed, 23 May 2007) | 4 lines

  * src/vm/jit/x86_64/md.c (md_get_method_patch_address): Fixed warning.
  * src/vm/jit/x86_64/linux/md-os.c (md_signal_handler_sigsegv):
  Likewise.
........
  r7948 | twisti | 2007-05-23 18:00:13 +0200 (Wed, 23 May 2007) | 3 lines

  * src/vm/exceptions.c (exceptions_new_hardware_exception): Fixed
  warning.
........
  r7949 | twisti | 2007-05-23 19:46:27 +0200 (Wed, 23 May 2007) | 2 lines

  * src/vm/jit/jit.c (jit_compile_intern): Fixed typo.
........
  r7950 | twisti | 2007-05-23 19:51:04 +0200 (Wed, 23 May 2007) | 2 lines

  * src/vm/vm.c (vm_create): Use vm_abort for profile_start_thread.
........
  r7951 | twisti | 2007-05-23 19:51:43 +0200 (Wed, 23 May 2007) | 3 lines

  * src/vm/jit/optimizing/profile.c (profile_thread): Replaced table-
  with list-functions.
........
  r7952 | twisti | 2007-05-23 19:53:13 +0200 (Wed, 23 May 2007) | 2 lines

  * src/vm/jit/optimizing/profile.c: Set Id keyword.
........
  r7953 | twisti | 2007-05-23 19:56:59 +0200 (Wed, 23 May 2007) | 3 lines

  * src/native/vm/gnu/java_lang_VMClassLoader.c (getPrimitiveClass):
  Return NULL in error case.
........
  r7954 | twisti | 2007-05-23 19:58:18 +0200 (Wed, 23 May 2007) | 3 lines

  * src/threads/native/lock.c: Set Id keyword.
  * src/threads/native/lock.h: Likewise.
........
  r7955 | twisti | 2007-05-23 20:05:26 +0200 (Wed, 23 May 2007) | 8 lines

  * src/vm/jit/arm/linux/md-os.c,
  src/vm/jit/alpha/linux/md-os.c,
  src/vm/jit/i386/linux/md-os.c,
  src/vm/jit/powerpc/linux/md-os.c,
  src/vm/jit/powerpc64/linux/md-os.c,
  src/vm/jit/x86_64/linux/md-os.c (md_critical_section_restart): Removed
  debug output.
........
  r7956 | twisti | 2007-05-23 20:08:42 +0200 (Wed, 23 May 2007) | 3 lines

  * src/vmcore/statistics.c (statistics_print_memory_usage): Smaller
  output changes.
........
  r7957 | twisti | 2007-05-23 20:28:01 +0200 (Wed, 23 May 2007) | 2 lines

  * src/vm/jit/mips/Makefile.am (DIST_SUBDIRS): Added uclinux.
........
  r7958 | twisti | 2007-05-23 21:11:10 +0200 (Wed, 23 May 2007) | 3 lines

  * src/vm/jit/powerpc64/linux/md-os.c (md_critical_section_restart):
  Fixed typo.
........
  r7959 | twisti | 2007-05-23 21:37:26 +0200 (Wed, 23 May 2007) | 5 lines

  * src/threads/threads-common.h (THREAD_STATE_NEW)
  (THREAD_STATE_RUNNABLE, THREAD_STATE_BLOCKED, THREAD_STATE_WAITING)
  (THREAD_STATE_TIMED_WAITING, THREAD_STATE_TERMINATED): Start states
  with 1, so we can catch unset states.
........
  r7960 | twisti | 2007-05-24 00:04:49 +0200 (Thu, 24 May 2007) | 2 lines

  * configure.ac (AM_INIT_AUTOMAKE): Added dist-bzip2.
........
  r7961 | ajordan | 2007-05-24 00:54:38 +0200 (Thu, 24 May 2007) | 4 lines

  * src/vm/jit/sparc64/Makefile.am:
  md-asm.h was not properly added to noinst_HEADERS.
........
  r7962 | ajordan | 2007-05-24 01:56:59 +0200 (Thu, 24 May 2007) | 3 lines

  * src/vm/jit/sparc64/Makefile.am: Added missing emit.h.
........
  r7963 | twisti | 2007-05-24 12:21:16 +0200 (Thu, 24 May 2007) | 42 lines

  * src/threads/threads-common.c (mm/memory.h): Added.
  (toolbox/list.h): Likewise.
  (threads_table): Removed.
  (list_threads, list_threads_free): Added.
  (threads_preinit): Initialize lists.
  (threads_table_init): Removed.
  (threads_table_add): Likewise.
  (threads_table_remove): Likewise.
  (threads_table_get): Likewise.
  (threads_table_get_threads): Likewise.
  (threads_table_get_non_daemons): Likewise.
  (threads_table_first): Likewise.
  (threads_table_next): Likewise.
  (threads_table_dump): Likewise.
  (threads_list_first): New function.
  (threads_list_next): Likewise.
  (threads_list_get_non_daemons): Likewise.
  (threads_thread_new): Likewise.
  (threads_thread_free): Likewise.
  (threads_thread_print_info): Added state-assert, print thread index.
  (threads_thread_state_runnable): New function.
  (threads_thread_state_waiting): Likewise.
  (threads_thread_state_timed_waiting): Likewise.
  (threads_thread_state_terminated): Likewise.
  (threads_dump): Use threads-list functions.

  * src/threads/threads-common.h: Likewise.
  (threads_table_entry_t): Removed.
  (threads_table_t): Likewise.

  * src/threads/native/threads.c (mutex_threads_table): Renamed to
  mutex_threads_list.
  (threads_cast_sendsignals): Use threads-list functions.
  (threads_table_lock): Renamed to threads_list_lock.
  (threads_table_unlock): Renamed to threads_list_unlock.
  (threads_startup_thread): Use threads-state functions.
  (threads_detach_thread): Likewise.
  (threads_wait_with_timeout): Likewise.
  (threads_join_all_threads): Use threads-list functions.

  * src/threads/native/threads.h (threadobject): Added linkage.
........
  r7964 | twisti | 2007-05-24 12:23:42 +0200 (Thu, 24 May 2007) | 3 lines

  * src/vm/jit/i386/linux/md-os.c (md_signal_handler_sigsegv): Fixed
  warning.
........
  r7965 | michi | 2007-05-24 15:25:41 +0200 (Thu, 24 May 2007) | 3 lines

  * src/vmcore/linker.c (link_class_intern) [__ARM_EABI__]: Fixed field
  alignment bug. Double and Long fields are 8-byte aligned with EABI.
........
  r7966 | pm | 2007-05-25 14:41:03 +0200 (Fri, 25 May 2007) | 24 lines

  * src/vm/jit/show.h (show_filters_init, show_filters_apply, show_filters_test_verbosecall_enter, show_filters_test_verbosecall_exit): Added.
  * src/vm/jit/show.c: Likewise.
  * src/vm/jit/jit.c (jit_compile_intern): Honour filters.
  * src/vm/jit/codegen-common.c (codegen_add_patch_ref, codegen_generate_stub_native): Honour PATCHER_LONGBRANCHES_NOPS if defined, honour filters.
  * src/vm/builtin.c (builtin_trace_exception, builtin_verbosecall_enter, builtin_verbosecall_exit): Honour filters.
  * src/vm/signal.c (signal_init): Register SIGILL handler on s390.
  * src/vm/vm.c: Handle -XXfi, -XXfe, -XXfm commandline options.
  * src/vm/signallocal.h (md_signal_handler_sigill): Forward declare on s390.
  * src/threads/none/threads.h (_no_threads_filterverbosecallctr, FILTERVERBOSECALLCTR): Added.
  * src/threads/native/threads.h (struct threadobject): Added filterverbosecallctr.
  * src/threads/native/threads.c (threads_impl_thread_new): Initialize filterverbosecallctr.
  * src/threads/critical.c (critical_comparator): On s390, clear bit 32 of pointer when comparing.
  * src/vmcore/options.h (opt_filter_verbosecall_include, opt_filter_verbosecall_exclude, opt_filter_show_method): Added.
  * src/vmcore/options.c: Likewise.
  * src/vmcore/method.h (struct methodinfo): Added filtermatches.
  * configure.ac: If no NDEBUG and regex.h header is present, define ENABLE_DEBUG_FILTER.
  * src/vm/jit/s390/emit.c,
  src/vm/jit/s390/md.c,
  src/vm/jit/s390/codegen.c,
  src/vm/jit/s390/codegen.h,
  src/vm/jit/s390/tests/dacapo.status,
  src/vm/jit/s390/patcher.c: Changed a lot.
........
  r7967 | twisti | 2007-05-25 17:03:46 +0200 (Fri, 25 May 2007) | 3 lines

  * src/vm/string.c (javastring_new_from_utf_buffer): Made static.
  * src/vm/stringlocal.h (javastring_new_from_utf_buffer): Removed.
........
  r7968 | twisti | 2007-05-25 17:05:04 +0200 (Fri, 25 May 2007) | 3 lines

  * src/vm/jit/powerpc/md.c (md_get_method_patch_address): Fixed
  warning, use vm_abort.
........
  r7969 | twisti | 2007-05-25 17:05:57 +0200 (Fri, 25 May 2007) | 3 lines

  * src/vm/jit/optimizing/ifconv.c (vm/vm.h): Added.
  (ifconv_static): Fixed warning, use vm_abort.
........
  r7970 | twisti | 2007-05-25 17:23:56 +0200 (Fri, 25 May 2007) | 5 lines

  * src/threads/threads-common.c (threads_thread_start_internal)
  [WITH_CLASSPATH_CLDC1_1]: Set name to NULL, but this needs a fix.
  (threads_thread_print_info) [ENABLE_JAVAME_CLDC1_1]: Set name to
  utf_null.
........
  r7971 | pm | 2007-05-26 17:26:06 +0200 (Sat, 26 May 2007) | 2 lines

  * contrib/vmlog/vmlog.c: Use autoconf define WORDS_BIGENDIAN to determine endianess.
........
  r7972 | ajordan | 2007-05-28 02:05:04 +0200 (Mon, 28 May 2007) | 11 lines

  * src/vm/jit/sparc64/codegen.h: Removed asserts for stores with sethi.

  * src/vm/jit/sparc64/codegen.c: Added code to fill with nops when a patcher is right at the
  end of a basic block.

  * src/vm/jit/sparc64/asmpart.S (asm_vm_call_method_end): Returning 0 when an exception occurs.

  * src/vm/jit/sparc64/md.c (md_get_method_patch_address): Improved handling of mptr loads when
  a sethi is involved.
........
  r7973 | twisti | 2007-05-29 11:03:56 +0200 (Tue, 29 May 2007) | 10 lines

  * src/vm/exceptions.c (exceptions_throw_illegalaccessexception):
  Changed signature.
  * src/vm/exceptions.h: Likewise.

  * src/vm/resolve.c (resolve_class_from_name): Make utf8-string out of
  exception message.
  (resolve_subtype_check): Likewise.
  (resolve_field_verifier_checks): Likewise.
  (resolve_method_verifier_checks): Likewise.
........
  r7974 | twisti | 2007-05-29 13:30:20 +0200 (Tue, 29 May 2007) | 3 lines

  * src/vm/jit/powerpc64/codegen.c (codegen_emit): Fixed warnings, some
  indent.
........
  r7975 | pm | 2007-05-29 13:44:02 +0200 (Tue, 29 May 2007) | 3 lines

   * src/vm/jit/show.c (vm/vm.h) add missing include,
  (_no_threads_filterverbosecallctr) fix type: u2 instead of u4
........
  r7976 | twisti | 2007-05-29 14:22:55 +0200 (Tue, 29 May 2007) | 24 lines

  * src/vm/access.c (string.h): Added.
  (mm/memory.h): Likewise.
  (vmcore/field.h): Likewise.
  (vmcore/method.h): Likewise.
  (access_check_member): Removed.
  (access_check_field): New function.
  (access_check_method): Likewise.

  * src/vm/access.h (vmcore/field.h): Added.
  (vmcore/method.h): Likewise.
  (access_check_member): Removed.
  (access_check_field): New function.
  (access_check_method): Likewise.

  * src/native/vm/gnu/java_lang_reflect_Method.c (invokeNative): Call
  access_check_method instead of access_check_member.

  * src/native/vm/gnu/java_lang_reflect_Constructor.c (constructNative):
  Likewise.

  * src/native/vm/gnu/java_lang_reflect_Field.c
  (cacao_get_field_address): Call access_check_field instead of
  access_check_member.
........
  r7977 | twisti | 2007-05-29 14:34:20 +0200 (Tue, 29 May 2007) | 6 lines

  * src/vm/signal.c (signal_init): Changed signature.
  * src/vm/signallocal.h (signal_init): Likewise.

  * src/vm/vm.c (vm_create): Call signal_init right after gc_init and
  check return value.
........
  r7978 | twisti | 2007-05-30 16:09:10 +0200 (Wed, 30 May 2007) | 7 lines

  * src/vm/signal.c (mm/boehm-gc/include/gc.h): Added.
  (GC_suspend_handler): Defined.
  (GC_restart_handler): Likewise.
  (signal_thread): Add the Boehm-GC signals to the mask and call the
  appropriate Boehm-function. This is a workaround for the
  Boehm-LinuxThreads bug.
........
  r7979 | twisti | 2007-05-30 17:52:00 +0200 (Wed, 30 May 2007) | 3 lines

  * src/vm/jit/powerpc64/codegen.c (codegen_emit): Fixed --disable-debug
  build.
........
  r7980 | twisti | 2007-05-30 18:01:09 +0200 (Wed, 30 May 2007) | 4 lines

  * src/vm/jit/powerpc64/md.c (md_get_method_patch_address): Use
  vm_abort and fixed warning.
  (md_codegen_get_pv_from_pc): Likewise.
........
  r7981 | twisti | 2007-05-30 21:43:36 +0200 (Wed, 30 May 2007) | 9 lines

  * src/mm/boehm-gc/pthread_stop_world.c (cacao_suspendhandler):
  Commented.
  (GC_suspend_handler): Commented cacao_suspendhandler call.
  (GC_signum1, GC_signum2): Define for all configurations (hope that
  works).

  * src/threads/native/threads.c: Commented all critical-sections code,
  as it does not work anyway and it does not compile everywhere.
........
  r7982 | twisti | 2007-05-30 22:01:49 +0200 (Wed, 30 May 2007) | 6 lines

  * src/vm/jit/powerpc64/codegen.c (codegen_emit_stub_native): Fixed
  typo.

  * src/vm/jit/powerpc64/emit.c [!NDEBUG] (emit_verbosecall_enter)
  (emit_verbosecall_exit): Only compile conditionally.
........
  r7983 | twisti | 2007-05-30 22:04:42 +0200 (Wed, 30 May 2007) | 3 lines

  * src/vm/resolve.c (resolve_subtype_check): Don't free the memory
  before it's used.
........
  r7984 | twisti | 2007-05-30 22:30:00 +0200 (Wed, 30 May 2007) | 7 lines

  * src/threads/native/threads.c (threads_impl_preinit): Initialize
  mutex_threads_list.
  (threads_impl_table_init): Removed.
  (threads_impl_table_init, threads_list_unlock): Fixed debug message.

  * src/threads/threads-common.h (threads_impl_table_init): Removed.
........
  r7985 | twisti | 2007-05-30 22:40:23 +0200 (Wed, 30 May 2007) | 3 lines

  * src/mm/boehm-gc/pthread_stop_world.c (GC_signum1, GC_signum2): No it
  did not work, reverted rev7981.
........
  r7986 | twisti | 2007-05-30 22:45:43 +0200 (Wed, 30 May 2007) | 3 lines

  * src/vm/builtin.c (math.h): Removed because we don't need it as we
  include fdlibm.h and it does not work on some OSs, like Darwin.
........
  r7987 | twisti | 2007-05-30 22:51:50 +0200 (Wed, 30 May 2007) | 4 lines

  * src/vm/signal.c (signal_thread) [!__DARWIN__]: Don't do the
  GC_signum stuff on Darwin (should also be done on Solaris, but let's
  wait how the exact-GC is doing).
........
  r7988 | twisti | 2007-05-30 22:53:56 +0200 (Wed, 30 May 2007) | 4 lines

  * src/vm/jit/powerpc/darwin/md-abi.c,
  src/vm/jit/powerpc/darwin/md-abi.h: Removed Contact, Authors, Changes
  from header.
........
  r7989 | twisti | 2007-05-30 23:04:42 +0200 (Wed, 30 May 2007) | 4 lines

  * src/vm/jit/powerpc/asmpart.S [ENABLE_REPLACEMENT] (L_replace_me)
  (L_replace_build_execution_state, L_replace_free_safestack): Only if
  replacement is enabled, otherwise we get a linker error.
........
  r7990 | twisti | 2007-05-30 23:05:20 +0200 (Wed, 30 May 2007) | 3 lines

  * src/vm/jit/powerpc/darwin/md-os.c (thread_restartcriticalsection):
  Renamed to md_critical_section_restart.
........
  r7991 | twisti | 2007-05-30 23:59:29 +0200 (Wed, 30 May 2007) | 3 lines

  * ChangeLog: Updated.
  * ChangeLog-2006: New file.
........
  r7992 | twisti | 2007-05-31 00:01:38 +0200 (Thu, 31 May 2007) | 2 lines

  * NEWS: Added some 0.98 release notes.
........
  r7993 | twisti | 2007-05-31 00:32:43 +0200 (Thu, 31 May 2007) | 2 lines

  * src/vm/jit/powerpc64/emit.c (emit_branch): Removed debug output.
........
  r7994 | twisti | 2007-05-31 18:10:58 +0200 (Thu, 31 May 2007) | 2 lines

  * src/vm/vm.c (vm_create): Added comment.
........
  r7995 | twisti | 2007-06-01 00:45:19 +0200 (Fri, 01 Jun 2007) | 2 lines

  * src/vm/signal.c: Reverted rev7978.
........
  r7996 | twisti | 2007-06-01 01:05:51 +0200 (Fri, 01 Jun 2007) | 15 lines

  * m4/ac_pthreads_implementation.m4: New file.

  * m4/threads.m4 (AC_CHECK_ENABLE_THREADS): Call
  AC_CHECK_PTHREADS_IMPLEMENTATION for posix and linux.

  * configure.ac (AC_CHECK_HEADERS): Added stdlib.h.
  (AC_CHECK_FUNCS): Added confstr, strstr.

  * src/vm/signal.c (signal_init) [!PTHREADS_IS_LINUXTHREADS]: Only
  block the signals if we are not on LinuxThreads.
  (signal_thread): Set state accordingly.

  * src/vm/vm.c (vm_create) [!PTHREADS_IS_LINUXTHREADS]: Only start
  signal-thread if we are not on LinuxThreads.
........
  r7997 | twisti | 2007-06-01 01:26:23 +0200 (Fri, 01 Jun 2007) | 5 lines

  * src/vm/jit/mips/irix/md-os.c (vm/jit/mips/codegen.h): Added.
  (md_signal_handler_sigsegv): Updated to new exception-handling.
  (thread_restartcriticalsection): Renamed to
  md_critical_section_restart.
........
  r7998 | twisti | 2007-06-01 02:29:51 +0200 (Fri, 01 Jun 2007) | 16 lines

  * m4/ac_pthreads_implementation.m4: Reverted rev7996.
  * m4/threads.m4: Likewise.

  * src/threads/threads-common.c [__LINUX__]
  (threads_pthreads_implementation_nptl): Added.
  (threads_preinit) [__LINUX__]: Check which thread-implementation we
  are using.

  * src/threads/threads-common.h [__LINUX__]
  (threads_pthreads_implementation_nptl): Added.

  * src/vm/signal.c (signal_init) [__LINUX__]: Check for
  threads_pthreads_implementation_nptl.

  * src/vm/vm.c (vm_create) [__LINUX__]: Likewise.
........
  r7999 | ajordan | 2007-06-01 02:45:04 +0200 (Fri, 01 Jun 2007) | 12 lines

  * src/vm/jit/sparc64/codegen.c (codegen_emit_stub_native): Fixed the way
  float arguments are preserved over codegen_start_native_call.
  * src/vm/jit/sparc64/md-abi.c (codegen_start_native_call): Likewise.

  * src/vm/jit/sparc64/machine-instr.h (compare_and_swap): Changed inline
  assembly, so it survives gcc optimization.

  * src/vm/jit/sparc64/asmpart.S (asm_patcher_wrapper): Saving and restoring
  float return register.
  * src/vm/jit/sparc64/md-asm.h: Likewise.
........
  r8000 | ajordan | 2007-06-01 21:34:56 +0200 (Fri, 01 Jun 2007) | 2 lines

  * src/vm/signal.c: Added ifdefs to fix compiling with disabled threads.
........
  r8001 | pm | 2007-06-02 19:47:30 +0200 (Sat, 02 Jun 2007) | 9 lines

  * contrib/vmlog/vmlogfilter.c: Added a tool that filters a vmlog log file the same way as -XXfi and -XXfx do.

  * contrib/vmlog/vmlog.c,
  contrib/vmlog/vmlog.h (vmlog_thread_log_append): Made not-static.

  * contrib/vmlog/Makefile.am,
  configure.ac: Conditional building of vmlogfilter if ENABLE_VMLOG is set and regex.h present.
........
  r8002 | pm | 2007-06-03 20:24:44 +0200 (Sun, 03 Jun 2007) | 2 lines

  * configure.ac: Fix broken regex.h test.
........
  r8003 | twisti | 2007-06-03 20:42:09 +0200 (Sun, 03 Jun 2007) | 16 lines

  * src/threads/threads-common.c (threads_thread_start_internal):
  Changed order of initialization stuff, so we can leave the join-mutex
  very early.
  (threads_thread_start): Likewise.

  * src/threads/native/threads.c (threads_mutex_join_lock): New
  function.
  (threads_mutex_join_unlock): Likewise.
  (threads_attach_current_thread): Changed order of initialization
  stuff, so we can leave the join-mutex very early.
  (threads_detach_thread): Send the signal inside the join-mutex.
  (threads_join_all_threads): Use join-mutex functions.

  * src/threads/threads-common.h (threads_mutex_join_lock): Added.
  (threads_mutex_join_unlock): Likewise.
........
  r8004 | twisti | 2007-06-04 14:59:04 +0200 (Mon, 04 Jun 2007) | 3 lines

  * src/vm/signal.c (signal_init): Use if-vm_abort instead of assert.
  * src/vm/exceptions.h: Changed hardware-exception comment accordingly.
........
  r8005 | twisti | 2007-06-04 15:12:56 +0200 (Mon, 04 Jun 2007) | 9 lines

  * src/vm/signal.c (unistd.h): Removed.
  (sys/mman.h): Likewise.
  (signal_init): Moved mmap of page 0x0 and the hardware-exceptions
  check into exceptions_init.

  * src/vm/exceptions.c (unistd.h): Added.
  (sys/mman.h): Likewise.
  (exceptions_init): See above.
........
  r8006 | twisti | 2007-06-05 09:40:49 +0200 (Tue, 05 Jun 2007) | 20 lines

  * src/vmcore/statistics.c (count_calls_java_to_native): Added.
  (count_calls_native_to_java): Likewise.
  (count_native_function_calls): Removed.
  (nativeinvokation): Likewise.
  (print_stats): Print new variables.

  * src/vmcore/statistics.h (count_calls_java_to_native): Added.
  (count_calls_native_to_java): Likewise.
  (nativeinvokation): Removed.

  * src/vm/jit/codegen-common.c (codegen_start_native_call)
  [ENABLE_STATISTICS]: Increase count_calls_java_to_native.

  * src/vm/vm.c (vm_call_method_vmarg) [ENABLE_STATISTICS]: Increase
  count_calls_native_to_java.
  (vm_call_method_int_vmarg): Likewise.
  (vm_call_method_long_vmarg): Likewise.
  (vm_call_method_float_vmarg): Likewise.
  (vm_call_method_double_vmarg): Likewise.
........
  r8007 | twisti | 2007-06-05 09:42:57 +0200 (Tue, 05 Jun 2007) | 2 lines

  * src/vm/vm.c (vmcore/statistics.h): Added.
........
  r8008 | twisti | 2007-06-05 09:44:38 +0200 (Tue, 05 Jun 2007) | 2 lines

  * src/vm/vm.c: Set Id keyword.
........
  r8009 | twisti | 2007-06-05 09:56:35 +0200 (Tue, 05 Jun 2007) | 2 lines

  * src/vm/jit/mips/codegen.c (codegen_emit): Small code-layout change.
........
  r8010 | twisti | 2007-06-05 11:00:30 +0200 (Tue, 05 Jun 2007) | 3 lines

  * src/vm/jit/mips/codegen.c (codegen_emit): Use FLTMOVE and DBLMOVE to
  save some moves.
........
  r8011 | twisti | 2007-06-05 12:06:18 +0200 (Tue, 05 Jun 2007) | 12 lines

  * src/vm/jit/mips/md-abi.c (md_param_alloc) [SIZEOF_VOID_P == 4]: Use
  internally a different calling convention. It's the same as on n64
  with register skipping and, but with long alignment (as on ARM).
  (md_param_alloc_native) [SIZEOF_VOID_P == 4]: Use the o32 ABI.

  * src/vm/jit/mips/codegen.c (codegen_emit) [SIZEOF_VOID_P == 4]:
  Changes for new internal calling conventions.
  (codegen_emit_stub_native) [SIZEOF_VOID_P == 4]: Likewise.

  * src/vm/jit/mips/asmpart.S (asm_vm_call_method) [SIZEOF_VOID_P == 4]:
  Adjusted reserved stack-space to 4*4.
........
  r8012 | twisti | 2007-06-05 12:14:29 +0200 (Tue, 05 Jun 2007) | 3 lines

  * src/vm/jit/mips/md-abi.c (md_param_alloc_native)
  [SIZEOF_VOID_P == 8]: Fixed compilation.
........
  r8013 | twisti | 2007-06-05 12:19:09 +0200 (Tue, 05 Jun 2007) | 3 lines

  * src/vm/jit/mips/md-abi.c (md_param_alloc) [SIZEOF_VOID_P == 8]: Use
  reguse instead of i.
........
  r8014 | twisti | 2007-06-05 14:53:30 +0200 (Tue, 05 Jun 2007) | 3 lines

  * src/vm/jit/codegen-common.c [__ARM__] (md-abi.h): Removed.
  (codegen_reg_of_var) [__ARM__]: Removed split-code.
........
  r8015 | twisti | 2007-06-05 22:58:11 +0200 (Tue, 05 Jun 2007) | 10 lines

  * src/native/vm/gnu/Makefile.am (libnativevmcore_la_SOURCES): Removed
  sun_misc_Unsafe.c.

  * src/native/vm/Makefile.am [ENABLE_JAVASE] (SUN_MISC_UNSAFE_SOURCES):
  Added.
  (libnativevm_la_SOURCES): Added SUN_MISC_UNSAFE_SOURCES.

  * src/native/vm/gnu/sun_misc_Unsafe.c: Removed.
  * src/native/vm/sun_misc_Unsafe.c: Added.
........
  r8016 | twisti | 2007-06-06 00:11:12 +0200 (Wed, 06 Jun 2007) | 5 lines

  * src/native/native.c (native_init): Check nativevm_init return value.

  * src/native/vm/nativevm.c (nativevm_init): Changed signature.
  * src/native/vm/nativevm.h (nativevm_init): Likewise.
........
  r8017 | twisti | 2007-06-06 01:46:59 +0200 (Wed, 06 Jun 2007) | 10 lines

  * src/native/vm/gnu/java_lang_VMString.c
  (native/vm/java_lang_String.h): Added.
  (intern): Call _Jv_java_lang_String_intern.

  * src/native/vm/java_lang_String.c: New file.
  * src/native/vm/java_lang_String.h: Likewise.

  * src/native/vm/Makefile.am (libnativevm_la_SOURCES): Added
  java_lang_String.[ch].
........
  r8018 | twisti | 2007-06-06 11:24:22 +0200 (Wed, 06 Jun 2007) | 2 lines

  * configure.ac (AC_INIT): Changed version to 0.98.
........
  r8019 | twisti | 2007-06-06 11:26:00 +0200 (Wed, 06 Jun 2007) | 2 lines

  * ChangeLog: Updated.
........
  r8022 | twisti | 2007-06-06 13:31:28 +0200 (Wed, 06 Jun 2007) | 3 lines

  * configure.ac (AC_INIT): Changed version to 0.98+svn.
  (OPT_CFLAGS): Changed to -O0.
........
  r8023 | twisti | 2007-06-06 19:19:17 +0200 (Wed, 06 Jun 2007) | 2 lines

  * NEWS: Fixed 0.98 release date.
........
  r8024 | twisti | 2007-06-06 19:23:42 +0200 (Wed, 06 Jun 2007) | 8 lines

  * src/vmcore/class.c (class_is_primitive): New function.
  * src/vmcore/class.h (class_is_primitive): Added.

  * src/native/vm/java_lang_Class.c (isPrimitive): Use
  class_is_primitive.
  (getDeclaringClass): Likewise.
  (getDeclaredClasses): Likewise.
........
  r8025 | michi | 2007-06-07 10:51:54 +0200 (Thu, 07 Jun 2007) | 8 lines

  * src/vm/jit/code.h (codeinfo) [ENABLE_REPLACEMENT, HAS_ADDRESS_REGISTER_FILE]:
  Added savedadrcount.

  * src/vm/jit/replace.c [HAS_ADDRESS_REGISTER_FILE]: Added support for address
  registers.

  * src/vm/jit/replace.h [HAS_ADDRESS_REGISTER_FILE]: Likewise.
........
  r8026 | twisti | 2007-06-07 11:04:51 +0200 (Thu, 07 Jun 2007) | 15 lines

  * src/native/vm/gnu/java_lang_reflect_Constructor.c (methods): Install
  _Jv_- functions directly.
  (getModifiersInternal): Removed.
  (getParameterTypes): Likewise.
  (getExceptionTypes): Likewise.
  (constructNative): Call _Jv_java_lang_reflect_Constructor_newInstance.
  (getSignature): Removed.

  * src/native/vm/Makefile.am [ENABLE_JAVASE]
  (JAVA_LANG_REFLECT_CONSTRUCTOR_SOURCES): Added.
  (libnativevm_la_SOURCES): Added JAVA_LANG_REFLECT_CONSTRUCTOR_SOURCES.

  * src/native/vm/java_lang_reflect_Constructor.c: New file.
  * src/native/vm/java_lang_reflect_Constructor.h: Likewise.
........

--HG--
branch : exact-gc

16 years agoMerged revisions 7918-7939 via svnmerge from
michi [Wed, 23 May 2007 09:42:08 +0000 (09:42 +0000)]
Merged revisions 7918-7939 via svnmerge from
svn+ssh://michi@c1.complang.tuwien.ac.at/ahome/cacao/svn/cacao/trunk

........
  r7926 | twisti | 2007-05-21 10:27:06 +0200 (Mon, 21 May 2007) | 12 lines

  * src/native/jni.c (_Jv_jni_CallLongMethodA): New function.
  (_Jv_jni_CallFloatMethodA): Likewise.
  (_Jv_jni_CallDoubleMethodA): Likewise.
  (_Jv_JNI_CallStaticBooleanMethodA): Implemented.
  (_Jv_JNI_CallStaticByteMethodA): Likewise.
  (_Jv_JNI_CallStaticCharMethodA): Likewise.
  (_Jv_JNI_CallStaticShortMethodA): Likewise.
  (_Jv_JNI_CallStaticIntMethodA): Likewise.
  (_Jv_JNI_CallStaticLongMethodA): Likewise.
  (_Jv_JNI_CallStaticFloatMethodA): Likewise.
  (_Jv_JNI_CallStaticDoubleMethodA): Likewise.
........
  r7927 | twisti | 2007-05-21 10:48:46 +0200 (Mon, 21 May 2007) | 3 lines

  * src/native/include/Makefile.am (CLEANFILES): Simply clean an *.h
  files.
........
  r7929 | michi | 2007-05-21 13:45:31 +0200 (Mon, 21 May 2007) | 8 lines

  * src/vm/jit/arm/codegen.h (M_EORLE): Added.

  * src/vm/jit/arm/codegen.c (codegen_emit): Fixed superindex overflow
  for ICMD_INSTANCEOF and ICMD_CHECKCAST.

  * src/vm/jit/arm/patcher.c (patcher_checkcast_instanceof_interface):
  Adapted patcher to above changes.
........
  r7930 | twisti | 2007-05-21 16:40:32 +0200 (Mon, 21 May 2007) | 2 lines

  * src/vm/global.h (ALIGN_2): Added.
........
  r7931 | twisti | 2007-05-21 16:42:28 +0200 (Mon, 21 May 2007) | 6 lines

  * src/vm/jit/arm/md-abi.c (md_param_alloc): Use EABI internally.
  (ALIGN_2): Removed.

  * src/vm/jit/arm/codegen.c (codegen_emit): Removed SPLIT-stuff.
  * src/vm/jit/arm/emit.c (emit_store): Likewise.
........
  r7932 | michi | 2007-05-22 09:00:57 +0200 (Tue, 22 May 2007) | 3 lines

  * src/vm/jit/arm/md-abi.c (md_param_alloc): Align stack arguments as well.
  * src/vm/jit/arm/asmpart.S (asm_vm_call_method): Use EABI internally.
........
  r7933 | michi | 2007-05-22 09:21:08 +0200 (Tue, 22 May 2007) | 2 lines

  * src/vm/jit/arm/emit.c (emit_verbosecall_enter): Removed obsolete SPLIT-stuff.
........
  r7934 | michi | 2007-05-22 12:07:21 +0200 (Tue, 22 May 2007) | 2 lines

  * src/vm/jit/arm/codegen.c (codegen_emit_stub_native): Removed obsolete SPLIT-stuff.
........
  r7935 | twisti | 2007-05-22 13:18:15 +0200 (Tue, 22 May 2007) | 3 lines

  * src/vm/jit/x86_64/md.c (md_get_method_patch_address): Replaced
  assert with vm_abort.
........
  r7938 | tbfg | 2007-05-23 11:37:37 +0200 (Wed, 23 May 2007) | 5 lines

  * src/vm/jit/abi.h (abi_registers_address_name): Added.
  (abi_registers_address_argument): Likewise.
  (abi_registers_address_saved): Likewise.
  (abi_registers_address_temporary): Likewise.
........
  r7939 | tbfg | 2007-05-23 11:40:05 +0200 (Wed, 23 May 2007) | 13 lines

  * src/vm/jit/m68k/codegen.c (codegen_emit): Remove NOP after each
  ICMD.
  Add NOP generation at end of basci block when patcher is longer than
  instruction to be patched.

  * src/vm/jit/m68k/patcher.c (patcher_get_putfield): Implemented.

  * src/vm/jit/m68k/codegen.h (COMPILERSTUB_CODESIZE): Correct value.

  * src/vm/jit/codegen-common.c (codegen_increase): Enable NOP after
  patcher generation at end of basic block.
........

--HG--
branch : exact-gc

16 years ago* src/vm/jit/stacktrace.h (stackframeinfo) [ENABLE_GC_CACAO]: Added adrregs
michi [Wed, 23 May 2007 09:26:19 +0000 (09:26 +0000)]
* src/vm/jit/stacktrace.h (stackframeinfo) [ENABLE_GC_CACAO]: Added adrregs
for HAS_ADDRESS_REGISTER_FILE architectures.

--HG--
branch : exact-gc

16 years ago* src/vm/builtintable.inc (builtintable_internal): Enabled builtin stubs
michi [Tue, 22 May 2007 17:05:42 +0000 (17:05 +0000)]
* src/vm/builtintable.inc (builtintable_internal): Enabled builtin stubs
for ICMD_NEWARRAY and ICMD_ANEWARRAY.

--HG--
branch : exact-gc

17 years ago* src/mm/cacao-gc/mark.c (mark_me): Ifdefed statistics assertion.
michi [Mon, 21 May 2007 10:47:48 +0000 (10:47 +0000)]
* src/mm/cacao-gc/mark.c (mark_me): Ifdefed statistics assertion.

--HG--
branch : exact-gc

17 years ago* src/vm/jit/i386/linux/md-os.c (md_signal_handler_sigusr1): This function is no
michi [Mon, 21 May 2007 00:06:33 +0000 (00:06 +0000)]
* src/vm/jit/i386/linux/md-os.c (md_signal_handler_sigusr1): This function is no
longer GC-specific, removed assertion.

--HG--
branch : exact-gc

17 years ago* src/mm/cacao-gc/rootset.c (rootset_from_globals): Uses registered references
michi [Mon, 21 May 2007 00:03:53 +0000 (00:03 +0000)]
* src/mm/cacao-gc/rootset.c (rootset_from_globals): Uses registered references
instead of Cacao-internal structures now.
(rootset_readout) [ENABLE_THREADS]: Adapted to new threads table.

* src/mm/cacao-gc/rootset.h: Minor changes.
* src/mm/cacao-gc/heap.c: Likewise.
* src/mm/cacao-gc/mark.c: Likewise.

--HG--
branch : exact-gc

17 years ago* src/threads/threads-common.c (threads_thread_new) [ENABLE_GC_CACAO]:
michi [Sun, 20 May 2007 23:57:39 +0000 (23:57 +0000)]
* src/threads/threads-common.c (threads_thread_new) [ENABLE_GC_CACAO]:
Initialize GC-specific field.
(threads_thread_start_internal): Register reference with the GC.
(threads_thread_start): Likewise.

* src/vmcore/linker.c: Functions are now called threads_stopworld
and threads_startworld.

* src/cacaoh/dummy.c: Likewise.

--HG--
branch : exact-gc

17 years ago* src/threads/native/threads.c: Major fix after messed up merge from
michi [Sun, 20 May 2007 23:50:43 +0000 (23:50 +0000)]
* src/threads/native/threads.c: Major fix after messed up merge from
trunk, sorry for not beeing more precise here.

--HG--
branch : exact-gc

17 years ago* src/cacaoh/dummy.c (gc_reference_register): Added.
michi [Sun, 20 May 2007 23:14:11 +0000 (23:14 +0000)]
* src/cacaoh/dummy.c (gc_reference_register): Added.

* src/vmcore/loader.c (hashtable_classloader): Made it static again.
(loader_hashtable_classloader_add) [ENABLE_GC_CACAO]: Registers reference
with the GC.

* src/native/jni.c (hashtable_global_ref): Made it static again.
(_Jv_JNI_NewGlobalRef) [ENABLE_GC_CACAO]: Registers reference with the GC.
(_Jv_JNI_DeleteGlobalRef) [ENABLE_GC_CACAO]: Unregisters above reference.

--HG--
branch : exact-gc

17 years ago* src/mm/gc-common.h (gc_reference_register, gc_reference_unregister): Added
michi [Sun, 20 May 2007 23:02:43 +0000 (23:02 +0000)]
* src/mm/gc-common.h (gc_reference_register, gc_reference_unregister): Added
prototypes.

* src/mm/cacao-gc/gc.h (list_gcref_entry_t): Added.

* src/mm/cacao-gc/gc.c (gc_reflist): Added.
(gc_reference_register): Implemented.

--HG--
branch : exact-gc

17 years ago* src/mm/cacao-gc/final.h: Renamed final_entry to list_final_entry_t.
michi [Sun, 20 May 2007 21:07:00 +0000 (21:07 +0000)]
* src/mm/cacao-gc/final.h: Renamed final_entry to list_final_entry_t.
* src/mm/cacao-gc/final.c: Likewise.

--HG--
branch : exact-gc

17 years agoMerged revisions 7797-7917 via svnmerge from
michi [Sun, 20 May 2007 20:42:18 +0000 (20:42 +0000)]
Merged revisions 7797-7917 via svnmerge from
svn+ssh://michi@c1.complang.tuwien.ac.at/ahome/cacao/svn/cacao/trunk

........
  r7799 | twisti | 2007-04-24 01:03:31 +0200 (Tue, 24 Apr 2007) | 4 lines

  * configure.ac: Removed --enable-threads checks and call instead
  AC_CHECK_ENABLE_THREADS.
  * m4/threads.m4: New file.
........
  r7800 | twisti | 2007-04-24 01:39:11 +0200 (Tue, 24 Apr 2007) | 2 lines

  * .cvsignore: Removed.
........
  r7801 | twisti | 2007-04-24 01:51:37 +0200 (Tue, 24 Apr 2007) | 74 lines

  * contrib/.cvsignore,
  doc/.cvsignore,
  doc/handbook/.cvsignore,
  man/.cvsignore,
  src/.cvsignore,
  src/cacao/.cvsignore,
  src/cacaoh/.cvsignore,
  src/fdlibm/.cvsignore,
  src/lib/.cvsignore,
  src/mm/.cvsignore,
  src/mm/boehm-gc/.cvsignore,
  src/mm/boehm-gc/doc/.cvsignore,
  src/mm/boehm-gc/include/.cvsignore,
  src/mm/cacao-gc/.cvsignore,
  src/native/.cvsignore,
  src/native/include/.cvsignore,
  src/native/jvmti/.cvsignore,
  src/native/tools/.cvsignore,
  src/native/vm/.cvsignore,
  src/native/vm/cldc1.1/.cvsignore,
  src/native/vm/gnu/.cvsignore,
  src/scripts/.cvsignore,
  src/threads/.cvsignore,
  src/threads/none/.cvsignore,
  src/threads/posix/.cvsignore,
  src/toolbox/.cvsignore,
  src/vm/.cvsignore,
  src/vm/jit/.cvsignore,
  src/vm/jit/allocator/.cvsignore,
  src/vm/jit/alpha/.cvsignore,
  src/vm/jit/alpha/freebsd/.cvsignore,
  src/vm/jit/alpha/linux/.cvsignore,
  src/vm/jit/arm/.cvsignore,
  src/vm/jit/arm/linux/.cvsignore,
  src/vm/jit/i386/.cvsignore,
  src/vm/jit/i386/cygwin/.cvsignore,
  src/vm/jit/i386/darwin/.cvsignore,
  src/vm/jit/i386/freebsd/.cvsignore,
  src/vm/jit/i386/linux/.cvsignore,
  src/vm/jit/inline/.cvsignore,
  src/vm/jit/intrp/.cvsignore,
  src/vm/jit/loop/.cvsignore,
  src/vm/jit/m68k/.cvsignore,
  src/vm/jit/m68k/linux/.cvsignore,
  src/vm/jit/mips/.cvsignore,
  src/vm/jit/mips/irix/.cvsignore,
  src/vm/jit/mips/linux/.cvsignore,
  src/vm/jit/optimizing/.cvsignore,
  src/vm/jit/parisc/.cvsignore,
  src/vm/jit/parisc/linux/.cvsignore,
  src/vm/jit/powerpc/.cvsignore,
  src/vm/jit/powerpc/darwin/.cvsignore,
  src/vm/jit/powerpc/linux/.cvsignore,
  src/vm/jit/powerpc/netbsd/.cvsignore,
  src/vm/jit/powerpc64/.cvsignore,
  src/vm/jit/powerpc64/linux/.cvsignore,
  src/vm/jit/s390/.cvsignore,
  src/vm/jit/schedule/.cvsignore,
  src/vm/jit/sparc64/.cvsignore,
  src/vm/jit/sparc64/linux/.cvsignore,
  src/vm/jit/sparc64/solaris/.cvsignore,
  src/vm/jit/tools/.cvsignore,
  src/vm/jit/verify/.cvsignore,
  src/vm/jit/x86_64/.cvsignore,
  src/vm/jit/x86_64/freebsd/.cvsignore,
  src/vm/jit/x86_64/linux/.cvsignore,
  src/vmcore/.cvsignore,
  tests/.cvsignore,
  tests/regression/.cvsignore,
  tests/regression/codepatching/.cvsignore,
  tests/regression/jasmin/.cvsignore,
  tests/regression/native/.cvsignore,
  tests/stack/.cvsignore: Removed.
........
  r7802 | tbfg | 2007-04-24 12:20:05 +0200 (Tue, 24 Apr 2007) | 2 lines

  * threads.m4: Fixed a typo
........
  r7803 | twisti | 2007-04-24 16:23:40 +0200 (Tue, 24 Apr 2007) | 3 lines

  * src/threads/threads-common.c (threads_dump): Also print integer
  thread id, so it's easier to compare with the ones from gdb.
........
  r7804 | twisti | 2007-04-24 16:29:20 +0200 (Tue, 24 Apr 2007) | 3 lines

  * src/threads/threads-common.c: Set Id keyword.
  * src/threads/threads-common.h: Likewise.
........
  r7805 | twisti | 2007-04-25 13:47:15 +0200 (Wed, 25 Apr 2007) | 12 lines

  * src/threads/threads-common.c (threads_create_thread)
  [ENABLE_GC_BOEHM]: Use GCNEW_UNCOLLECTABLE.
  (threads_start_javathread) [ENABLE_GC_BOEHM]: Likewise.

  * src/threads/native/threads.c (threads_preinit) [ENABLE_GC_BOEHM]:
  Likewise.
  (threads_init): Removed resizing-of-threadobject code, we don't need
  it anymore.
  (threads_attach_current_thread) [ENABLE_GC_BOEHM]: Use
  GCNEW_UNCOLLECTABLE.
  (threads_detach_thread) [ENABLE_GC_BOEHM]: Use GCFREE.
........
  r7806 | twisti | 2007-04-25 13:54:32 +0200 (Wed, 25 Apr 2007) | 3 lines

  * src/threads/native/threads.c (threads_init): Use variable t instead
  of mainthreadobj->object, makes code simpler.
........
  r7807 | twisti | 2007-04-25 16:24:18 +0200 (Wed, 25 Apr 2007) | 3 lines

  * contrib: Ignore TAGS.
  * contrib/vmlog: Likewise.
........
  r7808 | twisti | 2007-04-25 17:12:20 +0200 (Wed, 25 Apr 2007) | 6 lines

  * src/native/native.c (native/include/java_lang_Object.h): Include
  always.
  [ENABLE_JAVAME_CLDC1_1]
  (native/include/com_sun_cldc_io_ResourceInputStream.h)
  (native/include/com_sun_cldc_io_j2me_socket_Protocol.h): Added.
........
  r7809 | twisti | 2007-04-25 17:14:34 +0200 (Wed, 25 Apr 2007) | 3 lines

  * src/threads/native/threads.c (threads_preinit): We always need
  variable t.
........
  r7810 | stefan | 2007-04-25 18:39:03 +0200 (Wed, 25 Apr 2007) | 2 lines

  * src/vmcore/linker.c (linker_init): added missing lock_init_object_lock.
........
  r7811 | twisti | 2007-04-25 20:33:30 +0200 (Wed, 25 Apr 2007) | 23 lines

  * src/threads/threads-common.c (threads_create_thread): Renamed to
  threads_thread_create_internal and a new function.
  (threads_start_javathread): Use threads_create_thread.

  * src/threads/threads-common.h (threads_create_thread): Changed
  signature.
  (threads_thread_create_internal): Added.

  * src/threads/native/threads.c (threads_set_current_threadobject):
  Made non-static.
  (threads_init_threadobject): Likewise, use threads_create_thread.
  (threads_init): Cleanup.
  (threads_startup_thread): Likewise.
  (threads_attach_current_thread): Use threads_create_thread.

  * src/vm/jit/optimizing/profile.c (profile_start_thread): Replaced
  threads_create_thread with threads_thread_create_internal.
  * src/vm/jit/optimizing/recompile.c (recompile_start_thread):
  Likewise.
  * src/vm/signal.c (signal_start_thread): Likewise.
  * src/vm/finalizer.c (finalizer_start_thread): Likewise.
  * src/mm/memory.c (memory_start_thread): Likewise.
........
  r7812 | twisti | 2007-04-25 20:51:03 +0200 (Wed, 25 Apr 2007) | 2 lines

  * src/mm/memory.h: Updated copyright header.
........
  r7813 | twisti | 2007-04-25 21:20:13 +0200 (Wed, 25 Apr 2007) | 35 lines

  * src/threads/lock-common.h: New file.

  * src/threads/native/lock.h: Removed function prototypes.
  * src/threads/none/lock.h (LOCK_INIT_OBJECT_LOCK): Added.

  * src/mm/memory.c,
  src/native/jni.c,
  src/native/native.c,
  src/native/vm/java_lang_Object.c,
  src/native/vm/java_lang_Thread.c,
  src/threads/Makefile.am,
  src/threads/native/threads.c,
  src/threads/threads-common.c,
  src/toolbox/avl.c,
  src/toolbox/hashtable.c,
  src/toolbox/list.c,
  src/vm/builtin.c,
  src/vm/finalizer.c,
  src/vm/initialize.c,
  src/vm/jit/inline/inline.c,
  src/vm/jit/jit.c,
  src/vm/jit/optimizing/recompile.c,
  src/vm/jit/parse.c,
  src/vm/jit/patcher.h,
  src/vm/jit/show.c,
  src/vm/jit/x86_64/codegen.c,
  src/vm/jit/x86_64/emit.c,
  src/vm/string.c,
  src/vmcore/class.c,
  src/vmcore/classcache.c,
  src/vmcore/linker.c,
  src/vmcore/loader.c,
  src/vmcore/suck.c,
  src/vmcore/utf8.c: Updated headers.
........
  r7814 | twisti | 2007-04-25 21:36:15 +0200 (Wed, 25 Apr 2007) | 3 lines

  * src/vm/jit/powerpc/linux/md-abi.c (abi_registers_float_temporary):
  Fixed number of registers.
........
  r7815 | twisti | 2007-04-25 21:37:11 +0200 (Wed, 25 Apr 2007) | 3 lines

  * src/vm/jit/powerpc/codegen.c: Fixed lock include.
  * src/vm/jit/powerpc/emit.c: Likewise.
........
  r7816 | twisti | 2007-04-25 21:38:46 +0200 (Wed, 25 Apr 2007) | 2 lines

  * src/vm/jit/powerpc/emit.c: Set Id keyword.
........
  r7817 | twisti | 2007-04-25 21:42:50 +0200 (Wed, 25 Apr 2007) | 3 lines

  * src/vm/jit/powerpc64/codegen.c: Changed lock includes.
  * src/vm/jit/powerpc64/emit.c: Likewise.
........
  r7818 | twisti | 2007-04-25 21:47:50 +0200 (Wed, 25 Apr 2007) | 3 lines

  * src/vm/jit/i386/codegen.c: Changed lock include.
  * src/vm/jit/i386/emit.c: Likewise.
........
  r7819 | twisti | 2007-04-25 21:54:01 +0200 (Wed, 25 Apr 2007) | 3 lines

  * src/vm/jit/alpha/codegen.c (codegen_emit_stub_native): Use
  md->params to save and restore argument registers.
........
  r7820 | twisti | 2007-04-25 21:55:34 +0200 (Wed, 25 Apr 2007) | 3 lines

  * src/vm/jit/alpha/codegen.c: Changed lock include.
  * src/vm/jit/alpha/emit.c: Likewise.
........
  r7821 | twisti | 2007-04-25 21:56:30 +0200 (Wed, 25 Apr 2007) | 2 lines

  * src/vm/jit/alpha/emit.c: Set Id keyword.
........
  r7822 | twisti | 2007-04-25 22:02:14 +0200 (Wed, 25 Apr 2007) | 5 lines

  * src/vm/jit/arm/emit.c (emit_load): Use switch-case instead of
  if-else contruct.
  (emit_store): Likewise.
  (emit_copy): Likewise.
........
  r7823 | twisti | 2007-04-25 22:03:04 +0200 (Wed, 25 Apr 2007) | 3 lines

  * src/vm/jit/arm/codegen.c: Changed lock include.
  * src/vm/jit/arm/emit.c: Likewise.
........
  r7824 | twisti | 2007-04-25 22:07:37 +0200 (Wed, 25 Apr 2007) | 3 lines

  * src/vm/jit/mips/codegen.c: Changed lock includes.
  * src/vm/jit/mips/emit.c: Likewise.
........
  r7825 | twisti | 2007-04-25 22:31:57 +0200 (Wed, 25 Apr 2007) | 11 lines

  * src/threads/threads-common.c (threads_start_javathread): Changed
  signature.

  * src/threads/lock-common.h (threads/threads-common.h): Added.
  [ENABLE_THREADS]: Only define functions when threads are enabled.

  * src/threads/threads-common.h (native/include/java_lang_Thread.h):
  Removed.
  [ENABLE_THREADS]: Only define functions when threads are enabled.
  (threads_start_javathread): Changed signature.
........
  r7826 | twisti | 2007-04-25 22:56:16 +0200 (Wed, 25 Apr 2007) | 3 lines

  * src/threads/threads-common.c (threads_dump) [!SIZEOF_VOID_P == 8]:
  Fixed warning.
........
  r7827 | twisti | 2007-04-25 23:03:44 +0200 (Wed, 25 Apr 2007) | 6 lines

  * src/threads/lock-common.h (threads/threads-common.h): Removed that
  header again and added a comment about not including thread headers.

  * src/threads/threads-common.c (threads_start_javathread): Reverted.
  * src/threads/threads-common.h (threads_start_javathread): Likewise.
........
  r7828 | stefan | 2007-04-25 23:23:57 +0200 (Wed, 25 Apr 2007) | 3 lines

  * src/vm/jit/i386/darwin/md-os.c: attempt at porting the exception changes
  (see r7596 & r7648).
........
  r7829 | stefan | 2007-04-25 23:47:00 +0200 (Wed, 25 Apr 2007) | 3 lines

  * src/vm/jit/i386/darwin/md-os.c: added threads/threads-common.h,
  removed vm/jit/i386/md-abi.h
........
  r7830 | twisti | 2007-04-26 13:14:39 +0200 (Thu, 26 Apr 2007) | 28 lines

  * src/threads/threads-common.c (threads/critical.h): Added.
  (threads/native/threads.h): Removed.
  (threads_table): Added.
  (threads_preinit): New function.
  (threads_table_init): Moved from implementation file.
  (threads_table_add): Likewise.
  (threads_table_remove): Likewise.
  (threads_table_dump): Likewise.

  * src/threads/threads-common.h (threads_table_entry_t)
  (threads_table_t): Added.
  (threads_preinit): Likewise.
  (threads_table_add): Likewise.
  (threads_table_remove): Likewise.
  (threads_impl_preinit): Likewise.
  (threads_init_threadobject): Likewise.

  * src/threads/native/threads.c (threads_table): Removed.
  (threads_preinit): Renamed to threads_impl_preinit.
  (threads_table_init): Removed.
  (threads_table_add): Likewise.
  (threads_table_remove): Likewise.
  (threads_table_dump): Likewise.

  * src/threads/native/threads.h (threads_table_entry_t)
  (threads_table_t): Removed.
  (threads_preinit): Likewise.
........
  r7831 | twisti | 2007-04-26 14:48:16 +0200 (Thu, 26 Apr 2007) | 23 lines

  * src/threads/threads-common.c (threads_thread_create_internal):
  Renamed to threads_thread_start_internal and start the thread.
  (threads_start_javathread): Renamed to threads_thread_start.
  * src/threads/threads-common.h: Likewise.

  * src/threads/native/threads.c (threads_start_thread): Renamed to
  threads_impl_thread_start.

  * src/mm/memory.c (thread_memory): Removed.
  (memory_start_thread): Call threads_thread_start_internal.

  * src/vm/finalizer.c (thread_finalizer): Removed.
  (finalizer_start_thread): Call threads_thread_start_internal.

  * src/vm/signal.c (thread_signal): Removed.
  (signal_start_thread): Call threads_thread_start_internal.

  * src/vm/jit/optimizing/profile.c (thread_profile): Removed.
  (profile_start_thread): Call threads_thread_start_internal.

  * src/vm/jit/optimizing/recompile.c (thread_recompile): Removed.
  (recompile_start_thread): Call threads_thread_start_internal.
........
  r7832 | twisti | 2007-04-26 15:06:16 +0200 (Thu, 26 Apr 2007) | 3 lines

  * src/native/vm/java_lang_Thread.c (start): Renamed
  threads_start_javathread to threads_thread_start.
........
  r7833 | twisti | 2007-04-26 15:07:05 +0200 (Thu, 26 Apr 2007) | 2 lines

  * src/native/vm/java_lang_Thread.c: Set Id keyword.
........
  r7834 | twisti | 2007-04-26 15:32:08 +0200 (Thu, 26 Apr 2007) | 3 lines

  * src/vm/vm.c [ENABLE_THREADS] (threads/native/threads.h): Removed.
  (threads/threads-common.h): Added.
........
  r7835 | twisti | 2007-04-26 15:43:08 +0200 (Thu, 26 Apr 2007) | 7 lines

  * src/vm/jit/inline/inline.h (config.h): Added.
  (inline_inline): Likewise.

  * src/vm/jit/jit.c (threads/threads-common.h): Added.
  [ENABLE_INLINING] (vm/jit/inline/inline.h): Likewise.
  [ENABLE_THREADS] (threads/native/threads.h): Removed.
........
  r7836 | ajordan | 2007-04-27 03:37:06 +0200 (Fri, 27 Apr 2007) | 9 lines

  * src/vm/jit/sparc64/emit.c: Keeping stack 16-byte aligned when calling C/native functions from the stack. (Solaris requires this)
  * src/vm/jit/sparc64/codegen.c: Likewise.
  * src/vm/jit/sparc64/codegen.h: Likewise.

  * src/vm/jit/sparc64/md-abi.c: Removed zero sized abi_register_* arrays. (not allowed in ISO C)

  * src/vm/jit/sparc64/solaris/md-os.c: Preliminary hardware exception handling. (untested)
........
  r7837 | tbfg | 2007-04-27 10:43:06 +0200 (Fri, 27 Apr 2007) | 27 lines

  * src/vm/jit/m68k/emit.c (emit_arrayindexoutofbounds_check): Fixed.
  * src/vm/jit/m68k/linux/md-os.c (md_signal_handler_sigill): AIOOB fixed.
  Editor boiler plate added.

  * src/vm/jit/m68k/linux/md-os.h: Editor boiler plate.

  * src/vm/jit/m68k/linux/md-abi.c: Likewise.

  * src/vm/jit/m68k/md.c: Likewise.

  * src/vm/jit/m68k/machine-instr.h: Likewise.

  * src/vm/jit/m68k/patcher.c: Editor boiler plate.
  (patcher_invokeinterface): Implemented.
  (patcher_get_putfield): Implemented.
  (patcher_resolve_class): Implemented.
  (patcher_get_putstatic): Implemented.

  * src/vm/jit/m68k/codegen.c: Editor boiler plate.
  (ICMD_GETSTATIC): Added patcher.
  (ICMD_AASTORE): Fixed.

  * src/vm/jit/m68k/asmpart.S: Editor boiler plate.
  (asm_vm_call_method_exception_handler): Fixed used register.
  Return values in %d0 and %a0 as gcc sometimes expects pointers
  in %a0.
........
  r7838 | ajordan | 2007-04-28 14:59:58 +0200 (Sat, 28 Apr 2007) | 3 lines

  * src/vm/jit/sparc64/asmpart.S (asm_call_jit_compiler): Fixed stack alignement in first save.
........
  r7839 | pm | 2007-04-30 00:46:56 +0200 (Mon, 30 Apr 2007) | 15 lines

  * src/vm/jit/s390/emit.c,
  src/vm/jit/s390/md-abi.h,
  src/vm/jit/s390/md.c,
  src/vm/jit/s390/emit.h,
  src/vm/jit/s390/codegen.c,
  src/vm/jit/s390/machine-instr.h,
  src/vm/jit/s390/codegen.h,
  src/vm/jit/s390/arch.h,
  src/vm/jit/s390/md-asm.h,
  src/vm/jit/s390/disass.c,
  src/vm/jit/s390/patcher.c,
  src/vm/jit/s390/asmpart.S,
  src/vm/jit/s390/md-abi.c: Adapted S390 port to changes from branches/twisti (hardware exceptions, emit_branch, abi_registers_*), jctest works again. Cleaned up almost all dead x86_64 code.
........
  r7840 | tbfg | 2007-04-30 12:53:13 +0200 (Mon, 30 Apr 2007) | 31 lines

  * src/vm/jit/m68k/emit.c (emit_mov_imm_reg): Fixed.
  (emit_arithmetic_check): Implemented.

  * src/vm/jit/m68k/md.c (md_get_method_patch_address): Changed invoking
  register.
  (md_stacktrace_get_returnaddress): Fix for linking words on stack.

  * src/vm/jit/m68k/codegen.c (IUSHRCONST): Fix.
  (ICMD_IOR): Implemented.
  (ICMD_IORCONST): Likewise.
  (ICMD_IXOR): Likewise.
  (ICMD_IXORCONST): Likewise.
  (ICMD_INVOKEVIRTUAL): Changed invoking register.
  (ICMD_INVOKEINTERFACE): Likewise.

  * src/vm/jit/m68k/patcher.c (patcher_invokevirtual): Changed
  invoking register.

  * src/vm/jit/m68k/asmpart.S (asm_vm_call_method_exception_handler):
  Proper stack restauration.
  (L_asm_call_jit_compiler_exception): Implemented.
  (asm_patcher_wrapper): Fixses.
  (L_asm_patcher_wrapper_exception): Implemented.

  * src/vm/jit/m68k/codegen.h (M_IXOR): Added.
  (M_IOR_IMM): Added.
  (M_IXOR_IMM): Added.

  * src/vm/jit/stacktrace.c (stacktrace_create_extern_stackframe):
  Comment and further m68k stuff.
........
  r7841 | twisti | 2007-04-30 13:58:57 +0200 (Mon, 30 Apr 2007) | 3 lines

  * src/vm/jit/inline/Makefile.am (AM_CPPFLAGS): Added
  -I$(top_builddir)/src.
........
  r7842 | tbfg | 2007-04-30 14:44:47 +0200 (Mon, 30 Apr 2007) | 3 lines

  * src/vm/jit/m68k/asmpart.S (asm_handle_exception): Restore registers
  correctly.
........
  r7843 | tbfg | 2007-05-01 15:00:12 +0200 (Tue, 01 May 2007) | 22 lines

  * src/vm/jit/m68k/linux/md-os.c (md_signal_handler_sigill): Support
  EXCEPTION_HARDWARE_ARITHMETIC.

  * src/vm/jit/m68k/emit.c (emit_mov_imm_reg): Use corret opcode for
  word forms.

  * src/vm/jit/m68k/codegen.c (ICMD_IDIVPOW2): Implemented.
  (ICMD_IREMPOW2): Implemented.
  (ICMD_ISHLCONST): Fixed.
  (ICMD_ISHRCONST): Fixed.
  (ICMD_IUSHRCONST): Fixed.
  (ICMD_SALOAD): Signextension fix.
  (ICMD_LALOAD): Implemented.
  (ICMD_LASTORE): Fixed.
  (ICMD_IASTORE): Fixed.
  (ICMD_MULITANEWARRAY): Fixed.

  * src/vm/jit/m68k/codegen.h (M_IADDX): Added.
  (M_IXOR): Fixed.
  (M_BCS): Fixed.
........
  r7844 | pm | 2007-05-01 17:46:22 +0200 (Tue, 01 May 2007) | 3 lines

  * src/vm/jit/emit-common.h (BRANCH_LABEL_6): Added.
........
  r7845 | pm | 2007-05-01 18:05:07 +0200 (Tue, 01 May 2007) | 3 lines

  * src/vm/jit/s390/codegen.c (codegen_emit): Use new emit_label and emit_label_* functions.
  * src/vm/jit/s390/disass.c (disass_pseudo_instr): Nicer formatting for ill pseudo instruction.
........
  r7846 | pm | 2007-05-01 18:14:00 +0200 (Tue, 01 May 2007) | 2 lines

  * src/vm/jit/s390/codegen.h (gen_bound_check, gen_nullptr_check_intern, gen_bound_check, N_LONG_0): Remove because obsolete.
........
  r7847 | ajordan | 2007-05-01 19:35:55 +0200 (Tue, 01 May 2007) | 6 lines

  * src/vm/jit/sparc64/codegen.h: Removed unused var_to_reg_int define.

  * src/vm/jit/sparc64/codegen.c: Fixed JIT float argument passing via stack.

  * src/vm/jit/sparc64/asmpart.S (asm_vm_call): Fixed integer argument passing via stack args.
........
  r7848 | pm | 2007-05-01 23:40:26 +0200 (Tue, 01 May 2007) | 8 lines

  * src/vm/jit/s390/md.c (md_dump_context): Added. Fatal signals now print the context and a stacktrace.
  * src/vm/jit/s390/emit.h (emit_restore_pv): Added. Fixes bug where REG_PV recalculation uses dseg value to recalculate REG_PV.
  * src/vm/jit/s390/emit.c: Likewise.
  * src/vm/jit/s390/codegen.h (N_RI, N_RI2): Test immediate operand for correct signedness.
  * src/vm/jit/s390/codegen.c (codegen_emit): Use emit_restore_pv for REG_PV recalculation/
  * src/vm/jit/s390/disass.c (disass_pseudo_instr): Fix formating.
  * src/vm/jit/s390/tests/dacapo.status: Added.
........
  r7849 | twisti | 2007-05-02 11:57:22 +0200 (Wed, 02 May 2007) | 6 lines

  * src/vm/jit/powerpc/linux/md-os.c (md_signal_handler_sigsegv): Added
  uClibc support.
  (md_signal_handler_sigtrap): Likewise.
  (md_signal_handler_sigusr2): Likewise.
  (thread_restartcriticalsection): Likewise.
........
  r7850 | twisti | 2007-05-02 18:21:12 +0200 (Wed, 02 May 2007) | 37 lines

  * src/threads/threads-common.c (threads_preinit): Create and
  initialize the main-thread.
  (threads_table_init): Changed signature, insert main-thread and
  maintain a used list too.
  (threads_table_add): Use locking and maintain used list.
  (threads_table_remove): Likewise.
  (threads_table_get): New function.
  (threads_table_get_non_daemons): Likewise.
  (threads_table_first): Likewise.
  (threads_table_next): Likewise.
  [!NDEBUG] (threads_table_dump): Use log_* functions.
  (threads_dump): Use threads-table and functions.

  * src/threads/threads-common.h (threads_table_entry_t): Made a struct
  and renamed nextfree to next.
  (threads_table_get): Added
  (threads_table_get_non_daemons): Likewise.
  (threads_table_first): Likewise.
  (threads_table_next): Likewise.
  [!NDEBUG] (threads_table_dump): Likewise.
  (threads_impl_table_init): Likewise.
  (threads_table_lock): Likewise.
  (threads_table_unlock): Likewise.
  (threads_set_current_threadobject): Likewise.

  * src/threads/native/threads.c (threadlistlock): Removed.
  (threads_impl_preinit): Removed main-thread initialization code.
  (threads_impl_table_init): New function.
  (threads_table_lock): New function.
  (threads_table_unlock): Likewise.
  (threads_init): Get main-thread from threads-table and removed
  thread-list code.
  (threads_attach_current_thread): Likewise.
  (threads_detach_thread): Removed thread-list code.
  (threads_find_non_daemon_thread): Removed.
  (threads_join_all_threads): Use threads_table_get_non_daemons.
........
  r7851 | twisti | 2007-05-02 21:57:07 +0200 (Wed, 02 May 2007) | 3 lines

  * src/vmcore/class.c (class_load_attributes): Disable annotation
  loading for the release.
........
  r7852 | tbfg | 2007-05-02 22:36:07 +0200 (Wed, 02 May 2007) | 3 lines

  * java_lang_Double.c (Java_java_lang_Double_doubleToLongBits): Added
  missing JNIEnv* argument to signature.
........
  r7853 | twisti | 2007-05-02 22:40:11 +0200 (Wed, 02 May 2007) | 8 lines

  * src/threads/threads-common.c (threads_table_get_threads): New
  function.

  * src/threads/threads-common.h (threads_table_get_threads): Added.

  * src/threads/native/threads.c (threads_cast_sendsignals): Rewritten.
  (threads_cast_stopworld): Likewise.
........
  r7854 | twisti | 2007-05-02 22:44:59 +0200 (Wed, 02 May 2007) | 4 lines

  * src/native/vm/cldc1.1/java_lang_Double.c
  (native/include/java_lang_Double.h): Added.
  (longBitsToDouble): Fixed return type.
........
  r7855 | twisti | 2007-05-02 22:46:56 +0200 (Wed, 02 May 2007) | 3 lines

  * src/native/vm/cldc1.1/java_lang_Float.c (native/native.h): Removed.
  (native/include/java_lang_Float.h): Added.
........
  r7856 | tbfg | 2007-05-03 00:28:04 +0200 (Thu, 03 May 2007) | 7 lines

  * src/vm/jit/m68k/codegen.c (ICMD_IDIVPOW2): Fixed.
  (ICMD_IREM): Fixed.
  (ICMD_LASTORE): Use M_LST.
  (ICMD_DASTORE): Use M_LST.
  (ICMD_LALOAD): Use M_LLD.
  (ICMD_DALOAD): Use M_LLD.
........
  r7857 | tbfg | 2007-05-03 02:33:48 +0200 (Thu, 03 May 2007) | 6 lines

  * src/vm/jit/m68k/codegen.c (ICMD_CALOAD): Fixed.

  * src/vm/jit/m68k/patcher.c (*): Removed patching back of
  old opcodes from patcher_wrapper, moved into each patcher.
  (patcher_patch_back): Added.
........
  r7858 | twisti | 2007-05-03 10:16:14 +0200 (Thu, 03 May 2007) | 3 lines

  * contrib/check_dangerous_printf.pl: Removed this file in favor of
  pscan.
........
  r7859 | twisti | 2007-05-03 10:29:16 +0200 (Thu, 03 May 2007) | 7 lines

  * src/toolbox/avl.h (avl_tree): Renamed to avl_tree_t.
  (avl_node): Renamed to avl_node_t.

  * src/toolbox/avl.c: Likewise.
  * src/threads/critical.c: Likewise.
  * src/vm/jit/codegen-common.c: Likewise.
........
  r7860 | twisti | 2007-05-03 14:30:05 +0200 (Thu, 03 May 2007) | 9 lines

  * src/toolbox/avl.c (avl_insert_intern): Changed order of
  comparator-arguments.
  (avl_find): Likewise.

  * src/toolbox/avl.h (avl_comparator): Renamed arguments, to reflect
  the change.

  * src/vm/jit/codegen-common.c (methodtree_comparator): Likewise.
........
  r7861 | twisti | 2007-05-03 15:49:35 +0200 (Thu, 03 May 2007) | 4 lines

  * src/vm/jit/codegen-common.c (codegen_start_native_call)
  [ENABLE_JAVASE]: This has to be ENABLE_JNI.
  (codegen_finish_native_call): Likewise.
........
  r7862 | twisti | 2007-05-03 16:53:39 +0200 (Thu, 03 May 2007) | 7 lines

  * src/toolbox/avl.c (toolbox/logging.h): Added.
  (vm/global.h): Likewise.
  (vm/vm.h): Likewise.
  (avl_insert_intern): Use vm_abort instead of assert.
  (avl_insert): Removed debug code.
  (avl_dump): Use logging functions.
........
  r7863 | twisti | 2007-05-03 22:58:54 +0200 (Thu, 03 May 2007) | 3 lines

  * src/mm/boehm-gc/include/gc.h (GC_HAVE_BUILTIN_BACKTRACE): Commented,
  we don't need it and uClibc doesn't have it.
........
  r7864 | twisti | 2007-05-03 23:17:26 +0200 (Thu, 03 May 2007) | 47 lines

  * src/threads/critical.c (critical_compare): Renamed to
  critical_comparator.
  (critical_find): Removed.
  (critical_register_critical_section): Renamed to
  critical_section_register.
  (critical_find_restart_point): Call avl_find.
  (critical_register_asm_critical_sections): Call
  critical_section_register.

  * src/threads/critical.h (critical_section_node_t): Renamed members.
  (thread_restartcriticalsection): Renamed to
  md_critical_section_restart.

  * src/threads/native/threads.c (threads_cast_darwinstop): Call
  md_critical_section_restart.
  (threads_sigsuspend_handler): Likewise.

  * src/vmcore/linker.c (linker_compute_subclasses): Call
  threads_cast_{start,stop}world, removed LOCK_MONITOR_{ENTER,EXIT}.

  * src/cacaoh/dummy.c (threads_cast_stopworld): Added.
  (threads_cast_startworld): Likewise.

  * src/vm/jit/codegen-common.c (codegen_setup): Setup listcritical.
  (codegen_reset): Likewise.
  (codegen_critical_section_new): New function.
  (codegen_critical_section_start): Likewise.
  (codegen_critical_section_end): Likwise.
  (codegen_critical_section_finish): Likewise.
  (codegen_finish): Call codegen_critical_section_finish.
  (codegen_threadcritrestart): Removed.
  (codegen_threadcritstart): Likewise.
  (codegen_threadcritstop): Likewise.

  * src/vm/jit/codegen-common.h (codegen_critical_section_t): Renamed to
  critical_section_ref_t.
  (codegendata): Added listcritical, removed threadcrit,
  threadcritcurrent and threadcritcount.
  (CODEGEN_CRITICAL_SECTION_NEW, CODEGEN_CRITICAL_SECTION_START)
  (CODEGEN_CRITICAL_SECTION_END): Defined.

  * src/vm/jit/powerpc/codegen.c (codegen_emit): Use
  CODEGEN_CRITICAL_SECTION_* macros.

  * src/vm/jit/powerpc/linux/md-os.c (thread_restartcriticalsection):
  Renamed to md_critical_section_restart.
........
  r7865 | twisti | 2007-05-03 23:29:40 +0200 (Thu, 03 May 2007) | 6 lines

  * src/vm/jit/i386/codegen.c (codegen_emit): Use
  CODEGEN_CRITICAL_SECTION_* macros.

  * src/vm/jit/i386/linux/md-os.c (thread_restartcriticalsection):
  Renamed to md_critical_section_restart.
........
  r7866 | twisti | 2007-05-04 00:32:11 +0200 (Fri, 04 May 2007) | 6 lines

  * src/vm/jit/x86_64/codegen.c (codegen_emit): Use
  CODEGEN_CRITICAL_SECTION_* macros.

  * src/vm/jit/x86_64/linux/md-os.c (thread_restartcriticalsection):
  Renamed to md_critical_section_restart.
........
  r7867 | tbfg | 2007-05-04 01:31:01 +0200 (Fri, 04 May 2007) | 7 lines

  * src/vm/jit/m68k/md.c (md_stacktrace_get_returnaddress): Removed
  braindead address check and fixed the real bug.

  * src/vm/jit/m68k/asmpart.S (asm_vm_call_method): Added float
  argument handling.
  (asm_call_jit_compiler): Fixed stack offset bug.
........
  r7868 | tbfg | 2007-05-04 12:13:20 +0200 (Fri, 04 May 2007) | 4 lines

  * linker.c (linker_compute_subclasses): Only call
  threads_cast_[start|stop]world when ENABLE_THREADS.
........
  r7869 | pm | 2007-05-05 10:08:49 +0200 (Sat, 05 May 2007) | 3 lines

   * contrib/vmlog/Makefile.am (AM_CPPFLAGS): Add include directories for vmlog.
   * src/vm/Makefile.am: Likewise.
........
  r7870 | tbfg | 2007-05-05 15:46:11 +0200 (Sat, 05 May 2007) | 3 lines

  * linker.c (linker_compute_subclasses):
  threads_cast_[start|stop]world only available when using GC.
........
  r7871 | tbfg | 2007-05-05 15:48:39 +0200 (Sat, 05 May 2007) | 8 lines

  * src/vm/jit/m68k/emit.c (emit_patcher_stubs): Add thread
  support.
  (emit_exception_check_areg): Removed dead code.

  * src/vm/jit/m68k/codegen.c (codegen_emit): Add thread support.

  * src/vm/jit/m68k/asmpart.S (asm_patcher_wrapper): Likewise.
........
  r7872 | ajordan | 2007-05-06 15:32:49 +0200 (Sun, 06 May 2007) | 5 lines

  * src/vm/jit/sparc64/codegen.c: Implemented threads support.
  * src/vm/jit/sparc64/machine-instr.h: Likewise.
  * src/vm/jit/sparc64/linux/md-os.c: Likewise.
........
  r7873 | tbfg | 2007-05-07 00:20:13 +0200 (Mon, 07 May 2007) | 16 lines

  * src/vm/jit/m68k/codegen.c (codegen_emit): Allocate 2 additional
  words in stackframe for long to double conversion.

  * src/vm/jit/m68k/asmpart.S (asm_handle_exception): Copy exception
  object into correct register.

  * src/vm/jit/m68k/codegen.h (M_FLD): Implemented.
  (M_DLD): Likewise.
  (M_FST): Likewise.
  (M_DST): Likewise.
  (M_FLTMOVE): Likewise.
  (M_INT2FLTMOVE): Likewise.
  (M_DBLMOVE): Likewise.
  (FCONST): Likewise.
........
  r7874 | ajordan | 2007-05-07 03:44:47 +0200 (Mon, 07 May 2007) | 7 lines

  * src/vm/jit/sparc64/codegen.c (codegen_emit_stub_native): Fixed fp arg passing.
  * src/vm/jit/sparc64/md-abi.h: Likewise.

  * src/vm/jit/sparc64/asmpart.S (asm_vm_call_method): Likewise, but the other way around.
  * src/vm/jit/sparc64/md-asm.h: Likewise.
........
  r7875 | twisti | 2007-05-07 13:35:30 +0200 (Mon, 07 May 2007) | 10 lines

  * src/threads/threads-common.c (threads_table_get): Made static and
  removed table lock.
  (threads_dump): Lock threads table.

  * src/threads/threads-common.h (threads_table_get): Removed.

  * src/threads/native/threads.c (threads_cast_stopworld): Lock threads
  table.
  (threads_cast_startworld): Likewise.
........
  r7876 | twisti | 2007-05-07 13:37:00 +0200 (Mon, 07 May 2007) | 2 lines

  * src/threads/threads-common.c (threads_dump): Typo.
........
  r7877 | tbfg | 2007-05-07 15:02:55 +0200 (Mon, 07 May 2007) | 38 lines

  * src/vm/jit/m68k/arch.h (SUPPORT_FLOAT): Enabled.
  (SUPPORT_FLOAT_CMP): Enabled.
  (SUPPORT_DOUBLE): Enabled.
  (SUPPORT_DOUBLE_CMP): Enabled.

  * src/vm/jit/m68k/codegen.c (ICMD_FCMPL): Implemented.
  (ICMD_DCMPL): Likewise.
  (ICMD_FCMPG): Likewise.
  (ICMD_DCMPG): Likewise.
  (ICMD_FMUL): Likewise.
  (ICMD_DMUL): Likewise.
  (ICMD_FDIV): Likewise.
  (ICMD_DDIV): Likewise.
  (ICMD_FADD): Likewise.
  (ICMD_DADD): Likewise.
  (ICMD_FSUB): Likewise.
  (ICMD_DSUB): Likewise.
  (ICMD_F2D): Likewise.
  (ICMD_D2F): Likewise.
  (ICMD_BUILTIN): Handle float return values.
  (codegen_emit_stub_native): Handle float values.

  * src/vm/jit/m68k/codegen.h (M_FCMP): Added.
  (M_BFEQ): Added.
  (M_BFLT): Added.
  (M_BFGT): Added.
  (M_BFUN): Added.
  (M_FADD): Added.
  (M_DADD): Added.
  (M_FSUB): Added.
  (M_DSUB): Added.
  (M_FMUL): Added.
  (M_DMUL): Added.
  (M_FDIV): Added.
  (M_DDIV): Added.
  (M_D2F): Added.
  (M_F2D): Added.
........
  r7878 | twisti | 2007-05-07 15:31:18 +0200 (Mon, 07 May 2007) | 3 lines

  * src/native/vm/java_lang_Thread.h (threads/native/threads.h):
  Removed.
........
  r7879 | twisti | 2007-05-07 15:45:19 +0200 (Mon, 07 May 2007) | 8 lines

  * configure.ac (AC_CHECK_HEADERS): Added sys/mman.h, sys/resource.h.
  (AC_CHECK_FUNCS): Added getrusage, mprotect.

  * src/vmcore/statistics.c [HAVE_SYS_TIME_H] (sys/time.h): Include
  conditionally.
  [HAVE_SYS_RESOURCE_H] (sys/resource.h): Likewise.
  (getcputime) [!HAVE_GETRUSAGE]: Return 0.
........
  r7880 | twisti | 2007-05-07 16:13:45 +0200 (Mon, 07 May 2007) | 6 lines

  * src/vm/jit/mips/codegen.c (codegen_emit): Use
  CODEGEN_CRITICAL_SECTION_* macros.

  * src/vm/jit/mips/linux/md-os.c (thread_restartcriticalsection):
  Renamed to md_critical_section_restart.
........
  r7881 | twisti | 2007-05-07 16:16:54 +0200 (Mon, 07 May 2007) | 7 lines

  * configure.ac (AC_CONFIG_FILES): Added
  src/vm/jit/mips/uclinux/Makefile.

  * src/vm/jit/mips/uclinux: New directory.
  * src/vm/jit/mips/uclinux/md-os.c: New file.
  * src/vm/jit/mips/uclinux/Makefile.am: Likewise.
........
  r7882 | tbfg | 2007-05-07 16:23:32 +0200 (Mon, 07 May 2007) | 8 lines

  * tests/exception_restore_registers.java: New test, tests if
  variables get restored in case of exceptions.

  * tests/exception_restore_registers.output: New file, expected
  output.

  * tests/Makefile.am: Added exception_restore_registers target.
........
  r7883 | tbfg | 2007-05-07 16:26:41 +0200 (Mon, 07 May 2007) | 11 lines

  * src/vm/jit/m68k/codegen.c (ICMD_FNEG): Implemented.
  (ICMD_DNEG): Implemented.

  * src/vm/jit/m68k/asmpart.S (asm_call_jit_compiler):
  Store volatile floatregisters.
  (asm_patcher_wrapper): Likewise.
  (asm_handle_exception): Restore float registers.

  * src/vm/jit/m68k/codegen.h (M_FNEG): Added.
  (M_DNEG): Added.
........
  r7884 | ajordan | 2007-05-07 17:07:03 +0200 (Mon, 07 May 2007) | 4 lines

  * src/vm/jit/sparc64/codegen.c (codegen_emit): Adapted to critical section renames.
  * src/vm/jit/sparc64/linux/md-os.c: Likewise.
........
  r7885 | twisti | 2007-05-07 23:29:55 +0200 (Mon, 07 May 2007) | 7 lines

  * src/threads/native/threads.c (mainthreadobj): Removed.
  * src/threads/native/threads.h (mainthreadobj): Likewise.

  * src/vm/jit/optimizing/profile.c (threads/native/threads.h):
  Likewise.
  (profile_thread): Rewritten thread iteration.
........
  r7886 | twisti | 2007-05-07 23:34:01 +0200 (Mon, 07 May 2007) | 6 lines

  * src/vm/jit/alpha/codegen.c (codegen_emit): Use
  CODEGEN_CRITICAL_SECTION_* macros.

  * src/vm/jit/alpha/linux/md-os.c (thread_restartcriticalsection):
  Renamed to md_critical_section_restart.
........
  r7887 | twisti | 2007-05-08 15:03:07 +0200 (Tue, 08 May 2007) | 6 lines

  * src/configure.ac (AC_CHECK_HEADERS): Added string.h.
  (AC_CHECK_FUNCS): Added strdup.

  * src/src/vmcore/options.c [HAVE_STRING_H] (string.h): Added #ifdef.
  (options_get) HAVE_STRDUP]: Added.
........
  r7888 | tbfg | 2007-05-09 10:36:16 +0200 (Wed, 09 May 2007) | 7 lines

  * src/vm/jit/powerpc64/linux/md-os.c (thread_restartcriticalsection):
  Renamed to md_critical_section_restart.

  * src/vm/jit/powerpc64/codegen.c (codegen_emit): Use
  CODEGEN_CRITICAL_SECTION_* macros.
........
  r7889 | tbfg | 2007-05-09 10:52:11 +0200 (Wed, 09 May 2007) | 36 lines

  * src/vm/jit/m68k/linux/md-abi.h (LA_SIZE_IN_POINTERS): Defined 0.
  (PA_SIZE_IN_POINTERS): Removed.
  (PA_SIZE): Removed.
  (LA_LR_OFFSET): Removed.
  (LA_SIZE_ALIGNED): Removed.

  * src/vm/jit/m68k/emit.c (emit_verbosecall_enter): Removed
  linking instructions, save only used registers.

  (emit_verbosecall_exit): Likewise.

  * src/vm/jit/m68k/arch.h (SUPPORT_FLOAT): Depends on
  configure option ENABLE_SOFTFLOAT.

  * src/vm/jit/m68k/codegen.c (codegen_emit): Use M_FSTORE/M_FLOAT
  to save/restore float registers without converting any values.
  Fixed offset of IsSync.

  (codegen_emit_stub_native): Move floating point return values
  into floating point registers.

  * src/vm/jit/m68k/asmpart.S (asm_vm_call_method): Save/restore
  floating point registers.

  (asm_call_jit_compiler): Save/restore volatile floating point
  registers.

  (asm_patcher_wrapper): Likewise.

  (asm_handle_exception): Use fmovemd instructions to restore
  floatng point registers without converting.

  * src/vm/jit/m68k/codegen.h (M_FSTORE): Added.
  (M_FLOAT): Added.
........
  r7890 | twisti | 2007-05-09 18:05:58 +0200 (Wed, 09 May 2007) | 7 lines

  * src/lib/Makefile.am (VM_JAVA_FILES): Renamed vm/reference/ to gnu/.

  * src/lib/vm: Removed.
  * src/lib/gnu: Added.
  * src/lib/gnu/java: Likewise.
  * src/lib/gnu/gnu: Likewise.
........
  r7891 | tbfg | 2007-05-09 18:37:20 +0200 (Wed, 09 May 2007) | 5 lines

  * src/vm/jit/powerpc64/codegen.c (ICMD_CHECKCAST): Use
  branch_label_* instead of harcoded jump offsets.

  (ICMD_INSTANCEOF): Likewise.
........
  r7892 | tbfg | 2007-05-10 14:50:45 +0200 (Thu, 10 May 2007) | 3 lines

  * src/vm/jit/powerpc64/patcher.c (patcher_checkcast_interface):
  Fixed not flushing all bytes written.
........
  r7893 | twisti | 2007-05-10 15:27:29 +0200 (Thu, 10 May 2007) | 7 lines

  * src/threads/threads-common.c (threads_thread_start_internal): Set
  thread-flags.
  (threads_thread_start): Likewise.

  * src/threads/native/threads.c (threads_startup_thread): Don't set
  thread-flags.
........
  r7894 | twisti | 2007-05-10 16:04:05 +0200 (Thu, 10 May 2007) | 19 lines

  * src/vmcore/options.c (opt_verbosethreads): Added.
  * src/vmcore/options.h (opt_verbosethreads): Likewise.

  * src/vm/vm.c (XXusage): Added -verbose:threads.
  (vm_create): Likewise.

  * src/threads/threads-common.c (threads_create_thread): Renamed
  variable thread to t.
  (threads_thread_print_info): New function.
  (threads_dump): Use threads_thread_print_info.

  * src/threads/threads-common.h (threads_thread_print_info): Added.

  * src/threads/native/threads.c (threads_init) [!NDEBUG]: Added
  -verbose:threads debug-output.
  (threads_startup_thread): Likewise.
  (threads_attach_current_thread): Likewise.
  (threads_detach_thread): Likewise.
........
  r7895 | tbfg | 2007-05-10 16:34:05 +0200 (Thu, 10 May 2007) | 9 lines

  * src/vm/jit/m68k/emit.c (emit_verbosecall_enter): Make SOFTFLOAT clean.
  (emit_verbosecall_exit): Likewise.

  * src/vm/jit/m68k/asmpart.S (asm_vm_call_method): Mark comment about
  gcc abi wiredness.

  * src/vm/jit/m68k/codegen.h (M_D2F): Fixed.
  (M_F2D): Fixed.
........
  r7896 | tbfg | 2007-05-11 19:15:08 +0200 (Fri, 11 May 2007) | 9 lines

  * src/vm/jit/m68k/codegen.c (codegen_emit): Fix stackframesize
  allocation in not synchronized methods which call a builtin returning
  a double. Merged with ENABLE_THREADS case.
  Added code to copy interface registers.

  * src/vm/jit/m68k/asmpart.S (asm_handle_exception):
  Save temporary registers, dunno if really needed, but its a
  slow path anyways.
........
  r7897 | twisti | 2007-05-11 20:23:27 +0200 (Fri, 11 May 2007) | 2 lines

  * src/threads/native/threads.h (threadobject): Removed next and prev.
........
  r7898 | tbfg | 2007-05-11 20:58:24 +0200 (Fri, 11 May 2007) | 12 lines

  * src/vm/jit/m68k/linux/md-abi.h (ADR_SAV_CNT): Increased by one (%fp).
  (ADR_RES_CNT): Decreased by one (%fp).

  * src/vm/jit/m68k/linux/md-abi.c (nregdescadr): Declared %fp a
  REG_SAV.

  * src/vm/jit/m68k/arch.h (SUPPORT_DIVISION): Defined.

  * src/vm/jit/m68k/asmpart.S (asm_handle_exception): Additional
  logic to restore %fp when unwinding the stack.
........
  r7899 | twisti | 2007-05-11 21:31:04 +0200 (Fri, 11 May 2007) | 37 lines

  * src/threads/threads-common.c (threads_create_thread): Removed
  lock_init_execution_env.

  * src/threads/lock-common.h (lock_init_execution_env): Removed.
  (lock_record_free_pools): Likewise.

  * src/threads/native/threads.h (threadobject): Removed ee.

  * src/threads/native/lock.c (vm/finalizer.h): Added.
  [ENABLE_GC_BOEHM] (mm/boehm-gc/include/gc.h): Likewise.
  (lock_global_pool): Removed.
  (lock_global_pool_lock): Likewise.
  (lock_init): Don't initialize lock_global_pool_lock.
  (lock_record_init): Removed.
  (lock_init_execution_env): Likewise.
  (lock_record_alloc_new_pool): Likewise.
  (lock_record_alloc_pool): Likewise.
  (lock_record_free_pools): Likewise.
  (lock_record_alloc): Likewise.
  (lock_record_recycle): Likewise.
  (lock_hashtable_get_lock_record): Renamed to lock_hashtable_get.
  (lock_record_new): New function.
  (lock_record_free): Likewise.
  (lock_hashtable_remove): Likewise.
  [ENABLE_GC_BOEHM] (lock_record_finalizer): Likewise.

  * src/threads/native/lock.h (lock_execution_env_t): Removed.
  (lock_record_pool_header_t): Likewise.
  (lock_record_pool_t): Likewise.
  (lock_record_t): Renamed obj to object, removed nextfree.
  [ENABLE_JVMTI] (lock_global_pool_lock, lock_global_pool): Removed.

  * src/vmcore/statistics.c (size_lock_record_pool): Renamed to
  size_lock_record.
  (statistics_print_memory_usage): Likewise.
  * src/vmcore/statistics.h: Likewise.
........
  r7900 | twisti | 2007-05-11 22:35:16 +0200 (Fri, 11 May 2007) | 6 lines

  * src/vm/jit/arm/codegen.c (codegen_emit): Use
  CODEGEN_CRITICAL_SECTION_* macros.

  * src/vm/jit/arm/linux/md-os.c (thread_restartcriticalsection):
  Renamed to md_critical_section_restart.
........
  r7901 | twisti | 2007-05-11 23:18:51 +0200 (Fri, 11 May 2007) | 3 lines

  * src/vmcore/statistics.c (statistics_print_memory_usage): Use
  log_println instead of printf.
........
  r7902 | twisti | 2007-05-12 00:33:15 +0200 (Sat, 12 May 2007) | 10 lines

  * configure.ac (AC_CHECK_HEADERS): Added time.h.
  (AC_CHECK_FUNCS): Added localtime, localtime_r, time.

  * src/vmcore/statistics.c [HAVE_TIME_H] (time.h): Added.
  (statistics_print_date): New function.
  * src/vmcore/statistics.h (statistics_print_date): Added.

  * src/mm/memory.c (memory_thread) [ENABLE_STATISTICS]: Call
  statistics_print_date.
........
  r7903 | tbfg | 2007-05-14 13:15:33 +0200 (Mon, 14 May 2007) | 15 lines

  * src/vm/jit/dseg.h (dseg_adddata): Removed warning due to typo.

  * src/vm/jit/m68k/arch.h (SUPPORT_LONG) Defined.
  (SUPPORT_LONG_ADD): Defined.
  (SUPPORT_CONST_LOGICAL): Defined.

  * src/vm/jit/m68k/codegen.c (ICMD_LADD): Implemented.
  (ICMD_LADDCONST): Implemented.
  (ICMD_LSUB): Implemented.
  (ICMD_LSUBCONST): Implemented.
  (ICMD_LNEG): Implemented.

  * src/vm/jit/m68k/codegen.h (M_ISUBX): Added.
  (M_INEGX): Added.
........
  r7904 | twisti | 2007-05-14 15:29:32 +0200 (Mon, 14 May 2007) | 26 lines

  * src/threads/threads-common.c (threads_create_thread): Renamed to
  threads_thread_new.
  (threads_thread_free): New function.
  (threads_preinit): Renamed threads_create_thread to
  threads_thread_new.
  (threads_thread_start_internal): Likewise.
  (threads_thread_start): Likewise.

  * src/threads/threads-common.h (threads_create_thread): Renamed to
  threads_thread_new.
  (threads_thread_free): Added.
  (threads_init_threadobject): Renamed to threads_impl_thread_new.
  (threads_impl_thread_free): Added.

  * src/threads/native/threads.c (toolbox/avl.h): Removed.
  (threadattr): Likewise.
  (threads_init_threadobject): Renamed to threads_impl_thread_new.
  (threads_impl_thread_free): New function.
  (threads_init): Use local pthread_attr_t.
  (threads_impl_thread_start): Use pthread_attr_setdetachstate (fixes
  memory leak), check more return values of pthread-calls.
  (threads_attach_current_thread): Renamed threads_create_thread to
  threads_thread_new.
  (threads_detach_thread): Removed lock-record pools comment, call
  threads_thread_free.
........
  r7905 | twisti | 2007-05-14 16:11:33 +0200 (Mon, 14 May 2007) | 4 lines

  * src/toolbox/list.c (list_add_first): Call list_add_first_unsynced.
  (list_add_first_unsynced): New function.
  * src/toolbox/list.h (list_add_first_unsynced): Added.
........
  r7906 | twisti | 2007-05-14 19:25:33 +0200 (Mon, 14 May 2007) | 2 lines

  * src/native/native.c (native_class_getdeclaredannotations): Removed.
........
  r7907 | tbfg | 2007-05-15 11:25:27 +0200 (Tue, 15 May 2007) | 2 lines

  * builtin.c (builtin_ldiv): Needed when DISABLE_GC.
........
  r7908 | christian | 2007-05-15 11:55:17 +0200 (Tue, 15 May 2007) | 37 lines

  * src/vm/jit/codegen-common.c: (codegen_emit_phi_moves): Added. (Former
  codegen_insert_phi_moves from codegen.c)

  * src/vm/jit/codegen-common.h: Function prototype for codegen_emit_phi_moves
  added.

  * src/vm/jit/optimizing/lsra.c: Adapted to new instruction format and unified
  variables.

  * src/vm/jit/optimizing/lsra.h: Likewise.

  * src/vm/jit/optimizing/ssa.c: Likewise.

  * src/vm/jit/optimizing/ssa.h: Likewise.

  * src/vm/jit/optimizing/graph.c: Likewise.

  * src/vm/jit/optimizing/graph.h: Likewise.

  * src/vm/jit/optimizing/dominators.c: Likewise.

  * src/vm/jit/optimizing/lifetimes.c: Likewise and changed lifetime anaylsis to
  a worklist algorithmus.

  * src/vm/jit/optimizing/lifetimes.h: Likewise.

  * src/vm/jit/i386/codegen.c: (codegen_insert_phi_moves): Moved to
  src/vm/jit/codegen-common.c codegen_emit_phi_moves
  (codegen_emit): Necessary Adaptions for SSA.

  * src/toolbox/worklist.c: (wl_reset): Added.

  * src/toolbox/worklist.h: Function Prototype for wl_reset added.

  * src/vm/jit/stack.c: Removed old SSA specific code.
........
  r7909 | tbfg | 2007-05-15 12:32:16 +0200 (Tue, 15 May 2007) | 12 lines

  * src/vm/jit/powerpc64/patcher.c
  (patcher_resolve_classref_to_classinfo): Patch back original code.

  (patcher_resolve_classref_to_vftbl): Likewise.
  (patcher_resolve_classref_to_flags): Likewise.

  * src/vm/jit/powerpc64/asmpart.S (DARWIN): Removed all darwin
  ifdefed code for readability. Needs to be ported carefully anyways.

  (asm_vm_call_method): When handling arguments treat address type as
  long.
........
  r7910 | twisti | 2007-05-16 10:02:52 +0200 (Wed, 16 May 2007) | 59 lines

  * src/native/native.c: Removed all native-includes.
  (dummynativetable): Removed.
  (mainhandle): Likewise.
  (native_init): Don't dlopen libjvm, initialize the native-methods
  tree.
  (native_tree_native_methods_comparator): New function.
  (native_method_symbol): Likewise.
  (native_method_find): Likewise.
  (native_resolve_function): Use native-methods tree for internal native
  methods.

  * src/native/native.h (native/jni.h): Added.
  (NATIVE_METHODS_COUNT): Defined.
  (native_methods_node_t): New structure.
  (native_method_register): Added.

  * src/native/vm/nativevm.c: New file.
  * src/native/vm/nativevm.h: Likewise.

  * src/native/vm/Makefile.am (libnativevm_la_SOURCES): Added
  nativevm.[ch].

  * src/native/vm/cldc1.1/com_sun_cldc_io_ResourceInputStream.c,
  src/native/vm/cldc1.1/com_sun_cldc_io_j2me_socket_Protocol.c,
  src/native/vm/cldc1.1/com_sun_cldchi_io_ConsoleOutputStream.c,
  src/native/vm/cldc1.1/com_sun_cldchi_jvm_JVM.c,
  src/native/vm/cldc1.1/java_lang_Class.c,
  src/native/vm/cldc1.1/java_lang_Double.c,
  src/native/vm/cldc1.1/java_lang_Float.c,
  src/native/vm/cldc1.1/java_lang_Math.c,
  src/native/vm/cldc1.1/java_lang_Object.c,
  src/native/vm/cldc1.1/java_lang_Runtime.c,
  src/native/vm/cldc1.1/java_lang_String.c,
  src/native/vm/cldc1.1/java_lang_System.c,
  src/native/vm/cldc1.1/java_lang_Thread.c,
  src/native/vm/cldc1.1/java_lang_Throwable.c,
  src/native/vm/gnu/gnu_classpath_VMStackWalker.c,
  src/native/vm/gnu/gnu_classpath_VMSystemProperties.c,
  src/native/vm/gnu/gnu_java_lang_management_VMClassLoadingMXBeanImpl.c,
  src/native/vm/gnu/gnu_java_lang_management_VMMemoryMXBeanImpl.c,
  src/native/vm/gnu/gnu_java_lang_management_VMRuntimeMXBeanImpl.c,
  src/native/vm/gnu/gnu_java_lang_management_VMThreadMXBeanImpl.c,
  src/native/vm/gnu/java_lang_VMClass.c,
  src/native/vm/gnu/java_lang_VMClassLoader.c,
  src/native/vm/gnu/java_lang_VMObject.c,
  src/native/vm/gnu/java_lang_VMRuntime.c,
  src/native/vm/gnu/java_lang_VMString.c,
  src/native/vm/gnu/java_lang_VMSystem.c,
  src/native/vm/gnu/java_lang_VMThread.c,
  src/native/vm/gnu/java_lang_VMThrowable.c,
  src/native/vm/gnu/java_lang_management_VMManagementFactory.c,
  src/native/vm/gnu/java_lang_reflect_Constructor.c,
  src/native/vm/gnu/java_lang_reflect_Field.c,
  src/native/vm/gnu/java_lang_reflect_Method.c,
  src/native/vm/gnu/java_lang_reflect_VMProxy.c,
  src/native/vm/gnu/java_security_VMAccessController.c,
  src/native/vm/gnu/sun_misc_Unsafe.c: Added methods table and init
  function to register the native methods.
........
  r7911 | twisti | 2007-05-16 11:01:10 +0200 (Wed, 16 May 2007) | 8 lines

  * src/native/native.c (native_library_open): New function.
  (native_hashtable_library_add): Renamed to native_library_add.
  (native_hashtable_library_find): Renamed to native_library_find.
  * src/native/native.h: Likewise.

  * src/native/vm/java_lang_Runtime.c (loadLibrary): Use
  native_library_open.
........
  r7912 | twisti | 2007-05-18 15:12:09 +0200 (Fri, 18 May 2007) | 14 lines

  * src/native/native.c (native_tree_native_methods_comparator): Compare
  classname, name and descriptor.
  (native_method_register): Set all structure members.
  (native_method_find): Changed argument-type to methodinfo.
  (native_resolve_function): Likewise.

  * src/native/native.h (native_methods_node_t): Added classname and
  descriptor, renamed method to function.

  * src/native/vm/gnu/java_lang_VMClass.c: Updated wrong signatures.
  * src/native/vm/gnu/java_lang_VMObject.c: Likewise.
  * src/native/vm/gnu/java_lang_VMThread.c: Likewise.
  * src/native/vm/gnu/java_lang_reflect_Constructor.c: Likewise.
........
  r7913 | twisti | 2007-05-18 15:45:54 +0200 (Fri, 18 May 2007) | 6 lines

  * src/native/vm/cldc1.1/java_lang_String.c (methods): Removed
  quick-hack.

  * src/native/vm/cldc1.1/java_lang_Throwable.c (fillInStackTrace):
  Fixed signature.
........
  r7914 | twisti | 2007-05-18 16:17:34 +0200 (Fri, 18 May 2007) | 4 lines

  * src/threads/threads-common.c (threads_thread_get_state): Fixed
  compiler warning.
  (threads_thread_is_alive): Likewise.
........
  r7915 | twisti | 2007-05-18 16:22:19 +0200 (Fri, 18 May 2007) | 2 lines

  * src/toolbox/list.c (list_create): Use LOCK_INIT_OBJECT_LOCK-macro.
........
  r7916 | twisti | 2007-05-18 16:24:21 +0200 (Fri, 18 May 2007) | 10 lines

  * src/vmcore/statistics.c (count_nstub_len): Renamed to
  size_stub_native.
  (statistics_print_memory_usage): Likewise.

  * src/vmcore/statistics.h: Likewise.

  * src/vm/jit/codegen-common.c (codegen_generate_stub_native):
  Likewise, moved statistics-calculation after codegen_finish(), so
  actually something is counted.
........
  r7917 | twisti | 2007-05-18 17:05:32 +0200 (Fri, 18 May 2007) | 3 lines

  * src/native/vm/cldc1.1/java_lang_Object.c (getClass): Fixed
  signature.
........

--HG--
branch : exact-gc

17 years ago* src/vm/jit/replace.c (replace_find_replacement_point_for_pc): Added assertion.
michi [Mon, 23 Apr 2007 21:36:02 +0000 (21:36 +0000)]
* src/vm/jit/replace.c (replace_find_replacement_point_for_pc): Added assertion.
(replace_recover_source_state) [ENABLE_GC_CACAO]: Now recovers native frames.

--HG--
branch : exact-gc

17 years agoMerged revisions 7766-7796 via svnmerge from
michi [Mon, 23 Apr 2007 20:12:39 +0000 (20:12 +0000)]
Merged revisions 7766-7796 via svnmerge from
svn+ssh://michi@c1.complang.tuwien.ac.at/ahome/cacao/svn/cacao/trunk

........
  r7769 | tbfg | 2007-04-19 17:01:49 +0200 (Thu, 19 Apr 2007) | 16 lines

  * src/vm/jit/m68k/linux/md-abi.c (abi_registers_integer_saved): Fixed.
  (abi_registers_float_saved): Fixed.

  * src/vm/jit/m68k/emit.c (emit_classcast_check): Fixed.

  * src/vm/jit/m68k/codegen.c (codegen_emit): Temporary hacked
  a field for saved adr registers until real patch will be done.
  (ICMD_INSTANCEOF): Fixed.
  (ICMD_CHECKCAST): Fixed.
  (codegen_emit_stub_compiler): Removed useless code.

  * src/vm/jit/m68k/asmpart.S (L_asm_handle_exception_not_catched):
  Implemented.

  * src/vm/jit/m68k/codegen.h (M_BLS): Added.
........
  r7770 | twisti | 2007-04-19 21:39:06 +0200 (Thu, 19 Apr 2007) | 20 lines

  * src/vm/jit/powerpc/darwin/md-abi.h (REG_FA0, REG_FA1): Added.
  (REG_A0_A1_PACKED, REG_A2_A3_PACKED): Likewise.

  * src/vm/jit/powerpc/darwin/md-os.c [ENABLE_THREADS]
  (threads/native/threads.h): Added.
  (md_signal_handler_sigsegv): Changed for hardware-exceptions.
  (md_signal_handler_sigtrap): New function.

  * src/vm/jit/powerpc/darwin/md-abi.c (vm/descriptor.h): Changed to
  vmcore/descriptor.h.
  (regs): Renamed to abi_registers_integer_name.
  (abi_registers_integer_argument): Added.
  (abi_registers_integer_saved): Likewise.
  (abi_registers_integer_temporary): Likewise.
  (abi_registers_float_argument): Likewise.
  (abi_registers_float_saved): Likewise.
  (abi_registers_float_temporary): Likewise.
  (md_param_alloc): Use new register arrays.
  (md_param_alloc_native): New function.
........
  r7771 | twisti | 2007-04-19 21:41:08 +0200 (Thu, 19 Apr 2007) | 5 lines

  * src/cacaoh/dummy.c (exceptions_print_current_exception): Added
  abort.
  (exceptions_throw_outofmemoryerror): Removed.
  (exceptions_throw_illegalaccessexception): Likewise.
........
  r7772 | twisti | 2007-04-19 21:43:39 +0200 (Thu, 19 Apr 2007) | 5 lines

  * src/vm/signal.c (assert.h): Added.
  (vm/exceptions.h): Likewise.
  [ENABLE_STATISTICS] (vmcore/statistics.h): Likewise.
  (signal_init): Added hardware-exception assert.
........
  r7773 | twisti | 2007-04-19 21:44:54 +0200 (Thu, 19 Apr 2007) | 3 lines

  * src/vm/exceptions.h: Added a comment about the hardware-exception
  assert in signal_init.
........
  r7774 | twisti | 2007-04-19 21:58:08 +0200 (Thu, 19 Apr 2007) | 2 lines

  * configure.ac (AC_INIT): Changed version to 0.98rc.
........
  r7775 | twisti | 2007-04-19 21:59:17 +0200 (Thu, 19 Apr 2007) | 3 lines

  * tests/regression/resolving/Makefile.am (check): Added missing
  JAVAFLAGS.
........
  r7776 | twisti | 2007-04-19 23:31:47 +0200 (Thu, 19 Apr 2007) | 3 lines

  * src/vm/signal.c (signal_thread): Check return value of sig*
  functions.
........
  r7777 | twisti | 2007-04-20 13:21:38 +0200 (Fri, 20 Apr 2007) | 2 lines

  * src/threads/threads-common.h (native/jni.h): Added.
........
  r7778 | twisti | 2007-04-20 14:40:05 +0200 (Fri, 20 Apr 2007) | 3 lines

  * src/vm/jit/codegen-common.c (codegen_finish_native_call): #ifdef lrt
  and plrt. Don't set lrt, we don't need it.
........
  r7779 | twisti | 2007-04-20 14:48:55 +0200 (Fri, 20 Apr 2007) | 2 lines

  * src/vm/vm.c (vm_create): Print unknown -verbose option.
........
  r7780 | twisti | 2007-04-20 14:53:45 +0200 (Fri, 20 Apr 2007) | 2 lines

  * src/vm/vm.c (version): Print libjvm.so path.
........
  r7781 | twisti | 2007-04-20 15:06:45 +0200 (Fri, 20 Apr 2007) | 4 lines

  * src/native/vm/cldc1.1/com_sun_cldchi_jvm_JVM.c (loadLibrary): Fixed
  string-internal warnings.
  * src/native/vm/cldc1.1/java_lang_System.c (getProperty0): Likewise.
........
  r7782 | twisti | 2007-04-20 15:09:36 +0200 (Fri, 20 Apr 2007) | 2 lines

  * src/vm/vm.c: Changed header order to prevent a warning.
........
  r7783 | twisti | 2007-04-20 15:28:27 +0200 (Fri, 20 Apr 2007) | 16 lines

  * src/toolbox/list.h (listnode): Renamed to listnode_t.
  (list): Renamed to list_t.

  * src/toolbox/list.c,
  src/vm/jit/codegen-common.c,
  src/vm/jit/codegen-common.h,
  src/vm/jit/emit-common.c,
  src/vm/jit/optimizing/profile.c,
  src/vm/jit/optimizing/recompile.c,
  src/vm/jit/optimizing/recompile.h,
  src/vm/properties.c,
  src/vmcore/class.c,
  src/vmcore/class.h,
  src/vmcore/suck.c,
  src/vmcore/suck.h: Likewise.
........
  r7784 | twisti | 2007-04-20 15:51:41 +0200 (Fri, 20 Apr 2007) | 9 lines

  * src/toolbox/list.h (list_t): Added size.

  * src/toolbox/list.c (list_create): Initialize size.
  (list_create_dump): Likewise.
  (list_add_first): Increase size.
  (list_add_last_unsynced): Likewise.
  (list_add_before): Likewise.
  (list_remove_unsynced): Decrease size.
........
  r7785 | edwin | 2007-04-21 12:55:30 +0200 (Sat, 21 Apr 2007) | 6 lines

  * src/vm/jit/replace.c, src/vm/jit/intrp/asmpart.c,
  src/vm/jit/codegen-common.c, src/vm/builtin.c, src/vm/exceptions.c,
  src/vm/vm.c, src/threads/native/lock.c (ENABLE_VMLOG): Applied the
  vmlog patch and wrapped all inserted code with
  #if defined(ENABLE_VMLOG).
........
  r7786 | edwin | 2007-04-21 14:37:47 +0200 (Sat, 21 Apr 2007) | 6 lines

  * configure.ac (--enable-vmlog): New configure option.

  * src/vm/jit/Makefile.am, src/vm/Makefile.am,
  src/threads/native/Makefile.am (AM_CPPFLAGS): Added -I for vmlog
  includes.
........
  r7787 | edwin | 2007-04-21 14:48:14 +0200 (Sat, 21 Apr 2007) | 3 lines

  * contrib/vmlog/vmlog_cacao.patch: Removed. It is no longer needed.
  * contrib/vmlog/README: Updated for CACAO's --enable-vmlog.
........
  r7788 | edwin | 2007-04-21 18:26:34 +0200 (Sat, 21 Apr 2007) | 2 lines

  * contrib/vmlog/Makefile: Renamed to maintain.mk.
........
  r7789 | edwin | 2007-04-21 18:42:52 +0200 (Sat, 21 Apr 2007) | 4 lines

  * configure.ac: Generate vmlog Makefiles.
  * contrib/Makefile.am: Added vmlog to SUBDIRS.
  * contrib/vmlog/Makefile.am, contrib/vmlog/t/Makefile.am: New files.
........
  r7790 | edwin | 2007-04-21 20:56:43 +0200 (Sat, 21 Apr 2007) | 3 lines

  * tests/regression/resolving/Makefile.am: Added "-classpath ." to javac
  options so the tests work with ecj out-of-the-box.
........
  r7791 | ajordan | 2007-04-22 17:55:51 +0200 (Sun, 22 Apr 2007) | 13 lines

  * src/vm/jit/sparc64/arch.h: Properly activated all FP features SPARC64 supports in hardware.

  * src/vm/jit/sparc64/asmpart.S: Added functions to read/write the FP state register.
  * src/vm/jit/sparc64/md.c: Added prototypes here.

  * src/vm/jit/sparc64/codegen.h: Added 'branch on FP condition codes' macros.

  * src/vm/jit/sparc64/emit.c (emit_verbosecall_enter): Fixed FP argument passing.

  * src/vm/jit/sparc64/codegen.c (codegen_emit): Fixed FP conversion functions to (a) use unique slots in the data segment (doh!),
  (b) catch the case where NaN is converted to an integer value. (JVMS and SPARC do not inherently agree here).
........
  r7792 | tbfg | 2007-04-22 22:02:05 +0200 (Sun, 22 Apr 2007) | 31 lines

  * src/vm/jit/m68k/linux/md-os.c (md_signal_handler_sigsegv): Implemented.
  (md_signal_handler_sigill): More exceptions handled. Some fixes.

  * src/vm/jit/m68k/linux/md-os.h
  (M68K_EXCEPTION_HARDWARE_NULLPOINTER): Used instead of
  EXCEPTION_HARDWARE_NULLPOINTER, because a trap with value #0 will
  not be taken.

  * src/vm/jit/m68k/emit.c (emit_load_[low|high]): Fixed assertion.
  (emit_arrayindexoutofbounds_check): Implemented.
  (emit_nullpointer_check): Implemented.
  (emit_exception_check_ireg): Renamed emit_exception_check.
  (emit_exception_check_areg): Disabled code.
  (emit_exception_check): Implemented.

  * src/vm/jit/m68k/codegen.c (ICMD_LALOAD): Implemented.
  (ICMD_FALOAD): Implemented.
  (ICMD_DALOAD): Implemented.
  (ICMD_LASTORE): Implemented.
  (ICMD_FASTORE): Implemented.
  (ICMD_DASTORE): Implemented.
  (ICMD_BUILTIN): Exception check enabled.
  (ICMD_MULTIANEWARRAY): Implemented.
  (codegen_emit_stub_native): Exception check implemented.

  * src/vm/jit/m68k/asmpart.S (asm_handle_nat_exception): Symbol
  exported and implemented.

  * src/vm/jit/stacktrace.c (stacktrace_create_extern_stackframe): More
  m68k fixes.
........
  r7793 | twisti | 2007-04-23 16:29:48 +0200 (Mon, 23 Apr 2007) | 3 lines

  * src/vm/signal.c (signal_thread): Don't check for an error on
  sigwait (revisit this patch with the exact-GC).
........
  r7795 | twisti | 2007-04-23 22:03:38 +0200 (Mon, 23 Apr 2007) | 2 lines

  * src/vm/builtin.h (md-abi.h): Added.
........
  r7796 | twisti | 2007-04-23 22:04:44 +0200 (Mon, 23 Apr 2007) | 4 lines

  * configure.ac: Removed all classpath related checks and made
  functions for them.
  * m4/classpath.m4: New file.
........

--HG--
branch : exact-gc

17 years ago* src/vm/jit/x86_64/codegen.c (codegen_emit): Builtin stubs are called
michi [Mon, 23 Apr 2007 19:57:45 +0000 (19:57 +0000)]
* src/vm/jit/x86_64/codegen.c (codegen_emit): Builtin stubs are called
for ICMD_BUILTIN if available.

* src/vm/jit/i386/codegen.c (codegen_emit): Likewise.
(codegen_emit_stub_builtin): Adapted to new signature and a bugfix.

--HG--
branch : exact-gc

17 years ago* src/mm/cacao-gc/final.c: Cleaned up debug code.
michi [Thu, 19 Apr 2007 13:38:51 +0000 (13:38 +0000)]
* src/mm/cacao-gc/final.c: Cleaned up debug code.
* src/mm/cacao-gc/gc.c: Likewise.
* src/mm/cacao-gc/mark.c: Likewise.

--HG--
branch : exact-gc

17 years ago* src/mm/cacao-gc/heap.h: Removed finalizer header flag.
michi [Thu, 19 Apr 2007 13:36:04 +0000 (13:36 +0000)]
* src/mm/cacao-gc/heap.h: Removed finalizer header flag.

* src/mm/cacao-gc/heap.c (heap_alloc): Adapted to above changes.
(heap_print_object): Handle invalid heap references correctly.

--HG--
branch : exact-gc

17 years agoMerged revisions 7732-7765 via svnmerge from
michi [Thu, 19 Apr 2007 13:24:48 +0000 (13:24 +0000)]
Merged revisions 7732-7765 via svnmerge from
svn+ssh://michi@c1.complang.tuwien.ac.at/ahome/cacao/svn/cacao/trunk

........
  r7733 | twisti | 2007-04-17 00:56:37 +0200 (Tue, 17 Apr 2007) | 3 lines

  * src/vm/jit/x86_64/codegen.c (codegen_emit): Made argument passing
  cleaner.
........
  r7734 | twisti | 2007-04-17 13:15:15 +0200 (Tue, 17 Apr 2007) | 3 lines

  * src/vm/jit/x86_64/codegen.c (codegen_emit_stub_native): Use simpler
  code to save and restore argument registers.
........
  r7735 | edwin | 2007-04-17 20:47:50 +0200 (Tue, 17 Apr 2007) | 3 lines

  * src/vm/jit/parse.c (parse): Small cleanup of local variable renaming.
  (No code changes.)
........
  r7736 | edwin | 2007-04-17 21:24:05 +0200 (Tue, 17 Apr 2007) | 5 lines

  * src/vm/jit/stack.c (stack_analyse): The javalocals array can have
  negative values != UNUSED (these values < UNUSED represent
  returnAddresses of local subroutines). Thus >= 0 must be used to
  check for normal indices.
........
  r7737 | edwin | 2007-04-17 21:57:55 +0200 (Tue, 17 Apr 2007) | 2 lines

  * src/vm/jit/stack.c (stack_javalocals_store): Added an assert.
........
  r7738 | edwin | 2007-04-17 22:06:44 +0200 (Tue, 17 Apr 2007) | 2 lines

  * src/vm/jit/jit.h (jitdata): Cleaned up comments for local_map.
........
  r7739 | twisti | 2007-04-17 22:17:01 +0200 (Tue, 17 Apr 2007) | 10 lines

  * src/threads/threads-common.c (threads_print_stacktrace): Renamed to
  threads_thread_print_stacktrace.
  (threads_print_stacktrace): New function.
  (threads_dump): Use threads_thread_print_stacktrace.

  * src/threads/threads-common.h: Likewise.

  * src/vm/jit/codegen-common.c (codegen_get_pv_from_pc): Use new
  threads_print_stacktrace.
........
  r7740 | twisti | 2007-04-17 22:25:55 +0200 (Tue, 17 Apr 2007) | 4 lines

  * src/threads/native/threads.c (threads_init): Fixed string-internal
  warnings.
  (threads_attach_current_thread): Likewise.
........
  r7741 | edwin | 2007-04-17 22:30:09 +0200 (Tue, 17 Apr 2007) | 4 lines

  * src/vm/jit/jit.h (basicblock): Document the javalocal array.
  (JAVALOCAL_FROM_RETADDR): New macro.
  (RETADDR_FROM_JAVALOCAL): Likewise.
........
  r7742 | edwin | 2007-04-17 22:37:36 +0200 (Tue, 17 Apr 2007) | 4 lines

  * src/vm/jit/stack.c, src/vm/jit/show.c, src/vm/jit/inline/inline.c,
  src/vm/jit/replace.c, src/vm/jit/jit.h: Fix and use the new macros
  for calculating javalocals values representing returnAddresses.
........
  r7743 | edwin | 2007-04-17 22:53:41 +0200 (Tue, 17 Apr 2007) | 6 lines

  * src/vm/jit/stack.c, src/vm/jit/verify/typecheck-common.c,
  src/vm/jit/verify/typeinfo.c, src/vm/jit/inline/inline.c,
  src/vm/jit/allocator/simplereg.c: Clarification: Renamed variables
  that are indices into jd->var to "varindex". Renamed variables that
  are bytecode variable indices to "javaindex".
........
  r7744 | twisti | 2007-04-17 22:54:04 +0200 (Tue, 17 Apr 2007) | 2 lines

  * tests/regression/jasmin/Makefile.am (check): Set LD_LIBRARY_PATH.
........
  r7745 | twisti | 2007-04-17 22:59:52 +0200 (Tue, 17 Apr 2007) | 3 lines

  * src/vm/builtintable.inc (builtintable_function) [ENABLE_JIT]: We
  need the entries only for JIT.
........
  r7746 | edwin | 2007-04-17 23:01:15 +0200 (Tue, 17 Apr 2007) | 2 lines

  * src/vm/jit/verify/typecheck.c: More variable renaming for clarity.
........
  r7747 | edwin | 2007-04-17 23:11:20 +0200 (Tue, 17 Apr 2007) | 3 lines

  * src/vm/jit/stack.c (stack_reanalyse_block, stack_analyse): Renamed
  variable "j" to a more obvious "varindex".
........
  r7748 | edwin | 2007-04-17 23:25:55 +0200 (Tue, 17 Apr 2007) | 3 lines

  * src/vm/jit/stack.c (stack_analyse): Do not abuse poor "i" for types,
  use a separate variable for that.
........
  r7749 | edwin | 2007-04-17 23:30:20 +0200 (Tue, 17 Apr 2007) | 4 lines

  * src/vm/jit/stack.c (stack_init_javalocals): Use "type" as variable
  for the type.
  (stack_analyse): Likewise.
........
  r7750 | twisti | 2007-04-17 23:37:12 +0200 (Tue, 17 Apr 2007) | 3 lines

  * tests/regression/resolving/Makefile.am (check): Use LD_LIBRARY_PATH
  for JAVA.
........
  r7751 | twisti | 2007-04-18 00:06:01 +0200 (Wed, 18 Apr 2007) | 3 lines

  * src/vm/jit/alpha/codegen.c (codegen_emit): Fixed bug in
  float-argument passing.
........
  r7752 | twisti | 2007-04-18 00:50:49 +0200 (Wed, 18 Apr 2007) | 2 lines

  * src/vm/jit/m68k/codegen.c: Boilerplate added.
........
  r7753 | twisti | 2007-04-18 00:55:21 +0200 (Wed, 18 Apr 2007) | 2 lines

  * src/vm/jit/m68k/emit.c: boilerplate added.
........
  r7754 | twisti | 2007-04-18 01:18:15 +0200 (Wed, 18 Apr 2007) | 23 lines

  * src/vm/jit/emit-common.h (emit_copy): Changed signature.

  * src/vm/jit/alpha/codegen.c,
  src/vm/jit/alpha/emit.c,
  src/vm/jit/arm/codegen.c,
  src/vm/jit/arm/emit.c,
  src/vm/jit/i386/codegen.c,
  src/vm/jit/i386/emit.c,
  src/vm/jit/m68k/codegen.c,
  src/vm/jit/m68k/emit.c,
  src/vm/jit/mips/codegen.c,
  src/vm/jit/mips/emit.c,
  src/vm/jit/powerpc/codegen.c,
  src/vm/jit/powerpc/emit.c,
  src/vm/jit/powerpc64/codegen.c,
  src/vm/jit/powerpc64/emit.c,
  src/vm/jit/s390/codegen.c,
  src/vm/jit/s390/emit.c,
  src/vm/jit/sparc64/codegen.c,
  src/vm/jit/sparc64/emit.c,
  src/vm/jit/x86_64/codegen.c,
  src/vm/jit/x86_64/emit.c: Likewise.
........
  r7755 | twisti | 2007-04-18 11:59:58 +0200 (Wed, 18 Apr 2007) | 3 lines

  * src/native/vm/java_lang_ClassLoader.c [ENABLE_STATISTICS]
  (vmcore/statistics.h): Added.
........
  r7756 | twisti | 2007-04-18 16:11:56 +0200 (Wed, 18 Apr 2007) | 12 lines

  * src/threads/native/threads.c (mutex_join, cond_join): Added.
  (threads_init_threadobject): Don't initalize join-mutex and cond.
  (threads_preinit): Initialize mutex_join and cond_join.
  (threads_startup_thread): Added vm_abort.
  (threads_detach_thread): Don't reset thread id and use global mutex
  and condition.
  (threads_find_non_daemon_thread): Lock thread list.
  (threads_join_all_threads): Use global mutex and condition.

  * src/threads/native/threads.h (threadobject): Removed joinmutex and
  joincond.
........
  r7757 | tbfg | 2007-04-18 16:49:18 +0200 (Wed, 18 Apr 2007) | 6 lines

  * src/vm/jit/powerpc64/codegen.c (sign_ext): Removed from
  ICMD_INEG, ICMD_IDIV, ICMD_IREM, ICMD_IMUL, ICMD_IAND and ICMD_IOR
  to save the if runtime costs.

  (ICMD_IUSHR): Needs sign extension for 0 bit shift case.
........
  r7758 | michi | 2007-04-18 17:31:07 +0200 (Wed, 18 Apr 2007) | 3 lines

  * src/vm/jit/powerpc64/linux/Makefile.am (AM_CPPFLAGS): Added
  -I$(top_builddir)/src.
........
  r7759 | ajordan | 2007-04-18 23:04:01 +0200 (Wed, 18 Apr 2007) | 5 lines

  * src/vm/jit/sparc64/emit.c: Migrated to abi_registers_{integer,float}_argument.
  * src/vm/jit/sparc64/codegen.c: Likewise.
  * src/vm/jit/sparc64/md-abi.c: Likewise.
........
  r7761 | twisti | 2007-04-19 11:18:20 +0200 (Thu, 19 Apr 2007) | 13 lines

  * src/threads/native/threads.c (threads_start_javathread): Removed.
  (threads_detach_thread): Added some comments.

  * src/threads/native/threads.h (threads_start_javathread): Removed.

  * src/threads/threads-common.c (assert.h): Added.
  [ENABLE_STATISTICS] (vmcore/options.h, vmcore/statistics.h): Added.
  (threads_start_javathread): Added.

  * src/threads/threads-common.h (vm/global.h): Added.
  (native/include/java_lang_Thread.h): Likewise.
  (threads_start_javathread): Likewise.
........
  r7762 | twisti | 2007-04-19 11:19:33 +0200 (Thu, 19 Apr 2007) | 3 lines

  * src/threads/threads-common.c (threads_start_javathread)
  [ENABLE_JAVASE]: Check for daemon thread and set the flag.
........
  r7763 | michi | 2007-04-19 14:19:19 +0200 (Thu, 19 Apr 2007) | 4 lines

  * src/vm/jit/arm/asmpart.S (asm_patcher_wrapper): Use long branch construct
  for exception handling here. This fixes a crash in the following jasmin
  regression testcase: jasmin/test_verify_fail_areturn_wrong_reftype.
........

--HG--
branch : exact-gc

17 years ago* src/vm/jit/x86_64/codegen.c (codegen_emit_stub_builtin): Changed
twisti [Thu, 19 Apr 2007 12:52:47 +0000 (12:52 +0000)]
* src/vm/jit/x86_64/codegen.c (codegen_emit_stub_builtin): Changed
signature and use register number directly to save registers.

--HG--
branch : exact-gc

17 years ago* src/vm/jit/codegen-common.c (vm/builtin.h): Added.
twisti [Thu, 19 Apr 2007 12:50:37 +0000 (12:50 +0000)]
* src/vm/jit/codegen-common.c (vm/builtin.h): Added.
(codegen_generate_stub_builtin): New function.
(codegen_generate_stub_native): Moved codegen_finish before statistics
generation, otherwise the numbers are wrong.
(codegen_stub_builtin_enter): New function.
(codegen_stub_builtin_exit): Likewise.

* src/vm/jit/codegen-common.h (vm/builtin.h): Added.
(codegen_generate_stub_builtin): Likewise.
(codegen_emit_stub_builtin): Likewise.
(codegen_stub_builtin_enter): Likewise.
(codegen_stub_builtin_exit): Likewise.

* src/vm/builtin.c (builtintable_init): Call
codegen_generate_stub_builtin when required.

--HG--
branch : exact-gc

17 years ago* src/mm/cacao-gc/rootset.c (rootset_from_thread): Add javastack references to
michi [Thu, 19 Apr 2007 00:44:14 +0000 (00:44 +0000)]
* src/mm/cacao-gc/rootset.c (rootset_from_thread): Add javastack references to
the rootset as well.

--HG--
branch : exact-gc

17 years agoMerged revisions 7727-7731 via svnmerge from
michi [Mon, 16 Apr 2007 22:32:50 +0000 (22:32 +0000)]
Merged revisions 7727-7731 via svnmerge from
svn+ssh://michi@c1.complang.tuwien.ac.at/ahome/cacao/svn/cacao/trunk

........
  r7731 | twisti | 2007-04-17 00:24:30 +0200 (Tue, 17 Apr 2007) | 7 lines

  * src/vm/jit/codegen-common.c (codegen_setup): Removed maxstack stuff.
  * src/vm/jit/codegen-common.h (codegendata): Likewise.

  * src/vm/jit/inline/inline.c: Fixed includes.
  (inline_jit_compile): Removed maxstack stuff.
  (inline_transform): Removed basicblockindex.
........

--HG--
branch : exact-gc

17 years ago* src/mm/cacao-gc/gc.h [!ENABLE_STATISTICS]: Added dummy defines.
michi [Mon, 16 Apr 2007 21:40:14 +0000 (21:40 +0000)]
* src/mm/cacao-gc/gc.h [!ENABLE_STATISTICS]: Added dummy defines.

* src/mm/cacao-gc/gc.c [ENABLE_STATISTICS]: Added gcstat_collections and
gcstat_collections_forced.

--HG--
branch : exact-gc

17 years ago* src/mm/cacao-gc/Makefile.am (AM_CPPFLAGS): Added
twisti [Mon, 16 Apr 2007 21:35:26 +0000 (21:35 +0000)]
* src/mm/cacao-gc/Makefile.am (AM_CPPFLAGS): Added
-I$(top_builddir)/src.

--HG--
branch : exact-gc

17 years ago* src/mm/cacao-gc/compact.c (compact_move): Fixed ifdef.
michi [Mon, 16 Apr 2007 21:31:07 +0000 (21:31 +0000)]
* src/mm/cacao-gc/compact.c (compact_move): Fixed ifdef.

--HG--
branch : exact-gc

17 years agoMerged revisions 7723-7726 via svnmerge from
michi [Mon, 16 Apr 2007 21:18:43 +0000 (21:18 +0000)]
Merged revisions 7723-7726 via svnmerge from
svn+ssh://michi@c1.complang.tuwien.ac.at/ahome/cacao/svn/cacao/trunk

........
  r7724 | twisti | 2007-04-16 23:07:10 +0200 (Mon, 16 Apr 2007) | 5 lines

  * src/vm/jit/powerpc64/linux/md-abi.c: Argument register changes
  ported (rev7713).
  * src/vm/jit/powerpc64/emit.c: Likewise.
  * src/vm/jit/powerpc64/codegen.c: Likewise.
........
  r7725 | twisti | 2007-04-16 23:09:39 +0200 (Mon, 16 Apr 2007) | 3 lines

  * src/vm/jit/Makefile.am (DIST_SUBDIRS): Added m68k.
  * src/mm/cacao-gc/Makefile.am (libgc_la_SOURCES): Removed heap.c.
........

--HG--
branch : exact-gc

17 years ago* tests/gc/ClassInit.java: Added testcase (static initializer calling gc).
michi [Mon, 16 Apr 2007 21:17:03 +0000 (21:17 +0000)]
* tests/gc/ClassInit.java: Added testcase (static initializer calling gc).

--HG--
branch : exact-gc

17 years agoMerged revisions 7707-7722 via svnmerge from
michi [Mon, 16 Apr 2007 18:03:08 +0000 (18:03 +0000)]
Merged revisions 7707-7722 via svnmerge from
svn+ssh://michi@c1.complang.tuwien.ac.at/ahome/cacao/svn/cacao/trunk

........
  r7712 | twisti | 2007-04-15 23:13:03 +0200 (Sun, 15 Apr 2007) | 4 lines

  * src/vm/jit/mips/emit.c (emit_load): Bugfix: Added missing float
  instruction.
  (emit_store): Likewise.
........
  r7713 | twisti | 2007-04-15 23:49:48 +0200 (Sun, 15 Apr 2007) | 29 lines

  * src/vm/jit/reg.c (reg_setup): Removed arg{int,flt}regs stuff.
  * src/vm/jit/reg.h (registerdata): Removed arg{int,flt}regs.

  * src/vm/jit/stack.c (stack_analyse): regoff now contains the register
  number instead of an offset.

  * src/vm/jit/allocator/simplereg.c: Use
  abi_registers_{integer,float}_argument instead of arg{int,flt}regs.

  * src/vm/jit/alpha/codegen.c,
  src/vm/jit/alpha/emit.c,
  src/vm/jit/alpha/md-abi.c,
  src/vm/jit/arm/codegen.c,
  src/vm/jit/arm/emit.c,
  src/vm/jit/arm/md-abi.c,
  src/vm/jit/arm/md-abi.h,
  src/vm/jit/i386/codegen.c,
  src/vm/jit/i386/md-abi.c,
  src/vm/jit/mips/codegen.c,
  src/vm/jit/mips/emit.c,
  src/vm/jit/mips/md-abi.c,
  src/vm/jit/powerpc/codegen.c,
  src/vm/jit/powerpc/emit.c,
  src/vm/jit/powerpc/linux/md-abi.c,
  src/vm/jit/powerpc/linux/md-abi.h,
  src/vm/jit/x86_64/codegen.c,
  src/vm/jit/x86_64/emit.c,
  src/vm/jit/x86_64/md-abi.c: A lot of changes like the ones above.
........
  r7714 | twisti | 2007-04-16 16:11:14 +0200 (Mon, 16 Apr 2007) | 4 lines

  * src/vm/builtin.c (builtin_print_argument): Removed java_lang_String
  until we know what we do with strings internally (more patches to
  come).
........
  r7715 | twisti | 2007-04-16 16:28:30 +0200 (Mon, 16 Apr 2007) | 5 lines

  * src/threads/threads-common.c (native/include/java_lang_String.h):
  Added.
  (threads_create_thread): Fixed string-internal warnings.
  (threads_dump): Likewise.
........
  r7716 | twisti | 2007-04-16 16:29:53 +0200 (Mon, 16 Apr 2007) | 2 lines

  * src/vmcore/utf8.c (utf_get_number_of_u2s): Return 0 instead of NULL.
........
  r7717 | twisti | 2007-04-16 17:23:32 +0200 (Mon, 16 Apr 2007) | 5 lines

  * src/native/vm/gnu/java_lang_VMClassLoader.c (loadClass): Fixed
  string-internal warnings.
  (nativeGetResources): Likewise.
  (findLoadedClass): Likewise.
........
  r7718 | twisti | 2007-04-16 17:26:01 +0200 (Mon, 16 Apr 2007) | 3 lines

  * src/native/vm/gnu/java_lang_VMRuntime.c (mapLibraryName): Fixed
  string-internal warnings.
........
  r7719 | twisti | 2007-04-16 17:29:29 +0200 (Mon, 16 Apr 2007) | 3 lines

  * src/native/vm/gnu/java_lang_reflect_Method.c (getSignature): Fixed
  string-internal warnings.
........
  r7720 | twisti | 2007-04-16 17:49:09 +0200 (Mon, 16 Apr 2007) | 13 lines

  * src/native/vm/java_lang_ClassLoader.c (defineClass): Fixed
  string-internal warnings.

  * src/native/vm/java_lang_Runtime.c (loadLibrary): Likewise.

  * src/native/vm/gnu/java_lang_reflect_Field.c (getSignature):
  Likewise.

  * src/native/vm/gnu/java_lang_reflect_Constructor.c (getSignature):
  Likewise.

  * src/native/vm/gnu/java_lang_VMThrowable.c (getStackTrace): Likewise.
........
  r7721 | twisti | 2007-04-16 17:53:53 +0200 (Mon, 16 Apr 2007) | 7 lines

  * src/native/vm/java_lang_Class.c (forName): Fixed string-internal
  warnings.
  (getDeclaredFields): Likewise.
  (getDeclaredMethods): Likewise.
  (getEnclosingMethod): Likewise.
  (getClassSignature): Likewise.
........
  r7722 | twisti | 2007-04-16 17:57:21 +0200 (Mon, 16 Apr 2007) | 5 lines

  * src/native/jni.c (_Jv_JNI_DefineClass): Fixed string-internal
  warnings.
  (_Jv_JNI_NewStringUTF): Likewise.
  (_Jv_JNI_GetStringUTFChars): Likewise.
........

--HG--
branch : exact-gc

17 years ago* src/vm/builtintable.inc: Fixed flags for builtin_new and builtin_fast_new.
michi [Sun, 15 Apr 2007 19:42:08 +0000 (19:42 +0000)]
* src/vm/builtintable.inc: Fixed flags for builtin_new and builtin_fast_new.

--HG--
branch : exact-gc

17 years ago* src/vm/builtin.h (builtintable_entry): Added stub pointer.
michi [Sun, 15 Apr 2007 15:33:35 +0000 (15:33 +0000)]
* src/vm/builtin.h (builtintable_entry): Added stub pointer.
* src/vm/builtintable.inc: Adapted to above changes. Added vim boiler plate.

--HG--
branch : exact-gc

17 years ago* src/vm/jit/i386/codegen.c (codegen_emit_stub_builtin): Different
michi [Sun, 15 Apr 2007 15:28:13 +0000 (15:28 +0000)]
* src/vm/jit/i386/codegen.c (codegen_emit_stub_builtin): Different
function signature. Fixed argument passing. Saving return value.

* src/vm/jit/x86_64/codegen.c (codegen_emit_stub_builtin): Different
function signature.

--HG--
branch : exact-gc

17 years ago* src/vm/jit/i386/codegen.c (codegen_emit_stub_builtin): Implemented.
michi [Sun, 15 Apr 2007 13:06:49 +0000 (13:06 +0000)]
* src/vm/jit/i386/codegen.c (codegen_emit_stub_builtin): Implemented.
(codegen_emit_stub_native): Now uses abi_registers_integer_saved.

--HG--
branch : exact-gc

17 years agoMerged revisions 7701-7706 via svnmerge from
michi [Sun, 15 Apr 2007 12:23:38 +0000 (12:23 +0000)]
Merged revisions 7701-7706 via svnmerge from
svn+ssh://michi@c1.complang.tuwien.ac.at/ahome/cacao/svn/cacao/trunk

........
  r7703 | twisti | 2007-04-15 13:37:55 +0200 (Sun, 15 Apr 2007) | 6 lines

  * tests/regression/resolving/Makefile.am: Added GNU header and fixed
  srcdir != builddir.
  * tests/regression/resolving/classes1/Makefile.am: Likewise.
  * tests/regression/resolving/classes2/Makefile.am: Likewise.
  * tests/regression/resolving/classes3/Makefile.am: Likewise.
........
  r7704 | michi | 2007-04-15 13:55:25 +0200 (Sun, 15 Apr 2007) | 3 lines

  * src/vm/jit/i386/codegen.c (codegen_emit_stub_native): Fixed
  calculation of stackframesize.
........
  r7705 | michi | 2007-04-15 14:15:01 +0200 (Sun, 15 Apr 2007) | 4 lines

  * src/vm/jit/i386/md-abi.c (abi_registers_integer_argument): Added.
  (abi_registers_integer_saved): Likewise.
  (abi_registers_integer_temporary): Likewise.
........
  r7706 | michi | 2007-04-15 14:17:02 +0200 (Sun, 15 Apr 2007) | 2 lines

  * src/vm/jit/i386/md-abi.c (abi_registers_integer_argument): Fixed.
........

--HG--
branch : exact-gc

17 years ago* src/vm/jit/x86_64/codegen.c (codegen_emit_stub_builtin): Removed
michi [Sun, 15 Apr 2007 01:15:59 +0000 (01:15 +0000)]
* src/vm/jit/x86_64/codegen.c (codegen_emit_stub_builtin): Removed
call of codegen_finish.

--HG--
branch : exact-gc

17 years agoMerged revisions 7693-7700 via svnmerge from
michi [Sun, 15 Apr 2007 00:38:00 +0000 (00:38 +0000)]
Merged revisions 7693-7700 via svnmerge from
svn+ssh://michi@c1.complang.tuwien.ac.at/ahome/cacao/svn/cacao/trunk

........
  r7694 | tbfg | 2007-04-12 17:35:13 +0200 (Thu, 12 Apr 2007) | 8 lines

  * src/vm/jit/powerpc64/emit.c (emit_patcher_stubs): Removed dead code.

  * src/vm/jit/powerpc64/codegen.c (ICMD_ISUB): Fixed evil bug.
  (ICMD_LSHR): Fixed a bug.
  (createnativestub): Use emit_patcher_stub.

  * src/vm/jit/powerpc64/patcher.c (patcher_resolve_native): Fixed.
........
  r7695 | twisti | 2007-04-12 21:49:34 +0200 (Thu, 12 Apr 2007) | 14 lines

  * src/vm/jit/stack.c (stack_analyse): Removed USEBUILTINTABLE, always
  check for automatic-builtins (compile this is not affected).

  * src/vm/jit/alpha/arch.h,
  src/vm/jit/arm/arch.h,
  src/vm/jit/i386/arch.h,
  src/vm/jit/m68k/arch.h,
  src/vm/jit/mips/arch.h,
  src/vm/jit/powerpc/arch.h,
  src/vm/jit/powerpc64/arch.h,
  src/vm/jit/s390/arch.h,
  src/vm/jit/sparc64/arch.h,
  src/vm/jit/x86_64/arch.h (USEBUILTINTABLE): Removed.
........
  r7698 | twisti | 2007-04-13 12:12:04 +0200 (Fri, 13 Apr 2007) | 5 lines

  * src/cacao/cacao.c (main): Save the error message of the first
  lt_dlopenext and print it too when the second fails (thanks Dalibor).
  Although there's still a problem, when the first fails for some reason
  and the second picks up and old installed one silently.
........
  r7699 | twisti | 2007-04-13 12:42:05 +0200 (Fri, 13 Apr 2007) | 2 lines

  * src/vm/jit/mips/md-abi.c (md_param_alloc): Code beautified.
........
  r7700 | twisti | 2007-04-13 13:48:48 +0200 (Fri, 13 Apr 2007) | 3 lines

  * src/vm/jit/mips/codegen.c (codegen_emit): ICMD_LDIV, ICMD_LREM: Use
  REG_Ax_Ax_PACKED defines.
........

--HG--
branch : exact-gc

17 years ago* src/vm/jit/x86_64/codegen.c (codegen_emit_stub_builtin): New
twisti [Thu, 12 Apr 2007 22:36:48 +0000 (22:36 +0000)]
* src/vm/jit/x86_64/codegen.c (codegen_emit_stub_builtin): New
function.

--HG--
branch : exact-gc

17 years ago* src/vm/builtin.c (builtintable_replace_function): Replaced
twisti [Thu, 12 Apr 2007 20:18:54 +0000 (20:18 +0000)]
* src/vm/builtin.c (builtintable_replace_function): Replaced
checkexception with flags and check for exception flag.

* src/vm/builtin.h (builtintable_entry): Removed checkexception, added
flags.
(BUILTINTABLE_FLAG_STUB): Defined.
(BUILTINTABLE_FLAG_EXCEPTION): Likewise.

* src/vm/builtintable.inc (builtintable_internal): Moved position of
flags.
(builtintable_automatic): Likewise.
(builtintable_function): Likewise.

--HG--
branch : exact-gc

17 years agoMerged revisions 7688-7692 via svnmerge from
michi [Thu, 12 Apr 2007 14:56:49 +0000 (14:56 +0000)]
Merged revisions 7688-7692 via svnmerge from
svn+ssh://michi@c1.complang.tuwien.ac.at/ahome/cacao/svn/cacao/trunk

........
  r7690 | twisti | 2007-04-12 13:56:05 +0200 (Thu, 12 Apr 2007) | 3 lines

  * src/vm/jit/arm/linux/md-os.c (mm/memory.h): Removed.
  [ENABLE_THREADS] (threads/native/threads.h): Added.
........
  r7691 | twisti | 2007-04-12 14:45:10 +0200 (Thu, 12 Apr 2007) | 36 lines

  * src/vm/jit/codegen-common.c (codegen_generate_stub_compiler): New
  function.

  * src/vm/jit/codegen-common.h (createcompilerstub): Removed.
  (codegen_generate_stub_compiler): Added.
  * src/vm/jit_interface.h: Likewise.
  * src/cacaoh/dummy.c: Likewise.

  * src/vmcore/linker.c (link_class_intern): Replaced createcompilerstub
  with codegen_generate_stub_compiler.

  * src/vm/jit/alpha/codegen.c,
  src/vm/jit/arm/codegen.c,
  src/vm/jit/i386/codegen.c,
  src/vm/jit/m68k/codegen.c,
  src/vm/jit/mips/codegen.c,
  src/vm/jit/powerpc/codegen.c,
  src/vm/jit/powerpc64/codegen.c,
  src/vm/jit/s390/codegen.c,
  src/vm/jit/sparc64/codegen.c,
  src/vm/jit/x86_64/codegen.c (COMPILERSTUB_DATASIZE)
  (COMPILERSTUB_SIZE): Removed.
  (createcompilerstub): Renamed to codegen_emit_stub_compiler and
  changed signature.

  * src/vm/jit/alpha/codegen.h,
  src/vm/jit/arm/codegen.h,
  src/vm/jit/i386/codegen.h,
  src/vm/jit/m68k/codegen.h,
  src/vm/jit/mips/codegen.h,
  src/vm/jit/powerpc/codegen.h,
  src/vm/jit/powerpc64/codegen.h,
  src/vm/jit/s390/codegen.h,
  src/vm/jit/sparc64/codegen.h,
  src/vm/jit/x86_64/codegen.h (COMPILERSTUB_CODESIZE): Added.
........
  r7692 | twisti | 2007-04-12 16:47:24 +0200 (Thu, 12 Apr 2007) | 26 lines

  * src/vm/jit/codegen-common.c (codegen_createnativestub): Renamed to
  codegen_generate_stub_native and call codegen_finish.

  * src/vm/jit/codegen-common.h (codegen_createnativestub): Removed.
  (codegen_generate_stub_native): Added.
  * src/vm/jit_interface.h: Likewise.
  * src/cacaoh/dummy.c: Likewise.

  * src/vmcore/loader.c (load_newly_created_array): Renamed
  codegen_createnativestub to codegen_generate_stub_native and changed
  signature.
  * src/vm/jit/jit.c (jit_compile_intern): Likewise.

  * src/vm/jit/arm/codegen.c,
  src/vm/jit/powerpc/codegen.c,
  src/vm/jit/sparc64/codegen.c,
  src/vm/jit/alpha/codegen.c,
  src/vm/jit/s390/codegen.c,
  src/vm/jit/mips/codegen.c,
  src/vm/jit/m68k/codegen.c,
  src/vm/jit/powerpc64/codegen.c,
  src/vm/jit/i386/codegen.c,
  src/vm/jit/x86_64/codegen.c (createnativestub): Renamed to
  codegen_emit_stub_native and changed signature, don't call
  codegen_finish.
........

--HG--
branch : exact-gc

17 years ago* src/mm/cacao-gc/gc.h (gc_collect): Added prototype.
michi [Thu, 12 Apr 2007 09:25:25 +0000 (09:25 +0000)]
* src/mm/cacao-gc/gc.h (gc_collect): Added prototype.
* src/mm/cacao-gc/heap.c: Fixed includes.
* src/mm/cacao-gc/mark.c: Fixed includes.

--HG--
branch : exact-gc

17 years agoMerged revisions 7674-7687 via svnmerge from
michi [Thu, 12 Apr 2007 09:05:12 +0000 (09:05 +0000)]
Merged revisions 7674-7687 via svnmerge from
svn+ssh://michi@c1.complang.tuwien.ac.at/ahome/cacao/svn/cacao/trunk

........
  r7675 | michi | 2007-04-05 16:23:04 +0200 (Thu, 05 Apr 2007) | 10 lines

  * src/vm/global.h (compiler_lock, compiler_unlock): Removed.
  * src/cacaoh/dummy.c (compiler_lock, compiler_unlock): Removed.
  * src/threads/native/threads.c (compiler_lock, compiler_unlock): Removed.

  * src/vmcore/linker.h (linker_classrenumber_lock): Added.
  * src/vmcore/linker.c (linker_classrenumber_lock): Added.
  (linker_compute_subclasses): Uses above lock object instead of compiler_lock.

  * src/vm/jit/intrp/asmpart.c (intrp_asm_getclassvalues_atomic): Likewise.
........
  r7676 | twisti | 2007-04-08 23:14:40 +0200 (Sun, 08 Apr 2007) | 3 lines

  * src/native/vm/cldc1.1/java_lang_Object.c (notifyAll): Implemented.
  * src/native/vm/cldc1.1/java_lang_String.c (lastIndexOf__I): Likewise.
........
  r7677 | twisti | 2007-04-09 13:51:25 +0200 (Mon, 09 Apr 2007) | 8 lines

  * src/vm/jit/mips/codegen.h (BRANCH_NOPS): Added long-branches case.

  * src/vm/jit/mips/emit.c (emit_load): Use switch-case instead of
  if-else contruct.
  (emit_store): Likewise.
  (emit_copy): Likewise.
  (emit_branch): Implemented conditional long-branches.
........
  r7678 | twisti | 2007-04-09 19:23:55 +0200 (Mon, 09 Apr 2007) | 11 lines

  * src/vm/jit/alpha/asmpart.S: Use % instead of @ for progbits as ARM's
  assembler uses @ as comment character.
  * src/vm/jit/arm/asmpart.S: Likewise.
  * src/vm/jit/i386/asmpart.S: Likewise.
  * src/vm/jit/mips/asmpart.S: Likewise.
  * src/vm/jit/powerpc/asmpart.S: Likewise.
  * src/vm/jit/powerpc64/asmpart.S: Likewise.
  * src/vm/jit/s390/asmpart.S: Likewise.
  * src/vm/jit/sparc64/asmpart.S: Likewise.
  * src/vm/jit/x86_64/asmpart.S: Likewise.
........
  r7679 | twisti | 2007-04-09 23:17:36 +0200 (Mon, 09 Apr 2007) | 2 lines

  * src/vm/jit/alpha/emit.c (emit_copy): Check src-type, not dst-type.
........
  r7680 | pm | 2007-04-10 07:02:20 +0200 (Tue, 10 Apr 2007) | 8 lines

  * src/vm/jit/s390/emit.c,
  src/vm/jit/s390/md-abi.h,
  src/vm/jit/s390/codegen.c,
  src/vm/jit/s390/codegen.h,
  src/vm/jit/s390/arch.h,
  src/vm/jit/s390/asmpart.S,
  src/vm/jit/s390/tests/tests.java.pp: Changed very much.
........
  r7681 | twisti | 2007-04-10 14:22:16 +0200 (Tue, 10 Apr 2007) | 3 lines

  * src/vm/jit/mips/linux/md-os.c (md_signal_handler_sigsegv): Set val
  accordingly.
........
  r7682 | twisti | 2007-04-10 23:24:14 +0200 (Tue, 10 Apr 2007) | 3 lines

  * src/vm/jit/mips/codegen.c (codegen_emit): Fixed ICMD_IF_Lxx
  instructions for 64-bit.
........
  r7683 | twisti | 2007-04-10 23:37:03 +0200 (Tue, 10 Apr 2007) | 3 lines

  * src/vm/jit/mips/linux/md-os.c (md_signal_handler_sigsegv): We only
  need to check the cause for pre glibc-2.5.
........
  r7684 | twisti | 2007-04-11 10:11:49 +0200 (Wed, 11 Apr 2007) | 3 lines

  * src/vm/jit/codegen-common.c (codegen_generate): Added re-generating
  debug message.
........
  r7685 | twisti | 2007-04-11 10:21:06 +0200 (Wed, 11 Apr 2007) | 2 lines

  * src/toolbox/logging.c (log_finish): Also print a \n in the log-file.
........
  r7687 | tbfg | 2007-04-11 18:39:22 +0200 (Wed, 11 Apr 2007) | 19 lines

  * src/vm/jit/powerpc64/arch.h (SUPPORT_LONG_SHIFT): Enabled.

  * src/vm/jit/powerpc64/codegen.c (ICMD_LSHLCONST): Implemented.
  (ICMD_LSHRCONST): Likewise.
  (ICMD_LUSHRCONST): Likewise.
  (ICMD_LSHL): Likewise.
  (ICMD_LSHR): Likewise.
  (ICMD_LUSHR): Likewise.
  (ICMD_IUSHR): Fixed.
  (ICMD_IUSHRCONST): Fixed.

  * src/vm/jit/powerpc64/codegen.h (M_SRL): Use 64bit opcode.
  (M_SRA): Likewise.
  (M_SRA_IMM): Likewise.
  (M_SRL_IMM): Likewise.
  (M_SSL_IMM): Likewise.
  (M_SSL): Likewise.
  (M_CLR_HIGH): Added.
........

--HG--
branch : exact-gc

17 years ago* src/vm/builtin.h (builtin_fast_new): Added.
twisti [Wed, 11 Apr 2007 10:53:53 +0000 (10:53 +0000)]
* src/vm/builtin.h (builtin_fast_new): Added.
(BUILTIN_FAST_new): Likewise.

* src/vm/builtintable.inc (builtintable_internal): Added
BUILTIN_FAST_new.

--HG--
branch : exact-gc

17 years agoMerged revisions 7665-7673 via svnmerge from
michi [Thu, 5 Apr 2007 13:27:11 +0000 (13:27 +0000)]
Merged revisions 7665-7673 via svnmerge from
svn+ssh://michi@c1.complang.tuwien.ac.at/ahome/cacao/svn/cacao/trunk

........
  r7666 | twisti | 2007-04-05 02:14:57 +0200 (Thu, 05 Apr 2007) | 4 lines

  * src/threads/threads-common.c (threads_print_stacktrace): Removed
  !ENABLE_THREADS code, since this file is only compiled with
  ENABLE_THREADS.
........
  r7669 | twisti | 2007-04-05 13:39:58 +0200 (Thu, 05 Apr 2007) | 27 lines

  * src/native/vm/java_lang_Thread.c [ENABLE_THREADS]
  (threads/native/threads.h): Removed.
  (threads/threads-common.h): Added.
  (vm/stringlocal.h): Likewise.
  (vm/vm.h): Removed.
  (getState): Implemented.

  * src/threads/threads-common.c (vm/vm.h): Added.
  (threads_get_state): New function.
  (threads_dump): Print thread state.

  * src/threads/threads-common.h (THREAD_STATE_NEW)
  (THREAD_STATE_RUNNABLE, THREAD_STATE_BLOCKED, THREAD_STATE_WAITING)
  (THREAD_STATE_TIMED_WAITING, THREAD_STATE_TERMINATED): Defined.
  (threads_get_state): Added.

  * src/threads/native/threads.c (threads_init): Set thread-state.
  (threads_startup_thread): Likewise.
  (threads_attach_current_thread): Likewise.
  (threads_detach_thread): Likewise.
  (threads_wait_with_timeout): Likewise.

  * src/threads/native/threads.h (threadobject): Added state field.

  * src/native/native.c (dummynativetable) [ENABLE_JAVASE]: Added
  Java_java_lang_VMThread_getState.
........
  r7670 | twisti | 2007-04-05 13:57:59 +0200 (Thu, 05 Apr 2007) | 13 lines

  * src/threads/threads-common.c (threads_get_state): Renamed to
  threads_thread_get_state.
  (threads_thread_is_alive): New function.

  * src/threads/threads-common.h: Likewise.

  * src/native/vm/java_lang_Thread.c (isAlive): New function.
  (getState): Renamed threads_get_state to threads_thread_get_state.

  * src/native/vm/java_lang_Thread.h (isAlive): Added.

  * src/native/vm/cldc1.1/java_lang_Thread.c (isAlive): New function.
........
  r7671 | twisti | 2007-04-05 14:06:28 +0200 (Thu, 05 Apr 2007) | 3 lines

  * src/vm/exceptions.c (exceptions_throw_nosuchmethoderror)
  [!ENABLE_JAVASE]: Throw an error.
........
  r7673 | michi | 2007-04-05 15:22:37 +0200 (Thu, 05 Apr 2007) | 3 lines

  * src/vm/jit/codegen-common.c (codegen_get_pv_from_pc): Inserted ifdef to fix
  compiler error with disabled threads.
........

--HG--
branch : exact-gc

17 years ago* src/mm/cacao-gc/heap.c: Added include to fix compile warning.
michi [Thu, 5 Apr 2007 13:15:53 +0000 (13:15 +0000)]
* src/mm/cacao-gc/heap.c: Added include to fix compile warning.

* src/mm/cacao-gc/compact.c: Made most functions static.

* src/mm/cacao-gc/gc.c (gc_collect): Fixed debug output for current stacktrace.

--HG--
branch : exact-gc

17 years ago* src/mm/cacao-gc/gc.c (gc_collect) [!ENABLE_THREADS]: Temporarly defined away
michi [Thu, 5 Apr 2007 00:28:46 +0000 (00:28 +0000)]
* src/mm/cacao-gc/gc.c (gc_collect) [!ENABLE_THREADS]: Temporarly defined away
printing of current stacktrace.

--HG--
branch : exact-gc

17 years agoMerged revisions 7642-7664 via svnmerge from
michi [Thu, 5 Apr 2007 00:16:05 +0000 (00:16 +0000)]
Merged revisions 7642-7664 via svnmerge from
svn+ssh://michi@c1.complang.tuwien.ac.at/ahome/cacao/svn/cacao/trunk

........
  r7643 | twisti | 2007-04-03 13:35:40 +0200 (Tue, 03 Apr 2007) | 3 lines

  * src/vmcore/statistics.c (statistics_print_memory_usage): Prevent
  compiler warning on 64-bit machines.
........
  r7644 | twisti | 2007-04-03 13:37:30 +0200 (Tue, 03 Apr 2007) | 3 lines

  * src/vm/jit/x86_64/emit.c (emit_replacement_stubs): Removed unused
  variable disp.
........
  r7645 | twisti | 2007-04-03 13:46:50 +0200 (Tue, 03 Apr 2007) | 3 lines

  * src/vm/jit/allocator/simplereg.c (simplereg_make_statistics): Fixed
  compiler warning.
........
  r7646 | twisti | 2007-04-03 13:56:21 +0200 (Tue, 03 Apr 2007) | 3 lines

  * src/vm/jit/replace.c (native/include/java_lang_String.h): Removed.
  (java_value_print): Don't cast to java_lang_String.
........
  r7647 | twisti | 2007-04-03 14:10:22 +0200 (Tue, 03 Apr 2007) | 2 lines

  * src/vm/jit/jit.h: Includes alpha-sorted.
........
  r7648 | twisti | 2007-04-03 15:14:09 +0200 (Tue, 03 Apr 2007) | 3 lines

  * src/vm/jit/i386/linux/md-os.c (md_signal_handler_sigfpe): Use
  exceptions_new_hardware_exception.
........
  r7649 | twisti | 2007-04-03 15:47:39 +0200 (Tue, 03 Apr 2007) | 4 lines

  * src/vm/jit/arm/linux/md-os.c (md_signal_handler_sigsegv): Use
  exceptions_new_hardware_exception.
  [ENABLE_THREADS] (md_signal_handler_sigusr2): New function.
........
  r7650 | twisti | 2007-04-03 15:48:10 +0200 (Tue, 03 Apr 2007) | 2 lines

  * configure.ac: Added armv4 architecture.
........
  r7651 | twisti | 2007-04-03 16:00:32 +0200 (Tue, 03 Apr 2007) | 13 lines

  * src/vm/jit/stacktrace.c (stacktrace_create_inline_stackframeinfo):
  Removed.
  (stacktrace_inline_arithmeticexception): Likewise.
  (stacktrace_inline_arrayindexoutofboundsexception): Likewise.
  (stacktrace_inline_arraystoreexception): Likewise.
  (stacktrace_inline_classcastexception): Likewise.
  (stacktrace_inline_nullpointerexception): Likewise.
  (stacktrace_inline_fillInStackTrace): Likewise.
  (stacktrace_hardware_arithmeticexception): Likewise.
  (stacktrace_hardware_nullpointerexception): Likewise.

  * src/vm/jit/stacktrace.h: Likewise.
........
  r7652 | twisti | 2007-04-03 16:23:16 +0200 (Tue, 03 Apr 2007) | 15 lines

  * src/threads/native/threads.h (STACKFRAMEINFO): Return stackframeinfo
  instead of a pointer to it.
  * src/threads/none/threads.h (STACKFRAMEINFO): Likewise.

  * src/vm/jit/codegen-common.c (codegen_finish_native_call):
  STACKFRAMEINFO changes.

  * src/vm/jit/replace.c (replace_recover_source_state): Likewise.

  * src/vm/jit/stacktrace.c (stacktrace_create_stackframeinfo):
  Likewise.
  (stacktrace_create_extern_stackframeinfo): Likewise.
  (stacktrace_create_native_stackframeinfo): Likewise.
  (stacktrace_remove_stackframeinfo): Likewise.
........
  r7653 | twisti | 2007-04-03 16:34:23 +0200 (Tue, 03 Apr 2007) | 5 lines

  * src/vm/jit/arm/emit.c (emit_exception_stubs): Removed.

  * src/vm/jit/arm/md.c (md_codegen_patch_branch): Likewise.
  (md_stacktrace_get_returnaddress): Removed debug code.
........
  r7654 | twisti | 2007-04-03 17:22:21 +0200 (Tue, 03 Apr 2007) | 4 lines

  * src/vm/exceptions.c (exceptions_fillinstacktrace)
  [ENABLE_JAVAME_CLDC1_1]: fillInStackTrace has another signature in
  CLDC-1.1.
........
  r7655 | twisti | 2007-04-03 17:22:57 +0200 (Tue, 03 Apr 2007) | 3 lines

  * src/vm/jit/x86_64/linux/md-os.c (md_signal_handler_sigfpe): Use
  exceptions_new_hardware_exception.
........
  r7656 | twisti | 2007-04-03 17:29:26 +0200 (Tue, 03 Apr 2007) | 5 lines

  * src/vm/jit/replace.c (threads/threads-common.h): Added.

  * src/vm/jit/replace.h: Moved empty defines to the top of the file to
  see what's happening when !defined(ENABLE_REPLACEMENT).
........
  r7657 | twisti | 2007-04-03 17:51:52 +0200 (Tue, 03 Apr 2007) | 24 lines

  * src/vm/jit/stacktrace.c (stacktrace_create): Changed signature.

  (stacktrace_fillInStackTrace): Pass stackframeinfo to
  stacktrace_create.
  (stacktrace_getClassContext): Likewise.
  (stacktrace_getCurrentClass): Likewise.
  (stacktrace_getStack): Likewise.
  (stacktrace_dump_trace): Removed.

  * src/vm/jit/stacktrace.h (threads/native/threads.h)
  (threads/none/threads.h): Removed.
  (stacktrace_create): Added.
  (stacktrace_dump_trace): Removed.

  * src/threads/native/threads.c (threads_dump): Removed.
  * src/threads/native/threads.h (threads_dump): Likewise.

  * src/threads/threads-common.c (vm/jit/stacktrace.h): Added.
  (threads_dump): Added.
  (threads_print_stacktrace): Likewise.

  * src/threads/threads-common.h (threads_dump): Added.
  (threads_print_stacktrace): Likewise.
........
  r7658 | twisti | 2007-04-03 18:06:30 +0200 (Tue, 03 Apr 2007) | 10 lines

  * src/threads/threads-common.c (threads_print_stacktrace): Pass
  stackframeinfo to stacktrace_create.

  * src/vm/jit/codegen-common.c (threads/native/threads.h): Removed.
  (threads/threads-common.h): Added.
  (codegen_get_pv_from_pc): Replaced stacktrace_dump_trace with
  threads_print_stacktrace.

  * src/vm/jit/stacktrace.h (stacktrace_print_trace_from_buffer): Added.
........
  r7659 | twisti | 2007-04-03 20:02:48 +0200 (Tue, 03 Apr 2007) | 2 lines

  * src/vm/jit/mips/md-abi.h (REG_FA0, REG_FA1, REG_FA2): Defined.
........
  r7660 | twisti | 2007-04-03 23:30:13 +0200 (Tue, 03 Apr 2007) | 2 lines

  * src/vm/jit/i386/linux/md-os.c (threads/threads-common.h): Added.
........
  r7661 | twisti | 2007-04-04 00:29:59 +0200 (Wed, 04 Apr 2007) | 11 lines

  * src/vm/jit/alpha/asmpart.S: Replaced __GNU__ with __linux__ for
  exec-stacks.
  * src/vm/jit/arm/asmpart.S: Likewise.
  * src/vm/jit/i386/asmpart.S: Likewise.
  * src/vm/jit/mips/asmpart.S: Likewise.
  * src/vm/jit/powerpc/asmpart.S: Likewise.
  * src/vm/jit/powerpc64/asmpart.S: Likewise.
  * src/vm/jit/s390/asmpart.S: Likewise.
  * src/vm/jit/sparc64/asmpart.S: Likewise.
  * src/vm/jit/x86_64/asmpart.S: Likewise.
........
  r7662 | twisti | 2007-04-04 16:16:37 +0200 (Wed, 04 Apr 2007) | 8 lines

  * src/native/vm/gnu/sun_misc_Unsafe.c: Header changes.

  * src/native/native.c [ENABLE_JAVASE]
  (native/include/sun_misc_Unsafe.h): Added.
  [ENABLE_JAVASE] (dummynativetable): Added
  Java_sun_misc_Unsafe_objectFieldOffset and
  Java_sun_misc_Unsafe_compareAndSwapInt.
........
  r7663 | twisti | 2007-04-05 00:14:42 +0200 (Thu, 05 Apr 2007) | 24 lines

  * src/vm/jit/parse.c (BYTECODEINDEX_TO_BASICBLOCK): Added.
  (parsedata_t): Removed instructionstart, added bytecodestart,
  basicblockstart, bytecodemap, instructionmap.
  (parse_setup): Allocate new arrays.
  (parse_bytecodeindex_to_basicblock): New function.
  (parse_mark_exception_boundaries): Pass parsedata_t.
  (parse_resolve_exception_table): Likewise.
  (parse): Completely rewritten so we are able to have basic block
  boundaries on IR instruction level. We now also resolve basic block
  pointers in this pass.

  * src/vm/jit/parse.h (MARK_BASICBLOCK): Pass parsedata_t.
  (BLOCK_OF): Removed.

  * src/vm/jit/jit.h (jitdata): Removed basicblockindex.

  * src/vm/jit/show.c (SHOW_TARGET): Print block instead of insindex.
  (show_icmd): Likewise.

  * src/vm/jit/stack.c (BRANCH_TARGET): Directly use block.
  (stack_analyse): Likewise.
  * src/vm/jit/verify/icmds.c: Likewise.
  * src/vm/jit/verify/typecheck-stackbased.c: Likewise.
........
  r7664 | twisti | 2007-04-05 00:29:36 +0200 (Thu, 05 Apr 2007) | 4 lines

  * src/vm/jit/verify/typecheck-stackbased.c: Use block directly instead
  of insindex.
  * src/vm/jit/verify/typecheck-stackbased-gen.inc: Newly generated.
........

--HG--
branch : exact-gc

17 years ago* src/mm/cacao-gc/rootset.h [!ENABLE_THREADS]: Added missing include.
michi [Thu, 5 Apr 2007 00:14:42 +0000 (00:14 +0000)]
* src/mm/cacao-gc/rootset.h [!ENABLE_THREADS]: Added missing include.

--HG--
branch : exact-gc

17 years agoMerged revisions 7639-7641 via svnmerge from
michi [Mon, 2 Apr 2007 23:14:41 +0000 (23:14 +0000)]
Merged revisions 7639-7641 via svnmerge from
svn+ssh://michi@c1.complang.tuwien.ac.at/ahome/cacao/svn/cacao/trunk

........
  r7641 | michi | 2007-04-03 01:13:55 +0200 (Tue, 03 Apr 2007) | 2 lines

  * src/vm/jit/replace.c: Added include to fix crash on x86_64.
........

--HG--
branch : exact-gc

17 years ago* src/mm/cacao-gc/gc.h: Enable __ALPHA__.
twisti [Mon, 2 Apr 2007 21:47:01 +0000 (21:47 +0000)]
* src/mm/cacao-gc/gc.h: Enable __ALPHA__.

* src/vm/jit/alpha/codegen.c (vm/jit/abi.h): Added.
(createnativestub) [ENABLE_GC_CACAO]: Save and restore callee saved
integer registers in the stackframe info for the GC.

--HG--
branch : exact-gc

17 years agoMerged revisions 7632-7638 via svnmerge from
michi [Mon, 2 Apr 2007 21:27:22 +0000 (21:27 +0000)]
Merged revisions 7632-7638 via svnmerge from
svn+ssh://michi@c1.complang.tuwien.ac.at/ahome/cacao/svn/cacao/trunk

........
  r7637 | twisti | 2007-04-02 22:58:30 +0200 (Mon, 02 Apr 2007) | 4 lines

  * src/vm/jit/alpha/md-abi.c (abi_registers_integer_argument): Added.
  (abi_registers_integer_saved): Likewise.
  (abi_registers_integer_temporary): Likewise.
........
  r7638 | twisti | 2007-04-02 23:24:59 +0200 (Mon, 02 Apr 2007) | 4 lines

  * src/vm/jit/alpha/linux/md-os.c [ENABLE_THREADS]
  (threads/native/threads.h): Added.
  [ENABLE_THREADS] (md_signal_handler_sigusr2): Added #ifdef.
........

--HG--
branch : exact-gc

17 years ago* src/mm/cacao-gc/gc.h: Enable __X86_64__.
twisti [Mon, 2 Apr 2007 20:48:33 +0000 (20:48 +0000)]
* src/mm/cacao-gc/gc.h: Enable __X86_64__.

* src/vm/jit/x86_64/codegen.c (vm/jit/abi.h): Added.
(createnativestub) [ENABLE_GC_CACAO]: Save and restore callee saved
integer registers in the stackframe info for the GC.

--HG--
branch : exact-gc

17 years ago* tests/gc/New.java: Added testcase.
michi [Mon, 2 Apr 2007 20:44:25 +0000 (20:44 +0000)]
* tests/gc/New.java: Added testcase.

--HG--
branch : exact-gc

17 years ago* src/mm/cacao-gc/gc.h: Enable __POWERPC__.
twisti [Mon, 2 Apr 2007 20:44:11 +0000 (20:44 +0000)]
* src/mm/cacao-gc/gc.h: Enable __POWERPC__.

* src/vm/jit/powerpc/codegen.c (vm/jit/abi.h): Added.
(createnativestub) [ENABLE_GC_CACAO]: Save and restore callee saved
integer registers in the stackframe info for the GC.

--HG--
branch : exact-gc

17 years ago* src/mm/cacao-gc/heap.c (heap_print_object): Fixed for 64 bit architectures.
michi [Mon, 2 Apr 2007 20:37:55 +0000 (20:37 +0000)]
* src/mm/cacao-gc/heap.c (heap_print_object): Fixed for 64 bit architectures.

--HG--
branch : exact-gc

17 years agoMerged revisions 7628-7631 via svnmerge from
michi [Mon, 2 Apr 2007 20:05:05 +0000 (20:05 +0000)]
Merged revisions 7628-7631 via svnmerge from
svn+ssh://michi@c1.complang.tuwien.ac.at/ahome/cacao/svn/cacao/trunk

........
  r7629 | twisti | 2007-04-02 21:45:20 +0200 (Mon, 02 Apr 2007) | 3 lines

  * src/vm/jit/parse.c (parse): JAVA_GOTO_W must be converted to a
  ICMD_GOTO.
........
  r7630 | twisti | 2007-04-02 21:56:14 +0200 (Mon, 02 Apr 2007) | 4 lines

  * src/vm/jit/x86_64/md-abi.c (abi_registers_integer_argument): Added.
  (abi_registers_integer_saved): Likewise.
  (abi_registers_integer_temporary): Likewise.
........
  r7631 | michi | 2007-04-02 22:04:22 +0200 (Mon, 02 Apr 2007) | 3 lines

  * src/vm/jit/stacktrace.c (stacktrace_create): Returns NULL if there is no
  stacktrace available for the given thread. Fixed comments.
........

--HG--
branch : exact-gc

17 years agoMerged revisions 7616-7627 via svnmerge from
michi [Mon, 2 Apr 2007 19:09:52 +0000 (19:09 +0000)]
Merged revisions 7616-7627 via svnmerge from
svn+ssh://michi@c1.complang.tuwien.ac.at/ahome/cacao/svn/cacao/trunk

........
  r7617 | twisti | 2007-03-30 01:22:07 +0200 (Fri, 30 Mar 2007) | 3 lines

  * src/vm/jit/powerpc/linux/md-os.c (md_signal_handler_sigsegv): Fixed
  address check (thanks Michi).
........
  r7619 | twisti | 2007-03-30 13:41:27 +0200 (Fri, 30 Mar 2007) | 9 lines

  * src/vm/jit/parse.c (parse_realloc_instructions): Renamed ipc to
  icount.
  (parse): Renamed ipc to icount, set method variables at the very end
  and use local variables before.

  * src/vm/jit/parse.h (INSTRUCTIONS_CHECK): Renamed ipc to icount.
  (PINC): Likewise.
  (OP_PREPARE_FLAGS): Likewise.
........
  r7620 | edwin | 2007-04-01 12:50:39 +0200 (Sun, 01 Apr 2007) | 3 lines

  * contrib/vmlog: Committed vmlog 0.0.5.
  * THIRDPARTY: Added copyright notice for vmlog.
........
  r7621 | stefan | 2007-04-01 18:18:16 +0200 (Sun, 01 Apr 2007) | 3 lines

  * src/vm/jit/powerpc/darwin/md-asm.h,
  src/vm/jit/i386/darwin/md-asm.h: added missing symbol asm_vm_call_method_end.
........
  r7622 | ajordan | 2007-04-02 00:53:59 +0200 (Mon, 02 Apr 2007) | 3 lines

  * src/vm/jit/sparc64/codegen.c: Implemented float argument passing for builtin calls.
  * src/vm/jit/sparc64/codegen.h: Likewise.
........
  r7623 | twisti | 2007-04-02 15:45:30 +0200 (Mon, 02 Apr 2007) | 5 lines

  * src/vm/jit/stack.c (stack_mark_reached): Added assert on b.
  (stack_mark_reached_from_outvars): Likewise.
  (stack_reach_next_block): Use NULL instead of !.
  (stack_analyse): Indent.
........
  r7624 | twisti | 2007-04-02 18:09:44 +0200 (Mon, 02 Apr 2007) | 3 lines

  * src/vm/jit/stack.c (stack_reach_next_block): Reformatted comments.
  (stack_analyse): Likewise.
........
  r7627 | twisti | 2007-04-02 20:56:59 +0200 (Mon, 02 Apr 2007) | 8 lines

  * src/vm/jit/jit.h (INS_FLAG_BASICBLOCK): Defined.
  (INS_FLAG_ID_SHIFT): Changed to 5.
  (INSTRUCTION_STARTS_BASICBLOCK): Added.

  * src/vm/jit/parse.c (parse): Changed basic block determination. Now
  basic blocks can start at IR instruction level. This is required for
  slow-fast path builtins.
........

--HG--
branch : exact-gc

17 years ago* tests/gc/ThreadJava.java: Added testcase.
michi [Mon, 2 Apr 2007 17:20:38 +0000 (17:20 +0000)]
* tests/gc/ThreadJava.java: Added testcase.
* tests/gc/ThreadSleep.java: Added testcase.

--HG--
branch : exact-gc

17 years ago* src/mm/cacao-gc/gc.c (gc_collect): Moved notification of finalizer thread.
michi [Mon, 2 Apr 2007 16:17:01 +0000 (16:17 +0000)]
* src/mm/cacao-gc/gc.c (gc_collect): Moved notification of finalizer thread.
* src/mm/cacao-gc/mark.c (mark_me): Cleaned up and ifdefed finalizer code.

--HG--
branch : exact-gc

17 years ago* tests/gc/NativeGlobalRef.java: Added testcase for global references.
michi [Fri, 30 Mar 2007 00:20:05 +0000 (00:20 +0000)]
* tests/gc/NativeGlobalRef.java: Added testcase for global references.
* tests/gc/native.c: Added native library for all testcases.
* tests/gc/Makefile: Added for easy handling of native testcases.

--HG--
branch : exact-gc

17 years agoMerged revisions 7599,7601-7615 via svnmerge from
michi [Thu, 29 Mar 2007 23:21:50 +0000 (23:21 +0000)]
Merged revisions 7599,7601-7615 via svnmerge from
svn+ssh://michi@c1.complang.tuwien.ac.at/ahome/cacao/svn/cacao/trunk

........
  r7604 | pm | 2007-03-29 08:52:15 +0200 (Thu, 29 Mar 2007) | 7 lines

   * src/vm/jit/s390/md-abi.h,
  src/vm/jit/s390/emit.c,
  src/vm/jit/s390/emit.h,
  src/vm/jit/s390/codegen.c,
  src/vm/jit/s390/codegen.h,
  src/vm/jit/s390/arch.h: Changed a lot.
........
  r7605 | twisti | 2007-03-29 13:04:25 +0200 (Thu, 29 Mar 2007) | 3 lines

  * src/vm/jit/powerpc/linux/md-os.c (md_signal_handler_sigsegv): Check
  for addr == NULL in NPE case.
........
  r7611 | ajordan | 2007-03-29 23:37:40 +0200 (Thu, 29 Mar 2007) | 6 lines

  * src/vm/jit/sparc64/md.c (md_get_pv_from_pc): Implemented sethi hanlding.

  * src/vm/jit/sparc64/codegen.c (createnativestub): Fixed window/stack handling in case of exception.
  * src/vm/jit/sparc64/asmpart.S (asm_call_jit_compiler): Likewise.
........
  r7612 | michi | 2007-03-29 23:56:35 +0200 (Thu, 29 Mar 2007) | 2 lines

  * src/mm/nogc.c: Fixed merging conflict which was commited to that file.
........
  r7614 | ajordan | 2007-03-30 01:01:58 +0200 (Fri, 30 Mar 2007) | 5 lines

  * src/vm/jit/sparc64/codegen.c (codegen_emit): Fixed ICMD_IREMPOW2.
  Added ICMD_L2F and ICMD_L2D.
  Fixed constant creation in IF_L* compares.
........

--HG--
branch : exact-gc

17 years ago* src/vm/builtin.c (builtin_fast_new): Added.
michi [Thu, 29 Mar 2007 23:10:59 +0000 (23:10 +0000)]
* src/vm/builtin.c (builtin_fast_new): Added.

* src/mm/memory.h: Defined away GC macros for cacao gc.

* src/vm/jit/mips/linux/md-os.c (md_init): Better use macro here.
* src/vm/jit/mips/irix/md-os.c (md_init): See above.

* src/vmcore/class.c (class_create_classinfo): Do not use GC macro.

* src/mm/gc-common.h (heap_alloc): Changed signature of old heap_allocate.

* src/mm/nogc.c (heap_alloc): Adapted to above changes.
* src/mm/boehm.c (heap_alloc): See above.
* src/mm/cacao-gc/heap.c (heap_alloc): See above.

* src/mm/cacao-gc/copy.c: Removed wrongly placed comment.

--HG--
branch : exact-gc

17 years ago* src/mm/cacao-gc/gc.c (gc_finalizer_all): Implemented
michi [Thu, 29 Mar 2007 22:42:48 +0000 (22:42 +0000)]
* src/mm/cacao-gc/gc.c (gc_finalizer_all): Implemented
* src/mm/cacao-gc/final.c (final_set_all_reclaimable): Added.
* src/mm/cacao-gc/final.h (final_set_all_reclaimable): Added prototype.

--HG--
branch : exact-gc

17 years ago* src/mm/cacao-gc/final.c (final_register): Uses list_add_first instead of list_add_last
michi [Thu, 29 Mar 2007 18:08:11 +0000 (18:08 +0000)]
* src/mm/cacao-gc/final.c (final_register): Uses list_add_first instead of list_add_last
to be more Sun-like.

* tests/gc/Final.java: Added testcase for finalization testing.
* tests/gc/FinalExit.java: See above.
* tests/gc/FinalForce.java: See above.

--HG--
branch : exact-gc