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
247 files changed: