cacao.git
16 years ago* src/vm/jit/stacktrace.h (stackframeinfo): Renamed to
Christian Thalinger [Sat, 13 Oct 2007 12:46:54 +0000 (14:46 +0200)]
* src/vm/jit/stacktrace.h (stackframeinfo): Renamed to
stackframeinfo_t.

* src/mm/cacao-gc/gc.c,
src/native/jvmti/jvmti.c,
src/threads/native/threads.h,
src/threads/threads-common.c,
src/vm/exceptions.c,
src/vm/jit/alpha/codegen.c,
src/vm/jit/arm/codegen.c,
src/vm/jit/codegen-common.c,
src/vm/jit/i386/codegen.c,
src/vm/jit/jit.c,
src/vm/jit/m68k/codegen.c,
src/vm/jit/m68k/patcher.c,
src/vm/jit/mips/codegen.c,
src/vm/jit/powerpc/codegen.c,
src/vm/jit/powerpc64/codegen.c,
src/vm/jit/replace.c,
src/vm/jit/replace.h,
src/vm/jit/s390/codegen.c,
src/vm/jit/sparc64/codegen.c,
src/vm/jit/sparc64/patcher.c,
src/vm/jit/stacktrace.c,
src/vm/jit/x86_64/codegen.c,
src/vm/signal.c: Likewise.

16 years ago* src/threads/native/threads.c: Fixed some compiler warnings.
Michael Starzinger [Sat, 13 Oct 2007 11:41:21 +0000 (13:41 +0200)]
* src/threads/native/threads.c: Fixed some compiler warnings.
* src/threads/threads-common.c: Likewise.

16 years ago* tests/gc/LockRecords.java: Added additional cleanup pass after waiting.
Michael Starzinger [Sat, 13 Oct 2007 11:32:30 +0000 (13:32 +0200)]
* tests/gc/LockRecords.java: Added additional cleanup pass after waiting.
* tests/gc/Makefile: Added NativeWeakRef testcase.
* tests/gc/NativeWeakRef.java: Added new testcase.
* tests/gc/native.c: Added native methods for NativeWeakRef testcase.

16 years ago* src/mm/cacao-gc/gc.c (gc_global_lock): Removed obsolete global lock.
Michael Starzinger [Sat, 13 Oct 2007 11:16:56 +0000 (13:16 +0200)]
* src/mm/cacao-gc/gc.c (gc_global_lock): Removed obsolete global lock.
(gc_collect): Use GC mutex as global gc lock.
(gc_reference_register_intern, gc_reference_unregister_intern): Use GC mutex to
lock the reference lists.

* src/mm/cacao-gc/gc.h (GC_MUTEX_LOCK, GC_MUTEX_UNLOCK): Added macros.

* src/threads/native/threads.c [ENABLE_GC_CACAO] (mutex_gc): Added GC mutex.
[ENABLE_GC_CACAO] (threads_mutex_gc_lock, threads_mutex_gc_unlock): Implemented.

* src/threads/threads-common.h [ENABLE_GC_CACAO]
(threads_mutex_gc_lock, threads_mutex_gc_unlock): Added prototypes.

16 years ago* src/vm/string.c (javastring_toutf): Added check for empty strings.
Michael Starzinger [Sat, 13 Oct 2007 09:55:04 +0000 (11:55 +0200)]
* src/vm/string.c (javastring_toutf): Added check for empty strings.

16 years ago* src/vm/jit/jit.h (jitdata): Removed isleafmethod.
Christian Thalinger [Fri, 12 Oct 2007 22:31:49 +0000 (00:31 +0200)]
* src/vm/jit/jit.h (jitdata): Removed isleafmethod.

* src/vm/jit/allocator/lsra.c,
src/vm/jit/allocator/simplereg.c,
src/vm/jit/alpha/codegen.c,
src/vm/jit/alpha/emit.c,
src/vm/jit/arm/codegen.c,
src/vm/jit/arm/md-abi.c,
src/vm/jit/i386/codegen.c,
src/vm/jit/i386/emit.c,
src/vm/jit/inline/inline.c,
src/vm/jit/jit.c,
src/vm/jit/m68k/codegen.c,
src/vm/jit/mips/codegen.c,
src/vm/jit/mips/emit.c,
src/vm/jit/optimizing/lsra.c,
src/vm/jit/optimizing/ssa.c,
src/vm/jit/parse.c,
src/vm/jit/parse.h,
src/vm/jit/powerpc/codegen.c,
src/vm/jit/powerpc/darwin/md-abi.c,
src/vm/jit/powerpc/linux/md-abi.c,
src/vm/jit/powerpc64/codegen.c,
src/vm/jit/powerpc64/linux/md-abi.c,
src/vm/jit/replace.c,
src/vm/jit/s390/codegen.c,
src/vm/jit/s390/emit.c,
src/vm/jit/s390/md-abi.c,
src/vm/jit/show.c,
src/vm/jit/sparc64/codegen.c,
src/vm/jit/sparc64/emit.c,
src/vm/jit/stack.c,
src/vm/jit/x86_64/codegen.c,
src/vm/jit/x86_64/emit.c,
src/vm/jit/x86_64/md-abi.c: Replaced jd->isleafmethod with
code_is_leafmethod.

16 years ago* src/mm/cacao-gc/gc.c (gc_reflist_weak): Added list for weak references.
Michael Starzinger [Fri, 12 Oct 2007 21:52:11 +0000 (23:52 +0200)]
* src/mm/cacao-gc/gc.c (gc_reflist_weak): Added list for weak references.
(gc_weakreference_register, gc_weakreference_unregister): Implemented.
(gc_collect): Added preliminary call to lock_hashtable_cleanup.

* src/mm/cacao-gc/gc.h (gc_reflist_weak): Added.

* src/mm/cacao-gc/mark.c (mark_post): Added postprocessing function.

* src/mm/cacao-gc/rootset.c (rootset_from_globals): Add weak references.
(reftype_names): Adapted to new enumeration.

* src/mm/gc-common.h: Reference types are now enumerated.
(gc_weakreference_register, gc_weakreference_unregister): Added prototypes.

* src/threads/native/lock.c [ENABLE_GC_CACAO] (lock_hashtable_cleanup): Added.
(lock_record_new, lock_record_free) [ENABLE_GC_CACAO]: Register and unregister
references to lock object with the GC (as weak references).

16 years ago* src/vm/jit/code.c (code_get_codeinfo_for_pv): Added new function.
Michael Starzinger [Fri, 12 Oct 2007 21:33:00 +0000 (23:33 +0200)]
* src/vm/jit/code.c (code_get_codeinfo_for_pv): Added new function.
(code_find_codeinfo_for_pc): Use above function.
(code_get_methodinfo_for_pv): Likewise.

* src/vm/jit/code.h (code_get_codeinfo_for_pv): Added prototype.

* src/vm/jit/replace.c (replace_pop_activation_record): Use above function.
(replace_patch_method_pointer): Likewise.
(replace_pop_native_frame): Skip native stubs with new sfi correctly.
(replace_push_native_frame): Likewise.

16 years ago* Merged with rev 974c36a815eb.
Michael Starzinger [Fri, 12 Oct 2007 16:52:11 +0000 (18:52 +0200)]
* Merged with rev 974c36a815eb.

16 years ago* src/cacaoh/headers.h (literalstring_free): Removed obsolete prototype.
Michael Starzinger [Fri, 12 Oct 2007 16:45:38 +0000 (18:45 +0200)]
* src/cacaoh/headers.h (literalstring_free): Removed obsolete prototype.

* src/vm/stringlocal.h (literalstring_u2, literalstring_free): Likewise.

* src/vm/string.c (heapstring_t): Added typedef.
(stringtable_update): Adapted for handles.
(javastring_tochar): Code cleanup.
(javastring_toutf): Code cleanup.
(literalstring_u2): Made static and adapted for handles.
(literalstring_free): Likewise.
(javastring_intern): Code cleanup and added comments.

16 years ago* configure.ac (AC_CHECK_FUNCS): Added ftruncate.
Christian Thalinger [Fri, 12 Oct 2007 16:36:18 +0000 (18:36 +0200)]
* configure.ac (AC_CHECK_FUNCS): Added ftruncate.

* src/native/vm/sun/jvm.c (JVM_DefineClassWithSource): Handle when
name is NULL properly.
(JVM_Lseek): Use TRACEJVMCALLS.
(JVM_SetLength): Implemented.

16 years ago* src/threads/native/threads.c (threads_detach_thread): Fixed CLDC
Christian Thalinger [Thu, 11 Oct 2007 14:23:03 +0000 (16:23 +0200)]
* src/threads/native/threads.c (threads_detach_thread): Fixed CLDC
build.

16 years ago* src/vm/jit/powerpc64/codegen.c (codegen_emit_stub_native): Removed
Christian Thalinger [Tue, 9 Oct 2007 16:11:22 +0000 (18:11 +0200)]
* src/vm/jit/powerpc64/codegen.c (codegen_emit_stub_native): Removed
patcher stuff.

16 years ago* Merged with b23caa4282a5.
Christian Thalinger [Tue, 9 Oct 2007 16:08:55 +0000 (18:08 +0200)]
* Merged with b23caa4282a5.

16 years ago* Merged with 3b6c3b177749.
Christian Thalinger [Tue, 9 Oct 2007 15:34:15 +0000 (17:34 +0200)]
* Merged with 3b6c3b177749.

16 years agoMerged?
Roland Lezuo [Tue, 9 Oct 2007 09:52:38 +0000 (11:52 +0200)]
Merged?

16 years ago(codegen_emit_stub_builtin): Removed.
Roland Lezuo [Tue, 9 Oct 2007 09:43:50 +0000 (11:43 +0200)]
(codegen_emit_stub_builtin): Removed.
(codegen_emit_stub_native): Ported to new interface.

Ported to new interface, removed warnings.
(md_signal_handler_sigill): Likewise.

(offset.h): Removed.

(PATCH_BACK_ORIGINAL_MCODE): Added.
(patcher_patch_back): Removed.
(patcher_patch_code): Added.
(patcher_*): Use patchref_t instead of void *sp everywhere.

16 years ago* tests/regression/Makefile.am (SOURCE_FILES): Removed
Christian Thalinger [Tue, 9 Oct 2007 07:49:26 +0000 (09:49 +0200)]
* tests/regression/Makefile.am (SOURCE_FILES): Removed
extest_clinit.java.

16 years ago* Merged with 59ff46a9e236.
Christian Thalinger [Tue, 9 Oct 2007 07:03:20 +0000 (09:03 +0200)]
* Merged with 59ff46a9e236.

16 years ago* src/vm/jit/code.h (stdint.h): Added.
Christian Thalinger [Tue, 9 Oct 2007 07:02:04 +0000 (09:02 +0200)]
* src/vm/jit/code.h (stdint.h): Added.
(CODE_FLAG_SYNCHRONIZED): New flag.
(code_is_synchronized): New function.
(code_flag_synchronized): Likewise.
(code_unflag_synchronized): Likewise.

16 years ago* src/vm/system.c [__DARWIN__]: Fixed includes.
Michael Starzinger [Tue, 9 Oct 2007 00:23:35 +0000 (02:23 +0200)]
* src/vm/system.c [__DARWIN__]: Fixed includes.

16 years ago* src/vm/finalizer.c (finalizer_run): Fixed for handles and added boehm-hack.
Michael Starzinger [Mon, 8 Oct 2007 23:22:03 +0000 (01:22 +0200)]
* src/vm/finalizer.c (finalizer_run): Fixed for handles and added boehm-hack.
(finalizer_thread, finalizer_notify): Added debug output.

* src/vmcore/options.c (opt_DebugFinalizer): Added debug switch.
* src/vmcore/options.h (opt_DebugFinalizer): Likewise.

* src/threads/native/lock.c (lock_hashtable_remove): Also frees the lock record.
(lock_record_finalizer): Same as for finalizer_run above.
(lock_hashtable_get) [ENABLE_GC_BOEHM]: Fixed registration of finalizer.

* tests/gc/LockRecords.java: Added new testcase for lock records cleanup.

16 years ago* src/native/vm/gnu/java_lang_reflect_Field.c (cacao_get_field_address) Removed.
Michael Starzinger [Mon, 8 Oct 2007 22:39:11 +0000 (00:39 +0200)]
* src/native/vm/gnu/java_lang_reflect_Field.c (cacao_get_field_address) Removed.
(_field_access_check, _field_get_type, _field_set_type): Added new functions.
(Java_java_lang_reflect_Field_XXX): Adapted to above changes and thereby
fixing it for handles.

* src/native/vm/gnu/java_lang_reflect_Method.c: Just removed bogus casting.

16 years ago* src/native/jni.c (_Jv_JNI_DeleteLocalRef): Fixed compiler warning.
Michael Starzinger [Mon, 8 Oct 2007 22:30:05 +0000 (00:30 +0200)]
* src/native/jni.c (_Jv_JNI_DeleteLocalRef): Fixed compiler warning.
(_Jv_JNI_GetXXXField, _Jv_JNI_SetXXXField): Fixed for handles.
(_Jv_JNI_GetStaticObjectField, _Jv_JNI_SetStaticObjectField): Likewise.
(_Jv_JNI_SetObjectArrayElement): Adapted to new builtin_canstore.
(_Jv_JNI_NewGlobalRef): Made LLNI critical sections smaller to avoid deadlock.

16 years ago* src/threads/native/threads.c (threads_detach_thread): Fixed debug output and
Michael Starzinger [Mon, 8 Oct 2007 22:19:05 +0000 (00:19 +0200)]
* src/threads/native/threads.c (threads_detach_thread): Fixed debug output and
compiler warning.

16 years ago* src/vm/jit/powerpc/arch.h (JIT_COMPILER_VIA_SIGNAL): Temporarily
Christian Thalinger [Mon, 8 Oct 2007 20:28:19 +0000 (22:28 +0200)]
* src/vm/jit/powerpc/arch.h (JIT_COMPILER_VIA_SIGNAL): Temporarily
added.

* src/vm/jit/powerpc/asmpart.S (asm_call_jit_compiler): Removed.
(L_jit_asm_compile$stub): Likewise.
(L_exceptions_get_and_clear_exception$stub): Likewise.

* src/vm/jit/powerpc/codegen.c (codegen_emit_stub_compiler): Removed.

* src/vm/jit/powerpc/codegen.h (COMPILERSTUB_CODESIZE): Adapted size.

* src/vm/jit/powerpc/darwin/md-asm.h (asm_call_jit_compiler): Removed.
(exceptions_get_and_clear_exception): Likewise.
(jit_asm_compile): Likewise.

* src/vm/jit/powerpc/emit.c (emit_trap_compiler): New function.

* src/vm/jit/powerpc/darwin/md-os.c (md_signal_handler_sigsegv): Added
compiler-by-signals code.
* src/vm/jit/powerpc/linux/md-os.c: Likewise.

16 years ago* src/vm/jit/powerpc/codegen.c (codegen_emit_stub_native): Removed
Christian Thalinger [Mon, 8 Oct 2007 20:04:26 +0000 (22:04 +0200)]
* src/vm/jit/powerpc/codegen.c (codegen_emit_stub_native): Removed
patcher stuff.

16 years ago* tests/regression/extest.java: Updated a bit and added another
Christian Thalinger [Mon, 8 Oct 2007 18:40:19 +0000 (20:40 +0200)]
* tests/regression/extest.java: Updated a bit and added another
testcase.
* tests/regression/extest.2output: Updated.
* tests/regression/extest_clinit.java: Removed.

16 years ago* src/vm/jit/stacktrace.c (stacktrace_stackframeinfo_add) [!NDEBUG]:
Christian Thalinger [Mon, 8 Oct 2007 18:35:52 +0000 (20:35 +0200)]
* src/vm/jit/stacktrace.c (stacktrace_stackframeinfo_add) [!NDEBUG]:
Added DebugStackFrameInfo output.
(stacktrace_stackframeinfo_remove): Likewise.
(stacktrace_stack_walk): Bugfix when a patcher in a leaf-method causes
an exception.

16 years ago* src/vm/builtin.c: Major cleanup of code and commentes, to much to list here,
Michael Starzinger [Mon, 8 Oct 2007 17:51:40 +0000 (19:51 +0200)]
* src/vm/builtin.c: Major cleanup of code and commentes, to much to list here,
please accept my apologies for this short commit message. Everything is
Handles-ready now.

* src/vm/builtin.h: Adapted signatures of builtins and added vim boilerplate.

16 years ago* src/native/llni.h (LLNI_QUICKWRAP): Added new macro.
Michael Starzinger [Mon, 8 Oct 2007 15:56:48 +0000 (17:56 +0200)]
* src/native/llni.h (LLNI_QUICKWRAP): Added new macro.

* src/threads/native/lock.h: Use above macro for internal locking.
(LOCK_WAIT_FOREVER, LOCK_NOTIFY): Added new macros.

* src/vm/finalizer.c: Use internal locking macros throughout the code.
* src/vm/jit/optimizing/recompile.c: Likewise.

16 years ago* src/vm/jit/replace.c (replace_create_replacement_points): Use new
Christian Thalinger [Mon, 8 Oct 2007 15:50:04 +0000 (17:50 +0200)]
* src/vm/jit/replace.c (replace_create_replacement_points): Use new
code inline functions.
(replace_pop_activation_record): Likewise.
(replace_push_activation_record): Likewise.

16 years ago* src/vm/jit/arm/emit.c (emit_verbosecall_exit): Fixed comments.
Michael Starzinger [Mon, 8 Oct 2007 15:25:09 +0000 (17:25 +0200)]
* src/vm/jit/arm/emit.c (emit_verbosecall_exit): Fixed comments.

16 years ago* src/vm/vm.c (vm_create): Moved localref_table_init from vm_createjvm.
Michael Starzinger [Mon, 8 Oct 2007 14:57:26 +0000 (16:57 +0200)]
* src/vm/vm.c (vm_create): Moved localref_table_init from vm_createjvm.

16 years ago* src/native/vm/cldc1.1/java_lang_Object.c
Michael Starzinger [Mon, 8 Oct 2007 13:12:45 +0000 (15:12 +0200)]
* src/native/vm/cldc1.1/java_lang_Object.c
(Java_java_lang_Object_notify): Adapted to new locking function signatures.
(Java_java_lang_Object_notifyAll): Likewise.
(Java_java_lang_Object_wait): Likewise.

* src/native/vm/gnu/java_lang_VMObject.c
(Java_java_lang_VMObject_notify): Adapted to new locking function signatures.
(Java_java_lang_VMObject_notifyAll): Likewise.
(Java_java_lang_VMObject_wait): Likewise.

* src/native/vm/sun/jvm.c
(JVM_MonitorWait): Adapted to new locking function signatures.
(JVM_MonitorNotify): Likewise.
(JVM_MonitorNotifyAll): Likewise.

16 years ago* Merged with ad640e81c710.
Christian Thalinger [Mon, 8 Oct 2007 11:49:43 +0000 (13:49 +0200)]
* Merged with ad640e81c710.

16 years ago* src/vm/jit/code.h (codeinfo): Renamed codeflags to flags.
Christian Thalinger [Mon, 8 Oct 2007 11:48:59 +0000 (13:48 +0200)]
* src/vm/jit/code.h (codeinfo): Renamed codeflags to flags.
(CODE_IS_VALID, CODE_IS_INVALID, CODE_IS_LEAFMETHOD)
(CODE_SETFLAG_INVALID, CODE_SETFLAG_LEAFMETHOD): Removed.
(code_is_invalid, code_flag_invalid, code_unflag_invalid): New inline
function.
(code_is_leafmethod, code_flag_leafmethod, code_unflag_leafmethod):
Likewise.

* src/vm/jit/jit.c (jit_invalidate_code): Use new inline functions.
(jit_get_current_code): Likewise.

16 years ago* src/threads/lock-common.h: Changed signature of most locking functions to
Michael Starzinger [Mon, 8 Oct 2007 11:36:44 +0000 (13:36 +0200)]
* src/threads/lock-common.h: Changed signature of most locking functions to
take handles as arguments.

* src/cacaoh/dummy.c: Adapted to new signatures.

* src/threads/native/lock.c: Adapted to new signatures and added LLNI critical
sections. Will slow down locking for [ENABLE_HANDLES && ENABLE_GC_CACAO].
(lock_lockword_get). Implemented.
(lock_lockword_set): Implemented.

16 years ago* src/vm/jit/alpha/emit.c (emit_verbosecall_enter): Adapted to use new tracer.
Michael Starzinger [Mon, 8 Oct 2007 11:10:51 +0000 (13:10 +0200)]
* src/vm/jit/alpha/emit.c (emit_verbosecall_enter): Adapted to use new tracer.
(emit_verbosecall_exit): Likewise.

* src/vm/jit/alpha/md-abi.h (TRACE_ARGS_NUM): Removed.

16 years ago* src/native/llni.h (LLNI_CRITICAL_START_THREAD): Added faster macro.
Michael Starzinger [Sun, 7 Oct 2007 23:12:02 +0000 (01:12 +0200)]
* src/native/llni.h (LLNI_CRITICAL_START_THREAD): Added faster macro.
(LLNI_CRITICAL_END_THREAD): Likewise.

* src/native/llni.c (llni_critical_start_thread): Implemented faster function.
(llni_critical_end_thread): Likewise.

16 years ago* src/native/llni.h (LLNI_field_set_ref): Fixed problem with NULL references.
Michael Starzinger [Sun, 7 Oct 2007 22:29:12 +0000 (00:29 +0200)]
* src/native/llni.h (LLNI_field_set_ref): Fixed problem with NULL references.

16 years ago* src/vm/builtin.c (builtin_print_argument): Removed obsolete function.
Michael Starzinger [Sun, 7 Oct 2007 19:23:03 +0000 (21:23 +0200)]
* src/vm/builtin.c (builtin_print_argument): Removed obsolete function.
(builtin_verbosecall_enter): Made a dummy function, use new tracer.
(builtin_verbosecall_exit): Likewise.

16 years ago* src/vm/jit/powerpc64/emit.c (emit_verbosecall_enter): Adapted to use new tracer.
Michael Starzinger [Sun, 7 Oct 2007 19:19:01 +0000 (21:19 +0200)]
* src/vm/jit/powerpc64/emit.c (emit_verbosecall_enter): Adapted to use new tracer.
(emit_verbosecall_exit): Likewise.

* src/vm/jit/powerpc64/linux/md-abi.h (TRACE_ARGS_NUM): Removed.

16 years ago* src/vm/jit/arm/emit.c (emit_verbosecall_enter): Adapted to use new tracer.
Michael Starzinger [Sun, 7 Oct 2007 17:55:53 +0000 (19:55 +0200)]
* src/vm/jit/arm/emit.c (emit_verbosecall_enter): Adapted to use new tracer.
(emit_verbosecall_exit): Likewise.

* src/vm/jit/arm/md-abi.h (TRACE_ARGS_NUM): Removed.

16 years ago* src/vm/jit/i386/emit.c (emit_verbosecall_enter): Adapted to use new tracer.
Michael Starzinger [Sun, 7 Oct 2007 17:12:16 +0000 (19:12 +0200)]
* src/vm/jit/i386/emit.c (emit_verbosecall_enter): Adapted to use new tracer.
(emit_verbosecall_exit): Likewise.

* src/vm/jit/i386/md-abi.h (TRACE_ARGS_NUM): Removed.

16 years ago* src/vm/jit/x86_64/emit.c (emit_verbosecall_enter): Adapted to use new tracer.
Michael Starzinger [Sun, 7 Oct 2007 15:26:47 +0000 (17:26 +0200)]
* src/vm/jit/x86_64/emit.c (emit_verbosecall_enter): Adapted to use new tracer.
(emit_verbosecall_exit): Likewise.

* src/vm/jit/x86_64/md-abi.h (TRACE_ARGS_NUM): Removed.

* src/vm/jit/s390/md-abi.h (TRACE_ARGS_NUM): Removed, already uses new tracer.

* src/vm/jit/powerpc/darwin/md-abi.h (TRACE_ARGS_NUM): Likewise.
* src/vm/jit/powerpc/linux/md-abi.h (TRACE_ARGS_NUM): Likewise.
* src/vm/jit/powerpc/netbsd/md-abi.h (TRACE_ARGS_NUM): Likewise.

* src/vm/jit/powerpc/emit.c (vm/builtin.h): Removed obsolete include.

16 years ago* src/threads/threads-common.h (threads_thread_get_object): Added.
Michael Starzinger [Sat, 6 Oct 2007 21:33:39 +0000 (23:33 +0200)]
* src/threads/threads-common.h (threads_thread_get_object): Added.
(threads_thread_set_object): Added.

* src/threads/threads-common.c: Use above functions throughout the code.

* src/threads/native/threads.c: Likewise.

* src/native/vm/java_lang_Thread.c: Likewise.
(_Jv_java_lang_Thread_start): Fixed compiler warning.
(_Jv_java_lang_Thread_currentThread) [ENABLE_JAVASE]: Fixed for handles.

16 years ago* src/native/llni.h (LLNI_objectarray_element_set) Removed.
Michael Starzinger [Sat, 6 Oct 2007 18:54:45 +0000 (20:54 +0200)]
* src/native/llni.h (LLNI_objectarray_element_set) Removed.
(LLNI_objectarray_element_get) Removed.

* src/native/jni.c: Use array_objectarray functions throughout the code.
* src/vm/builtin.c: Likewise.

16 years ago* src/native/jni.c (_Jv_JNI_DeleteLocalRef): Handle NULL references correctly.
Michael Starzinger [Sat, 6 Oct 2007 18:42:36 +0000 (20:42 +0200)]
* src/native/jni.c (_Jv_JNI_DeleteLocalRef): Handle NULL references correctly.
* src/native/localref.c (localref_add, localref_del): Added assertion.

16 years ago* src/vm/jit/jit.c (jit_compile_intern): Use native_method_resolve and
Christian Thalinger [Sat, 6 Oct 2007 11:30:28 +0000 (13:30 +0200)]
* src/vm/jit/jit.c (jit_compile_intern): Use native_method_resolve and
check for exception.

* src/vm/jit/x86_64/codegen.c (codegen_emit_stub_native): Removed
patcher stuff.

16 years ago* src/native/native.c (native_resolve_function): Renamed to
Christian Thalinger [Sat, 6 Oct 2007 09:47:57 +0000 (11:47 +0200)]
* src/native/native.c (native_resolve_function): Renamed to
native_method_resolve.
* src/native/native.h: Likewise.

* src/vm/jit/patcher-common.c (patcher_resolve_native_function):
Likewise.

16 years ago* src/vm/jit/allocator/simplereg.c (ICMD_IF_FCMPxx, ICMD_IF_FCMPL_xx):
Christian Thalinger [Fri, 5 Oct 2007 23:27:47 +0000 (01:27 +0200)]
* src/vm/jit/allocator/simplereg.c (ICMD_IF_FCMPxx, ICMD_IF_FCMPL_xx):
Removed.
* src/vm/jit/jit.h: Likewise.
* src/vm/jit/powerpc/codegen.c: Likewise.
* src/vm/jit/powerpc64/codegen.c: Likewise.
* src/vm/jit/show.c: Likewise.
* src/vm/jit/stack.c: Likewise.
* src/vm/jit/verify/icmds.c: Likewise.

16 years ago* src/vm/array.c (array_objectarray_element_set): Fixed for handles.
Michael Starzinger [Wed, 3 Oct 2007 21:45:26 +0000 (23:45 +0200)]
* src/vm/array.c (array_objectarray_element_set): Fixed for handles.
(array_objectarray_element_get): Likewise.

* src/cacaoh/dummy.c
(array_objectarray_element_set): Do not use LLNI_objectarray macros.
(array_objectarray_element_get): Likewise.

* src/vm/jit/argument.c: Use array_objectarray functions instead of
LLNI_objectarray.

* src/vm/jit/stacktrace.c: Likewise.

16 years ago* src/vm/jit/stacktrace.c (stacktrace_create_stackframeinfo): Removed.
Christian Thalinger [Wed, 3 Oct 2007 21:43:17 +0000 (23:43 +0200)]
* src/vm/jit/stacktrace.c (stacktrace_create_stackframeinfo): Removed.
(stacktrace_create_extern_stackframeinfo): Renamed to
stacktrace_stackframeinfo_add.
(stacktrace_remove_stackframeinfo): Renamed to
stacktrace_stackframeinfo_remove.
* src/vm/jit/stacktrace.h: Likewise.

* src/vm/exceptions.c,
src/vm/jit/codegen-common.c,
src/vm/jit/jit.c,
src/vm/jit/m68k/patcher.c,
src/vm/jit/sparc64/patcher.c,
src/vm/signal.c: Renamed functions as above.

16 years ago* src/vm/jit/x86_64/codegen.c (codegen_emit_stub_native): Fixed stackframesize
Michael Starzinger [Wed, 3 Oct 2007 21:19:52 +0000 (23:19 +0200)]
* src/vm/jit/x86_64/codegen.c (codegen_emit_stub_native): Fixed stackframesize
for (md->paramcount == 0 && md->returntype != TYPE_VOID) cases.

16 years ago* src/native/localref.c: Improved debug output with -XX:+DebugLocalReferences.
Michael Starzinger [Wed, 3 Oct 2007 21:17:58 +0000 (23:17 +0200)]
* src/native/localref.c: Improved debug output with -XX:+DebugLocalReferences.
(localref_check_uncleared): Implemented.

* src/vmcore/options.c (opt_DebugLocalReferences): Added.
* src/vmcore/options.h (opt_DebugLocalReferences): Likewise.

16 years ago* src/vm/jit/codegen-common.c (codegen_start_native_call): Renamed
Christian Thalinger [Wed, 3 Oct 2007 21:05:08 +0000 (23:05 +0200)]
* src/vm/jit/codegen-common.c (codegen_start_native_call): Renamed
currentsp to sp, removed javara, use
stacktrace_create_extern_stackframeinfo instead of
stacktrace_create_native_stackframeinfo.
(codegen_finish_native_call): Renamed currentsp to sp.

* src/vm/jit/stacktrace.c (stdint.h): Added.
(stacktrace_create_extern_stackframe): Always get methodinfo and store
it in stackframeinfo.
(stacktrace_create_native_stackframeinfo): Removed.
(stacktrace_add_entry): Renamed to stacktrace_entry_add, made inline.
(stacktrace_add_method): Renamed to stacktrace_method_add, made
inline.
(stacktrace_stack_walk): New function.
(stacktrace_create): Completely rewritten.

16 years ago* src/vm/jit/stacktrace.c (stacktrace_fillInStackTrace): Returns a bytearray.
Michael Starzinger [Wed, 3 Oct 2007 15:33:39 +0000 (17:33 +0200)]
* src/vm/jit/stacktrace.c (stacktrace_fillInStackTrace): Returns a bytearray.
(stacktrace_print_trace): Does not use stacktracecontainer anymore.

* src/vm/jit/stacktrace.h (stacktracecontainer): Removed.
(stacktrace_fillInStackTrace): Adapted prototype to above change.

* src/native/vm/cldc1.1/java_lang_Throwable.c: Adapted to above changes.
* src/native/vm/gnu/java_lang_VMThrowable.c: Likewise.
* src/native/vm/sun/jvm.c: Likewise.

16 years ago* src/vm/jit/jit.c (jit_compile_handle): Removed unused variable.
Christian Thalinger [Wed, 3 Oct 2007 14:47:07 +0000 (16:47 +0200)]
* src/vm/jit/jit.c (jit_compile_handle): Removed unused variable.

16 years ago* src/vm/jit/powerpc64/arch.h (JIT_COMPILER_VIA_SIGNAL): Temporarily
Christian Thalinger [Wed, 3 Oct 2007 14:37:24 +0000 (16:37 +0200)]
* src/vm/jit/powerpc64/arch.h (JIT_COMPILER_VIA_SIGNAL): Temporarily
added.

* src/vm/jit/powerpc64/asmpart.S (asm_call_jit_compiler): Removed.
* src/vm/jit/powerpc64/codegen.c (codegen_emit_stub_compiler):
Likewise.

* src/vm/jit/powerpc64/codegen.h (COMPILERSTUB_CODESIZE): Adapted
size.

* src/vm/jit/powerpc64/emit.c (emit_trap_compiler): New function.

* src/vm/jit/powerpc64/linux/md-os.c (md_signal_handler_sigsegv):
Added compiler-by-signals code.

16 years ago* src/vm/jit/alpha/arch.h (JIT_COMPILER_VIA_SIGNAL): Temporarily
Christian Thalinger [Wed, 3 Oct 2007 14:15:03 +0000 (16:15 +0200)]
* src/vm/jit/alpha/arch.h (JIT_COMPILER_VIA_SIGNAL): Temporarily
added.

* src/vm/jit/alpha/asmpart.S (asm_call_jit_compiler): Removed.
* src/vm/jit/alpha/codegen.c (codegen_emit_stub_compiler): Likewise.

* src/vm/jit/alpha/codegen.h (COMPILERSTUB_CODESIZE): Adapted size.

* src/vm/jit/alpha/emit.c (emit_trap_compiler): New function.

* src/vm/jit/alpha/linux/md-os.c (vm/exceptions.h): Added.
(md_signal_handler_sigsegv): Added compiler-by-signals code.

16 years ago* src/vm/vm.c: Use array_objectarray functions instead of LLNI_objectarray.
Michael Starzinger [Wed, 3 Oct 2007 13:25:09 +0000 (15:25 +0200)]
* src/vm/vm.c: Use array_objectarray functions instead of LLNI_objectarray.
* src/native/vm/gnu/gnu_classpath_VMStackWalker.c: Likewise.
* src/native/vm/gnu/java_lang_VMThrowable.c: Likewise.
* src/native/vm/java_lang_Class.c: Likewise.

16 years ago* src/vm/jit/m68k/md.c (md_codegen_patch_branch): Removed.
Christian Thalinger [Wed, 3 Oct 2007 13:03:30 +0000 (15:03 +0200)]
* src/vm/jit/m68k/md.c (md_codegen_patch_branch): Removed.
* src/vm/jit/powerpc64/md.c: Likewise.
* src/vm/jit/s390/md.c: Likewise.

16 years ago* src/vm/builtintable.inc (builtintable_internal): Added preliminary entry for
Michael Starzinger [Wed, 3 Oct 2007 13:01:22 +0000 (15:01 +0200)]
* src/vm/builtintable.inc (builtintable_internal): Added preliminary entry for
builtin_multianewarray.

16 years ago* src/mm/memory.h [ENABLE_GC_BOEHM]: GCNEW macros are available for boehm only.
Michael Starzinger [Wed, 3 Oct 2007 11:27:28 +0000 (13:27 +0200)]
* src/mm/memory.h [ENABLE_GC_BOEHM]: GCNEW macros are available for boehm only.

* src/native/localref.c: Adapted ifdefs to above change.

* src/vmcore/class.c: Adapted ifdefs to above change.
(class_free): Fixed, fields array get freed properly.

* src/vmcore/field.c: Adapted ifdefs to above change.
(field_free): Implemented, field value memory gets freed.

16 years ago* src/native/vm/reflect.c [ENABLE_ANNOTATIONS]: Fixed includes.
Michael Starzinger [Mon, 1 Oct 2007 20:22:47 +0000 (22:22 +0200)]
* src/native/vm/reflect.c [ENABLE_ANNOTATIONS]: Fixed includes.

16 years ago* doc/Makefile.am: Fixed clean target to work properly.
Michael Starzinger [Mon, 1 Oct 2007 18:59:47 +0000 (20:59 +0200)]
* doc/Makefile.am: Fixed clean target to work properly.
* doc/handbook/Makefile.am: Likewise.

16 years ago* src/vm/jit/i386/md.c (vm/vm.h): Added.
Christian Thalinger [Mon, 1 Oct 2007 15:51:31 +0000 (17:51 +0200)]
* src/vm/jit/i386/md.c (vm/vm.h): Added.
(md_jit_method_patch_address): Rewritten to new proposed version.

16 years ago* src/vm/jit/i386/linux/md-os.c (md_signal_handler_sigsegv): Set PV
Christian Thalinger [Mon, 1 Oct 2007 15:39:41 +0000 (17:39 +0200)]
* src/vm/jit/i386/linux/md-os.c (md_signal_handler_sigsegv): Set PV
and XPC correctly.

16 years ago* src/vm/jit/i386/emit.c (emit_verbosecall_enter): Use M_CLTD.
Christian Thalinger [Mon, 1 Oct 2007 15:37:28 +0000 (17:37 +0200)]
* src/vm/jit/i386/emit.c (emit_verbosecall_enter): Use M_CLTD.

16 years ago* src/vm/jit/jit.c (jit_compile_handle): Changed signature.
Christian Thalinger [Mon, 1 Oct 2007 15:33:19 +0000 (17:33 +0200)]
* src/vm/jit/jit.c (jit_compile_handle): Changed signature.
* src/vm/jit/jit.h: Likewise.

* src/vm/jit/x86_64/linux/md-os.c (md_signal_handler_sigsegv): Set PV
and XPC correctly.

* src/vm/signal.c (signal_handle): Get the methodinfo pointer and pass
it to jit_compile_handle.

16 years ago* src/vm/jit/i386/arch.h (JIT_COMPILER_VIA_SIGNAL): Temporarily added.
Christian Thalinger [Mon, 1 Oct 2007 14:05:01 +0000 (16:05 +0200)]
* src/vm/jit/i386/arch.h (JIT_COMPILER_VIA_SIGNAL): Temporarily added.

* src/vm/jit/i386/asmpart.S (asm_call_jit_compiler): Removed.

* src/vm/jit/i386/codegen.c (codegen_emit_stub_compiler): Likewise.

* src/vm/jit/i386/codegen.h (COMPILERSTUB_CODESIZE): Adapted size.
(M_BYTE1, M_BYTE2): New macros.
(M_CLTD, M_RET, M_NOP): Use M_BYTE1.
(M_UD2): Use M_BYTE2.

* src/vm/jit/i386/emit.c (emit_trap_compiler): New function.
(emit_trap): Use macros.
(emit_cltd, emit_ret, emit_nop): Removed.
* src/vm/jit/i386/emit.h (emit_cltd, emit_ret, emit_nop): Likewise.

* src/vm/jit/i386/linux/md-os.c (md_signal_handler_sigsegv): Added JIT
compiler code.

16 years ago* src/vm/jit/x86_64/emit.c (emit_trap_compiler): Fixed comment.
Christian Thalinger [Mon, 1 Oct 2007 14:01:52 +0000 (16:01 +0200)]
* src/vm/jit/x86_64/emit.c (emit_trap_compiler): Fixed comment.

16 years ago* src/vm/jit/x86_64/linux/md-os.c (md_signal_handler_sigsegv): Removed
Christian Thalinger [Mon, 1 Oct 2007 13:06:51 +0000 (15:06 +0200)]
* src/vm/jit/x86_64/linux/md-os.c (md_signal_handler_sigsegv): Removed
debug output.

16 years ago* src/native/vm/sun/jvm.c (JVM_InitProperties): Fixed warning.
Christian Thalinger [Mon, 1 Oct 2007 13:03:23 +0000 (15:03 +0200)]
* src/native/vm/sun/jvm.c (JVM_InitProperties): Fixed warning.

16 years ago* src/native/vm/sun/jvm.c (vm/system.h): Added.
Christian Thalinger [Mon, 1 Oct 2007 13:01:10 +0000 (15:01 +0200)]
* src/native/vm/sun/jvm.c (vm/system.h): Added.
(JVM_ActiveProcessorCount): Implemented.

16 years ago* src/native/vm/gnu/java_lang_VMRuntime.c (vm/system.h): Added.
Christian Thalinger [Mon, 1 Oct 2007 12:54:33 +0000 (14:54 +0200)]
* src/native/vm/gnu/java_lang_VMRuntime.c (vm/system.h): Added.
(availableProcessors): Use system_processors_online.

* src/vm/Makefile.am (libvm_la_SOURCES): Added system.[ch].

* src/vm/system.c: New file.
* src/vm/system.h: Likewise.

16 years ago* src/vm/jit/jit.c (jit_compile_handle): Fixed warning.
Christian Thalinger [Mon, 1 Oct 2007 12:12:48 +0000 (14:12 +0200)]
* src/vm/jit/jit.c (jit_compile_handle): Fixed warning.
* src/vm/vm.c (vm_abort_disassemble): Likewise.

16 years ago* src/native/vm/sun/jvm.c (JVM_SetClassSigners): Implemented.
Christian Thalinger [Mon, 1 Oct 2007 12:08:34 +0000 (14:08 +0200)]
* src/native/vm/sun/jvm.c (JVM_SetClassSigners): Implemented.
* src/vmcore/class.h (classinfo) [WITH_CLASSPATH_SUN]: Added signers.

16 years ago* src/vm/jit/jit.c (jit_compile_intern) [WITH_CLASSPATH_SUN]: Don't
Christian Thalinger [Mon, 1 Oct 2007 11:17:44 +0000 (13:17 +0200)]
* src/vm/jit/jit.c (jit_compile_intern) [WITH_CLASSPATH_SUN]: Don't
verify sub-classes of sun/reflect/MagicAccessorImpl.

16 years ago* src/vm/jit/s390/patcher.c (patcher_checkcast_instanceof_interface): Fix error intro...
Peter Molnar [Sat, 29 Sep 2007 21:10:15 +0000 (21:10 +0000)]
* src/vm/jit/s390/patcher.c (patcher_checkcast_instanceof_interface): Fix error introduced in changeset 7586.

16 years ago* src/vm/jit/s390/codegen.h: Added functions for instruction parsing and manipulation...
Peter Molnar [Sat, 29 Sep 2007 20:47:09 +0000 (20:47 +0000)]
* src/vm/jit/s390/codegen.h: Added functions for instruction parsing and manipulation, added opcode defines.
* src/vm/jit/s390/codegen.c (codegen_emit): Replaced handcrafted machined code patching by marco.
* src/vm/jit/s390/emit.c (emit_branch): Likewise.
* src/vm/jit/s390/md.c (md_jit_method_patch_address, md_signal_handler_sigsegv, md_signal_handler_sigill, md_signal_handler_sigfpe): Replaced handcrafted machine code parsing and patching by calls to new functions.
* src/vm/jit/s390/patcher.c (patcher_invokeinterface, patcher_invokevirtual, patcher_get_putfield): Likewise.

16 years ago* src/vm/jit/asmpart.h [!JIT_COMPILER_VIA_SIGNAL]
Christian Thalinger [Sat, 29 Sep 2007 18:09:34 +0000 (20:09 +0200)]
* src/vm/jit/asmpart.h [!JIT_COMPILER_VIA_SIGNAL]
(asm_call_jit_compiler): Added #ifdef.

* src/vm/jit/codegen-common.c (codegen_generate_stub_compiler)
[JIT_COMPILER_VIA_SIGNAL]: Added new code.

* src/vm/jit/codegen-common.h [!JIT_COMPILER_VIA_SIGNAL]
(codegen_emit_stub_compiler): Added #ifdef.

* src/vm/jit/emit-common.h (emit_trap_compiler): Added.

* src/vm/jit/jit.c [!JIT_COMPILER_VIA_SIGNAL] (jit_asm_compile): Added
#ifdef.
(jit_compile_handle): New function.

* src/vm/jit/jit.h (vm/jit/stacktrace.h): Added.
[!JIT_COMPILER_VIA_SIGNAL] (jit_asm_compile): Added #ifdef.

* src/vm/jit/x86_64/arch.h (JIT_COMPILER_VIA_SIGNAL): Added
temporarily.

* src/vm/jit/x86_64/asmpart.S (asm_call_jit_compiler): Removed.

* src/vm/jit/x86_64/codegen.c (codegen_emit_stub_compiler): Removed.
* src/vm/jit/x86_64/codegen.h (COMPILERSTUB_CODESIZE): Adapted.

* src/vm/jit/x86_64/emit.c (emit_trap_compiler): New function.

* src/vm/jit/x86_64/linux/md-os.c (md_signal_handler_sigsegv): Added
JIT compiler handling code.
* src/vm/signal.c (signal_handle): Likewise.

16 years ago* src/vm/jit/md.h (md_get_method_patch_address): Removed.
Christian Thalinger [Sat, 29 Sep 2007 16:12:52 +0000 (18:12 +0200)]
* src/vm/jit/md.h (md_get_method_patch_address): Removed.
* src/vm/jit/jit.h (md_jit_method_patch_address): Added.

* src/vm/jit/jit.c (jit_asm_compile): Call md_jit_method_patch_address
with new signature.

* src/vm/jit/replace.c (replace_patch_future_calls): Likewise.

* src/vm/jit/alpha/md.c,
src/vm/jit/arm/md.c,
src/vm/jit/i386/md.c,
src/vm/jit/m68k/md.c,
src/vm/jit/mips/md.c,
src/vm/jit/powerpc/md.c,
src/vm/jit/powerpc64/md.c,
src/vm/jit/s390/md.c,
src/vm/jit/sparc64/md.c,
src/vm/jit/x86_64/md.c: Tried to fix the includes.
(md_get_method_patch_address): Renamed to md_jit_method_patch_address
and changed the signature.

16 years ago* src/vm/jit/alpha/codegen.h (M_MEM_GET_Opcode): New macro.
Christian Thalinger [Sat, 29 Sep 2007 15:34:54 +0000 (17:34 +0200)]
* src/vm/jit/alpha/codegen.h (M_MEM_GET_Opcode): New macro.
(M_MEM_GET_A): Renamed to M_MEM_GET_Ra to be consistent with handbook.
(M_MEM_GET_B): Renamed to M_MEM_GET_Rb.
(M_MEM_GET_DISP): Renamed to M_MEM_GET_Memory_disp.

* src/vm/jit/alpha/linux/md-os.c (md_signal_handler_sigsegv): Use new
macro names.

16 years ago* src/vm/vm.c [ENABLE_DISASSEMBLER] (vm/jit/disass.h): Added.
Christian Thalinger [Sat, 29 Sep 2007 10:51:13 +0000 (12:51 +0200)]
* src/vm/vm.c [ENABLE_DISASSEMBLER] (vm/jit/disass.h): Added.
(vm_abort_disassemble): New function.
* src/vm/vm.h (vm_abort_disassemble): Likewise.

16 years ago* src/native/jni.c: Merged with 93595e0b477d.
Christian Thalinger [Fri, 28 Sep 2007 18:31:10 +0000 (20:31 +0200)]
* src/native/jni.c: Merged with 93595e0b477d.

16 years ago* src/vm/jit/replace.c (replace_gc_into_native): Implemented.
Michael Starzinger [Fri, 28 Sep 2007 14:42:22 +0000 (16:42 +0200)]
* src/vm/jit/replace.c (replace_gc_into_native): Implemented.
* src/mm/cacao-gc/rootset.c (rootset_writeback): Use above function.

16 years ago* src/vm/jit/powerpc/asmpart.S (asm_vm_call_method): Don't fake a Java
Christian Thalinger [Fri, 28 Sep 2007 13:24:58 +0000 (15:24 +0200)]
* src/vm/jit/powerpc/asmpart.S (asm_vm_call_method): Don't fake a Java
call, because we don't patch this call anymore (TODO: all other
architectures as well).

16 years ago* src/native/jni.c (_Jv_JNI_GetEnv): Use jni_version_check.
Christian Thalinger [Fri, 28 Sep 2007 13:18:20 +0000 (15:18 +0200)]
* src/native/jni.c (_Jv_JNI_GetEnv): Use jni_version_check.

16 years ago* src/vm/jit/powerpc/asmpart.S
Christian Thalinger [Fri, 28 Sep 2007 13:12:26 +0000 (15:12 +0200)]
* src/vm/jit/powerpc/asmpart.S
(L_stacktrace_create_extern_stackframeinfo$stub): Removed.
(L_stacktrace_remove_stackframeinfo$stub): Likewise.
(L_replace_me$stub): Likewise.
(L_replace_build_execution_state$stub): Likewise.
(L_replace_free_safestack$stub): Likewise.

* src/vm/jit/powerpc/darwin/md-asm.h (jumptable_int, jumptable_long):
Removed.
(asm_patcher_wrapper): Likewise.
(patcher_wrapper): Likewise.
(replace_me): Likewise.
(replace_build_execution_state): Likewise.
(replace_free_safestack): Likewise.
(stacktrace_create_extern_stackframeinfo): Likewise.
(stacktrace_remove_stackframeinfo): Likewise.

16 years ago* src/mm/cacao-gc/compact.c (compact_thread_classes): Removed obsolete function.
Michael Starzinger [Fri, 28 Sep 2007 11:17:17 +0000 (13:17 +0200)]
* src/mm/cacao-gc/compact.c (compact_thread_classes): Removed obsolete function.
* src/mm/cacao-gc/mark.c (mark_classes): Likewise.

16 years ago* src/vm/jit/argument.c: Added missing method comments.
Michael Starzinger [Fri, 28 Sep 2007 11:14:08 +0000 (13:14 +0200)]
* src/vm/jit/argument.c: Added missing method comments.
(vm/exceptions.h): Removed include.
(argument_vmarray_from_objectarray): Do not throw exceptions, but return NULL.

* src/vm/vm.c (vm_call_method_objectarray): Adapted to above changes and fixed
nativeworld sections.

16 years ago* src/vm/jit/jit.c (TRACECOMPILERCALLS): New macro.
Christian Thalinger [Fri, 28 Sep 2007 08:47:38 +0000 (10:47 +0200)]
* src/vm/jit/jit.c (TRACECOMPILERCALLS): New macro.
(jit_compile): Use TRACECOMPILERCALLS.
(jit_compile_intern): Removed some DEBUG_JIT_COMPILEVERBOSE.

* src/vmcore/options.c (opt_TraceCompilerCalls): New variable.
(options_xx): Handle opt_TraceCompilerCalls.
* src/vmcore/options.h (opt_TraceCompilerCalls): Added.

16 years ago* src/vm/jit/s390/codegen.h (N_BRANCH_MIN, N_BRANCH_MAX): Fix (muliply by 2).
Peter Molnar [Thu, 27 Sep 2007 22:12:29 +0000 (22:12 +0000)]
* src/vm/jit/s390/codegen.h (N_BRANCH_MIN, N_BRANCH_MAX): Fix (muliply by 2).

16 years ago* src/vm/jit/argument.c (argument_vmarray_store_adr): Fixed for handles.
Michael Starzinger [Thu, 27 Sep 2007 19:19:31 +0000 (21:19 +0200)]
* src/vm/jit/argument.c (argument_vmarray_store_adr): Fixed for handles.
* src/vm/vm.c (vm_call_array): Likewise.

16 years ago* src/vm/vm.c (vm_call_array): Made static, removed compiler call.
Michael Starzinger [Thu, 27 Sep 2007 19:05:19 +0000 (21:05 +0200)]
* src/vm/vm.c (vm_call_array): Made static, removed compiler call.
(vm_call_method_objectarray): Added.
(vm_call_method_valist): Added nativeworld macros, added compiler call.
(vm_call_method_jvalue): Likewise.

* src/vm/vm.h (vm_call_array): Removed prototypes.
(vm_call_method_objectarray): Added prototype.

* src/native/jni.c (_Jv_jni_invokeNative): Moved parts to vm.c for clearness.

16 years ago* src/vm/jit/code.c (code_get_methodinfo_for_pv): Return NULL if code
Christian Thalinger [Thu, 27 Sep 2007 18:57:57 +0000 (20:57 +0200)]
* src/vm/jit/code.c (code_get_methodinfo_for_pv): Return NULL if code
is NULL (asm_vm_call_method).

16 years ago* src/threads/threads-common.c (vmcore/options.h): Fixed include.
Michael Starzinger [Thu, 27 Sep 2007 18:44:27 +0000 (20:44 +0200)]
* src/threads/threads-common.c (vmcore/options.h): Fixed include.

16 years ago* src/mm/memory.c (memory_mprotect): Fixed signature, manpage is wrong
Christian Thalinger [Thu, 27 Sep 2007 16:23:47 +0000 (18:23 +0200)]
* src/mm/memory.c (memory_mprotect): Fixed signature, manpage is wrong
about the signature of mprotect.
* src/mm/memory.h: Likewise.