cacao.git
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.

16 years ago* src/vm/jit/argument.c (argument_vmarray_store_int),
Michael Starzinger [Thu, 27 Sep 2007 10:48:12 +0000 (12:48 +0200)]
* src/vm/jit/argument.c (argument_vmarray_store_int),
(argument_vmarray_store_lng),
(argument_vmarray_store_flt),
(argument_vmarray_store_dbl),
(argument_vmarray_store_adr),
(argument_vmarray_from_valist),
(argument_vmarray_from_jvalue),
(argument_vmarray_from_objectarray): Moved from vm.c to this file.

* src/vm/jit/argument.h (argument_vmarray_from_valist): Added prototype.
(argument_vmarray_from_jvalue): Likewise.
(argument_vmarray_from_objectarray): Likewise.

* src/vm/vm.c: See above!

* src/vm/vm.h (vm_array_from_objectarray): Removed prototype.

* src/native/jni.c (_Jv_jni_invokeNative): Adapted to above changes.

16 years ago* src/vmcore/class.c (class_is_primitive,
Christian Thalinger [Thu, 27 Sep 2007 10:16:49 +0000 (12:16 +0200)]
* src/vmcore/class.c (class_is_primitive,
class_is_anonymousclass,
class_is_array,
class_is_interface,
class_is_localclass,
class_is_memberclass,
class_get_classloader,
class_get_superclass): Moved to class.h and made them static inline.
* src/vmcore/class.h: Likewise.

16 years ago* src/threads/lock-common.h: Removed obsolete comment.
Michael Starzinger [Thu, 27 Sep 2007 10:03:21 +0000 (12:03 +0200)]
* src/threads/lock-common.h: Removed obsolete comment.
* src/toolbox/logging.c (threads/threads-common.h): Added include.

16 years ago* src/mm/gc-common.h (heap_hashcode): Added inline function.
Michael Starzinger [Thu, 27 Sep 2007 09:48:43 +0000 (11:48 +0200)]
* src/mm/gc-common.h (heap_hashcode): Added inline function.

* src/native/jni.c: Use above function throughout file.
* src/native/vm/gnu/java_lang_VMSystem.c: Likewise.
* src/threads/native/lock.c: Likewise.
* src/vmcore/loader.c: Likewise.

16 years ago* src/threads/native/lock.c: Renamed monitorPtr to lockword in the
Christian Thalinger [Wed, 26 Sep 2007 11:01:19 +0000 (13:01 +0200)]
* src/threads/native/lock.c: Renamed monitorPtr to lockword in the
whole file.
(stdint.h): Added.

* src/vm/global.h (stdint.h): Added.
(java_object_t): Renamed monitorPtr to lockword and changed the type
to uintptr_t.

16 years ago* src/threads/native/threads.c (threads_init): Removed obsolete call to register
Michael Starzinger [Wed, 26 Sep 2007 01:29:46 +0000 (03:29 +0200)]
* src/threads/native/threads.c (threads_init): Removed obsolete call to register
references with the GC.

* src/threads/threads-common.c (threads_thread_new): Also register reference
to exception object with the GC.

16 years ago* src/threads/native/threads.c: Improved debug output.
Michael Starzinger [Wed, 26 Sep 2007 01:09:51 +0000 (03:09 +0200)]
* src/threads/native/threads.c: Improved debug output.
* src/threads/threads-common.c: Likewise.

* src/threads/threads-common.h (DEBUGTHREADS): Added.

* src/vm/vm.c (vm_create): Removed -verbose:threads option.

* src/vmcore/options.c (opt_DebugThreads): Added -XX:+DebugThreads option.
* src/vmcore/options.h (opt_DebugThreads): Likewise.

16 years ago* src/threads/native/threads.h (native/include/java_lang_Thread.h): Removed.
Michael Starzinger [Tue, 25 Sep 2007 22:23:55 +0000 (00:23 +0200)]
* src/threads/native/threads.h (native/include/java_lang_Thread.h): Removed.
(threadobject): The object pointer is of type java_object_t now.

* src/threads/native/threads.c: Adapted to above changes and use LLNI macros.

* src/threads/threads-common.h (threads_thread_start): Changed signature to not
use java_lang_Thread anymore.

* src/threads/threads-common.c: Adapted to above changes and use LLNI macros.
(threads_preinit): Fixed corruption of mainthread->flags.

16 years ago* src/vm/jit/alpha/md.c (md_patch_replacement_point): Removed debug code.
Michael Starzinger [Tue, 25 Sep 2007 21:34:27 +0000 (23:34 +0200)]
* src/vm/jit/alpha/md.c (md_patch_replacement_point): Removed debug code.
* src/vm/jit/i386/md.c: Likewise.
* src/vm/jit/mips/md.c: Likewise.
* src/vm/jit/powerpc/md.c: Likewise.
* src/vm/jit/powerpc64/md.c: Likewise.
* src/vm/jit/sparc64/md.c: Likewise.
* src/vm/jit/x86_64/md.c: Likewise.

* src/vm/jit/replace.c
(replace_activate_replacement_points) [ENABLE_DISASSEMBLER]: Improved debug.
(replace_deactivate_replacement_points) [ENABLE_DISASSEMBLER]: Likewise.

16 years ago* src/native/localref.c [ENABLE_HANDLES] (localref_native_exit): Implemented.
Michael Starzinger [Tue, 25 Sep 2007 13:10:55 +0000 (15:10 +0200)]
* src/native/localref.c [ENABLE_HANDLES] (localref_native_exit): Implemented.
(localref_native_enter): Renamed from localref_fill.

* src/native/localref.h (localref_native_exit): Added prototype.
(localref_native_enter): Renamed from localref_fill.

* src/vm/jit/argument.c (argument_jitreturn_store): Implemented.

* src/vm/jit/argument.h (argument_jitreturn_store): Added prototype.

* src/vm/jit/codegen-common.c (codegen_start_native_call): Improved comments
and adapted to above changes.
(codegen_finish_native_call): Likewise.

16 years ago* src/cacaoh/dummy.c (llni_critical_start, llni_critical_end): Removed aborts.
Michael Starzinger [Tue, 25 Sep 2007 13:03:29 +0000 (15:03 +0200)]
* src/cacaoh/dummy.c (llni_critical_start, llni_critical_end): Removed aborts.

16 years ago* src/vm/signal.c (signal_handle): Wrap and unwrap references correctly.
Michael Starzinger [Tue, 25 Sep 2007 12:55:56 +0000 (14:55 +0200)]
* src/vm/signal.c (signal_handle): Wrap and unwrap references correctly.

16 years ago* src/vm/jit/replace.c (replace_find_replacement_point_for_pc): Fixed assertion.
Michael Starzinger [Tue, 25 Sep 2007 11:32:15 +0000 (13:32 +0200)]
* src/vm/jit/replace.c (replace_find_replacement_point_for_pc): Fixed assertion.
(replace_me_wrapper): Simplified search for replacement point.

16 years ago* src/vm/jit/alpha/linux/md-os.c (md_replace_executionstate_write): Fixed
Michael Starzinger [Tue, 25 Sep 2007 10:23:40 +0000 (12:23 +0200)]
* src/vm/jit/alpha/linux/md-os.c (md_replace_executionstate_write): Fixed
compiler warning.

* src/vm/jit/x86_64/linux/md-os.c (md_replace_executionstate_read): Implemented.
(md_replace_executionstate_write): Likewise.

16 years ago* src/vm/jit/i386/arch.h (REPLACEMENT_PATCH_SIZE): Adapted to new trap mcode.
Michael Starzinger [Tue, 25 Sep 2007 10:16:53 +0000 (12:16 +0200)]
* src/vm/jit/i386/arch.h (REPLACEMENT_PATCH_SIZE): Adapted to new trap mcode.
* src/vm/jit/x86_64/arch.h (REPLACEMENT_PATCH_SIZE): Likewise.

16 years ago* src/vm/jit/codegen-common.c (codegen_set_replacement_point): Add NOPs if
Michael Starzinger [Tue, 25 Sep 2007 07:32:51 +0000 (09:32 +0200)]
* src/vm/jit/codegen-common.c (codegen_set_replacement_point): Add NOPs if
replacement testing mode is enabled.

* src/vm/jit/replace.c (replace_me_wrapper): Finished implementation.
(replace_me): Major code cleanup. Removed safestack stuff.
(replace_build_execution_state): Likewise.
(replace_activate_replacement_points): Adapted changes from previous rev.
(replace_deactivate_replacement_points): Likewise.
(replace_alloc_safestack): Removed.
(replace_free_safestack): Removed.

* src/vm/jit/replace.h (replace_safestack_t): Removed.
(md_replace_executionstate_read): Added prototype.
(md_replace_executionstate_write): Likewise.

* src/vm/signal.c (signal_handle): Adapted to new replace_me_wrapper.

16 years ago* src/vm/signallocal.h (signal_handle): Changed signature.
Michael Starzinger [Mon, 24 Sep 2007 23:11:17 +0000 (01:11 +0200)]
* src/vm/signallocal.h (signal_handle): Changed signature.

* src/vm/signal.c (signal_handles): Create stackframeinfo here.

* src/vm/jit/alpha/linux/md-os.c (md_signal_handler_sigsegv): Adapted to new
signature and removed stackframeinfo creation.

* src/vm/jit/arm/linux/md-os.c: Likewise.
* src/vm/jit/i386/darwin/md-os.c: Likewise.
* src/vm/jit/i386/linux/md-os.c: Likewise.
* src/vm/jit/m68k/linux/md-os.c: Likewise.
* src/vm/jit/mips/irix/md-os.c: Likewise.
* src/vm/jit/mips/linux/md-os.c: Likewise.
* src/vm/jit/powerpc/darwin/md-os.c: Likewise.
* src/vm/jit/powerpc/linux/md-os.c: Likewise.
* src/vm/jit/powerpc64/linux/md-os.c: Likewise.
* src/vm/jit/s390/md.c: Likewise.
* src/vm/jit/sparc64/linux/md-os.c: Likewise.
* src/vm/jit/sparc64/solaris/md-os.c: Likewise.
* src/vm/jit/x86_64/linux/md-os.c: Likewise.

16 years ago* src/vm/jit/i386/asmpart.S (asm_replacement_in, asm_replacement_out): Removed
Michael Starzinger [Mon, 24 Sep 2007 20:46:16 +0000 (22:46 +0200)]
* src/vm/jit/i386/asmpart.S (asm_replacement_in, asm_replacement_out): Removed
obsolete functions.

* src/vm/jit/i386/cygwin/md-asm.h: Likewise.
* src/vm/jit/i386/darwin/md-asm.h: Likewise.
* src/vm/jit/mips/asmpart.S: Likewise.
* src/vm/jit/powerpc/asmpart.S: Likewise.
* src/vm/jit/powerpc/darwin/md-asm.h: Likewise.
* src/vm/jit/powerpc64/asmpart.S: Likewise.
* src/vm/jit/s390/asmpart.S: Likewise.
* src/vm/jit/x86_64/asmpart.S: Likewise.

16 years ago* src/vm/jit/m68k/emit.c (emit_replacement_stubs): Removed obsolete function.
Michael Starzinger [Mon, 24 Sep 2007 20:36:23 +0000 (22:36 +0200)]
* src/vm/jit/m68k/emit.c (emit_replacement_stubs): Removed obsolete function.
* src/vm/jit/i386/linux/md-os.c: Reordered functions in file.

16 years ago* src/vm/jit/alpha/md.c (md_patch_replacement_point): Changed signature.
Michael Starzinger [Mon, 24 Sep 2007 20:23:42 +0000 (22:23 +0200)]
* src/vm/jit/alpha/md.c (md_patch_replacement_point): Changed signature.

* src/vm/jit/i386/md.c: Likewise.
* src/vm/jit/mips/md.c: Likewise.
* src/vm/jit/powerpc/md.c: Likewise.
* src/vm/jit/powerpc64/md.c: Likewise.
* src/vm/jit/s390/md.c: Likewise.
* src/vm/jit/sparc64/md.c: Likewise.
* src/vm/jit/x86_64/md.c: Likewise.

16 years ago* src/vm/jit/jit.c (jit_compile_intern) [ENABLE_REPLACEMENT]: Activate
Michael Starzinger [Mon, 24 Sep 2007 18:25:13 +0000 (20:25 +0200)]
* src/vm/jit/jit.c (jit_compile_intern) [ENABLE_REPLACEMENT]: Activate
replacement points after code generation if testing option is given.

* src/vmcore/options.c [ENABLE_REPLACEMENT] (opt_TestReplacement): Added
replacement testing option.

* src/vmcore/options.h [ENABLE_REPLACEMENT] (opt_TestReplacement): Likewise.

16 years ago* src/vmcore/statistics.c (size_stacksize): New variable.
Christian Thalinger [Sun, 23 Sep 2007 19:19:28 +0000 (21:19 +0200)]
* src/vmcore/statistics.c (size_stacksize): New variable.
(statistics_print_memory_usage): Print new variable.
* src/vmcore/statistics.h (size_stacksize): Added.

16 years ago* src/mm/memory.c (memory_mprotect): New function.
Christian Thalinger [Sun, 23 Sep 2007 19:18:31 +0000 (21:18 +0200)]
* src/mm/memory.c (memory_mprotect): New function.
* src/mm/memory.h: Likewise.

16 years ago* src/vm/signal.c (signal_handle): Fixed debug output.
Christian Thalinger [Sun, 23 Sep 2007 19:17:48 +0000 (21:17 +0200)]
* src/vm/signal.c (signal_handle): Fixed debug output.

16 years ago* src/threads/native/threads.c (threads_impl_thread_start): Print
Christian Thalinger [Sun, 23 Sep 2007 18:18:52 +0000 (20:18 +0200)]
* src/threads/native/threads.c (threads_impl_thread_start): Print
error of return value (errno is not set by pthread functions).

16 years ago* src/threads/threads-common.c (list_threads_free): Renamed to
Christian Thalinger [Sat, 22 Sep 2007 23:26:52 +0000 (01:26 +0200)]
* src/threads/threads-common.c (list_threads_free): Renamed to
list_free_thread_index.
(thread_index_t): New type.
(threads_preinit): Initialize list_free_thread_index.
(threads_thread_new): Use list_free_thread_index
(threads_thread_free): Likewise and free the threadobject.

* src/vmcore/statistics.c (stdint.h): Added.
(size_thread_index_t): Likewise.
(statistics_print_memory_usage): Print size_thread_index_t.
* src/vmcore/statistics.h (stdint.h): Added.
(size_thread_index_t): Likewise.

16 years ago * src/vm/jit/codegen-common.c (codegen_start_native_call, codegen_finish_native_call...
Peter Molnar [Sat, 22 Sep 2007 18:41:13 +0000 (18:41 +0000)]
 * src/vm/jit/codegen-common.c (codegen_start_native_call, codegen_finish_native_call) [__S390__]: Adapted for s390.
 * src/vm/jit/s390/codegen.c (codegen_emit_stub_native): Adapted for builtin stubs.
 * src/vm/jit/s390/md-abi.c (md_param_alloc_native): On stack arguments are now already set off by the linkage area size.

16 years ago * src/vm/jit/s390/emit.c (emit_verbosecall_enter, emit_verbosecall_exit): Adapted...
Peter Molnar [Sat, 22 Sep 2007 14:35:40 +0000 (14:35 +0000)]
 * src/vm/jit/s390/emit.c (emit_verbosecall_enter, emit_verbosecall_exit): Adapted to modified trace_java_call_enter and trace_jave_call_exit.

16 years ago* configure.ac (AC_CHECK_FUNCS): Added getsockopt.
Christian Thalinger [Fri, 21 Sep 2007 10:39:47 +0000 (12:39 +0200)]
* configure.ac (AC_CHECK_FUNCS): Added getsockopt.

* src/native/vm/sun/jvm.c (stdint.h): Added.
(sys/types.h): Likewise.
(JVM_HoldsLock): Implemented.
(JVM_SocketAvailable): Likewise.
(JVM_GetSockOpt): Likewise.
(JVM_SetSockOpt) [HAVE_SETSOCKOPT]: Added #ifdef.

16 years ago* src/vm/jit/alpha/codegen.c (codegen_emit_stub_native): Save and
Christian Thalinger [Fri, 21 Sep 2007 10:37:12 +0000 (12:37 +0200)]
* src/vm/jit/alpha/codegen.c (codegen_emit_stub_native): Save and
restore floats as float so the trace functions can print them
correctly.

16 years ago* src/vmcore/options.c (opt_DebugStackTrace): Changed type to int.
Christian Thalinger [Fri, 21 Sep 2007 10:33:49 +0000 (12:33 +0200)]
* src/vmcore/options.c (opt_DebugStackTrace): Changed type to int.
(options_xx): Forgot to handle opt_DebugStackTrace.
* src/vmcore/options.h (opt_DebugStackTrace): Changed type to int.

16 years ago* src/vmcore/class.c [!NDEBUG] (class_classref_or_classinfo_println):
Christian Thalinger [Thu, 20 Sep 2007 09:53:23 +0000 (11:53 +0200)]
* src/vmcore/class.c [!NDEBUG] (class_classref_or_classinfo_println):
Added missing #ifdef.

16 years ago* src/vmcore/loader.c (loader_init): Don't use utf_java_lang_System.
Christian Thalinger [Wed, 19 Sep 2007 18:17:08 +0000 (20:17 +0200)]
* src/vmcore/loader.c (loader_init): Don't use utf_java_lang_System.

* src/vmcore/utf8.c (utf_java_lang_System): Removed.
(utf8_init): Likewise.
* src/vmcore/utf8.h: Likewise.

16 years ago* src/vm/exceptions.c (exceptions_init): Changed return value to void,
Christian Thalinger [Wed, 19 Sep 2007 17:52:58 +0000 (19:52 +0200)]
* src/vm/exceptions.c (exceptions_init): Changed return value to void,
removed class_java_lang_Throwable loading and linking.
(exceptions_throw_linkageerror): Removed unused variable o.

* src/vm/exceptions.h (exceptions_init): Changed return value to void.
(new_exception_utfmessage): Removed.

* src/vm/vm.c (vm_create): Don't check return value of
exceptions_init.

16 years ago* src/cacaoh/dummy.c (vm_initializing): Added.
Christian Thalinger [Wed, 19 Sep 2007 17:34:04 +0000 (19:34 +0200)]
* src/cacaoh/dummy.c (vm_initializing): Added.

* src/vm/exceptions.c (exceptions_init): Removed all class loads and
links.
(exceptions_abort): New function.
(exceptions_new_class): Removed.
(exceptions_throw_class): Likewise.
(exceptions_new_class_utf): Likewise.
(exceptions_throw_class_utf): Likewise.
(exceptions_throw_classnotfoundexception): Use
exceptions_throw_utf_utf.
(exceptions_throw_noclassdeffounderror): Likewise.
(exceptions_throw_linkageerror): Likewise.
(exceptions_throw_nosuchmethoderror): Likewise.
(exceptions_throw_unsatisfiedlinkerror: Likewise.
(exceptions_new_classcastexception): Use exceptions_new_utf_utf.
(exceptions_throw_outofmemoryerror): Use exceptions_throw_utf.
(exceptions_throw_nullpointerexception): Likewise.
(exceptions_new_nullpointerexception): Use exceptions_new_utf.
(exceptions_classnotfoundexception_to_noclassdeffounderror): Load
java/lang/ClassNotFoundException explicitly.

* src/vm/initialize.c (initialize_class_intern): Load
java/lang/Exception explicitly.

* src/vmcore/class.c (class_java_lang_Error): Removed.
(class_java_lang_LinkageError): Likewise.
(class_java_lang_NoClassDefFoundError): Likewise.
(class_java_lang_OutOfMemoryError): Likewise.
(class_java_lang_VirtualMachineError): Likewise.
(class_java_lang_Exception): Likewise.
(class_java_lang_ClassCastException): Likewise.
(class_java_lang_ClassNotFoundException): Likewise.
* src/vmcore/class.h: Likewise.

* src/vmcore/linker.c (linker_init): Added class_java_lang_Throwable
and class_java_lang_VMThrowable.

* src/vmcore/loader.c (loader_preinit): Don't check for error on
load_class_bootstrap, this is now done in the exception functions.
(loader_init): Likewise.
(load_class_bootstrap): Removed utf_java_lang_Object check.

* src/vmcore/utf8.c (utf_java_lang_VMThrowable): Removed.
* src/vmcore/utf8.h: Likewise.

16 years ago* src/vm/properties.c (properties_dump): New function.
Christian Thalinger [Wed, 19 Sep 2007 14:39:51 +0000 (16:39 +0200)]
* src/vm/properties.c (properties_dump): New function.
* src/vm/properties.h: Likewise.

16 years ago* doc/Makefile.am (dist_noinst_DATA): Added annotations.tex and jsr.bib
Mathias Panzenboeck [Tue, 18 Sep 2007 14:40:03 +0000 (16:40 +0200)]
* doc/Makefile.am (dist_noinst_DATA): Added annotations.tex and jsr.bib
(annotations): New target which creates annotations.dvi
(clean): Clean the annotations.aux/.bbl/.dvi/... files.

* doc/annotations.tex: New file. This is the documentation of the annotations
support implementation.

* doc/jsr.bib: New file. Contains bibtex reference for JSR202.

16 years ago* src/cacaoh/cacaoh.c (main): Removed linkverbose.
Christian Thalinger [Tue, 18 Sep 2007 13:50:31 +0000 (15:50 +0200)]
* src/cacaoh/cacaoh.c (main): Removed linkverbose.

* src/vm/vm.c (vm_printconfig): Made static.
(vm_create): Call vm_printconfig after the VM is initialized.
* src/vm/vm.h (vm_printconfig): Removed.

* src/vmcore/linker.c (TRACELINKCLASS): New macro.
(link_class_intern): Use TRACELINKCLASS.

* src/vmcore/options.c (linkverbose): Removed.
(opt_TraceLinkClass): Added.
(options_xx): OPT_PrintConfig: Don't call vm_printconfig,
OPT_TraceLinkClass: Added.
* src/vmcore/options.h (linkverbose): Removed.
(opt_TraceLinkClass): Added.

16 years ago* src/vm/jit/patcher-common.c (patcher_handler) [!NDEBUG]: #ifdef'ed
Christian Thalinger [Tue, 18 Sep 2007 10:44:29 +0000 (12:44 +0200)]
* src/vm/jit/patcher-common.c (patcher_handler) [!NDEBUG]: #ifdef'ed
debug output.

16 years ago* src/threads/native/lock.c (lock_record_notify): Ignore already
Christian Thalinger [Tue, 18 Sep 2007 10:34:40 +0000 (12:34 +0200)]
* src/threads/native/lock.c (lock_record_notify): Ignore already
signaled threads.

16 years ago* src/native/vm/sun/jvm.c (JVM_GetClassAccessFlags): Use
Christian Thalinger [Tue, 18 Sep 2007 10:17:29 +0000 (12:17 +0200)]
* src/native/vm/sun/jvm.c (JVM_GetClassAccessFlags): Use
TRACEJVMCALLS.

16 years ago* configure.ac (AC_CHECK_FUNCS): Added fsync.
Christian Thalinger [Sun, 16 Sep 2007 23:47:50 +0000 (01:47 +0200)]
* configure.ac (AC_CHECK_FUNCS): Added fsync.
* src/native/vm/sun/jvm.c (JVM_Sync): Implemented.

16 years ago* src/native/vm/sun_misc_Unsafe.c (staticFieldOffset): Return 0.
Christian Thalinger [Sun, 16 Sep 2007 23:13:24 +0000 (01:13 +0200)]
* src/native/vm/sun_misc_Unsafe.c (staticFieldOffset): Return 0.
(staticFieldBase): Return the pointer to value.

16 years ago* src/native/vm/gnu/java_lang_VMClass.c (getModifiers): Use
Christian Thalinger [Sun, 16 Sep 2007 20:06:03 +0000 (22:06 +0200)]
* src/native/vm/gnu/java_lang_VMClass.c (getModifiers): Use
class_get_modifiers.
* src/native/vm/sun/jvm.c (JVM_GetClassModifiers): Likewise.

* src/native/vm/java_lang_Class.c (class_get_modifiers): Removed.
* src/native/vm/java_lang_Class.h: Likewise.

* src/vmcore/class.c (class_get_modifiers): New function.
* src/vmcore/class.h: Likewise.

16 years ago* src/native/vm/sun/jvm.c (JVM_GetStackAccessControlContext): Use
Christian Thalinger [Sun, 16 Sep 2007 18:47:54 +0000 (20:47 +0200)]
* src/native/vm/sun/jvm.c (JVM_GetStackAccessControlContext): Use
TRACEJVMCALLS.
(JVM_AssertionStatusDirectives): Likewise.

16 years ago* src/native/vm/sun/jvm.c (JVM_IsThreadAlive): Use LLNI_equals.
Christian Thalinger [Sun, 16 Sep 2007 18:46:03 +0000 (20:46 +0200)]
* src/native/vm/sun/jvm.c (JVM_IsThreadAlive): Use LLNI_equals.

16 years ago* Merged with 5a268f292149.
Christian Thalinger [Sun, 16 Sep 2007 18:41:06 +0000 (20:41 +0200)]
* Merged with 5a268f292149.

16 years ago* src/native/jni.c (_Jv_JNI_NewWeakGlobalRef): Use TRACEJNICALLS.
Christian Thalinger [Sun, 16 Sep 2007 18:39:21 +0000 (20:39 +0200)]
* src/native/jni.c (_Jv_JNI_NewWeakGlobalRef): Use TRACEJNICALLS.
(_Jv_JNI_DeleteWeakGlobalRef): Likewise.

16 years ago* src/native/llni.h (LLNI_equals): Added macro.
Mathias Panzenboeck [Sun, 16 Sep 2007 17:43:42 +0000 (19:43 +0200)]
* src/native/llni.h (LLNI_equals): Added macro.

16 years ago* src/cacaoh/dummy.c (package_add): New function.
Christian Thalinger [Sun, 16 Sep 2007 16:47:08 +0000 (18:47 +0200)]
* src/cacaoh/dummy.c (package_add): New function.

* src/native/vm/sun/jvm.c (vm/package.h): Added.
(JVM_GetSystemPackage): Implemented.

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

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

* src/vm/vm.c (vm/package.h): Added.
(vm_create): Call package_init.

* src/vmcore/loader.c (vm/package.h): Added.
(load_class_bootstrap): Call package_add.

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

16 years ago* src/threads/native/threads.c (threads_detach_thread): Notify all
Christian Thalinger [Sun, 16 Sep 2007 14:24:10 +0000 (16:24 +0200)]
* src/threads/native/threads.c (threads_detach_thread): Notify all
threads waiting on the Java thread-object.

16 years ago* src/mm/nogc.c [HAVE_SYS_MMAN_H] (sys/mman.h): Added #ifdef.
Christian Thalinger [Sun, 16 Sep 2007 12:27:01 +0000 (14:27 +0200)]
* src/mm/nogc.c [HAVE_SYS_MMAN_H] (sys/mman.h): Added #ifdef.
(heap_alloc_uncollectable): Added additional parameter for heap_alloc.
(gc_init) [HAVE_MMAP]: Added #ifdef.

16 years ago* src/vmcore/class.c (class_set_packagename): Added '/' to the
Christian Thalinger [Sat, 15 Sep 2007 18:18:04 +0000 (20:18 +0200)]
* src/vmcore/class.c (class_set_packagename): Added '/' to the
internal package name.

16 years ago* src/native/vm/java_lang_Thread.c (isAlive): Removed.
Christian Thalinger [Sat, 15 Sep 2007 17:37:26 +0000 (19:37 +0200)]
* src/native/vm/java_lang_Thread.c (isAlive): Removed.
* src/native/vm/java_lang_Thread.h: Likewise.

* src/native/vm/cldc1.1/java_lang_Thread.c (stdint.h): Added.
(isAlive): Use threads_thread_is_alive.

* src/native/vm/sun/jvm.c (JVM_IsThreadAlive): Likewise.

16 years ago* src/vm/vm.c (vm_array_from_objectarray): TYPE_LNG: Added missing
Christian Thalinger [Fri, 14 Sep 2007 21:39:49 +0000 (23:39 +0200)]
* src/vm/vm.c (vm_array_from_objectarray): TYPE_LNG: Added missing
primitive_type_get_by_wrapperclass to get type (fixes JBoss).