cacao.git
17 years ago* src/vm/jit/inline/inline.h (config.h): Added.
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.

17 years ago* src/vm/vm.c [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.

17 years ago* src/native/vm/java_lang_Thread.c: Set Id keyword.
twisti [Thu, 26 Apr 2007 13:07:05 +0000 (13:07 +0000)]
* src/native/vm/java_lang_Thread.c: Set Id keyword.

17 years ago* src/native/vm/java_lang_Thread.c (start): Renamed
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.

17 years ago* src/threads/threads-common.c (threads_thread_create_internal):
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.

17 years ago* src/threads/threads-common.c (threads/critical.h): Added.
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.

17 years ago* src/vm/jit/i386/darwin/md-os.c: added threads/threads-common.h,
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

17 years ago* src/vm/jit/i386/darwin/md-os.c: attempt at porting the exception changes
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).

17 years ago* src/threads/lock-common.h (threads/threads-common.h): Removed that
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.

17 years ago* src/threads/threads-common.c (threads_dump) [!SIZEOF_VOID_P == 8]:
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.

17 years ago* src/threads/threads-common.c (threads_start_javathread): Changed
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.

17 years ago* src/vm/jit/mips/codegen.c: Changed lock includes.
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.

17 years ago* src/vm/jit/arm/codegen.c: Changed lock include.
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.

17 years ago* src/vm/jit/arm/emit.c (emit_load): Use switch-case instead of
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.

17 years ago* src/vm/jit/alpha/emit.c: Set Id keyword.
twisti [Wed, 25 Apr 2007 19:56:30 +0000 (19:56 +0000)]
* src/vm/jit/alpha/emit.c: Set Id keyword.

17 years ago* src/vm/jit/alpha/codegen.c: Changed lock include.
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.

17 years ago* src/vm/jit/alpha/codegen.c (codegen_emit_stub_native): Use
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.

17 years ago* src/vm/jit/i386/codegen.c: Changed lock include.
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.

17 years ago* src/vm/jit/powerpc64/codegen.c: Changed lock includes.
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.

17 years ago* src/vm/jit/powerpc/emit.c: Set Id keyword.
twisti [Wed, 25 Apr 2007 19:38:46 +0000 (19:38 +0000)]
* src/vm/jit/powerpc/emit.c: Set Id keyword.

17 years ago* src/vm/jit/powerpc/codegen.c: Fixed lock include.
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.

17 years ago* src/vm/jit/powerpc/linux/md-abi.c (abi_registers_float_temporary):
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.

17 years ago* src/threads/lock-common.h: New file.
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.

17 years ago* src/mm/memory.h: Updated copyright header.
twisti [Wed, 25 Apr 2007 18:51:03 +0000 (18:51 +0000)]
* src/mm/memory.h: Updated copyright header.

17 years ago* src/threads/threads-common.c (threads_create_thread): Renamed to
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.

17 years ago* src/vmcore/linker.c (linker_init): added missing lock_init_object_lock.
stefan [Wed, 25 Apr 2007 16:39:03 +0000 (16:39 +0000)]
* src/vmcore/linker.c (linker_init): added missing lock_init_object_lock.

17 years ago* src/threads/native/threads.c (threads_preinit): We always need
twisti [Wed, 25 Apr 2007 15:14:34 +0000 (15:14 +0000)]
* src/threads/native/threads.c (threads_preinit): We always need
variable t.

17 years ago* src/native/native.c (native/include/java_lang_Object.h): Include
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.

17 years ago* src/threads/native/threads.c (threads_init): Use variable t instead
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.

17 years ago* src/threads/threads-common.c (threads_create_thread)
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.

17 years ago* src/threads/threads-common.c: Set Id keyword.
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.

17 years ago* src/threads/threads-common.c (threads_dump): Also print integer
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.

17 years ago* threads.m4: Fixed a typo
tbfg [Tue, 24 Apr 2007 10:20:05 +0000 (10:20 +0000)]
* threads.m4: Fixed a typo

17 years ago* contrib/.cvsignore,
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.

17 years ago* .cvsignore: Removed.
twisti [Mon, 23 Apr 2007 23:39:11 +0000 (23:39 +0000)]
* .cvsignore: Removed.

17 years ago* configure.ac: Removed --enable-threads checks and call instead
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.

17 years ago* configure.ac: Removed all classpath related checks and made
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.

17 years ago* src/vm/builtin.h (md-abi.h): Added.
twisti [Mon, 23 Apr 2007 20:03:38 +0000 (20:03 +0000)]
* src/vm/builtin.h (md-abi.h): Added.

17 years ago* src/vm/signal.c (signal_thread): Don't check for an error on
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).

17 years ago* src/vm/jit/m68k/linux/md-os.c (md_signal_handler_sigsegv): Implemented.
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.

17 years ago* src/vm/jit/sparc64/arch.h: Properly activated all FP features SPARC64 supports...
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).

17 years ago* tests/regression/resolving/Makefile.am: Added "-classpath ." to javac
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.

17 years ago* configure.ac: Generate vmlog Makefiles.
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.

17 years ago* contrib/vmlog/Makefile: Renamed to maintain.mk.
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

17 years ago* contrib/vmlog/vmlog_cacao.patch: Removed. It is no longer needed.
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.

17 years ago* configure.ac (--enable-vmlog): New configure option.
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.

17 years ago* src/vm/jit/replace.c, src/vm/jit/intrp/asmpart.c,
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).

17 years ago* src/toolbox/list.h (list_t): Added size.
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.

17 years ago* src/toolbox/list.h (listnode): Renamed to listnode_t.
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.

17 years ago* src/vm/vm.c: Changed header order to prevent a warning.
twisti [Fri, 20 Apr 2007 13:09:36 +0000 (13:09 +0000)]
* src/vm/vm.c: Changed header order to prevent a warning.

17 years ago* src/native/vm/cldc1.1/com_sun_cldchi_jvm_JVM.c (loadLibrary): Fixed
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.

17 years ago* src/vm/vm.c (version): Print libjvm.so path.
twisti [Fri, 20 Apr 2007 12:53:45 +0000 (12:53 +0000)]
* src/vm/vm.c (version): Print libjvm.so path.

17 years ago* src/vm/vm.c (vm_create): Print unknown -verbose option.
twisti [Fri, 20 Apr 2007 12:48:55 +0000 (12:48 +0000)]
* src/vm/vm.c (vm_create): Print unknown -verbose option.

17 years ago* src/vm/jit/codegen-common.c (codegen_finish_native_call): #ifdef lrt
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.

17 years ago* src/threads/threads-common.h (native/jni.h): Added.
twisti [Fri, 20 Apr 2007 11:21:38 +0000 (11:21 +0000)]
* src/threads/threads-common.h (native/jni.h): Added.

17 years ago* src/vm/signal.c (signal_thread): Check return value of sig*
twisti [Thu, 19 Apr 2007 21:31:47 +0000 (21:31 +0000)]
* src/vm/signal.c (signal_thread): Check return value of sig*
functions.

17 years ago* tests/regression/resolving/Makefile.am (check): Added missing
twisti [Thu, 19 Apr 2007 19:59:17 +0000 (19:59 +0000)]
* tests/regression/resolving/Makefile.am (check): Added missing
JAVAFLAGS.

17 years ago* configure.ac (AC_INIT): Changed version to 0.98rc.
twisti [Thu, 19 Apr 2007 19:58:08 +0000 (19:58 +0000)]
* configure.ac (AC_INIT): Changed version to 0.98rc.

17 years ago* src/vm/exceptions.h: Added a comment about the hardware-exception
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.

17 years ago* src/vm/signal.c (assert.h): Added.
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.

17 years ago* src/cacaoh/dummy.c (exceptions_print_current_exception): Added
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.

17 years ago* src/vm/jit/powerpc/darwin/md-abi.h (REG_FA0, REG_FA1): Added.
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.

17 years ago* src/vm/jit/m68k/linux/md-abi.c (abi_registers_integer_saved): Fixed.
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.

17 years ago* src/vm/jit/arm/asmpart.S (asm_patcher_wrapper): Use long branch construct
michi [Thu, 19 Apr 2007 12:19:19 +0000 (12:19 +0000)]
* 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.

17 years ago* src/threads/threads-common.c (threads_start_javathread)
twisti [Thu, 19 Apr 2007 09:19:33 +0000 (09:19 +0000)]
* src/threads/threads-common.c (threads_start_javathread)
[ENABLE_JAVASE]: Check for daemon thread and set the flag.

17 years ago* src/threads/native/threads.c (threads_start_javathread): Removed.
twisti [Thu, 19 Apr 2007 09:18:20 +0000 (09:18 +0000)]
* 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.

17 years ago* src/vm/jit/sparc64/emit.c: Migrated to abi_registers_{integer,float}_argument.
ajordan [Wed, 18 Apr 2007 21:04:01 +0000 (21:04 +0000)]
* 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.

17 years ago* src/vm/jit/powerpc64/linux/Makefile.am (AM_CPPFLAGS): Added
michi [Wed, 18 Apr 2007 15:31:07 +0000 (15:31 +0000)]
* src/vm/jit/powerpc64/linux/Makefile.am (AM_CPPFLAGS): Added
-I$(top_builddir)/src.

17 years ago* src/vm/jit/powerpc64/codegen.c (sign_ext): Removed from
tbfg [Wed, 18 Apr 2007 14:49:18 +0000 (14:49 +0000)]
* 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.

17 years ago* src/threads/native/threads.c (mutex_join, cond_join): Added.
twisti [Wed, 18 Apr 2007 14:11:56 +0000 (14:11 +0000)]
* 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.

17 years ago* src/native/vm/java_lang_ClassLoader.c [ENABLE_STATISTICS]
twisti [Wed, 18 Apr 2007 09:59:58 +0000 (09:59 +0000)]
* src/native/vm/java_lang_ClassLoader.c [ENABLE_STATISTICS]
(vmcore/statistics.h): Added.

17 years ago* src/vm/jit/emit-common.h (emit_copy): Changed signature.
twisti [Tue, 17 Apr 2007 23:18:15 +0000 (23:18 +0000)]
* 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.

17 years ago* src/vm/jit/m68k/emit.c: boilerplate added.
twisti [Tue, 17 Apr 2007 22:55:21 +0000 (22:55 +0000)]
* src/vm/jit/m68k/emit.c: boilerplate added.

17 years ago* src/vm/jit/m68k/codegen.c: Boilerplate added.
twisti [Tue, 17 Apr 2007 22:50:49 +0000 (22:50 +0000)]
* src/vm/jit/m68k/codegen.c: Boilerplate added.

17 years ago* src/vm/jit/alpha/codegen.c (codegen_emit): Fixed bug in
twisti [Tue, 17 Apr 2007 22:06:01 +0000 (22:06 +0000)]
* src/vm/jit/alpha/codegen.c (codegen_emit): Fixed bug in
float-argument passing.

17 years ago* tests/regression/resolving/Makefile.am (check): Use LD_LIBRARY_PATH
twisti [Tue, 17 Apr 2007 21:37:12 +0000 (21:37 +0000)]
* tests/regression/resolving/Makefile.am (check): Use LD_LIBRARY_PATH
for JAVA.

17 years ago* src/vm/jit/stack.c (stack_init_javalocals): Use "type" as variable
edwin [Tue, 17 Apr 2007 21:30:20 +0000 (21:30 +0000)]
* src/vm/jit/stack.c (stack_init_javalocals): Use "type" as variable
for the type.
(stack_analyse): Likewise.

17 years ago* src/vm/jit/stack.c (stack_analyse): Do not abuse poor "i" for types,
edwin [Tue, 17 Apr 2007 21:25:55 +0000 (21:25 +0000)]
* src/vm/jit/stack.c (stack_analyse): Do not abuse poor "i" for types,
use a separate variable for that.

17 years ago* src/vm/jit/stack.c (stack_reanalyse_block, stack_analyse): Renamed
edwin [Tue, 17 Apr 2007 21:11:20 +0000 (21:11 +0000)]
* src/vm/jit/stack.c (stack_reanalyse_block, stack_analyse): Renamed
variable "j" to a more obvious "varindex".

17 years ago* src/vm/jit/verify/typecheck.c: More variable renaming for clarity.
edwin [Tue, 17 Apr 2007 21:01:15 +0000 (21:01 +0000)]
* src/vm/jit/verify/typecheck.c: More variable renaming for clarity.

17 years ago* src/vm/builtintable.inc (builtintable_function) [ENABLE_JIT]: We
twisti [Tue, 17 Apr 2007 20:59:52 +0000 (20:59 +0000)]
* src/vm/builtintable.inc (builtintable_function) [ENABLE_JIT]: We
need the entries only for JIT.

17 years ago* tests/regression/jasmin/Makefile.am (check): Set LD_LIBRARY_PATH.
twisti [Tue, 17 Apr 2007 20:54:04 +0000 (20:54 +0000)]
* tests/regression/jasmin/Makefile.am (check): Set LD_LIBRARY_PATH.

17 years ago* src/vm/jit/stack.c, src/vm/jit/verify/typecheck-common.c,
edwin [Tue, 17 Apr 2007 20:53:41 +0000 (20:53 +0000)]
* 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".

17 years ago* src/vm/jit/stack.c, src/vm/jit/show.c, src/vm/jit/inline/inline.c,
edwin [Tue, 17 Apr 2007 20:37:36 +0000 (20:37 +0000)]
* 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.

17 years ago* src/vm/jit/jit.h (basicblock): Document the javalocal array.
edwin [Tue, 17 Apr 2007 20:30:09 +0000 (20:30 +0000)]
* src/vm/jit/jit.h (basicblock): Document the javalocal array.
(JAVALOCAL_FROM_RETADDR): New macro.
(RETADDR_FROM_JAVALOCAL): Likewise.

17 years ago* src/threads/native/threads.c (threads_init): Fixed string-internal
twisti [Tue, 17 Apr 2007 20:25:55 +0000 (20:25 +0000)]
* src/threads/native/threads.c (threads_init): Fixed string-internal
warnings.
(threads_attach_current_thread): Likewise.

17 years ago* src/threads/threads-common.c (threads_print_stacktrace): Renamed to
twisti [Tue, 17 Apr 2007 20:17:01 +0000 (20:17 +0000)]
* 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.

17 years ago* src/vm/jit/jit.h (jitdata): Cleaned up comments for local_map.
edwin [Tue, 17 Apr 2007 20:06:44 +0000 (20:06 +0000)]
* src/vm/jit/jit.h (jitdata): Cleaned up comments for local_map.

17 years ago* src/vm/jit/stack.c (stack_javalocals_store): Added an assert.
edwin [Tue, 17 Apr 2007 19:57:55 +0000 (19:57 +0000)]
* src/vm/jit/stack.c (stack_javalocals_store): Added an assert.

17 years ago* src/vm/jit/stack.c (stack_analyse): The javalocals array can have
edwin [Tue, 17 Apr 2007 19:24:05 +0000 (19:24 +0000)]
* 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.

17 years ago* src/vm/jit/parse.c (parse): Small cleanup of local variable renaming.
edwin [Tue, 17 Apr 2007 18:47:50 +0000 (18:47 +0000)]
* src/vm/jit/parse.c (parse): Small cleanup of local variable renaming.
(No code changes.)

17 years ago* src/vm/jit/x86_64/codegen.c (codegen_emit_stub_native): Use simpler
twisti [Tue, 17 Apr 2007 11:15:15 +0000 (11:15 +0000)]
* src/vm/jit/x86_64/codegen.c (codegen_emit_stub_native): Use simpler
code to save and restore argument registers.

17 years ago* src/vm/jit/x86_64/codegen.c (codegen_emit): Made argument passing
twisti [Mon, 16 Apr 2007 22:56:37 +0000 (22:56 +0000)]
* src/vm/jit/x86_64/codegen.c (codegen_emit): Made argument passing
cleaner.

17 years ago* src/vm/jit/codegen-common.c (codegen_setup): Removed maxstack stuff.
twisti [Mon, 16 Apr 2007 22:24:30 +0000 (22:24 +0000)]
* 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.

17 years ago* src/vm/jit/Makefile.am (DIST_SUBDIRS): Added m68k.
twisti [Mon, 16 Apr 2007 21:09:39 +0000 (21:09 +0000)]
* src/vm/jit/Makefile.am (DIST_SUBDIRS): Added m68k.
* src/mm/cacao-gc/Makefile.am (libgc_la_SOURCES): Removed heap.c.

17 years ago* src/vm/jit/powerpc64/linux/md-abi.c: Argument register changes
twisti [Mon, 16 Apr 2007 21:07:10 +0000 (21:07 +0000)]
* 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.

17 years ago* src/native/jni.c (_Jv_JNI_DefineClass): Fixed string-internal
twisti [Mon, 16 Apr 2007 15:57:21 +0000 (15:57 +0000)]
* src/native/jni.c (_Jv_JNI_DefineClass): Fixed string-internal
warnings.
(_Jv_JNI_NewStringUTF): Likewise.
(_Jv_JNI_GetStringUTFChars): Likewise.

17 years ago* src/native/vm/java_lang_Class.c (forName): Fixed string-internal
twisti [Mon, 16 Apr 2007 15:53:53 +0000 (15:53 +0000)]
* src/native/vm/java_lang_Class.c (forName): Fixed string-internal
warnings.
(getDeclaredFields): Likewise.
(getDeclaredMethods): Likewise.
(getEnclosingMethod): Likewise.
(getClassSignature): Likewise.

17 years ago* src/native/vm/java_lang_ClassLoader.c (defineClass): Fixed
twisti [Mon, 16 Apr 2007 15:49:09 +0000 (15:49 +0000)]
* 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.

17 years ago* src/native/vm/gnu/java_lang_reflect_Method.c (getSignature): Fixed
twisti [Mon, 16 Apr 2007 15:29:29 +0000 (15:29 +0000)]
* src/native/vm/gnu/java_lang_reflect_Method.c (getSignature): Fixed
string-internal warnings.