cacao.git
16 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

17 years agoMerged revisions 7600 via svnmerge from
michi [Thu, 29 Mar 2007 17:09:48 +0000 (17:09 +0000)]
Merged revisions 7600 via svnmerge from
svn+ssh://michi@c1.complang.tuwien.ac.at/ahome/cacao/svn/cacao/trunk

........
  r7600 | twisti | 2007-03-29 00:59:52 +0200 (Thu, 29 Mar 2007) | 3 lines

  * src/vm/exceptions.h (exceptionptr): Removed.
  (_no_threads_exceptionptr): Likewise.
........

--HG--
branch : exact-gc

17 years ago* src/mm/cacao-gc/gc.c (gc_collect): Added a global gc lock.
michi [Thu, 29 Mar 2007 16:59:52 +0000 (16:59 +0000)]
* src/mm/cacao-gc/gc.c (gc_collect): Added a global gc lock.

--HG--
branch : exact-gc

17 years ago* tests/gc/ThreadStress.java: Added stress test for threads.
michi [Thu, 29 Mar 2007 16:44:06 +0000 (16:44 +0000)]
* tests/gc/ThreadStress.java: Added stress test for threads.

--HG--
branch : exact-gc

17 years ago* src/mm/cacao-gc/heap.c (heap_increase_size): Uses vm_abort on error now.
michi [Thu, 29 Mar 2007 14:43:04 +0000 (14:43 +0000)]
* src/mm/cacao-gc/heap.c (heap_increase_size): Uses vm_abort on error now.
* src/mm/cacao-gc/gc.c (gc_finalize_all): Added.
* src/vm/jit/replace.c (replace_me) [ENABLE_GC_CACAO]: Fixed ifdef here.

--HG--
branch : exact-gc

17 years ago* test/gc: Added directory to contain Garbage Collector testcases.
michi [Wed, 28 Mar 2007 23:39:26 +0000 (23:39 +0000)]
* test/gc: Added directory to contain Garbage Collector testcases.

* test/gc/Chain.java: Added.
* tests/gc/Simple.java: Added.
* tests/gc/Hashcode.java: Added.

--HG--
branch : exact-gc

17 years agoRemoved author and contact from header, sorry for not listing every file here.
michi [Wed, 28 Mar 2007 23:16:49 +0000 (23:16 +0000)]
Removed author and contact from header, sorry for not listing every file here.

--HG--
branch : exact-gc

17 years agoMerged revisions 7501-7598 via svnmerge from
michi [Wed, 28 Mar 2007 23:02:50 +0000 (23:02 +0000)]
Merged revisions 7501-7598 via svnmerge from
svn+ssh://michi@c1.complang.tuwien.ac.at/ahome/cacao/svn/cacao/trunk

........
  r7503 | twisti | 2007-03-12 11:11:33 +0100 (Mon, 12 Mar 2007) | 11 lines

  * src/native/vm/cldc1.1/com_sun_cldc_io_ResourceInputStream.c
  (vm/vm.h): Added.
  (open): Call vm_abort.

  * src/native/vm/cldc1.1/com_sun_cldc_io_j2me_socket_Protocol.c
  (unistd.h): Added.
  (readByte): New function.
  (writeBuf): Likewise.
  (available0): Likewise.
  (close0): Likewise.
........
  r7504 | twisti | 2007-03-12 14:17:07 +0100 (Mon, 12 Mar 2007) | 2 lines

  * src/vm/jit/arm/md.c (vm/jit/codegen-common.h): Added.
........
  r7505 | twisti | 2007-03-12 14:34:37 +0100 (Mon, 12 Mar 2007) | 8 lines

  * src/vm/jit/codegen.c (codegen): Change the operand direction of some
  macros. Started to implement long-compares differently.

  * src/vm/jit/codegen.h (M_AND, M_ORR, M_EOR, M_AND_IMM, M_MOVEQ)
  (M_MOVVS_IMM, M_MOVNE_IMM, M_MOVLT_IMM, M_MOVLS_IMM): Changed operand
  direction.
  (M_ORR_S, M_CMPEQ, M_CMPLE): New macro.
........
  r7510 | michi | 2007-03-13 14:19:07 +0100 (Tue, 13 Mar 2007) | 2 lines

  * src/vm/jit/arm/linux/Makefile.am: Fixed include path to care about builddir.
........
  r7511 | michi | 2007-03-13 17:32:56 +0100 (Tue, 13 Mar 2007) | 6 lines

  * src/vm/jit/arm/codegen.c (codegen): Long branches are implemented
  differently now.

  * src/vm/jit/arm/codegen.h (M_COMPARE): Easier macros without overjumps.
  (M_MOVEQ_IMM, M_MOVGT_IMM, M_ADDHI_IMM, M_SUBLO_IMM, M_CMPEQ_IMM): New macro.
........
  r7513 | twisti | 2007-03-13 21:31:23 +0100 (Tue, 13 Mar 2007) | 2 lines

  * src/vm/jit/i386/codegen.c (codegen): Fixed compiler warning.
........
  r7514 | twisti | 2007-03-13 21:31:51 +0100 (Tue, 13 Mar 2007) | 5 lines

  * src/vm/jit/i386/emit.c (emit_load): Use switch-case instead of
  if-else contruct.
  (emit_store): Likewise.
  (emit_copy): Likewise.
........
  r7516 | michi | 2007-03-14 13:00:07 +0100 (Wed, 14 Mar 2007) | 2 lines

  * src/mm/nogc.c: Fixed includes and exceptions.
........
  r7518 | michi | 2007-03-14 17:44:05 +0100 (Wed, 14 Mar 2007) | 3 lines

  * src/vm/jit/arm/emit.c (emit_verbosecall_enter): Fixed bug with inmemory
  arguments, which caused some crashes with verbose-calls.
........
  r7519 | michi | 2007-03-14 18:31:05 +0100 (Wed, 14 Mar 2007) | 3 lines

  * src/vm/jit/arm/codegen.c (codegen): All the long compares have a different
  implementation now.
........
  r7520 | twisti | 2007-03-14 22:16:04 +0100 (Wed, 14 Mar 2007) | 2 lines

  * src/vm/jit/alpha/md.c (vm/jit/codegen-common.h): Added temporarily.
........
  r7521 | twisti | 2007-03-14 22:18:00 +0100 (Wed, 14 Mar 2007) | 5 lines

  * src/vm/jit/alpha/emit.c (emit_load): Use switch-case instead of
  if-else contruct.
  (emit_store): Likewise.
  (emit_copy): Likewise.
........
  r7522 | twisti | 2007-03-14 22:54:49 +0100 (Wed, 14 Mar 2007) | 7 lines

  * src/vmcore/statistics.c (size_string): Added.
  (statistics_print_memory_usage): Likewise.
  * src/vmcore/statistics.h (size_string): Likewise.

  * src/vm/string.c (vmcore/statistics.h): Added.
  (literalstring_u2): Added statistics.
........
  r7524 | pm | 2007-03-15 08:07:51 +0100 (Thu, 15 Mar 2007) | 7 lines

  * src/vm/jit/s390/codegen.c,
  src/vm/jit/s390/codegen.h: Changed a lot.
  * src/vm/jit/s390/tests,
  src/vm/jit/s390/tests/tests.java.pp,
  src/vm/jit/s390/tests/Makefile: Added opcode tests in java.
........
  r7525 | pm | 2007-03-15 09:23:19 +0100 (Thu, 15 Mar 2007) | 2 lines

  * src/vm/jit/s390/tests/tests.java.pp: added INT2CHAR test testing negative values.
........
  r7526 | twisti | 2007-03-15 10:28:56 +0100 (Thu, 15 Mar 2007) | 3 lines

  * src/native/jni.c (_Jv_jni_invokeNative): Release memory in exception
  case.
........
  r7534 | pm | 2007-03-17 00:00:18 +0100 (Sat, 17 Mar 2007) | 11 lines

  * src/vm/exceptions.c (exceptions_handle_exception): 31 bit address comparison for S390. These address comparison macros need to be moved to some header.
  * 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/arch.h,
  src/vm/jit/s390/patcher.c,
  src/vm/jit/s390/md-abi.c,
  src/vm/jit/s390/tests/tests.java.pp,
  src/vm/jit/s390/tests/Makefile: Changed a lot.
........
  r7535 | twisti | 2007-03-17 13:57:32 +0100 (Sat, 17 Mar 2007) | 2 lines

  * src/vm/builtin.c (builtin_isanysubclass): Cleanup and comments.
........
  r7536 | twisti | 2007-03-17 14:10:04 +0100 (Sat, 17 Mar 2007) | 2 lines

  * src/native/vm/gnu/java_lang_reflect_Method.c (vm/resolve.h): Added.
........
  r7537 | twisti | 2007-03-17 14:11:11 +0100 (Sat, 17 Mar 2007) | 3 lines

  * src/vm/builtin.c (builtin_isanysubclass): Code cleanup.
  (builtin_isanysubclass_vftbl): Likewise.
........
  r7538 | twisti | 2007-03-17 14:12:00 +0100 (Sat, 17 Mar 2007) | 3 lines

  * src/vm/builtin.h (builtin_isanysubclass_vftbl): Removed, made
  static.
........
  r7543 | ajordan | 2007-03-20 01:25:19 +0100 (Tue, 20 Mar 2007) | 3 lines

  * src/vm/jit/sparc64/md-abi.c (md_param_alloc_native): using this for native param allocation. No need for my own version of this anymore.
  * src/vm/jit/sparc64/codegen.c: Likewise.
........
  r7547 | twisti | 2007-03-21 14:18:20 +0100 (Wed, 21 Mar 2007) | 4 lines

  * src/vmcore/linker.c (link_primitivetype_table): Set super class
  explicitly to NULL.
  (linker_compute_subclasses): Indent.
........
  r7548 | twisti | 2007-03-21 14:19:44 +0100 (Wed, 21 Mar 2007) | 3 lines

  * src/vmcore/zip.c (zip_get): Don't assign in if-statement, this makes
  debugging a bit easier.
........
  r7549 | twisti | 2007-03-21 14:27:14 +0100 (Wed, 21 Mar 2007) | 22 lines

  * src/vmcore/statistics.c (size_threadobject, size_lock_hashtable)
  (size_lock_waiter): Added.
  (statistics_print_memory_usage): Print new variables.

  * src/vmcore/statistics.h (size_threadobject, size_lock_hashtable)
  (size_lock_waiter): Added.

  * src/threads/native/lock.c (vmcore/options.h): Added.
  [ENABLE_STATISTICS] (vmcore/statistics.h): Added.
  (lock_hashtable_init): Added statistics.
  (lock_hashtable_grow): Likewise.
  (lock_record_add_waiter): Likewise.
  (lock_record_remove_waiter): Likewise.

  * src/threads/native/threads.c [ENABLE_STATISTICS]
  (vmcore/statistics.h): Added.
  (threads_preinit): Added statistics.
  (threads_init): Likewise.
  (threads_start_javathread): Likewise.
  (threads_attach_current_thread): Likewise.
  (threads_detach_thread): Likewise.
........
  r7551 | twisti | 2007-03-21 15:26:09 +0100 (Wed, 21 Mar 2007) | 8 lines

  * src/vmcore/statistics.c (size_lock_record_pool): Added.
  (statistics_print_memory_usage): Print new variable.

  * src/vmcore/statistics.h (size_lock_record_pool): Added.

  * src/threads/native/lock.c (lock_record_alloc_new_pool): Added
  statistics.
........
  r7554 | michi | 2007-03-22 14:55:44 +0100 (Thu, 22 Mar 2007) | 3 lines

  * src/vm/jit/arm/codegen.c (codegen) [!ENABLE_SOFTFLOAT]: Fixed position of
  soft null pointer checks in PUTFIELD and GETFIELD.
........
  r7559 | twisti | 2007-03-23 12:56:31 +0100 (Fri, 23 Mar 2007) | 5 lines

  * src/vm/jit/powerpc/emit.c (emit_load): Use switch-case instead of
  if-else contruct.
  (emit_store): Likewise.
  (emit_copy): Likewise.
........
  r7560 | twisti | 2007-03-23 19:51:41 +0100 (Fri, 23 Mar 2007) | 4 lines

  * src/vmcore/classcache.c (classcache_add_constraint)
  [CLASSCACHE_VERBOSE]: Started to use log-functions.
  (classcache_debug_dump): Likewise.
........
  r7561 | twisti | 2007-03-23 20:10:35 +0100 (Fri, 23 Mar 2007) | 7 lines

  * src/vm/global.h (ACC_CLASS_PRIMITIVE): Defined.

  * src/vm/builtin.c (builtin_isanysubclass): Check for primitive
  classes.

  * src/vmcore/linker.c (link_primitivetype_table): Set primitive flag.
........
  r7562 | twisti | 2007-03-23 21:38:14 +0100 (Fri, 23 Mar 2007) | 4 lines

  * src/vm/builtin.c (builtin_isanysubclass_vftbl): Removed.
  (builtin_descriptorscompatible): Use builtin_isanysubclass instead of
  builtin_isanysubclass_vftbl.
........
  r7563 | twisti | 2007-03-23 22:33:53 +0100 (Fri, 23 Mar 2007) | 22 lines

  * src/vm/builtin.c (builtin_isanysubclass): Removed.
  (builtin_instanceof): Replaced builtin_isanysubclass with
  class_isanysubclass.
  (builtin_descriptorscompatible): Likewise.

  * src/vm/builtin.h (builtin_isanysubclass): Removed.

  * src/vm/access.c (access_is_accessible_member): Replaced
  builtin_isanysubclass with class_isanysubclass.
  * src/native/vm/java_lang_Class.c (isAssignableFrom): Likewise.

  * src/vm/jit/asmpart.h (castinfo): Removed.

  * src/vmcore/class.c (vm/jit/asmpart.h): Added.
  (class_isanysubclass): New function.

  * src/vmcore/class.h (castinfo): Added.
  (class_isanysubclass): Likewise.

  * src/cacaoh/dummy.c (asm_getclassvalues_atomic): New function.
  (intrp_asm_getclassvalues_atomic): Likewise.
........
  r7573 | twisti | 2007-03-25 20:55:02 +0200 (Sun, 25 Mar 2007) | 21 lines

  * src/native/native.c (native_get_parametertypes): Removed.
  (native_get_exceptiontypes): Likewise.
  * src/native/native.h: Likewise.

  * src/vmcore/method.c (vm/builtin.h): Added.
  (vm/resolve.h): Likewise.
  (method_get_parametertypearray): New function.
  (method_get_exceptionarray): Likewise.
  * src/vmcore/method.h (method_get_parametertypearray): Added.
  (method_get_exceptionarray): Likewise.

  * src/cacaoh/dummy.c (builtin_anewarray): Added.
  (resolve_class_from_typedesc): Likewise.

  * src/native/vm/gnu/java_lang_reflect_Method.c (getParameterTypes):
  Use method function.
  (getExceptionTypes): Likewise.
  * src/native/vm/gnu/java_lang_reflect_Constructor.c
  (getParameterTypes): Likewise.
  (getExceptionTypes): Likewise.
........
  r7575 | twisti | 2007-03-25 22:30:50 +0200 (Sun, 25 Mar 2007) | 9 lines

  Reverted patch 7268.

  * src/vm/jit/code.c: Reverted.
  * src/vm/jit/code.h: Likewise.
  * src/vm/jit/jit.c: Likewise.
  * src/vm/jit/jit.h: Likewise.
  * src/vmcore/loader.c: Likewise.
  * src/vmcore/method.h: Likewise.
........
  r7581 | pm | 2007-03-26 09:23:16 +0200 (Mon, 26 Mar 2007) | 10 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/codegen.h,
  src/vm/jit/s390/tests/tests.java.pp,
  src/vm/jit/s390/patcher.c,
  src/vm/jit/s390/md-abi.c: Chaned a lot.
........
  r7587 | twisti | 2007-03-28 15:29:09 +0200 (Wed, 28 Mar 2007) | 19 lines

  * src/vm/exceptions.c (throw_exception_exit_intern): Removed.
  (throw_exception): Likewise.
  (throw_exception_exit): Likewise.
  (throw_main_exception): Likewise.
  (throw_main_exception_exit): Likewise.
  (throw_cacao_exception_exit): Likewise.
  (exceptions_print_stacktrace): New function.
  * src/vm/exceptions.h: Likewise.

  * src/vm/vm.c (vm_create): Use vm_abort or exceptions_print_stacktrace
  instead of throw_main_exception_exit.
  (vm_run): Likewise.
  (vm_exit): Likewise.
  (vm_get_mainclass_from_jar): Likewise.

  * src/threads/native/threads.c (threads_init): Use return instead of
  throw_exception_exit.
  (threads_startup_thread): Use vm_abort.
........
  r7593 | twisti | 2007-03-28 22:22:13 +0200 (Wed, 28 Mar 2007) | 3 lines

  Initialized merge tracking via "svnmerge" with revisions "1-7592" from
  svn+ssh://c1.complang.tuwien.ac.at/ahome/cacao/svn/cacao/branches/twisti
........
  r7594 | twisti | 2007-03-28 22:28:37 +0200 (Wed, 28 Mar 2007) | 3 lines

  Initialized merge tracking via "svnmerge" with revisions "1-6086" from
  svn+ssh://c1.complang.tuwien.ac.at/ahome/cacao/svn/cacao/branches/twisti
........
  r7595 | twisti | 2007-03-28 22:50:34 +0200 (Wed, 28 Mar 2007) | 3 lines

  Initialized merge tracking via "svnmerge" with revisions "1-6085" from
  file:///ahome/cacao/svn/cacao/branches/twisti
........
  r7596 | twisti | 2007-03-28 23:05:53 +0200 (Wed, 28 Mar 2007) | 2 lines

  * Merged in twisti-branch.
........
  r7597 | michi | 2007-03-29 00:25:44 +0200 (Thu, 29 Mar 2007) | 2 lines

  * AUTHORS: Added myself to the list of authors (finally).
........
  r7598 | twisti | 2007-03-29 00:32:13 +0200 (Thu, 29 Mar 2007) | 2 lines

  * svnmerge uninit.
........

--HG--
branch : exact-gc

17 years ago* src/mm/cacao-gc/gc.h: Added GC_EXECUTIONSTATE and GC_SOURCESTATE defines.
michi [Wed, 28 Mar 2007 22:55:14 +0000 (22:55 +0000)]
* src/mm/cacao-gc/gc.h: Added GC_EXECUTIONSTATE and GC_SOURCESTATE defines.
* src/mm/cacao-gc/gc.c [!ENABLE_THREADS]: Added _no_threads variables for
above defines.

* src/mm/cacao-gc/rootset.c: Now uses above defines.
* src/vm/jit/replace.c (replace_me, replace_gc_from_native): Same.

--HG--
branch : exact-gc

17 years ago* src/mm/cacao-gc/heap.c: Fixed includes.
michi [Mon, 12 Mar 2007 01:56:40 +0000 (01:56 +0000)]
* src/mm/cacao-gc/heap.c: Fixed includes.

--HG--
branch : exact-gc

17 years ago* src/mm/cacao-gc/gc.c (gc_suspend): Implemented.
michi [Mon, 12 Mar 2007 01:24:06 +0000 (01:24 +0000)]
* src/mm/cacao-gc/gc.c (gc_suspend): Implemented.
(gc_collect): Now properly suspends threads before collecting.

--HG--
branch : exact-gc

17 years ago* src/vm/jit/replace.c [ENABLE_GC_CACAO] (replace_gc_from_native): Added.
michi [Mon, 12 Mar 2007 01:12:39 +0000 (01:12 +0000)]
* src/vm/jit/replace.c [ENABLE_GC_CACAO] (replace_gc_from_native): Added.
(replace_me) [ENABLE_GC_CACAO]: Different execution path for the exact GC.
(replace_map_source_state_identity): Added.

--HG--
branch : exact-gc

17 years ago* src/mm/cacao-gc/rootset.c (rootset_from_thread): Local references are added.
michi [Mon, 12 Mar 2007 00:55:41 +0000 (00:55 +0000)]
* src/mm/cacao-gc/rootset.c (rootset_from_thread): Local references are added.

--HG--
branch : exact-gc

17 years ago* src/mm/cacao-gc/compact.c: Class fields are no longer threaded directly.
michi [Mon, 12 Mar 2007 00:39:43 +0000 (00:39 +0000)]
* src/mm/cacao-gc/compact.c: Class fields are no longer threaded directly.
* src/mm/cacao-gc/mark.c: Class fields are no longer marked directly.

--HG--
branch : exact-gc

17 years ago* src/threads/native/threads.h (threadobject): Struct now contains es and ss.
michi [Mon, 12 Mar 2007 00:19:05 +0000 (00:19 +0000)]
* src/threads/native/threads.h (threadobject): Struct now contains es and ss.
* src/threads/native/threads.c (threads_suspend_ack): Informs GC about suspend.
* src/vm/jit/i386/linux/md-os.c (md_signal_handler_sigusr1): Pass SP as well.
* src/mm/cacao-gc/gc.h (gc_suspend): Adapted prototype.
* src/mm/cacao-gc/rootset.c (rootset_from_thread): Uses ss of threadobject.

--HG--
branch : exact-gc

17 years ago* src/vm/jit/code.c (code_find_codeinfo_for_pc_nocheck): Added.
michi [Sun, 11 Mar 2007 23:35:33 +0000 (23:35 +0000)]
* src/vm/jit/code.c (code_find_codeinfo_for_pc_nocheck): Added.
* src/vm/jit/code.h (code_find_codeinfo_for_pc_nocheck): Added prototype.

--HG--
branch : exact-gc

17 years ago* src/mm/cacao-gc/region.h (regioninfo_t): Added object header for locking.
michi [Sun, 11 Mar 2007 23:32:09 +0000 (23:32 +0000)]
* src/mm/cacao-gc/region.h (regioninfo_t): Added object header for locking.
* src/mm/cacao-gc/region.c (region_create): Header mentioned above is initiated.
* src/mm/cacao-gc/heap.c (heap_alloc_intern): Lock regions while allocating.

--HG--
branch : exact-gc

17 years agoAdded support for thread suspension!
michi [Thu, 8 Mar 2007 19:49:42 +0000 (19:49 +0000)]
Added support for thread suspension!

* src/threads/native/threads.h (threadobject): Needed fields added.
* src/threads/native/threads.c (threads_stopworld, threads_startworld): Improved.
(threads_suspend_thread, threads_resume_thread, threads_suspend_ack): Added.

* src/vm/jit/i386/linux/md-os.c (md_signal_handler_sigusr1): Adapted to changes.

--HG--
branch : exact-gc

17 years ago* src/vm/jit/replace.c (replace_me): Loads sfi of current thread.
michi [Thu, 8 Mar 2007 19:40:09 +0000 (19:40 +0000)]
* src/vm/jit/replace.c (replace_me): Loads sfi of current thread.
(replace_recover_source_state): No longer bound to current thread.

* src/mm/cacao-gc/rootset.c (rootset_from_thread): Loads sfi from passed thread.

--HG--
branch : exact-gc

17 years ago* src/threads/native/threads.h: Added THREAD_FLAG_IN_NATIVE and gc_critical.
michi [Thu, 8 Mar 2007 17:12:56 +0000 (17:12 +0000)]
* src/threads/native/threads.h: Added THREAD_FLAG_IN_NATIVE and gc_critical.
* src/threads/native/threads.c: Init and dump the above flags.

* src/vm/vm.c: Change the THREAD_IN_NATIVE_FLAG accordingly.
* src/vm/jit/codegen-common.c: Same as above.

--HG--
branch : exact-gc

17 years agoMerged revisions 7441-7480 via svnmerge from
michi [Thu, 8 Mar 2007 13:17:40 +0000 (13:17 +0000)]
Merged revisions 7441-7480 via svnmerge from
svn+ssh://michi@c1.complang.tuwien.ac.at/ahome/cacao/svn/cacao/trunk

........
  r7442 | pm | 2007-03-03 00:28:37 +0100 (Sat, 03 Mar 2007) | 8 lines

  * src/vm/jit/s390/emit.c,
  src/vm/jit/s390/codegen.c,
  src/vm/jit/s390/codegen.h,
  src/vm/jit/s390/md-asm.h,
  src/vm/jit/s390/patcher.c,
  src/vm/jit/s390/asmpart.S: Changed a lot in S390 codegen.
........
  r7444 | edwin | 2007-03-04 13:28:37 +0100 (Sun, 04 Mar 2007) | 5 lines

  * tests/regression/resolving/test_return_subtype_violated.java:
  New test.

  * tests/regression/resolving/Makefile.am: Added new test.
........
  r7445 | edwin | 2007-03-04 13:32:59 +0100 (Sun, 04 Mar 2007) | 4 lines

  * tests/regression/resolving/test_return_subtype_ok.java: New test.

  * tests/regression/resolving/Makefile.am: Added new test.
........
  r7446 | edwin | 2007-03-04 15:02:49 +0100 (Sun, 04 Mar 2007) | 2 lines

  * src/vm/jit/inline/inline.c: Committed breadth-first inlining code.
........
  r7447 | edwin | 2007-03-04 15:22:42 +0100 (Sun, 04 Mar 2007) | 6 lines

  * src/vmcore/method.h (methodinfo): Added hitcountdown field. (Only
  if ENABLE_REPLACEMENT).

  * src/vmcore/loader.c (loader_load_method): Initialize hitcountdown
  field.
........
  r7448 | edwin | 2007-03-04 15:46:21 +0100 (Sun, 04 Mar 2007) | 5 lines

  * src/vm/jit/i386/codegen.c (codegen): Emit code for countdown traps.

  * src/vm/jit/i386/emit.c (emit_replacement_stubs): Add jump reference
  for countdown traps.
........
  r7449 | twisti | 2007-03-04 19:07:55 +0100 (Sun, 04 Mar 2007) | 5 lines

  * src/vm/jit/x86_64/emit.c (emit_load): Use switch-case instead of
  if-else contruct.
  (emit_store): Likewise.
  (emit_copy): Likewise.
........
  r7450 | edwin | 2007-03-04 20:13:29 +0100 (Sun, 04 Mar 2007) | 8 lines

  * src/vmcore/options.h, src/vmcore/options.c, src/vmcore/method.c,
  src/vmcore/linker.c: Replayed lost parts of commit 7228.

  * src/vm/jit/intrp/intrp.h: Added missing #include to make it compile.

  * src/vm/jit/inline/inline.c: Fixed names of vmcore/ #include files.
........
  r7451 | edwin | 2007-03-04 21:10:18 +0100 (Sun, 04 Mar 2007) | 7 lines

  * src/vm/jit/replace.c: Handle countdown traps. Request optimization
  of hot methods and their callers.

  * src/vm/jit/jit.c (jit_compile): Set JITDATA_FLAG_COUNTDOWN for
  inlining.
  (jit_recompile): Set JITDATA_FLAG_INLINE for inlining.
........
  r7453 | pm | 2007-03-05 09:38:29 +0100 (Mon, 05 Mar 2007) | 8 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/patcher.c: Changed a lot.
........
  r7457 | edwin | 2007-03-05 17:53:45 +0100 (Mon, 05 Mar 2007) | 3 lines

  * src/vmcore/resolve.h, src/vmcore/resolve.c
  (resolve_classref_or_classinfo_eager): New function.
........
  r7458 | edwin | 2007-03-05 18:32:38 +0100 (Mon, 05 Mar 2007) | 2 lines

  * src/vm/jit/code.c (code_get_methodinfo_from_pv): New function.
........
  r7459 | edwin | 2007-03-05 18:34:43 +0100 (Mon, 05 Mar 2007) | 4 lines

  * src/vm/builtin.h (builtintable_replace_function): Don't use
  instruction * to avoid bootstrapping problems.
  * src/vm/builtin.c (builtintable_replace_function): Likewise.
........
  r7460 | edwin | 2007-03-05 18:44:20 +0100 (Mon, 05 Mar 2007) | 5 lines

  * src/native/vm/java_lang_Class.c (_Jv_java_lang_Class_getSuperclass),
  (_Jv_java_lang_Class_getDeclaringClass)
  (_Jv_java_lang_Class_getDeclaredClasses):
  Use resolve_classref_or_classinfo_eager.
........
  r7461 | edwin | 2007-03-06 00:50:33 +0100 (Tue, 06 Mar 2007) | 3 lines

  * src/native/native.c (native_get_exceptiontypes):
  Use resolve_classref_or_classinfo_eager.
........
  r7462 | edwin | 2007-03-06 00:56:41 +0100 (Tue, 06 Mar 2007) | 2 lines

  * src/cacaoh/headers.c: Don't include asmpart.h.
........
  r7463 | edwin | 2007-03-06 01:02:04 +0100 (Tue, 06 Mar 2007) | 3 lines

  * src/vmcore/linker.c (link_class_intern):
  Use resolve_classref_or_classinfo_eager.
........
  r7464 | edwin | 2007-03-06 01:26:31 +0100 (Tue, 06 Mar 2007) | 30 lines

  * src/vmcore/resolve.c: Moved back to src/vm/resolve.c.
  * src/vmcore/resolve.h: Moved back to src/vm/resolve.h.
  * src/vm/jit/code.h (codeinfo): Moved typedef to method.h.
  (code_get_methodinfo_for_pv): Added prototype.
  * src/vmcore/method.h (codeinfo): Moved typedef here.

  * src/vm/jit_interface.h: New file.

  * src/vm/Makefile.am: Added resolve.[ch] and jit_interface.h.
  * src/vmcore/Makefile.am: Removed resolve.[ch].

  * src/vmcore/class.c: Include "arch.h", but don't include "resolve.h".

  * src/vmcore/method.c (method_vftbl_lookup):
  Use code_get_methodinfo_for_pv.

  * src/vmcore/linker.c (resolve_classref_or_classinfo_eager): Added
  copy of prototype to avoid bootstrapping issues.

  * src/cacaoh/dummy.c (code_get_methodinfo_for_pv): New dummy.
  (resolve_classref_or_classinfo_eager): Simple implementation that does
  not use resolve.c code.
  (typeinfo_init_class): Removed dummy.
  (typeinfo_init_classinfo): Likewise.
  (typeinfo_is_assignable_to_class): Likewise.
  (typeinfo_print): Likewise.

  * many other files: Changed #include "vmcore/resolve.h" to
  "vm/resolve.h".
........
  r7465 | edwin | 2007-03-06 01:27:12 +0100 (Tue, 06 Mar 2007) | 2 lines

  * src/vm/jit_interface.h: Added Id keyword.
........
  r7468 | twisti | 2007-03-06 12:12:03 +0100 (Tue, 06 Mar 2007) | 11 lines

  * src/vmcore/statistics.c (vm/jit/code.h): Added for codeinfo.
  (vmcore/class.h): Added.
  (vmcore/field.h): Likewise.
  (vmcore/method.h): Likewise.

  * src/vm/jit/optimizing/recompile.c (vm/jit/code.h): Likewise.
  (vm/jit/jit.h): Likewise.

  * src/vm/jit/x86_64/md.c (vm/jit/codegen-common.h): Likewise.
  * src/vm/jit/x86_64/md-abi.c (vm/jit/jit.h): Likewise.
........
  r7470 | twisti | 2007-03-06 18:01:19 +0100 (Tue, 06 Mar 2007) | 6 lines

  * src/vm/vm.c (vm_create): Reenabled signal-thread. This only works on
  NPTL-threads and NOT with linuxthreads!

  * src/vm/signal.c (signal_init): Reenabled blocking for SIGINT and
  SIGQUIT.
........
  r7471 | twisti | 2007-03-06 18:01:49 +0100 (Tue, 06 Mar 2007) | 2 lines

  * src/vm/signal.c (arch.h): Added.
........
  r7472 | ajordan | 2007-03-06 19:55:12 +0100 (Tue, 06 Mar 2007) | 10 lines

  * src/vm/jit/sparc64/emit.c: emit_{load,store,copy} changed to switch/case for handling different types.

  * src/vm/jit/sparc64/codegen.h: fixed f2d and d2f conversion.

  * src/vm/jit/sparc64/md-abi.c: removed md_native_reg_setup(), not needed any longer.

  * src/vm/jit/sparc64/codegen.c: implemented ICMD_MULTIANEWARRAY.
  fixed FRETURN, DRETURN.
  repaired native float arg passing.
........
  r7473 | ajordan | 2007-03-07 01:32:35 +0100 (Wed, 07 Mar 2007) | 6 lines

  * src/vm/jit/sparc64/md-abi.h: increased number of JIT float argument registers to 5.
  * src/vm/jit/sparc64/md-asm.h: likewise.
  * src/vm/jit/sparc64/md-abi.c: likewise.

  * src/vm/jit/sparc64/asmpart.S: added floating point argument handling in asm_vm_call.
........
  r7474 | michi | 2007-03-07 12:47:45 +0100 (Wed, 07 Mar 2007) | 9 lines

  * src/threads/native/threads.h (threadobject): This structure is no longer an
  instance of java.lang.Thread, but contains a reference to it.

  * src/threads/native/threads.c (threads_start_javathread): Added.

  * src/threads/threads-common.c: Adapted to above changes.
  * src/threads/native/threads.c: See above.
  * src/native/vm/java_lang_Thread.c: See above.
........
  r7475 | twisti | 2007-03-07 13:37:34 +0100 (Wed, 07 Mar 2007) | 3 lines

  * src/vm/jit/x86_64/asmpart.S (asm_compare_and_swap): New function.
  (asm_memory_barrier): Likewise.
........
  r7476 | twisti | 2007-03-07 14:12:01 +0100 (Wed, 07 Mar 2007) | 2 lines

  * src/vm/jit/x86_64/emit.c (emit_call_reg): Call emit_rex with size 0.
........
  r7477 | twisti | 2007-03-07 15:05:04 +0100 (Wed, 07 Mar 2007) | 2 lines

  * src/vm/jit/mips/md.c (vm/jit/codegen-common.h): Temporarily added.
........
  r7478 | michi | 2007-03-08 03:59:31 +0100 (Thu, 08 Mar 2007) | 5 lines

  * src/threads/native/threads.c (threads_init) [!ENABLE_GC_CACAO]: Fixed bug for
  lost java.lang.Thread object of mainthread with BoehmGC.

  * src/native/vm/java_lang_Thread.c: Fixed includes to prevend compiler warnings.
........

--HG--
branch : exact-gc

17 years ago* src/vm/jit/i386/linux/md-os.c: Cleaned up.
michi [Thu, 8 Mar 2007 13:16:34 +0000 (13:16 +0000)]
* src/vm/jit/i386/linux/md-os.c: Cleaned up.
* src/mm/cacao-gc/gc.h: Fixed includes.
* src/mm/cacao-gc/gc.c (gc_pending): Added global variable.

--HG--
branch : exact-gc

17 years ago* src/mm/cacao-gc/gc.h (gc_suspend): Added prototype.
michi [Thu, 8 Mar 2007 12:46:19 +0000 (12:46 +0000)]
* src/mm/cacao-gc/gc.h (gc_suspend): Added prototype.

* src/vm/signale.c (signale_init) [ENABLE_GC_CACAO]: Handler for SIGUSR1.
* src/vm/signallocal.h: Added prototype for SIGUSR1 handler.

* src/vm/jit/i386/linux/md-os.c (md_signal_handler_sigusr1): Added.

--HG--
branch : exact-gc

17 years ago* src/mm/cacao-gc/copy.c: Added file.
michi [Tue, 6 Mar 2007 10:30:32 +0000 (10:30 +0000)]
* src/mm/cacao-gc/copy.c: Added file.
* src/mm/cacao-gc/copy.h: Added file.
* src/mm/cacao-gc/Makefile.am: See above.

* src/mm/cacao-gc/heap.c: Moved copy specific stuff to own file.

* src/mm/cacao-gc/gc.c: Now tests copy collections.

--HG--
branch : exact-gc

17 years agoStatic class references are now explicitly added to the rootset.
michi [Tue, 6 Mar 2007 10:28:12 +0000 (10:28 +0000)]
Static class references are now explicitly added to the rootset.

* src/mm/cacao-gc/rootset.c (rootset_from_classes): Added.
* src/mm/cacao-gc/rootset.h (REFTYPE_CLASSREF): Added.

--HG--
branch : exact-gc

17 years ago* src/vmcore/rt-timing.c: Added rt-timing for heap allocation time.
michi [Sat, 3 Mar 2007 00:20:18 +0000 (00:20 +0000)]
* src/vmcore/rt-timing.c: Added rt-timing for heap allocation time.
* src/vmcore/rt-timing.h: See above.

* src/mm/boehm.c (heap_allocate): Heap allocation time is measured.

* src/mm/cacao-gc/heap.c (heap_allocate): Heap allocation time is measured.

--HG--
branch : exact-gc

17 years agoMerged revisions 7407-7440 via svnmerge from
michi [Fri, 2 Mar 2007 23:13:10 +0000 (23:13 +0000)]
Merged revisions 7407-7440 via svnmerge from
svn+ssh://michi@c1.complang.tuwien.ac.at/ahome/cacao/svn/cacao/trunk

........
  r7408 | twisti | 2007-02-26 23:11:38 +0100 (Mon, 26 Feb 2007) | 15 lines

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

  * src/native/vm/gnu/java_lang_VMClassLoader.c
  (native/vm/java_lang_ClassLoader.h): Added.
  (defineClass): Removed code and call
  _Jv_java_lang_ClassLoader_defineClass.

  * src/native/vm/Makefile.am (libnativevm_la_SOURCES): Added
  java_lang_ClassLoader.[ch].

  * src/native/jni.c [ENABLE_JAVASE]
  (native/vm/java_lang_ClassLoader.h): Added.
  (_Jv_JNI_DefineClass): Removed env and NULL arguments.
........
  r7409 | ajordan | 2007-02-27 03:07:00 +0100 (Tue, 27 Feb 2007) | 8 lines

  * configure.ac: added solaris specific stuff: arch defines, libintl dependency and solaris subdir makefile.

  * src/vm/jit/stacktrace.h: declared SPARC specific functions.

  * src/vm/jit/sparc64/emit.c: fixed call to builtin_verbosecall_exit.

  * src/vm/jit/sparc64/solaris/md-os.c: signal handling disabled, can't test right now.
........
  r7412 | twisti | 2007-02-27 22:13:26 +0100 (Tue, 27 Feb 2007) | 2 lines

  * src/vm/jit/sparc64/solaris: Set ignore-properties.
........
  r7414 | pm | 2007-02-28 08:22:04 +0100 (Wed, 28 Feb 2007) | 5 lines

  * src/vm/jit/s390/codegen.c (codegen): Added ICMD_AASTORE.
  * src/vm/jit/s390/asmpart.S (asm_patcher_wrapper): Added exception handler.
  * src/vm/jit/s390/asmpart.S (asm_call_jit_compiler): Likewise.
........
  r7415 | twisti | 2007-02-28 14:23:54 +0100 (Wed, 28 Feb 2007) | 3 lines

  * src/native/vm/java_lang_ClassLoader.c (defineClass): Added
  loader-variable for convenience.
........
  r7416 | twisti | 2007-02-28 14:25:56 +0100 (Wed, 28 Feb 2007) | 2 lines

  * src/native/vm/java_lang_ClassLoader.c (vm/stringlocal.h): Added.
........
  r7418 | twisti | 2007-02-28 21:07:06 +0100 (Wed, 28 Feb 2007) | 13 lines

  * src/vm/access.c (access_check_caller): Renamed to
  access_check_member. Don't call access_is_accessible_class, this is
  wrong.

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

  * src/native/vm/gnu/java_lang_reflect_Field.c (CHECKFIELDACCESS):
  Removed.
  (cacao_get_field_address): Use access_check_member.

  * src/native/vm/gnu/java_lang_reflect_Method.c (invokeNative): Likewise.
........
  r7419 | twisti | 2007-02-28 23:00:50 +0100 (Wed, 28 Feb 2007) | 3 lines

  * src/vm/access.h (access_check_caller): Renamed to
  access_check_member.
........
  r7420 | edwin | 2007-02-28 23:30:31 +0100 (Wed, 28 Feb 2007) | 3 lines

  * src/vm/jit/stack.c (stack_analyse): Fix: reset TYPE_VOID to
  TYPE_ADR at the end of stack_analyse.
........
  r7421 | twisti | 2007-02-28 23:31:50 +0100 (Wed, 28 Feb 2007) | 4 lines

  * src/vm/vm.c (vm_create): Changed initialization order. Call
  properties_postinit later, since it puts a pointer to
  _Jv_bootclasspath into the properties list.
........
  r7422 | edwin | 2007-02-28 23:50:28 +0100 (Wed, 28 Feb 2007) | 4 lines

  * tests/regression/jasmin/test_verify_ok_local_as_retaddr_and_reference.j:
  New test.
  * tests/regression/jasmin/Makefile.am: Added new test.
........
  r7423 | edwin | 2007-03-01 00:20:58 +0100 (Thu, 01 Mar 2007) | 2 lines

  * src/vm/jit/stack.c (stack_analyse): Minor STACK_VERBOSE improvements.
........
  r7424 | edwin | 2007-03-01 00:27:15 +0100 (Thu, 01 Mar 2007) | 3 lines

  * src/vm/jit/verify/typecheck.c (handle_basic_block): Move the printing
  of the block to a point where jd->var is already valid.
........
  r7425 | twisti | 2007-03-01 00:39:48 +0100 (Thu, 01 Mar 2007) | 2 lines

  * src/cacaoh/dummy.c (typeinfo_print): Added.
........
  r7426 | twisti | 2007-03-01 00:57:39 +0100 (Thu, 01 Mar 2007) | 5 lines

  * src/vmcore/classcache.c (toolbox/logging.h): Added.
  (classcache_merge_class_entries): Replace log_text with log_println.
  (classcache_store): Likewise.
  (classcache_store_defined): Likewise.
........
  r7427 | edwin | 2007-03-01 13:32:10 +0100 (Thu, 01 Mar 2007) | 3 lines

  * src/vmcore/resolve.c (resolve_classref_or_classinfo): Always use
  refmethod->class as the referring class, if it is available.
........
  r7428 | twisti | 2007-03-01 13:39:45 +0100 (Thu, 01 Mar 2007) | 6 lines

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

  * src/native/vm/java_lang_ClassLoader.c (native/jni.h): Added.
........
  r7431 | edwin | 2007-03-01 14:49:14 +0100 (Thu, 01 Mar 2007) | 14 lines

  * src/vmcore/resolve.h, src/vmcore/resolve.c
  (resolve_class_eager_no_access_check): New function.

  * src/vm/jit/powerpc/patcher.c: Use resolve_class_eager_no_access_check.
  * src/vm/jit/arm/patcher.c: Likewise.
  * src/vm/jit/sparc64/patcher.c: Likewise.
  * src/vm/jit/alpha/patcher.c: Likewise.
  * src/vm/jit/s390/patcher.c: Likewise.
  * src/vm/jit/mips/patcher.c: Likewise.
  * src/vm/jit/powerpc64/patcher.c: Likewise.
  * src/vm/jit/i386/patcher.c: Likewise.
  * src/vm/jit/x86_64/patcher.c: Likewise.
........
  r7433 | edwin | 2007-03-02 20:42:13 +0100 (Fri, 02 Mar 2007) | 3 lines

  * tests/regression/resolving: Added resolving test suite. These tests
  check lazy loading, classloader handling, loading & subtype constraints.
........
  r7434 | edwin | 2007-03-02 20:44:53 +0100 (Fri, 02 Mar 2007) | 2 lines

  * configure.ac: Added Makefiles of resolving test suite.
........
  r7435 | edwin | 2007-03-02 20:45:42 +0100 (Fri, 02 Mar 2007) | 2 lines

  * src/vmcore/classcache.c: Print debug messages to stdout.
........

--HG--
branch : exact-gc

17 years ago* src/vmcore/rt-timing.h: Added gc rt-timing defines.
michi [Fri, 2 Mar 2007 22:47:11 +0000 (22:47 +0000)]
* src/vmcore/rt-timing.h: Added gc rt-timing defines.
* src/vmcore/rt-timing.c [ENABLE_GC_CACAO]: Added gc rt-timing entries.
* src/mm/cacao-gc/gc.c: Added realtime-timing.

* src/mm/cacao-gc/heap.h: Removed unused global variables.

--HG--
branch : exact-gc

17 years ago* src/native/jni.h (hashtable_global_ref): Added.
michi [Fri, 2 Mar 2007 22:43:27 +0000 (22:43 +0000)]
* src/native/jni.h (hashtable_global_ref): Added.
* src/native/jni.c (hashtable_global_ref): Made non-static for the exact gc.

--HG--
branch : exact-gc

17 years ago* src/mm/cacao-gc/rootset.c [!ENABLE_THREADS]: Now compiles again.
michi [Fri, 2 Mar 2007 22:39:06 +0000 (22:39 +0000)]
* src/mm/cacao-gc/rootset.c [!ENABLE_THREADS]: Now compiles again.

--HG--
branch : exact-gc

17 years ago* src/vm/global.h (HDRFLAG_REFERENCING): Added.
michi [Fri, 2 Mar 2007 22:36:09 +0000 (22:36 +0000)]
* src/vm/global.h (HDRFLAG_REFERENCING): Added.

* src/mm/cacao-gc/heap.c: Sets above header flag now.
* src/mm/cacao-gc/compact.c: Check for above header flag now.
* src/mm/cacao-gc/mark.c: See above.

* src/mm/cacao-gc/gc.h: Added configuration define for the above behavior.

--HG--
branch : exact-gc

17 years ago* src/mm/cacao-gc/gc.c (gc_collect): Moved rootset creation to rootset_readout.
michi [Fri, 2 Mar 2007 15:19:54 +0000 (15:19 +0000)]
* src/mm/cacao-gc/gc.c (gc_collect): Moved rootset creation to rootset_readout.
* src/mm/cacao-gc/rootset.c (rootset_readout): Added

* src/mm/cacao-gc/rootset.c (rootset_from_globals): Now adds threadobjects
and global references.

* src/mm/cacao-gc/rootset.h: Added refs_type field to rootset.

--HG--
branch : exact-gc

17 years ago* src/mm/cacao-gc/mark.c (mark_me): Fixed a bug for "outside pointers".
michi [Thu, 1 Mar 2007 13:29:54 +0000 (13:29 +0000)]
* src/mm/cacao-gc/mark.c (mark_me): Fixed a bug for "outside pointers".

--HG--
branch : exact-gc

17 years ago* src/mm/cacao-gc/mark.c: Added MARK() as helper macro.
michi [Wed, 28 Feb 2007 16:35:25 +0000 (16:35 +0000)]
* src/mm/cacao-gc/mark.c: Added MARK() as helper macro.

--HG--
branch : exact-gc

17 years ago* src/mm/cacao-gc/gc.h: Fixed typo in POINTS_INTO.
michi [Tue, 27 Feb 2007 18:19:06 +0000 (18:19 +0000)]
* src/mm/cacao-gc/gc.h: Fixed typo in POINTS_INTO.
* src/mm/cacao-gc/compact.c (compact_move): Fixed typo.

--HG--
branch : exact-gc

17 years ago* src/mm/cacao-gc/gc.h, src/mm/cacao-gc/gc.c: Added define (GCCONF_FINALIZER)
michi [Tue, 27 Feb 2007 16:25:15 +0000 (16:25 +0000)]
* src/mm/cacao-gc/gc.h, src/mm/cacao-gc/gc.c: Added define (GCCONF_FINALIZER)
to disable finalization.

--HG--
branch : exact-gc

17 years agoMerged revisions 7390-7406 via svnmerge from
michi [Mon, 26 Feb 2007 19:12:03 +0000 (19:12 +0000)]
Merged revisions 7390-7406 via svnmerge from
svn+ssh://michi@c1.complang.tuwien.ac.at/ahome/cacao/svn/cacao/trunk

........
  r7395 | michi | 2007-02-23 23:57:53 +0100 (Fri, 23 Feb 2007) | 2 lines

  * src/vm/jit/replace.c: Renamed regs to abi_registers_integer_name.
........
  r7402 | twisti | 2007-02-24 15:47:12 +0100 (Sat, 24 Feb 2007) | 4 lines

  * src/vmcore/zip.c (errno.h): Added.
  (vm/vm.h): Likewise.
  (zip_get): Replaced asserts with vm_abort.
........
  r7403 | pm | 2007-02-25 22:31:58 +0100 (Sun, 25 Feb 2007) | 6 lines

  * src/vm/jit/codegen-common.c (methodtree_comparator): Fixed S390 related comment.
  * src/vm/jit/s390/codegen.h: Fixed M_JSR macro, did not store RA.
  * src/vm/jit/s390/md-asm.h: Added (LOAD|STORE)_TEMPORARY_REGISTERS and (LOAD|STORE)_ARGUMENT_REGISTERS macros.
  * src/vm/jit/s390/asmpart.S: Implemented asm_handle_exception and asm_vm_call_method_exception_handler.
  * src/vm/jit/s390/md-abi.c (abi_registers_integer_temporary): did not contain %r0, added.
........
  r7404 | pm | 2007-02-25 23:02:16 +0100 (Sun, 25 Feb 2007) | 2 lines

  * src/vm/jit/s390/asmpart.S (asm_getclassvalues_atomic, asm_criticalsections): Added.
........
  r7405 | pm | 2007-02-25 23:34:27 +0100 (Sun, 25 Feb 2007) | 3 lines

  * src/vm/jit/s390/codegen.c (codegen): Fixed ICMD_IF_ACMPNE
  * src/vm/jit/s390/asmpart.S (asm_call_jit_compiler): Handling NULL return value of jit_asm_compile.
........

--HG--
branch : exact-gc

17 years ago* src/mm/cacao-gc/final.h, src/mm/cacao-gc/final.c, src/mm/cacao-gc/rootset.h,
michi [Mon, 26 Feb 2007 19:03:48 +0000 (19:03 +0000)]
* src/mm/cacao-gc/final.h, src/mm/cacao-gc/final.c, src/mm/cacao-gc/rootset.h,
src/mm/cacao-gc/rootset.c: Added.
* src/mm/cacao-gc/Makefile.am: See above.

* src/mm/cacao-gc/gc.h (gc_notify_finalizer): Added.
* src/mm/cacao-gc/gc.c: Added finalization support.
* src/mm/cacao-gc/mark.c: Same as above. Rootset can contain "non-marking"
references now.

* src/mm/cacao-gc/heap.h, src/mm/cacao-gc/heap.c: Severe code cleanup,
this applies to almost all files.

--HG--
branch : exact-gc

17 years ago* src/mm/cacao-gc/gc.h, src/mm/cacao-gc/compact.c, src/mm/cacao-gc/region.h,
michi [Sat, 24 Feb 2007 02:22:22 +0000 (02:22 +0000)]
* src/mm/cacao-gc/gc.h, src/mm/cacao-gc/compact.c, src/mm/cacao-gc/region.h,
src/mm/cacao-gc/gc.c, src/mm/cacao-gc/mark.c, src/mm/cacao-gc/heap.c:
Severe code cleanup.

--HG--
branch : exact-gc

17 years ago* src/vm/global.h: Added defines HDRFLAG_HASH_TAKEN and HDRFLAG_HASH_ATTACHED.
michi [Sat, 24 Feb 2007 01:00:08 +0000 (01:00 +0000)]
* src/vm/global.h: Added defines HDRFLAG_HASH_TAKEN and HDRFLAG_HASH_ATTACHED.

* src/mm/cacao-gc/compact.c (compact_move): Hashcode gets attached to objects
while moving if previously taken.

* src/mm/cacao-gc/heap.c (get_object_size): Attached hashcode might increase
object size.

--HG--
branch : exact-gc

17 years ago* src/vm/vm.c [ENABLE_GC_CACAO]: Added assertion for JVMTI.
michi [Fri, 23 Feb 2007 23:29:13 +0000 (23:29 +0000)]
* src/vm/vm.c [ENABLE_GC_CACAO]: Added assertion for JVMTI.

* src/vmcore/loader.h (classloader): Added this typedef, use it to represent
the indirection cell for a classloader.

* src/vmcore/class.h (classinfo): Classloaders are now represendet as
indirection cells.

* src/vmcore/loader.c, src/vmcore/class.c, src/vmcore/classcache.h,
src/native/native.c, src/native/vm/java_lang_Class.c,
src/native/vm/gnu/java_lang_VMClassLoader.c,
src/native/vm/gnu/gnu_classpath_VMStackWalker.c,
src/native/vm/gnu/java_lang_VMSystem.c: Adapted to above changes.

--HG--
branch : exact-gc

17 years ago* src/mm/cacao-gc/mark.h, src/mm/cacao-gc/heap.h, src/mm/cacao-gc/heap.c,
michi [Fri, 23 Feb 2007 23:20:45 +0000 (23:20 +0000)]
* src/mm/cacao-gc/mark.h, src/mm/cacao-gc/heap.h, src/mm/cacao-gc/heap.c,
src/mm/cacao-gc/region.h, src/mm/cacao-gc/region.c: Added.

* src/mm/cacao-gc/Makefile.am: See above.

* src/mm/cacao-gc/gc.h, src/mm/cacao-gc/gc.c: Moved development breaks.
(gc_collect): Added.

* src/mm/cacao-gc/compact.c: Classloaders are threaded in now.
(compact_move): Fixed a severe typo.

--HG--
branch : exact-gc

17 years ago* src/vm/global.h: Added defines for HDRFLAG_MARK1, HDRFLAG_MARK2 and
michi [Fri, 23 Feb 2007 23:11:41 +0000 (23:11 +0000)]
* src/vm/global.h: Added defines for HDRFLAG_MARK1, HDRFLAG_MARK2 and
HDRFLAG_UNCOLLECTABLE.

--HG--
branch : exact-gc

17 years ago* src/vm/jit/i386/codegen.c (createnativestub) [ENABLE_GC_CACAO]:
michi [Fri, 23 Feb 2007 23:06:11 +0000 (23:06 +0000)]
* src/vm/jit/i386/codegen.c (createnativestub) [ENABLE_GC_CACAO]:
Saved registers are now stored/recovered into/from the stackframeinfo struct.

* src/vm/jit/replace.c (replace_pop_native_frame, replace_push_native_frame)
[ENABLE_GC_CACAO]: Handle saved registers in the stackframeinfo struct now.

* src/vm/jit/stacktrace.h [ENABLE_GC_CACAO]:
Modified stackframeinfo struct accordingly.

--HG--
branch : exact-gc

17 years ago* src/mm/memory.c, src/mm/memory.h: Moved defines for memcheck into header file.
michi [Fri, 23 Feb 2007 22:47:06 +0000 (22:47 +0000)]
* src/mm/memory.c, src/mm/memory.h: Moved defines for memcheck into header file.

--HG--
branch : exact-gc

17 years ago* src/native/native.h (hashtable_library_loader_entry): Uses indirection cells.
michi [Fri, 23 Feb 2007 20:28:35 +0000 (20:28 +0000)]
* src/native/native.h (hashtable_library_loader_entry): Uses indirection cells.
* src/native/native.c (native_hashtable_library_add): Uses indirection cells.
(native_hashtable_library_find): Uses indirection cells.

* src/vmcore/loader.h (hashtable_classloader_entry): Added to represent
indirection cells.
* src/vmcore/loader.c (hashtable_classloader): Added to hold indirection cells.
(loader_hashtable_classloader_add, loader_hashtable_classloader_find): Added.

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

--HG--
branch : exact-gc

17 years ago* src/native/jni.c (jni_free_localref_table): Added.
michi [Fri, 23 Feb 2007 20:15:31 +0000 (20:15 +0000)]
* src/native/jni.c (jni_free_localref_table): Added.
* src/native/jni.c [ENABLE_GC_CACAO]: The localref_table is no longer put onto
the heap, but managed explicitly.

--HG--
branch : exact-gc

17 years ago* src/mm/gc-common.h [ENABLE_GC_CACAO]: Added prototype for heap_get_hashcode().
michi [Fri, 23 Feb 2007 20:08:10 +0000 (20:08 +0000)]
* src/mm/gc-common.h [ENABLE_GC_CACAO]: Added prototype for heap_get_hashcode().
* src/native/vm/gnu/java_lang_VMSystem.c [ENABLE_GC_CACAO]: Uses new method to
get hashcodes for objects.
* src/native/vm/cldc1.1/java_lang_Object.c [ENABLE_GC_CACAO]: Don't know if we
can use this here.

--HG--
branch : exact-gc

17 years ago* src/vm/global.h (ACC_CLASS_SOFT_REFERENCE, ACC_CLASS_WEAK_REFERENCE)
twisti [Wed, 21 Feb 2007 23:26:24 +0000 (23:26 +0000)]
* src/vm/global.h (ACC_CLASS_SOFT_REFERENCE, ACC_CLASS_WEAK_REFERENCE)
(ACC_CLASS_PHANTOM_REFERENCE): Added.

* src/vmcore/class.c (class_create_classinfo) [ENABLE_JAVASE]: Check
if the class is a reference class and flag it.

* src/vmcore/loader.c (load_class_from_classbuffer): OR the flags
loaded.

* src/vmcore/utf8.c (utf_java_lang_ref_SoftReference)
(utf_java_lang_ref_WeakReference, utf_java_lang_ref_PhantomReference):
Added.
(utf8_init): Initialize added variables.
* src/vmcore/utf8.h: Likewise.

17 years ago* src/vm/exceptions.c (exceptions_throw_noclassdeffounderror): Abort
twisti [Wed, 21 Feb 2007 23:23:25 +0000 (23:23 +0000)]
* src/vm/exceptions.c (exceptions_throw_noclassdeffounderror): Abort
when VM is initializing.