ajordan [Sun, 6 May 2007 13:32:49 +0000 (13:32 +0000)]
* 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.
tbfg [Sat, 5 May 2007 13:48:39 +0000 (13:48 +0000)]
* 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.
tbfg [Sat, 5 May 2007 13:46:11 +0000 (13:46 +0000)]
* linker.c (linker_compute_subclasses):
threads_cast_[start|stop]world only available when using GC.
pm [Sat, 5 May 2007 08:08:49 +0000 (08:08 +0000)]
* contrib/vmlog/Makefile.am (AM_CPPFLAGS): Add include directories for vmlog.
* src/vm/Makefile.am: Likewise.
tbfg [Fri, 4 May 2007 10:13:20 +0000 (10:13 +0000)]
* linker.c (linker_compute_subclasses): Only call
threads_cast_[start|stop]world when ENABLE_THREADS.
tbfg [Thu, 3 May 2007 23:31:01 +0000 (23:31 +0000)]
* 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.
twisti [Thu, 3 May 2007 22:32:11 +0000 (22:32 +0000)]
* 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.
twisti [Thu, 3 May 2007 21:29:40 +0000 (21:29 +0000)]
* 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.
twisti [Thu, 3 May 2007 21:17:26 +0000 (21:17 +0000)]
* 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.
twisti [Thu, 3 May 2007 20:58:54 +0000 (20:58 +0000)]
* src/mm/boehm-gc/include/gc.h (GC_HAVE_BUILTIN_BACKTRACE): Commented,
we don't need it and uClibc doesn't have it.
twisti [Thu, 3 May 2007 14:53:39 +0000 (14:53 +0000)]
* 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.
twisti [Thu, 3 May 2007 13:49:35 +0000 (13:49 +0000)]
* src/vm/jit/codegen-common.c (codegen_start_native_call)
[ENABLE_JAVASE]: This has to be ENABLE_JNI.
(codegen_finish_native_call): Likewise.
twisti [Thu, 3 May 2007 12:30:05 +0000 (12:30 +0000)]
* 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.
twisti [Thu, 3 May 2007 08:29:16 +0000 (08:29 +0000)]
* 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.
twisti [Thu, 3 May 2007 08:16:14 +0000 (08:16 +0000)]
* contrib/check_dangerous_printf.pl: Removed this file in favor of
pscan.
tbfg [Thu, 3 May 2007 00:33:48 +0000 (00:33 +0000)]
* 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.
tbfg [Wed, 2 May 2007 22:28:04 +0000 (22:28 +0000)]
* 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.
twisti [Wed, 2 May 2007 20:46:56 +0000 (20:46 +0000)]
* src/native/vm/cldc1.1/java_lang_Float.c (native/native.h): Removed.
(native/include/java_lang_Float.h): Added.
twisti [Wed, 2 May 2007 20:44:59 +0000 (20:44 +0000)]
* src/native/vm/cldc1.1/java_lang_Double.c
(native/include/java_lang_Double.h): Added.
(longBitsToDouble): Fixed return type.
twisti [Wed, 2 May 2007 20:40:11 +0000 (20:40 +0000)]
* 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.
tbfg [Wed, 2 May 2007 20:36:07 +0000 (20:36 +0000)]
* java_lang_Double.c (Java_java_lang_Double_doubleToLongBits): Added
missing JNIEnv* argument to signature.
twisti [Wed, 2 May 2007 19:57:07 +0000 (19:57 +0000)]
* src/vmcore/class.c (class_load_attributes): Disable annotation
loading for the release.
twisti [Wed, 2 May 2007 16:21:12 +0000 (16:21 +0000)]
* 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.
twisti [Wed, 2 May 2007 09:57:22 +0000 (09:57 +0000)]
* 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.
pm [Tue, 1 May 2007 21:40:26 +0000 (21:40 +0000)]
* 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.
ajordan [Tue, 1 May 2007 17:35:55 +0000 (17:35 +0000)]
* 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.
pm [Tue, 1 May 2007 16:14:00 +0000 (16:14 +0000)]
* src/vm/jit/s390/codegen.h (gen_bound_check, gen_nullptr_check_intern, gen_bound_check, N_LONG_0): Remove because obsolete.
pm [Tue, 1 May 2007 16:05:07 +0000 (16:05 +0000)]
* 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.
pm [Tue, 1 May 2007 15:46:22 +0000 (15:46 +0000)]
* src/vm/jit/emit-common.h (BRANCH_LABEL_6): Added.
tbfg [Tue, 1 May 2007 13:00:12 +0000 (13:00 +0000)]
* 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.
tbfg [Mon, 30 Apr 2007 12:44:47 +0000 (12:44 +0000)]
* src/vm/jit/m68k/asmpart.S (asm_handle_exception): Restore registers
correctly.
twisti [Mon, 30 Apr 2007 11:58:57 +0000 (11:58 +0000)]
* src/vm/jit/inline/Makefile.am (AM_CPPFLAGS): Added
-I$(top_builddir)/src.
tbfg [Mon, 30 Apr 2007 10:53:13 +0000 (10:53 +0000)]
* 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.
pm [Sun, 29 Apr 2007 22:46:56 +0000 (22:46 +0000)]
* 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.
ajordan [Sat, 28 Apr 2007 12:59:58 +0000 (12:59 +0000)]
* src/vm/jit/sparc64/asmpart.S (asm_call_jit_compiler): Fixed stack alignement in first save.
tbfg [Fri, 27 Apr 2007 08:43:06 +0000 (08:43 +0000)]
* 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.
ajordan [Fri, 27 Apr 2007 01:37:06 +0000 (01:37 +0000)]
* 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)
twisti [Thu, 26 Apr 2007 13:43:08 +0000 (13:43 +0000)]
* 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.
twisti [Thu, 26 Apr 2007 13:32:08 +0000 (13:32 +0000)]
* src/vm/vm.c [ENABLE_THREADS] (threads/native/threads.h): Removed.
(threads/threads-common.h): Added.
twisti [Thu, 26 Apr 2007 13:07:05 +0000 (13:07 +0000)]
* src/native/vm/java_lang_Thread.c: Set Id keyword.
twisti [Thu, 26 Apr 2007 13:06:16 +0000 (13:06 +0000)]
* src/native/vm/java_lang_Thread.c (start): Renamed
threads_start_javathread to threads_thread_start.
twisti [Thu, 26 Apr 2007 12:48:16 +0000 (12:48 +0000)]
* 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.
twisti [Thu, 26 Apr 2007 11:14:39 +0000 (11:14 +0000)]
* 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.
stefan [Wed, 25 Apr 2007 21:47:00 +0000 (21:47 +0000)]
* src/vm/jit/i386/darwin/md-os.c: added threads/threads-common.h,
removed vm/jit/i386/md-abi.h
stefan [Wed, 25 Apr 2007 21:23:57 +0000 (21:23 +0000)]
* src/vm/jit/i386/darwin/md-os.c: attempt at porting the exception changes
(see r7596 & r7648).
twisti [Wed, 25 Apr 2007 21:03:44 +0000 (21:03 +0000)]
* 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.
twisti [Wed, 25 Apr 2007 20:56:16 +0000 (20:56 +0000)]
* src/threads/threads-common.c (threads_dump) [!SIZEOF_VOID_P == 8]:
Fixed warning.
twisti [Wed, 25 Apr 2007 20:31:57 +0000 (20:31 +0000)]
* 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.
twisti [Wed, 25 Apr 2007 20:07:37 +0000 (20:07 +0000)]
* src/vm/jit/mips/codegen.c: Changed lock includes.
* src/vm/jit/mips/emit.c: Likewise.
twisti [Wed, 25 Apr 2007 20:03:04 +0000 (20:03 +0000)]
* src/vm/jit/arm/codegen.c: Changed lock include.
* src/vm/jit/arm/emit.c: Likewise.
twisti [Wed, 25 Apr 2007 20:02:14 +0000 (20:02 +0000)]
* src/vm/jit/arm/emit.c (emit_load): Use switch-case instead of
if-else contruct.
(emit_store): Likewise.
(emit_copy): Likewise.
twisti [Wed, 25 Apr 2007 19:56:30 +0000 (19:56 +0000)]
* src/vm/jit/alpha/emit.c: Set Id keyword.
twisti [Wed, 25 Apr 2007 19:55:34 +0000 (19:55 +0000)]
* src/vm/jit/alpha/codegen.c: Changed lock include.
* src/vm/jit/alpha/emit.c: Likewise.
twisti [Wed, 25 Apr 2007 19:54:01 +0000 (19:54 +0000)]
* src/vm/jit/alpha/codegen.c (codegen_emit_stub_native): Use
md->params to save and restore argument registers.
twisti [Wed, 25 Apr 2007 19:47:50 +0000 (19:47 +0000)]
* src/vm/jit/i386/codegen.c: Changed lock include.
* src/vm/jit/i386/emit.c: Likewise.
twisti [Wed, 25 Apr 2007 19:42:50 +0000 (19:42 +0000)]
* src/vm/jit/powerpc64/codegen.c: Changed lock includes.
* src/vm/jit/powerpc64/emit.c: Likewise.
twisti [Wed, 25 Apr 2007 19:38:46 +0000 (19:38 +0000)]
* src/vm/jit/powerpc/emit.c: Set Id keyword.
twisti [Wed, 25 Apr 2007 19:37:11 +0000 (19:37 +0000)]
* src/vm/jit/powerpc/codegen.c: Fixed lock include.
* src/vm/jit/powerpc/emit.c: Likewise.
twisti [Wed, 25 Apr 2007 19:36:15 +0000 (19:36 +0000)]
* src/vm/jit/powerpc/linux/md-abi.c (abi_registers_float_temporary):
Fixed number of registers.
twisti [Wed, 25 Apr 2007 19:20:13 +0000 (19:20 +0000)]
* 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.
twisti [Wed, 25 Apr 2007 18:51:03 +0000 (18:51 +0000)]
* src/mm/memory.h: Updated copyright header.
twisti [Wed, 25 Apr 2007 18:33:30 +0000 (18:33 +0000)]
* 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.
stefan [Wed, 25 Apr 2007 16:39:03 +0000 (16:39 +0000)]
* src/vmcore/linker.c (linker_init): added missing lock_init_object_lock.
twisti [Wed, 25 Apr 2007 15:14:34 +0000 (15:14 +0000)]
* src/threads/native/threads.c (threads_preinit): We always need
variable t.
twisti [Wed, 25 Apr 2007 15:12:20 +0000 (15:12 +0000)]
* 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.
twisti [Wed, 25 Apr 2007 11:54:32 +0000 (11:54 +0000)]
* src/threads/native/threads.c (threads_init): Use variable t instead
of mainthreadobj->object, makes code simpler.
twisti [Wed, 25 Apr 2007 11:47:15 +0000 (11:47 +0000)]
* 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.
twisti [Tue, 24 Apr 2007 14:29:20 +0000 (14:29 +0000)]
* src/threads/threads-common.c: Set Id keyword.
* src/threads/threads-common.h: Likewise.
twisti [Tue, 24 Apr 2007 14:23:40 +0000 (14:23 +0000)]
* src/threads/threads-common.c (threads_dump): Also print integer
thread id, so it's easier to compare with the ones from gdb.
tbfg [Tue, 24 Apr 2007 10:20:05 +0000 (10:20 +0000)]
* threads.m4: Fixed a typo
twisti [Mon, 23 Apr 2007 23:51:37 +0000 (23:51 +0000)]
* 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.
twisti [Mon, 23 Apr 2007 23:39:11 +0000 (23:39 +0000)]
* .cvsignore: Removed.
twisti [Mon, 23 Apr 2007 23:03:31 +0000 (23:03 +0000)]
* configure.ac: Removed --enable-threads checks and call instead
AC_CHECK_ENABLE_THREADS.
* m4/threads.m4: New file.
twisti [Mon, 23 Apr 2007 20:04:44 +0000 (20:04 +0000)]
* configure.ac: Removed all classpath related checks and made
functions for them.
* m4/classpath.m4: New file.
twisti [Mon, 23 Apr 2007 20:03:38 +0000 (20:03 +0000)]
* src/vm/builtin.h (md-abi.h): Added.
twisti [Mon, 23 Apr 2007 14:29:48 +0000 (14:29 +0000)]
* src/vm/signal.c (signal_thread): Don't check for an error on
sigwait (revisit this patch with the exact-GC).
tbfg [Sun, 22 Apr 2007 20:02:05 +0000 (20:02 +0000)]
* 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.
ajordan [Sun, 22 Apr 2007 15:55:51 +0000 (15:55 +0000)]
* 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).
edwin [Sat, 21 Apr 2007 18:56:43 +0000 (18:56 +0000)]
* tests/regression/resolving/Makefile.am: Added "-classpath ." to javac
options so the tests work with ecj out-of-the-box.
edwin [Sat, 21 Apr 2007 16:42:52 +0000 (16:42 +0000)]
* configure.ac: Generate vmlog Makefiles.
* contrib/Makefile.am: Added vmlog to SUBDIRS.
* contrib/vmlog/Makefile.am, contrib/vmlog/t/Makefile.am: New files.
edwin [Sat, 21 Apr 2007 16:26:34 +0000 (16:26 +0000)]
* contrib/vmlog/Makefile: Renamed to maintain.mk.
--HG--
rename : contrib/vmlog/Makefile => contrib/vmlog/maintain.mk
edwin [Sat, 21 Apr 2007 12:48:14 +0000 (12:48 +0000)]
* contrib/vmlog/vmlog_cacao.patch: Removed. It is no longer needed.
* contrib/vmlog/README: Updated for CACAO's --enable-vmlog.
edwin [Sat, 21 Apr 2007 12:37:47 +0000 (12:37 +0000)]
* 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.
edwin [Sat, 21 Apr 2007 10:55:30 +0000 (10:55 +0000)]
* 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).
twisti [Fri, 20 Apr 2007 13:51:41 +0000 (13:51 +0000)]
* 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.
twisti [Fri, 20 Apr 2007 13:28:27 +0000 (13:28 +0000)]
* 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.
twisti [Fri, 20 Apr 2007 13:09:36 +0000 (13:09 +0000)]
* src/vm/vm.c: Changed header order to prevent a warning.
twisti [Fri, 20 Apr 2007 13:06:45 +0000 (13:06 +0000)]
* 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.
twisti [Fri, 20 Apr 2007 12:53:45 +0000 (12:53 +0000)]
* src/vm/vm.c (version): Print libjvm.so path.
twisti [Fri, 20 Apr 2007 12:48:55 +0000 (12:48 +0000)]
* src/vm/vm.c (vm_create): Print unknown -verbose option.
twisti [Fri, 20 Apr 2007 12:40:05 +0000 (12:40 +0000)]
* src/vm/jit/codegen-common.c (codegen_finish_native_call): #ifdef lrt
and plrt. Don't set lrt, we don't need it.
twisti [Fri, 20 Apr 2007 11:21:38 +0000 (11:21 +0000)]
* src/threads/threads-common.h (native/jni.h): Added.
twisti [Thu, 19 Apr 2007 21:31:47 +0000 (21:31 +0000)]
* src/vm/signal.c (signal_thread): Check return value of sig*
functions.
twisti [Thu, 19 Apr 2007 19:59:17 +0000 (19:59 +0000)]
* tests/regression/resolving/Makefile.am (check): Added missing
JAVAFLAGS.
twisti [Thu, 19 Apr 2007 19:58:08 +0000 (19:58 +0000)]
* configure.ac (AC_INIT): Changed version to 0.98rc.
twisti [Thu, 19 Apr 2007 19:44:54 +0000 (19:44 +0000)]
* src/vm/exceptions.h: Added a comment about the hardware-exception
assert in signal_init.
twisti [Thu, 19 Apr 2007 19:43:39 +0000 (19:43 +0000)]
* src/vm/signal.c (assert.h): Added.
(vm/exceptions.h): Likewise.
[ENABLE_STATISTICS] (vmcore/statistics.h): Likewise.
(signal_init): Added hardware-exception assert.
twisti [Thu, 19 Apr 2007 19:41:08 +0000 (19:41 +0000)]
* src/cacaoh/dummy.c (exceptions_print_current_exception): Added
abort.
(exceptions_throw_outofmemoryerror): Removed.
(exceptions_throw_illegalaccessexception): Likewise.
twisti [Thu, 19 Apr 2007 19:39:06 +0000 (19:39 +0000)]
* 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.
tbfg [Thu, 19 Apr 2007 15:01:49 +0000 (15:01 +0000)]
* 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.