cacao.git
16 years ago* m4/classpath.m4 (AC_CHECK_WITH_CLASSPATH_CLASSES): Set BOOTCLASSPATH
Christian Thalinger [Tue, 18 Mar 2008 12:23:28 +0000 (13:23 +0100)]
* m4/classpath.m4 (AC_CHECK_WITH_CLASSPATH_CLASSES): Set BOOTCLASSPATH
for Makefiles.
* tests/regression/Makefile.am,
tests/regression/assertion/Makefile.am,
tests/regression/codepatching/Makefile.am,
tests/regression/jasmin/Makefile.am,
tests/regression/native/Makefile.am,
tests/regression/resolving/Makefile.am (BOOTCLASSPATH): Removed.

16 years ago* Merged with 60f051a3c5ae.
Christian Thalinger [Mon, 17 Mar 2008 12:56:36 +0000 (13:56 +0100)]
* Merged with 60f051a3c5ae.

16 years ago* Merged with b78ab2bd233a.
Christian Thalinger [Mon, 17 Mar 2008 12:44:01 +0000 (13:44 +0100)]
* Merged with b78ab2bd233a.

--HG--
branch : methodtree-branch

16 years ago* src/vm/jit/intrp/asmpart.c: Replaced codegen_get_pv_from_pc with
Christian Thalinger [Mon, 17 Mar 2008 12:40:18 +0000 (13:40 +0100)]
* src/vm/jit/intrp/asmpart.c: Replaced codegen_get_pv_from_pc with
methodtree_find.

--HG--
branch : methodtree-branch

16 years ago* src/vm/jit/s390/md.c: Replaced codegen_get_pv_from_pc with
Christian Thalinger [Mon, 17 Mar 2008 12:35:45 +0000 (13:35 +0100)]
* src/vm/jit/s390/md.c: Replaced codegen_get_pv_from_pc with
methodtree_find.
* src/vm/jit/s390/md.h: Likewise.

--HG--
branch : methodtree-branch

16 years ago* src/vm/jit/methodtree.c (threads/threads-common.h): Added.
Christian Thalinger [Mon, 17 Mar 2008 12:32:39 +0000 (13:32 +0100)]
* src/vm/jit/methodtree.c (threads/threads-common.h): Added.
(methodtree_find): Removed unnecessary assert.

--HG--
branch : methodtree-branch

16 years ago* src/vm/jit/m68k/md.h: Replaced codegen_get_pv_from_pc with
Christian Thalinger [Mon, 17 Mar 2008 09:56:12 +0000 (10:56 +0100)]
* src/vm/jit/m68k/md.h: Replaced codegen_get_pv_from_pc with
methodtree_find.

--HG--
branch : methodtree-branch

16 years ago* src/vm/jit/i386/asmpart.S: Replaced codegen_get_pv_from_pc with
Christian Thalinger [Mon, 17 Mar 2008 09:39:17 +0000 (10:39 +0100)]
* src/vm/jit/i386/asmpart.S: Replaced codegen_get_pv_from_pc with
methodtree_find.
* src/vm/jit/i386/cygwin/md-asm.h
src/vm/jit/i386/darwin/md-asm.h,
src/vm/jit/i386/md.h: Likewise.

--HG--
branch : methodtree-branch

16 years ago* src/vm/jit/methodtree.c: New file.
Christian Thalinger [Thu, 13 Mar 2008 15:30:03 +0000 (16:30 +0100)]
* src/vm/jit/methodtree.c: New file.
* src/vm/jit/methodtree.h: Likewise.
* src/vm/jit/Makefile.am (libjit_la_SOURCES): Added methodtree.[ch].

* src/vm/jit/codegen-common.c (methodtree): Removed.
(codegen_init): Removed methodtree stuff.
(methodtree_comparator): Removed.
(codegen_insertmethod): Likewise.
(codegen_get_pv_from_pc): Likewise.
(codegen_get_pv_from_pc_nocheck): Likewise.
(codegen_finish): Call methodtree_insert.
* src/vm/jit/codegen-common.h (methodtree_element): Removed.
(codegen_insertmethod): Likewise.
(codegen_get_pv_from_pc): Likewise.
(codegen_get_pv_from_pc_nocheck): Likewise.

* src/vm/vm.c (vm_create): Call methodtree_init.

* src/vm/jit/code.c,
src/vm/jit/optimizing/profile.c,
src/vm/jit/stacktrace.c,
src/vm/jit/x86_64/asmpart.S,
src/vm/jit/x86_64/md.h,
src/vm/signal.c: Replaced codegen_get_pv_from_pc* with
methodtree_find*.

--HG--
branch : methodtree-branch

16 years ago* src/vm/jit/inline/inline.c (inline_add_blocknr_reference): Commented
Christian Thalinger [Thu, 13 Mar 2008 15:11:31 +0000 (16:11 +0100)]
* src/vm/jit/inline/inline.c (inline_add_blocknr_reference): Commented
as it's not used and produces a compiler warning.
* src/vm/jit/inline/inline_debug.inc (debug_dump_inline_context):
Likewise.

16 years ago* src/lib/gnu/java/lang/VMThrowable.java: Removed, as the local
Christian Thalinger [Thu, 13 Mar 2008 15:05:29 +0000 (16:05 +0100)]
* src/lib/gnu/java/lang/VMThrowable.java: Removed, as the local
changes made years ago are not necessary.
* src/lib/Makefile.am (VM_JAVA_FILES_GNU): Removed
gnu/java/lang/VMThrowable.java.

* src/native/vm/gnu/java_lang_VMThrowable.c (fillInStackTrace): Use
vmdata instead of vmData.
(getStackTrace): Likewise.
* src/vm/jit/stacktrace.c (stacktrace_print_exception)
[WITH_CLASSPATH_GNU]: Likewise.

16 years ago* src/threads/native/threads.c (threads_detach_thread): Fixed compiler
Christian Thalinger [Thu, 13 Mar 2008 14:51:28 +0000 (15:51 +0100)]
* src/threads/native/threads.c (threads_detach_thread): Fixed compiler
warning.

16 years ago* src/vm/jit/alpha/codegen.c (codegen_emit): Added thread unsafe
Christian Thalinger [Thu, 13 Mar 2008 10:31:08 +0000 (11:31 +0100)]
* src/vm/jit/alpha/codegen.c (codegen_emit): Added thread unsafe
comments.

16 years ago* src/threads/none/threads.h (threads_get_current_object): Changed
Christian Thalinger [Thu, 13 Mar 2008 10:09:13 +0000 (11:09 +0100)]
* src/threads/none/threads.h (threads_get_current_object): Changed
return type to java_handle_t.
* src/threads/threads-common.h: Likewise.

16 years ago* src/native/vm/sun/jvm.c (TRACEJVMCALLS): Changed to normal macro
Christian Thalinger [Thu, 13 Mar 2008 08:49:35 +0000 (09:49 +0100)]
* src/native/vm/sun/jvm.c (TRACEJVMCALLS): Changed to normal macro
instead of a variadic one.

16 years ago* src/native/vm/sun/jvm.c (PRINTJVMWARNINGS): Changed to normal macro
Christian Thalinger [Thu, 13 Mar 2008 08:39:35 +0000 (09:39 +0100)]
* src/native/vm/sun/jvm.c (PRINTJVMWARNINGS): Changed to normal macro
instead of variadic.
(JVM_GetStackTraceDepth): Fixed compiler warning.
(JVM_GetStackTraceElement): Likewise.
(JVM_IsThreadAlive): Likewise.

16 years ago* src/native/localref.c [!NDEBUG] (localref_check_uncleared): Fixed
Christian Thalinger [Thu, 13 Mar 2008 08:25:17 +0000 (09:25 +0100)]
* src/native/localref.c [!NDEBUG] (localref_check_uncleared): Fixed
compiler warning.

16 years ago* src/vm/jit/code.c (code_find_codeinfo_for_pc): Use void* instead of
Christian Thalinger [Wed, 12 Mar 2008 15:34:55 +0000 (16:34 +0100)]
* src/vm/jit/code.c (code_find_codeinfo_for_pc): Use void* instead of
u1*.
(code_find_codeinfo_for_pc_nocheck): Likewise.
(code_get_methodinfo_for_pv): Likewise.
* src/vm/jit/code.h: Likewise.
* src/cacaoh/dummy.c (vm/jit/code.h): Added.
(code_get_methodinfo_for_pv): Likewise.
* src/vm/jit_interface.h (code_get_methodinfo_for_pv): Removed.
* src/vmcore/method.c (vm/jit/code.h): Added.

16 years ago* src/native/jni.c (_Jv_JNI_GetDirectBufferAddress): Fixed compiler
Christian Thalinger [Wed, 12 Mar 2008 15:23:11 +0000 (16:23 +0100)]
* src/native/jni.c (_Jv_JNI_GetDirectBufferAddress): Fixed compiler
warnings.

16 years ago* src/threads/none/threads.h (threads_get_current_object): New
Christian Thalinger [Wed, 12 Mar 2008 15:07:55 +0000 (16:07 +0100)]
* src/threads/none/threads.h (threads_get_current_object): New
function.
(threads_get_current_stackframeinfo): Fixed name to
threads_set_current_stackframeinfo.

* src/threads/threads-common.c (threads_get_current_object): Removed.
* src/threads/threads-common.h (threads_get_current_object): New
function.
(threads_get_current_object): Removed.

* src/vm/jit/stacktrace.c: Small fix.
* src/vm/jit/stacktrace.h [!ENABLE_THREADS]
(_no_threads_stackframeinfo): Added.

16 years ago* src/native/vm/reflect.c (reflect_field_new): Fixed compiler
Christian Thalinger [Wed, 12 Mar 2008 14:44:44 +0000 (15:44 +0100)]
* src/native/vm/reflect.c (reflect_field_new): Fixed compiler
warnings.
(reflect_method_new): Likewise.

16 years ago* src/vm/jit/code.c (code_init): Changed signature, use vm_abort
Christian Thalinger [Wed, 12 Mar 2008 14:32:02 +0000 (15:32 +0100)]
* src/vm/jit/code.c (code_init): Changed signature, use vm_abort
instead of assert.
* src/vm/jit/code.h (code_init): Change signature.
* src/vm/vm.c (vm_create): Call code_init.

16 years ago* src/mm/boehm.c: Define GC_DARWIN_THREADS.
Stefan Ring [Tue, 11 Mar 2008 14:37:19 +0000 (15:37 +0100)]
* src/mm/boehm.c: Define GC_DARWIN_THREADS.

16 years agoMerge -> trunk
Stefan Ring [Tue, 11 Mar 2008 14:28:53 +0000 (15:28 +0100)]
Merge -> trunk

16 years ago* src/threads/threads-common.c (threads_thread_start_internal): Code
Christian Thalinger [Tue, 11 Mar 2008 13:57:37 +0000 (14:57 +0100)]
* src/threads/threads-common.c (threads_thread_start_internal): Code
reworked.
(threads_thread_start): Likewise.

16 years ago* src/threads/threads-common.c [ENABLE_JAVASE] (threadgroup_system,
Christian Thalinger [Tue, 11 Mar 2008 13:33:40 +0000 (14:33 +0100)]
* src/threads/threads-common.c [ENABLE_JAVASE] (threadgroup_system,
(threadgroup_main): New variables.
(threads_init): Call thread_create_initial_threadgroups and
thread_create_initial_thread.
(thread_create_initial_threadgroups): New function.
(thread_create_initial_thread): Likewise.
(threads_get_current_object): Removed empty-group hack.

16 years ago* src/vmcore/utf8.c (utf_Ljava_lang_ThreadGroup_Ljava_lang_String__V):
Christian Thalinger [Tue, 11 Mar 2008 13:28:59 +0000 (14:28 +0100)]
* src/vmcore/utf8.c (utf_Ljava_lang_ThreadGroup_Ljava_lang_String__V):
Added.
* src/vmcore/utf8.h: Likewise.

16 years ago* src/vm/vm.c (vm_created): Added.
Christian Thalinger [Tue, 11 Mar 2008 13:16:40 +0000 (14:16 +0100)]
* src/vm/vm.c (vm_created): Added.
(vm_create): Set vm_created.
(vm_destroy): Unset vm_created.
* src/vm/vm.h: (vm_created): Added.
* src/native/jni.c (_Jv_JNI_DestroyJavaVM): Added vm_created check.
(_Jv_JNI_AttachCurrentThread): Likewise.
(_Jv_JNI_GetEnv): Likewise.
(_Jv_JNI_AttachCurrentThreadAsDaemon): Likewise.

16 years ago* src/vmcore/utf8.c (utf_main): Added.
Christian Thalinger [Tue, 11 Mar 2008 12:03:21 +0000 (13:03 +0100)]
* src/vmcore/utf8.c (utf_main): Added.
(utf8_init): Changed signature.
* src/vmcore/utf8.h: Likewise.
* src/cacaoh/cacaoh.c (main): Removed return value check for
utf8_init.
* src/vm/vm.c (vm_create): Likewise.

16 years ago* src/threads/native/threads.c (method_thread_init): Removed.
Christian Thalinger [Tue, 11 Mar 2008 09:15:05 +0000 (10:15 +0100)]
* src/threads/native/threads.c (method_thread_init): Removed.
(threads_init): Removed.
(threads_impl_init): New function.
(threads_attach_current_thread): Renamed method_thread_init to
thread_method_init.
* src/threads/native/threads.h (threads_init): Removed

* src/threads/threads-common.c (native/native.h): Added.
[ENABLE_JAVASE] (native/include/java_lang_ThreadGroup.h): Likewise.
[WITH_CLASSPATH_GNU] (native/include/java_lang_Throwable.h): Removed.
(toolbox/list.h): Likewise.
(vm/exceptions.h): Added.
(vmcore/method.h): Likewise.
(thread_method_init): Likewise.
(threads_init): New function.
* src/threads/threads-common.h (thread_method_init): Added.
(threads_init): Likewise.
(threads_impl_init): Likewise.

* src/vm/vm.c (vm_create) [ENABLE_THREADS]: Removed return value check
for threads_init.

16 years ago* src/vm/vm.c (vm_create) [!NDEBUG]: Removed conditional, as we want
Christian Thalinger [Tue, 11 Mar 2008 08:47:15 +0000 (09:47 +0100)]
* src/vm/vm.c (vm_create) [!NDEBUG]: Removed conditional, as we want
the config for production builds too.

16 years ago* src/threads/native/threadlist-posix.c: New file.
Christian Thalinger [Mon, 10 Mar 2008 14:08:08 +0000 (15:08 +0100)]
* src/threads/native/threadlist-posix.c: New file.
* src/threads/native/Makefile.am (libthreadsposix_la_SOURCES): Added
threadlist-posix.c.

* src/threads/native/threads.c (mutex_threads_list): Removed.
(threads_impl_preinit): Removed mutex_threads_list initialization.
(threads_list_lock, threads_list_unlock): Removed.

* src/threads/threadlist.c (threadlist_init): Call
threadlist_impl_init.

* src/threads/threadlist.h (threadlist_impl_init, threadlist_lock)
(threadlist_unlock): Added.

* src/threads/threads-common.h (threads_list_lock)
(threads_list_unlock): Removed.

* src/threads/native/lock.c,
src/threads/threads-common.c,
src/vm/jit/optimizing/profile.c: Use new threadlist_{lock,unlock}
functions.

16 years ago* src/threads/threads-common.c [ENABLE_JAVASE]
Christian Thalinger [Mon, 10 Mar 2008 13:56:55 +0000 (14:56 +0100)]
* src/threads/threads-common.c [ENABLE_JAVASE]
(native/include/java_lang_ThreadGroup.h): Only a temporary hack.

16 years ago* src/vmcore/options.c (opt_TraceTraps): Added.
Christian Thalinger [Mon, 10 Mar 2008 13:07:02 +0000 (14:07 +0100)]
* src/vmcore/options.c (opt_TraceTraps): Added.
* src/vmcore/options.h: Likewise.

* src/vm/signal.c (signal_handle) [!NDEBUG]: Added opt_TraceTraps
debug output.  This is not finished yet.

16 years ago* src/cacaoh/dummy.c (errno.h): Added.
Christian Thalinger [Mon, 10 Mar 2008 12:48:01 +0000 (13:48 +0100)]
* src/cacaoh/dummy.c (errno.h): Added.
(vmcore/system.h): Likewise.
(vm_abort_errno): New function.
(vm_abort_errnum): Likewise.

* src/vmcore/options.c (errno.h): Removed.
(options_xx): Use vm_abort_errno.

16 years ago* src/vm/signal.c (errno.h): Removed.
Christian Thalinger [Mon, 10 Mar 2008 12:37:19 +0000 (13:37 +0100)]
* src/vm/signal.c (errno.h): Removed.
(signal_init): Use vm_abort_errno.
(signal_register_signal): Likewise.
(signal_thread): Likewise.

16 years ago* NEWS: Added 0.99 news.
Christian Thalinger [Mon, 10 Mar 2008 12:36:04 +0000 (13:36 +0100)]
* NEWS: Added 0.99 news.

16 years ago* src/native/vm/sun_misc_Unsafe.c (putObjectVolatile): OK, this time
Christian Thalinger [Thu, 6 Mar 2008 09:55:37 +0000 (10:55 +0100)]
* src/native/vm/sun_misc_Unsafe.c (putObjectVolatile): OK, this time
WITHOUT debug output.  Damn.

16 years ago* src/native/vm/sun_misc_Unsafe.c (putObjectVolatile): Implemented.
Christian Thalinger [Thu, 6 Mar 2008 09:47:24 +0000 (10:47 +0100)]
* src/native/vm/sun_misc_Unsafe.c (putObjectVolatile): Implemented.

16 years ago* src/mm/boehm-gc/BCC_MAKEFILE, src/mm/boehm-gc/digimars.mak: unix2dos'ed
Stefan Ring [Wed, 5 Mar 2008 19:58:01 +0000 (20:58 +0100)]
* src/mm/boehm-gc/BCC_MAKEFILE, src/mm/boehm-gc/digimars.mak: unix2dos'ed
the way they were in gc6.8.

16 years ago* src/threads/threadlist.c (threadlist_index_add): Actually set the
Christian Thalinger [Wed, 5 Mar 2008 16:42:05 +0000 (17:42 +0100)]
* src/threads/threadlist.c (threadlist_index_add): Actually set the
index in the structure.

16 years ago* src/mm/cacao-gc/rootset.c (threads/threadlist.h): Added.
Christian Thalinger [Wed, 5 Mar 2008 16:12:45 +0000 (17:12 +0100)]
* src/mm/cacao-gc/rootset.c (threads/threadlist.h): Added.
(rootset_readout): Use threadlist_* functions.

* src/native/vm/sun/jvm.c (threads/threadlist.h): Added.
(JVM_IsThreadAlive): Use threadlist_* functions.
(JVM_SetThreadPriority): Likewise.
(JVM_IsInterrupted): Likewise.

* src/vm/jit/optimizing/profile.c (threads/threadlist.h): Added.
(profile_thread): Use threadlist_* functions.

16 years ago* src/native/vm/java_lang_Thread.c: Removed.
Christian Thalinger [Wed, 5 Mar 2008 16:01:01 +0000 (17:01 +0100)]
* src/native/vm/java_lang_Thread.c: Removed.
* src/native/vm/java_lang_Thread.h: Likewise.

* src/native/vm/Makefile.am (libnativevm_la_SOURCES): Removed
java_lang_Thread.[ch].

* src/threads/threads-common.c (threads_get_current_object): New
function.
* src/threads/threads-common.h: Likewise.

* src/native/vm/cldc1.1/java_lang_Thread.c,
src/native/vm/gnu/java_lang_VMThread.c,
src/native/vm/sun/jvm.c: Implemented thread functions directly.

16 years ago* configure.ac (AM_CPPFLAGS): Set to CPPFLAGS.
Christian Thalinger [Wed, 5 Mar 2008 14:38:40 +0000 (15:38 +0100)]
* configure.ac (AM_CPPFLAGS): Set to CPPFLAGS.

* m4/classpath.m4 (AC_CHECK_WITH_JNI_MD_H): Preserve CPPFLAGS.
(AC_CHECK_WITH_JNI_H): Likewise.

16 years ago* src/Makefile.am: Changed copyright.
Christian Thalinger [Wed, 5 Mar 2008 14:20:25 +0000 (15:20 +0100)]
* src/Makefile.am: Changed copyright.

16 years ago* src/threads/threadlist.c: New file.
Christian Thalinger [Wed, 5 Mar 2008 14:17:34 +0000 (15:17 +0100)]
* src/threads/threadlist.c: New file.
* src/threads/threadlist.h: Likewise.

* src/threads/Makefile.am (libthreads_la_SOURCES): Added
threadlist.[ch].

* src/threads/lock-common.h: Changed copyright.

* src/threads/native/lock.c (threads/threadlist.h): Added.
(threads_lookup_thread_id): Use threadlist_* functions.

* src/threads/native/threads.c (threads/threadlist.h): Added.
(threads_cast_sendsignals): Use threadlist_* functions.
(threads_stopworld): Likewise.
(threads_startworld): Likewise.
(threads_init): Likewise.
(threads_attach_current_thread): Likewise.
(threads_join_all_threads): Likewise.

* src/threads/threads-common.c (threads/threadlist.h): Added.
(list_threads, list_free_threads, list_free_thread_index): Removed.
(thread_index_t): Removed.
(threads_preinit): Don't initialize the thread lists, moved
lock_init and critical_init calls into vm_create.
(threads_list_first, threads_list_next): Removed.
(threads_list_get_non_daemons): Likewise.
(threads_thread_new, threads_thread_free): Use threadlist_* functions.

* src/threads/threads-common.h (threads_list_first): Removed.
(threads_list_next): Likewise.
(threads_list_get_non_daemons): Likewise.

* src/vm/vm.c (threads/lock-common.h): Added.
(threads/threadlist.h): Added.
(vm_create) [ENABLE_THREADS]: Call threadlist_init, lock_init and
critical_init.

16 years ago* src/vm/jit/codegen-common.c [WITH_CLASSPATH_CLDC1_1]
Christian Thalinger [Wed, 5 Mar 2008 11:18:48 +0000 (12:18 +0100)]
* src/vm/jit/codegen-common.c [WITH_CLASSPATH_CLDC1_1]
(native/include/java_lang_String.h): Added.

16 years ago* configure.ac (AC_CHECK_WITH_CLASSPATH_INCLUDEDIR): Removed.
Christian Thalinger [Wed, 5 Mar 2008 11:13:06 +0000 (12:13 +0100)]
* configure.ac (AC_CHECK_WITH_CLASSPATH_INCLUDEDIR): Removed.
[!WITH_JRE_LAYOUT] (AC_CHECK_WITH_CLASSPATH_LIBDIR): Conditional.
(AC_CHECK_WITH_JNI_MD_H): Added.
(AC_CHECK_WITH_JNI_H): Likewise.
(AM_CPPFLAGS): Added.

* m4/classpath.m4 (AC_CHECK_WITH_CLASSPATH_INCLUDEDIR): Removed.
(AC_CHECK_WITH_JNI_MD_H): New macro.
(AC_CHECK_WITH_JNI_H): Likewise.

* src/native/jni.h (__GCJ_JNI_MD_H__): Removed the quick hack.
(CLASSPATH_JNI_MD_H): Removed.
(CLASSPATH_JNI_H): Likewise.
(INCLUDE_JNI_MD_H): Added.
(INCLUDE_JNI_H): Likewise.

16 years ago* src/lib/Makefile.am [WITH_CLASSPATH_GNU || WITH_CLASSPATH_CLDC1_1]
Christian Thalinger [Wed, 5 Mar 2008 11:08:12 +0000 (12:08 +0100)]
* src/lib/Makefile.am [WITH_CLASSPATH_GNU || WITH_CLASSPATH_CLDC1_1]
(pkgdata_DATA): Only define it for GNU or CLDC-1.1 configurations.

16 years ago* src/cacao/Makefile.am (libjvm_la_LDFLAGS): Use -version-info instead
Christian Thalinger [Wed, 5 Mar 2008 08:37:27 +0000 (09:37 +0100)]
* src/cacao/Makefile.am (libjvm_la_LDFLAGS): Use -version-info instead
of -release, as the library interface of libjvm.so will not change.

16 years ago* man/Makefile.am: Changed copyright.
Christian Thalinger [Tue, 4 Mar 2008 22:53:58 +0000 (23:53 +0100)]
* man/Makefile.am: Changed copyright.

16 years ago* doc/Makefile.am: Changed copyright.
Christian Thalinger [Tue, 4 Mar 2008 22:51:34 +0000 (23:51 +0100)]
* doc/Makefile.am: Changed copyright.

16 years ago* contrib/Makefile.am: Changed copyright.
Christian Thalinger [Tue, 4 Mar 2008 22:46:39 +0000 (23:46 +0100)]
* contrib/Makefile.am: Changed copyright.

16 years ago* Makefile.am: Changed copyright.
Christian Thalinger [Tue, 4 Mar 2008 22:38:44 +0000 (23:38 +0100)]
* Makefile.am: Changed copyright.

16 years ago* NEWS: Fixed month for 0.99.
Christian Thalinger [Tue, 4 Mar 2008 22:25:54 +0000 (23:25 +0100)]
* NEWS: Fixed month for 0.99.

16 years ago* NEWS: Added some 0.99 release notes.
Christian Thalinger [Mon, 3 Mar 2008 22:29:04 +0000 (23:29 +0100)]
* NEWS: Added some 0.99 release notes.

16 years agoMerge -> trunk.
Stefan Ring [Mon, 3 Mar 2008 21:29:29 +0000 (22:29 +0100)]
Merge -> trunk.

16 years agointerrupt() / notify() fix.
Stefan Ring [Mon, 3 Mar 2008 21:22:02 +0000 (22:22 +0100)]
interrupt() / notify() fix.

* src/threads/native/lock.c (lock_record_wait, lock_record_notify):
Correctly handling the signaled and interrupted flags.

* src/threads/native/threads.c (threads_wait_with_timeout)
(threads_wait_with_timeout_relative): No return value, not touching flags.
(threads_check_if_interrupted_and_reset): Now locking the waitmutex.
(threads_sleep): Adapted to change.

* src/threads/native/threads.h (threads_wait_with_timeout_relative): No
return value.

16 years ago* tests/threads/waitAndInterrupt.java: New test hanging CACAO.
Stefan Ring [Mon, 3 Mar 2008 21:13:28 +0000 (22:13 +0100)]
* tests/threads/waitAndInterrupt.java: New test hanging CACAO.

16 years ago* .hgignore: Ignoring class files.
Stefan Ring [Mon, 3 Mar 2008 21:10:14 +0000 (22:10 +0100)]
* .hgignore: Ignoring class files.
* tests/threads: New directory for thread tests.
* tests/threads/threadInterrupt.java: Moved.

--HG--
rename : tests/threadInterrupt.java => tests/threads/threadInterrupt.java

16 years ago* src/lib/Makefile.am (EXTRA_DIST): Removed VM_JAVA_FILES, added
Christian Thalinger [Mon, 3 Mar 2008 14:47:15 +0000 (15:47 +0100)]
* src/lib/Makefile.am (EXTRA_DIST): Removed VM_JAVA_FILES, added
VM_JAVA_FILES_GNU, VM_JAVA_FILES_GNU_ANNOTATIONS,
VM_JAVA_FILES_CLDC1_1.
(VM_JAVA_FILES): Removed.
(VM_JAVA_FILES_GNU): Added.
(VM_JAVA_FILES_GNU_ANNOTATIONS): Likewise.
(VM_JAVA_FILES_CLDC1_1): Likewise.

16 years ago* .hgignore: Ignoring latex output files.
Stefan Ring [Sat, 1 Mar 2008 10:38:42 +0000 (11:38 +0100)]
* .hgignore: Ignoring latex output files.

16 years agoReusing threadobjects.
Stefan Ring [Fri, 29 Feb 2008 11:27:16 +0000 (12:27 +0100)]
Reusing threadobjects.

* src/threads/native/threads.c (threads_impl_thread_new): Removed and split
up into three new functions.
(threads_impl_thread_init, threads_impl_thread_clear)
(threads_impl_thread_reuse): New functions.
(threads_impl_thread_free): Disabled.

* src/threads/native/threads.h (threadobject): Added field for free-list.

* src/threads/threads-common.c (threads_preinit, threads_thread_new)
(threads_thread_free): Reuse threadobjects.

* src/threads/threads-common.h: New function declarations.

16 years ago* src/vm/jit/cfg.c (cfg_add_exceptional_edges): Conditionally compiling (was forgotten).
pm@c8.complang.tuwien.ac.at [Thu, 28 Feb 2008 09:32:16 +0000 (10:32 +0100)]
* src/vm/jit/cfg.c (cfg_add_exceptional_edges): Conditionally compiling (was forgotten).

16 years agoMerging 7888.
Peter Molnar [Thu, 28 Feb 2008 09:26:32 +0000 (10:26 +0100)]
Merging 7888.

16 years ago* src/vm/jit/cfg.c (cfg_add_exceptional_edges): New function
Peter Molnar [Thu, 28 Feb 2008 09:24:36 +0000 (10:24 +0100)]
* src/vm/jit/cfg.c (cfg_add_exceptional_edges): New function
* src/vm/jit/jit.c (jit_compile_intern) [ENABLE_SSA]: Adapted.
* src/vm/jit/jit.h (struct basicblock) [ENABLE_SSA]: New fileds for exception handlers in cfg.
* src/vm/jit/optimizing/ssa.c (ssa): Adapted.
* src/vm/jit/optimizing/ssa3.c: Changed a lot, currenly broken.

16 years ago* src/vm/jit/s390/asmpart.S (L_offsets): Removed references to unused functions.
Peter Molnar [Thu, 28 Feb 2008 09:03:39 +0000 (10:03 +0100)]
* src/vm/jit/s390/asmpart.S (L_offsets): Removed references to unused functions.
* src/vm/jit/s390/md.c: Including vm/jit/s390/md.h.

16 years ago* tests/threadInterrupt.java: Added a test showing a bug in the pre-sable
Stefan Ring [Wed, 27 Feb 2008 16:11:58 +0000 (17:11 +0100)]
* tests/threadInterrupt.java: Added a test showing a bug in the pre-sable
implementation.

16 years ago* src/threads/native/threads.c (threads_set_current_threadobject): Added
Stefan Ring [Wed, 27 Feb 2008 16:04:29 +0000 (17:04 +0100)]
* src/threads/native/threads.c (threads_set_current_threadobject): Added
a few vm_abort_errnum calls.
(threads_get_current_thread): Likewise.

* src/threads/native/lock.c (lock_record_new): Likewise.
(lock_record_free): Likewise.

16 years ago* src/vm/jit/x86_64/linux/md-os.c (md_replace_executionstate_read): Fix
Edwin Steiner [Wed, 20 Feb 2008 23:38:41 +0000 (00:38 +0100)]
* src/vm/jit/x86_64/linux/md-os.c (md_replace_executionstate_read): Fix
copy&paste mistake (for reading the PC).

16 years ago* src/vm/jit/replace.h (executionstate_t): Added 'ra' field for return
Edwin Steiner [Wed, 20 Feb 2008 22:53:44 +0000 (23:53 +0100)]
* src/vm/jit/replace.h (executionstate_t): Added 'ra' field for return
address register. Otherwise replacement code for the PowerPC gets very
ugly, as the LR is not part of the intregs on PowerPC.

* src/vm/jit/replace.c (replace_executionstate_println): Added print
statements.
(replace_sanity_check_read_write): Check 'ra' field.

* src/vm/jit/alpha/linux/md-os.c (md_replace_executionstate_read):
Use new 'ra' field.
(md_replace_executionstate_write): Likewise.

* src/vm/jit/powerpc/linux/md-os.c (md_replace_executionstate_read):
Implemented for PowerPC/Linux.
(md_replace_executionstate_write): Likewise.

16 years ago* src/vm/jit/alpha/linux/md-os.c (md_replace_executionstate_read):
Edwin Steiner [Wed, 20 Feb 2008 20:38:41 +0000 (21:38 +0100)]
* src/vm/jit/alpha/linux/md-os.c (md_replace_executionstate_read):
Do not use the assignment operator for the float registers, as the type
conversion messes up their values (they are not 'double' in the
context).
(md_replace_executionstate_write): Likewise.

16 years ago* src/vm/jit/replace.c (replace_sanity_check_read_write): New function.
Edwin Steiner [Wed, 20 Feb 2008 20:30:03 +0000 (21:30 +0100)]
* src/vm/jit/replace.c (replace_sanity_check_read_write): New function.
Perform some basic sanity checks of the md_replacement_* implementations.
(replace_me_wrapper): Call above function in debugging mode.

16 years agoMerged with tip
Roland Lezuo [Wed, 20 Feb 2008 00:04:22 +0000 (01:04 +0100)]
Merged with tip

16 years ago* src/vm/jit/x86_64/emit.c (emit_alu_imm_membase): Fix emit_rex call.
Edwin Steiner [Tue, 19 Feb 2008 22:27:28 +0000 (23:27 +0100)]
* src/vm/jit/x86_64/emit.c (emit_alu_imm_membase): Fix emit_rex call.

--HG--
extra : transplant_source : e%05v%98%F6D%C1I%86l%C4%5Bo%05%E7f%C9A%20%F8

16 years ago* src/vm/jit/x86_64/emit.c (emit_alul_imm_membase): Fix emit_rex call.
Edwin Steiner [Tue, 19 Feb 2008 22:10:50 +0000 (23:10 +0100)]
* src/vm/jit/x86_64/emit.c (emit_alul_imm_membase): Fix emit_rex call.

--HG--
extra : transplant_source : %DA%DE%83%98%F3%D2%05u%BE%C8L%A4I%CB%DD%F60%AF%A7%5E

16 years agoMerged with cldc-branch
Roland Lezuo [Tue, 19 Feb 2008 17:04:20 +0000 (18:04 +0100)]
Merged with cldc-branch

16 years ago* src/vm/jit/m68k/asmpart.S (asm_vm_call_method): Do not overwrite return
tbfg@c1.complang.tuwien.ac.at [Tue, 19 Feb 2008 16:46:44 +0000 (17:46 +0100)]
* src/vm/jit/m68k/asmpart.S (asm_vm_call_method): Do not overwrite return
address with method to be invoked.

* src/vm/jit/m68k/codegen.c (codegen_emit_stub_native): Removed call to trace
function as seen in other archs.

*  src/vm/jit/m68k/codegen.h (COMPILERSTUB_CODESIZE): Fix size for new compiler
trap.

16 years ago* src/vm/jit/powerpc/linux/md-abi.c (md_return_alloc): Use
Christian Thalinger [Tue, 19 Feb 2008 15:21:50 +0000 (16:21 +0100)]
* src/vm/jit/powerpc/linux/md-abi.c (md_return_alloc): Use
switch-case.

16 years ago* src/vm/jit/powerpc/codegen.c (codegen_emit): Use switch-case to
Christian Thalinger [Tue, 19 Feb 2008 14:12:44 +0000 (15:12 +0100)]
* src/vm/jit/powerpc/codegen.c (codegen_emit): Use switch-case to
store return values for invokes.

16 years ago* src/vm/jit/powerpc/codegen.c (codegen_emit_stub_native): Use
Christian Thalinger [Mon, 18 Feb 2008 22:05:32 +0000 (23:05 +0100)]
* src/vm/jit/powerpc/codegen.c (codegen_emit_stub_native): Use
switch-case for argument copying.

16 years ago* src/vmcore/options.h, src/vmcore/options.c, src/vm/jit/inline/inline.c:
Edwin Steiner [Mon, 18 Feb 2008 22:02:24 +0000 (23:02 +0100)]
* src/vmcore/options.h, src/vmcore/options.c, src/vm/jit/inline/inline.c:
Trace levels for inlining.

--HG--
extra : transplant_source : 0%BE%2AL%B3%8F%A9%3A%A5Q%F5%AE%3BC%BA%87%7F%2B%D3%19

16 years ago* src/vm/jit/inline/inline.c (inline_transform): Make semantics of opt_InlineCount
Edwin Steiner [Mon, 18 Feb 2008 21:33:05 +0000 (22:33 +0100)]
* src/vm/jit/inline/inline.c (inline_transform): Make semantics of opt_InlineCount
less confusing.

--HG--
extra : transplant_source : %88b%95%00%E4x%03%E10%C0%84%0F%A4T%A3%CAa%14%D2%BA

16 years ago* src/vmcore/options.h, src/vmcore/options.c, src/vmcore/method.c,
Edwin Steiner [Mon, 18 Feb 2008 21:25:21 +0000 (22:25 +0100)]
* src/vmcore/options.h, src/vmcore/options.c, src/vmcore/method.c,
src/vmcore/linker.c, src/vm/vm.c, src/vm/jit/jit.c,
src/vm/jit/inline/inline.c: Changed inlining options to -XX options.

--HG--
extra : transplant_source : %CCn%93%AB%1B%B4RQ%93%21%2A1ljD-%D7%2C%A2%F9

16 years ago* src/vm/jit/powerpc/codegen.c (codegen_emit): Removed variable a,
Christian Thalinger [Mon, 18 Feb 2008 18:52:07 +0000 (19:52 +0100)]
* src/vm/jit/powerpc/codegen.c (codegen_emit): Removed variable a,
added variable i.

16 years ago* src/vm/jit/powerpc/codegen.c (codegen_emit): Use switch-case when
Christian Thalinger [Mon, 18 Feb 2008 18:47:06 +0000 (19:47 +0100)]
* src/vm/jit/powerpc/codegen.c (codegen_emit): Use switch-case when
argument copying for invokes.

16 years ago* src/vm/jit/powerpc/codegen.h: Grouped and alpha-sorted the code
Christian Thalinger [Mon, 18 Feb 2008 13:19:30 +0000 (14:19 +0100)]
* src/vm/jit/powerpc/codegen.h: Grouped and alpha-sorted the code
generating macros.

16 years ago* src/vm/jit/replace.c (replace_gc_from_native): Fixed typo, again.
Christian Thalinger [Mon, 18 Feb 2008 13:08:06 +0000 (14:08 +0100)]
* src/vm/jit/replace.c (replace_gc_from_native): Fixed typo, again.

16 years ago* src/vm/jit/replace.c (replace_me): Fixed typo.
Christian Thalinger [Mon, 18 Feb 2008 13:05:30 +0000 (14:05 +0100)]
* src/vm/jit/replace.c (replace_me): Fixed typo.

16 years ago* src/vm/jit/replace.c (replace_me): Use
Christian Thalinger [Mon, 18 Feb 2008 12:42:21 +0000 (13:42 +0100)]
* src/vm/jit/replace.c (replace_me): Use
threads_get_current_stackframeinfo().
(replace_gc_from_native): Likewise.

16 years ago* src/vm/jit/stacktrace.c (stacktrace_get): Changed signature to take
Christian Thalinger [Mon, 18 Feb 2008 12:40:56 +0000 (13:40 +0100)]
* src/vm/jit/stacktrace.c (stacktrace_get): Changed signature to take
again a stackframeinfo_t.
(stacktrace_get_current): New function.
(stacktrace_stackframeinfo_add): Use
threads_get_current_stackframeinfo.
(stacktrace_stackframeinfo_remove): Likewise.
(stacktrace_first_nonnull_classloader): Likewise.
(stacktrace_getClassContext): Likewise.
(stacktrace_get_current_class): Likewise.
(stacktrace_get_stack): Likewise.
* src/vm/jit/stacktrace.h (stacktrace_get): Changed signature.
(stacktrace_get_current): New function.

* src/mm/cacao-gc/gc.c (gc_collect): Replaced stacktrace_get with
stacktrace_get_current.
* src/native/vm/cldc1.1/java_lang_Throwable.c (fillInStackTrace):
Likewise.
* src/native/vm/gnu/java_lang_VMThrowable.c (fillInStackTrace):
Likewise.
* src/native/vm/sun/jvm.c (JVM_FillInStackTrace): Likewise.

* src/threads/native/threads.h (STACKFRAMEINFO): Removed.
(threads_get_current_stackframeinfo): New function.
(threads_set_current_stackframeinfo): Likewise.
* src/threads/none/threads.h: Likewise.

* src/threads/threads-common.c (threads_dump) [ENABLE_GC_CACAO]: Added
code to suspend and resume the thread (NOTE: Not tested!).
(threads_thread_print_stacktrace): Rewritten to work again.

16 years ago* src/vmcore/options.c (opt_TraceSubsystemInitialization): Added.
Christian Thalinger [Mon, 18 Feb 2008 11:27:28 +0000 (12:27 +0100)]
* src/vmcore/options.c (opt_TraceSubsystemInitialization): Added.
* src/vmcore/options.h (TRACESUBSYSTEMINITIALIZATION): New macro.

* src/mm/boehm.c,
src/mm/codememory.c,
src/native/jni.c,
src/native/localref.c,
src/native/native.c,
src/native/vm/nativevm.c,
src/threads/native/threads.c,
src/threads/threads-common.c,
src/vm/builtin.c,
src/vm/exceptions.c,
src/vm/finalizer.c,
src/vm/jit/jit.c,
src/vm/jit/optimizing/recompile.c,
src/vm/package.c,
src/vm/primitive.c,
src/vm/properties.c,
src/vm/signal.c,
src/vm/string.c,
src/vmcore/classcache.c,
src/vmcore/linker.c,
src/vmcore/loader.c,
src/vmcore/primitivecore.c,
src/vmcore/suck.c,
src/vmcore/utf8.c: Added TRACESUBSYSTEMINITIALIZATION to the *_init
functions.

16 years ago* src/vmcore/options.c: Use int instead of int32_t for opt_*
Christian Thalinger [Mon, 18 Feb 2008 11:03:33 +0000 (12:03 +0100)]
* src/vmcore/options.c: Use int instead of int32_t for opt_*
variables.
* src/vmcore/options.h: Likewise.

16 years ago* contrib/vmlog/vmlog_cacao.c (vmlog_cacao_do_log): Deal with m->class == NULL.
Edwin Steiner [Sun, 17 Feb 2008 18:24:30 +0000 (19:24 +0100)]
* contrib/vmlog/vmlog_cacao.c (vmlog_cacao_do_log): Deal with m->class == NULL.

16 years agoMerged the "edwin-replacement" branch that I pushed accidentally.
Edwin Steiner [Sun, 17 Feb 2008 17:53:21 +0000 (18:53 +0100)]
Merged the "edwin-replacement" branch that I pushed accidentally.

16 years ago* src/vm/signal.c (signal_handle): vmlog signal type.
Edwin Steiner [Sun, 17 Feb 2008 10:41:43 +0000 (11:41 +0100)]
* src/vm/signal.c (signal_handle): vmlog signal type.

--HG--
branch : edwin-replacement
extra : transplant_source : MX%07%B9%27H%FAC%B9%9D%3AO%5B%80%A2%DE%E2m%3C%CC

16 years ago* contrib/vmlog/vmlog_cacao.h (vmlog_cacao_signl_type): New function.
Edwin Steiner [Sat, 16 Feb 2008 07:39:31 +0000 (08:39 +0100)]
* contrib/vmlog/vmlog_cacao.h (vmlog_cacao_signl_type): New function.
* contrib/vmlog/vmlog_cacao.c (vmlog_cacao_signl_type): Likewise.

--HG--
branch : edwin-replacement
extra : transplant_source : %19%1D%94-%60e%DB%1Am%40%27%21%A4%28/R%AF%B8z%DD

16 years ago* src/vmcore/options.c (TraceJavaCalls): Remove this option when vmlog
Edwin Steiner [Fri, 15 Feb 2008 20:35:01 +0000 (21:35 +0100)]
* src/vmcore/options.c (TraceJavaCalls): Remove this option when vmlog
is enabled. (It does not have the expected effect then).

--HG--
branch : edwin-replacement
extra : transplant_source : x%B8%10Pw%1B%7E%5E%A3%9F%83%FB%04%1B%B9%5B%F2%0Fq%CC

16 years ago* src/vmcore/options.c (options_xx): Integrated vmlog options handling.
Edwin Steiner [Fri, 15 Feb 2008 20:26:28 +0000 (21:26 +0100)]
* src/vmcore/options.c (options_xx): Integrated vmlog options handling.
* src/vm/vm.c (vm_create): Changed vmlog init interface.
* src/cacaoh/dummy.c (vmlog_cacao_set_prefix, vmlog_cacao_set_stringprefix,
vmlog_cacao_set_ignoreprefix): Dummies added.
* contrib/vmlog/vmlog.h, contrib/vmlog/vmlog.c, contrib/vmlog/vmlog_cacao.h,
contrib/vmlog/vmlog_cacao.c: Changed vmlog init interface.

--HG--
branch : edwin-replacement
extra : transplant_source : %F0%0C%E3%E5%7C%FB%E4%19%97J%E3%7D%EFNt%E6IP%16%9E

16 years ago* src/vm/jit/m68k/codegen.c (codegen_emit_stub_native): Handle builtin correctly.
tbfg@c1.complang.tuwien.ac.at [Fri, 15 Feb 2008 19:16:51 +0000 (20:16 +0100)]
* src/vm/jit/m68k/codegen.c (codegen_emit_stub_native): Handle builtin correctly.
* src/vm/jit/m68k/linux/md-abi.c (md_param_alloc_native): With 8 bytes stack
slots internally natives need a 4 byte stack slot allocation.
(md_param_alloc): Set index correctly.