cacao.git
16 years ago* src/vm/jit/s390/codegen.h,
pm [Wed, 20 Jun 2007 21:20:53 +0000 (21:20 +0000)]
* src/vm/jit/s390/codegen.h,
src/vm/jit/s390/codegen.c (codegen_emit): Support another hercules bug in F2D.

16 years ago* src/vm/jit/arm/codegen.c (codegen_emit, codegen_emit_stub_native):
michi [Wed, 20 Jun 2007 20:30:56 +0000 (20:30 +0000)]
* src/vm/jit/arm/codegen.c (codegen_emit, codegen_emit_stub_native):
Changed cd->stackframesize from wordcount to bytecount.

* src/vm/jit/arm/emit.c (emit_verbosecall_enter): Adapted to above change.

16 years ago* src/vm/vm.c (vm_array_store_int, vm_array_store_adr, vm_array_store_lng,
michi [Wed, 20 Jun 2007 19:14:05 +0000 (19:14 +0000)]
* src/vm/vm.c (vm_array_store_int, vm_array_store_adr, vm_array_store_lng,
vm_array_store_flt, vm_array_store_dbl): Uses pd->index for inmemory arguments.

* src/vm/jit/allocator/simplereg.c: The regoff value is a real offset
(multiplied by the stackslot size) for inmemory variables now.

* src/vm/jit/arm/md-abi.c (md_param_alloc): Set pd->regoff as described above.
* src/vm/jit/arm/emit.c: Adapted to above changes.
* src/vm/jit/arm/codegen.c: Adapted to above changes.

* src/vm/jit/powerpc/linux/md-abi.c,
* src/vm/jit/powerpc/netbsd/md-abi.c,
* src/vm/jit/powerpc/emit.c,
* src/vm/jit/powerpc/darwin/md-abi.c,
* src/vm/jit/powerpc/codegen.c,
* src/vm/jit/sparc64/emit.c,
* src/vm/jit/sparc64/md-abi.h,
* src/vm/jit/sparc64/codegen.c,
* src/vm/jit/sparc64/md-abi.c,
* src/vm/jit/alpha/emit.c,
* src/vm/jit/alpha/codegen.c,
* src/vm/jit/alpha/md-abi.c,
* src/vm/jit/s390/emit.c,
* src/vm/jit/s390/codegen.c,
* src/vm/jit/s390/md-abi.c,
* src/vm/jit/mips/emit.c,
* src/vm/jit/mips/codegen.c,
* src/vm/jit/mips/md-abi.c,
* src/vm/jit/m68k/emit.c,
* src/vm/jit/m68k/linux/md-abi.c,
* src/vm/jit/m68k/codegen.c,
* src/vm/jit/powerpc64/linux/md-abi.c,
* src/vm/jit/powerpc64/emit.c,
* src/vm/jit/powerpc64/codegen.c,
* src/vm/jit/i386/emit.c,
* src/vm/jit/i386/codegen.c,
* src/vm/jit/i386/md-abi.c,
* src/vm/jit/x86_64/emit.c,
* src/vm/jit/x86_64/codegen.c,
* src/vm/jit/x86_64/md-abi.c: Likewise.

16 years ago* src/threads/threads-common.c (threads_preinit): Added another
twisti [Wed, 20 Jun 2007 18:57:41 +0000 (18:57 +0000)]
* src/threads/threads-common.c (threads_preinit): Added another
linuxthreads check.

16 years ago* src/vmcore/statistics.c (statistics_print_gc_memory_usage): Call
twisti [Wed, 20 Jun 2007 18:05:39 +0000 (18:05 +0000)]
* src/vmcore/statistics.c (statistics_print_gc_memory_usage): Call
fflush.

* configure.ac (AC_CHECK_FUNCS): Added fflush, fopen, fprintf.

16 years ago* src/vm/vm.c (XXusage): Removed -verbose:memory.
twisti [Wed, 20 Jun 2007 17:54:36 +0000 (17:54 +0000)]
* src/vm/vm.c (XXusage): Removed -verbose:memory.
(vm_create): Likewise.

* src/mm/memory.c (memory_thread): Rewritten to use new variables.

* src/vmcore/options.c (errno.h): Added.
(stdint.h): Likewise
(stdio.h): Likewise.
(stdlib.h): Likewise.
(opt_verbosememory): Removed.
(opt_ProfileGCMemoryUsage): Added.
(opt_ProfileMemoryUsage): Likewise.
(opt_ProfileMemoryUsageGNUPlot): Likewise.
(options_XX): Likewise.
(options_xx): Implemented.

* src/vmcore/options.h (stdint.h): Added.
(option_t): Likewise.
(opt_ProfileGCMemoryUsage): Likewise.
(opt_ProfileMemoryUsage): Likewise.
(opt_ProfileMemoryUsageGNUPlot): Likewise.
(options_xx): Changed signature.

* src/vmcore/statistics.c (statistics_print_gc_memory_usage):
Rewritten to use new variables and GNU Plot output.

* configure.ac (AC_CHECK_FUNCS): Added atoi, atol, strchr, strncmp.

16 years ago* src/native/vm/gnu/gnu_java_lang_management_VMClassLoadingMXBeanImpl.c,
twisti [Wed, 20 Jun 2007 13:51:38 +0000 (13:51 +0000)]
* src/native/vm/gnu/gnu_java_lang_management_VMClassLoadingMXBeanImpl.c,
src/native/vm/gnu/gnu_java_lang_management_VMRuntimeMXBeanImpl.c,
src/native/vm/gnu/gnu_java_lang_management_VMThreadMXBeanImpl.c,
src/native/vm/gnu/java_lang_VMObject.c,
src/native/vm/gnu/java_lang_VMRuntime.c,
src/native/vm/gnu/java_lang_VMThread.c,
src/native/vm/gnu/java_lang_reflect_Field.c,
src/native/vm/sun_misc_Unsafe.c: Use stdint-types because of conflicts
with generated header files.

16 years ago* src/cacaoh/cacaoh.c (HEAP_MAXSIZE, HEAP_STARTSIZE): Removed.
twisti [Wed, 20 Jun 2007 12:24:32 +0000 (12:24 +0000)]
* src/cacaoh/cacaoh.c (HEAP_MAXSIZE, HEAP_STARTSIZE): Removed.
(main): Removed heapmaxsize, heapstartsize.

16 years ago* src/native/vm/nativevm.h [ENABLE_JAVASE && WITH_CLASSPATH_GNU]:
twisti [Wed, 20 Jun 2007 12:22:56 +0000 (12:22 +0000)]
* src/native/vm/nativevm.h [ENABLE_JAVASE && WITH_CLASSPATH_GNU]:
Added _Jv_java_util_concurrent_atomic_AtomicLong_init.

16 years ago* src/vm/jit/sparc64/md-abi.c (md_param_alloc): Added pd->index setting.
ajordan [Wed, 20 Jun 2007 12:05:26 +0000 (12:05 +0000)]
* src/vm/jit/sparc64/md-abi.c (md_param_alloc): Added pd->index setting.

* src/vm/jit/sparc64/asmpart.S (asm_vm_call_method): Get parameters from
new array.

* src/vm/jit/asmpart.h: Enable new parameter passing for SPARC64.
* src/vm/vm.h: Likewise.
* src/vm/vm.c: Likewise.
(vm_array_store_flt): For SPARC, shift float arguments on stack to low word too.

16 years ago* src/vm/vm.c (vm_array_store_int) [SIZEOF_VOID_P == 4]: Only do the
twisti [Wed, 20 Jun 2007 11:11:59 +0000 (11:11 +0000)]
* src/vm/vm.c (vm_array_store_int) [SIZEOF_VOID_P == 4]: Only do the
integer shift on 32-bit architectures.

16 years ago* src/vm/vm.c (vm_call_float_array): New function.
twisti [Tue, 19 Jun 2007 22:50:17 +0000 (22:50 +0000)]
* src/vm/vm.c (vm_call_float_array): New function.
(vm_call_method_float_valist): Likewise.
(vm_call_method_float_jvalue): Likewise.
(vm_call_double_array): Likewise.
(vm_call_method_double_valist): Likewise.
(vm_call_method_double_jvalue): Likewise.

* src/vm/vm.h: Defined new functions.
* src/vm/jit/asmpart.h: Likewise.
* src/native/jni.c: Use new functions.

16 years ago* src/cacaoh/headers.c (stdint.h): Added and use stdint-types.
twisti [Tue, 19 Jun 2007 21:47:51 +0000 (21:47 +0000)]
* src/cacaoh/headers.c (stdint.h): Added and use stdint-types.
(vm/types.h): Removed.

16 years ago* src/cacaoh/dummy.c (stdint.h): Added.
twisti [Tue, 19 Jun 2007 21:15:00 +0000 (21:15 +0000)]
* src/cacaoh/dummy.c (stdint.h): Added.
(vm/types.h): Removed and replaced all old types with stdint ones.
(threads/threads-common.h): Removed.
[ENABLE_THREADS] (threads_current_threadobject_key): Removed.

16 years ago* src/native/vm/nativevm.c (nativevm_init)
twisti [Tue, 19 Jun 2007 19:43:00 +0000 (19:43 +0000)]
* src/native/vm/nativevm.c (nativevm_init)
[ENABLE_JAVASE && WITH_CLASSPATH_GNU]: Call
_Jv_java_util_concurrent_atomic_AtomicLong_init.

* src/native/vm/Makefile.am [ENABLE_JAVASE]
(JAVA_UTIL_CONCURRENT_ATOMIC_ATOMICLONG_SOURCES): Added.
(libnativevm_la_SOURCES): Added
JAVA_UTIL_CONCURRENT_ATOMIC_ATOMICLONG_SOURCES.

* src/native/vm/java_util_concurrent_atomic_AtomicLong.c: New file.
* src/native/vm/java_util_concurrent_atomic_AtomicLong.h: Likewise.

* src/native/vm/gnu/Makefile.am (libnativevmcore_la_SOURCES): Added
java_util_concurrent_atomic_AtomicLong.c.

* src/native/vm/gnu/java_util_concurrent_atomic_AtomicLong.c: New
file.

* src/native/include/Makefile.am (JAVASE_HEADER_FILES): Added
java_util_concurrent_atomic_AtomicLong.h.

16 years ago* src/cacaoh/dummy.c: Added Id keyword.
twisti [Tue, 19 Jun 2007 18:09:16 +0000 (18:09 +0000)]
* src/cacaoh/dummy.c: Added Id keyword.

16 years ago* src/cacaoh/dummy.c [ENABLE_THREADS] (pthread.h): Removed.
twisti [Tue, 19 Jun 2007 18:07:59 +0000 (18:07 +0000)]
* src/cacaoh/dummy.c [ENABLE_THREADS] (pthread.h): Removed.
(threads/threads-common.h): Added.
[ENABLE_THREADS] (threads_current_threadobject_key): Added #ifdef.

16 years ago* src/vm/exceptions.c (exceptions_throw_utf_throwable): Call
twisti [Mon, 18 Jun 2007 20:18:14 +0000 (20:18 +0000)]
* src/vm/exceptions.c (exceptions_throw_utf_throwable): Call
(Ljava/lang/Throwable;)V initializer and resolve the method with
class_resolveclassmethod to get possible exceptions.
(exceptions_throw_utf_cause): New function.
(exceptions_throw_noclassdeffounderror_cause): Use
exceptions_throw_utf_cause.

16 years ago* src/vm/jit/powerpc64/linux/md-abi.c (md_param_alloc): Set index.
tbfg [Mon, 18 Jun 2007 18:26:58 +0000 (18:26 +0000)]
* src/vm/jit/powerpc64/linux/md-abi.c (md_param_alloc): Set index.

* src/vm/jit/powerpc64/asmpart.S (asm_vm_call_method): New parameter
format, do not call asm_jit_compile any more.

* src/vm/jit/asmpart.h: Enable new parameter format function
prototypes.

* src/vm/vm.h: Likewise.

* src/vm/vm.c (vm_array_store_int): Although ppc64 is big endian
do not big endianize the new parameter format.
(vm_array_store_flt): Likewise.
(vm_array_store_adr): Likewise.
(vm_vmargs_from_valist): ppc64 like alpha uses doubles everywhere.
(vm_vmargs_from_jvalue): When HAS_ADDRESS_REGISTER_FILE is defined
address register arguments are between float and memuse.

* src/native/jni.c: Enable new parameter function calling.

16 years ago* src/vm/jit/s390/codegen.c (codegen_emit): More data segment load optimalisations.
pm [Sun, 17 Jun 2007 14:50:16 +0000 (14:50 +0000)]
* src/vm/jit/s390/codegen.c (codegen_emit): More data segment load optimalisations.
* src/vm/jit/s390/md.c (md_get_method_patch_address): Adapt to changes in codegen_emit.

16 years ago* src/vm/jit/s390/asmpart.S
pm [Sun, 17 Jun 2007 13:45:58 +0000 (13:45 +0000)]
* src/vm/jit/s390/asmpart.S
src/vm/jit/s390/codegen.h,
src/vm/jit/s390/codegen.c,
src/vm/jit/s390/emit.c,
src/vm/jit/s390/md.c,
src/vm/jit/s390/patcher.c,
src/vm/jit/s390/tests/dacapo.status: Optimized loads from data segment: the procedure vector now always points 4092 bytes before the data segment, so a lot of loads have a positive displacement. Removed dead code.

16 years ago* src/vm/jit/sparc64/codegen.c (codegen_emit): Improved integer argument passing
ajordan [Sat, 16 Jun 2007 19:56:19 +0000 (19:56 +0000)]
* src/vm/jit/sparc64/codegen.c (codegen_emit): Improved integer argument passing
by swapping variable allocation instead of copying.

* src/vm/jit/sparc64/md-abi.h: Turned %i0 into saved reg.
* src/vm/jit/sparc64/md-abi.c: Likewise.

16 years ago* src/vmcore/statistics.h: Added more fine grained spill statistics.
ajordan [Sat, 16 Jun 2007 01:15:41 +0000 (01:15 +0000)]
* src/vmcore/statistics.h: Added more fine grained spill statistics.
* src/vmcore/statistics.c: Likewise.

* src/vm/jit/jit.h: New defines for spill statistics. Old ones are deprecated,
won't increase the counters.

* src/vm/jit/codegen-common.c (codegen_increase): Defined SPARC64 for
2-instr-patcher-stub-call workaround.
(codegen_add_patch_ref): Likewise.
(codegen_reg_of_var): Removed obsolete spill counting.

* src/vm/jit/sparc64/emit.c: Changed for new spill statistics.
* src/vm/jit/sparc64/linux/md-os.c (md_critical_section_restart): Fixed.

16 years ago* src/vm/jit/emit-common.c (emit_bccz) [STATISTICS]: Is called
twisti [Thu, 14 Jun 2007 16:51:44 +0000 (16:51 +0000)]
* src/vm/jit/emit-common.c (emit_bccz) [STATISTICS]: Is called
ENABLE_STATISTICS.
(emit_label_bccz): Likewise.
(emit_label): Likewise.

16 years ago* src/native/native.c (native_findfunction): Use
twisti [Thu, 14 Jun 2007 16:12:35 +0000 (16:12 +0000)]
* src/native/native.c (native_findfunction): Use
exceptions_throw_unsatisfiedlinkerror.

16 years ago* src/threads/native/threads.c: Don't use exceptionptr directly
twisti [Thu, 14 Jun 2007 16:10:33 +0000 (16:10 +0000)]
* src/threads/native/threads.c: Don't use exceptionptr directly
anymore.

16 years ago* src/vm/exceptions.c: Don't use exceptionptr directly anymore, access
twisti [Thu, 14 Jun 2007 16:07:37 +0000 (16:07 +0000)]
* src/vm/exceptions.c: Don't use exceptionptr directly anymore, access
it only with functions.

16 years ago* src/native/vm/java_lang_Class.c: Added Id keyword.
twisti [Thu, 14 Jun 2007 16:06:31 +0000 (16:06 +0000)]
* src/native/vm/java_lang_Class.c: Added Id keyword.

16 years ago* src/native/vm/java_lang_Class.c (forName): Removed unused variables.
twisti [Thu, 14 Jun 2007 16:05:42 +0000 (16:05 +0000)]
* src/native/vm/java_lang_Class.c (forName): Removed unused variables.

16 years ago* src/vm/exceptions.c (exceptions_get_exception)
twisti [Thu, 14 Jun 2007 16:01:12 +0000 (16:01 +0000)]
* src/vm/exceptions.c (exceptions_get_exception)
(exceptions_set_exception, exceptions_clear_exception)
(exceptions_get_and_clear_exception): Moved these low leve function to
the top of the file.
* src/vm/exceptions.h: Likewise.

16 years ago* src/vmcore/loader.c: Removed commented
twisti [Thu, 14 Jun 2007 15:31:54 +0000 (15:31 +0000)]
* src/vmcore/loader.c: Removed commented
exceptions_throw_noclassdeffounderror calls.

16 years ago* src/vm/jit/emit-common.c: Fixed warning related to STATISTICS.
tbfg [Thu, 14 Jun 2007 15:12:54 +0000 (15:12 +0000)]
* src/vm/jit/emit-common.c: Fixed warning related to STATISTICS.

16 years ago* src/vm/jit/emit-common.c: Added emit_branch statistics.
tbfg [Thu, 14 Jun 2007 12:10:49 +0000 (12:10 +0000)]
* src/vm/jit/emit-common.c: Added emit_branch statistics.
* src/vmcore/statistics.c: Likewise.
* src/vmcore/statistics.h: Added count_emit_branch,
count_emit_branch_8bit, count_emit_branch_16bit,
count_emit_branch_32bit, count_emit_branch_64bit.

16 years agosrc/vm/jit/m68k/disass.c: Changed bfd_mach_mcf_isa_b_float_emac to
tbfg [Thu, 14 Jun 2007 12:07:03 +0000 (12:07 +0000)]
src/vm/jit/m68k/disass.c: Changed bfd_mach_mcf_isa_b_float_emac to
bfd_mach_mcfv4e as needed for newer binutils.

16 years ago* src/vm/jit/x86_64/asmpart.S (asm_vm_call_method): Rewritten for new
twisti [Thu, 14 Jun 2007 11:12:11 +0000 (11:12 +0000)]
* src/vm/jit/x86_64/asmpart.S (asm_vm_call_method): Rewritten for new
argument passing.

* src/vm/jit/x86_64/md-abi.c (md_param_alloc): Set pd->index.

* src/vm/vm.c: Added __X86_64__ ifdef.
* src/vm/vm.h: Likewise.
* src/native/jni.c: Likewise.
* src/vm/jit/asmpart.h: Likewise.

16 years ago* src/vm/vm.c (vm_array_from_objectarray): For TYPE_ADR param can be
twisti [Thu, 14 Jun 2007 11:06:48 +0000 (11:06 +0000)]
* src/vm/vm.c (vm_array_from_objectarray): For TYPE_ADR param can be
NULL, that's ok (jboss is a testcase for that).

16 years ago* src/vm/vm.c (vm_call_method_long_vmarg): Removed vm_abort.
twisti [Thu, 14 Jun 2007 10:20:02 +0000 (10:20 +0000)]
* src/vm/vm.c (vm_call_method_long_vmarg): Removed vm_abort.

16 years ago* src/vm/vm.c (arch.h): Added.
twisti [Thu, 14 Jun 2007 09:44:12 +0000 (09:44 +0000)]
* src/vm/vm.c (arch.h): Added.
(vm/jit/abi-asm.h): Likewise.
(vm_array_store_int): Use ARG_CNT define.
(vm_array_store_dbl): Likewise.
(vm_array_store_flt): Likewise.
(vm_array_store_dbl): Likewise.
(vm_array_store_adr) [HAS_ADDRESS_REGISTER_FILE]: Changed offset.

16 years ago* src/vm/vm.c: Fixed typos.
twisti [Thu, 14 Jun 2007 09:35:31 +0000 (09:35 +0000)]
* src/vm/vm.c: Fixed typos.

16 years ago* src/vm/jit/mips/asmpart.S (asm_vm_call_method) [!WORDS_BIGENDIAN]:
twisti [Thu, 14 Jun 2007 00:38:53 +0000 (00:38 +0000)]
* src/vm/jit/mips/asmpart.S (asm_vm_call_method) [!WORDS_BIGENDIAN]:
Fixed bug (use lw instead of ld), better code in the stack copy loop.

16 years ago* src/vm/jit/mips/asmpart.S (asm_vm_call_method): Rewritten for new
twisti [Wed, 13 Jun 2007 22:27:17 +0000 (22:27 +0000)]
* src/vm/jit/mips/asmpart.S (asm_vm_call_method): Rewritten for new
argument passing.

* src/vm/jit/mips/md-abi.c (stdarg.h): Added.
(mm/memory.h): Likewise.
(md_param_alloc): Set pd->index.

* src/vm/jit/asmpart.h (stdint.h): Added new function prototypes.

* src/vm/vm.c (md-abi.h): Added.
(vm_array_store_int): New function.
(vm_array_store_lng): Likewise.
(vm_array_store_flt): Likewise.
(vm_array_store_dbl): Likewise.
(vm_array_store_adr): Likewise.
(vm_array_from_valist): Likewise.
(vm_array_from_jvalue): Likewise.
(vm_array_from_objectarray): Likewise.
(vm_call_method_valist): New version added.
(vm_call_method_jvalue): Likewise.
(vm_call_array): New function.
(vm_call_int_array): Likewise.
(vm_call_method_int_valist): New version added.
(vm_call_method_int_jvalue): Likewise.
(vm_call_method_long_valist): Likewise.
(vm_call_method_long_jvalue): Likewise.
(vm_call_long_array): New function.
(vm_call_method_float_vmarg): Added vm_abort.
(vm_call_method_double_vmarg): Likwise.

* src/vm/vm.h (stdarg.h): Added.
(vmcore/class.h): Likewise.
(vmcore/method.h): Likewise.
(vm_array_from_objectarray): Likewise.
(vm_call_array): Likewise.
(vm_call_int_array): Likewise.
(vm_call_long_array): Likewise.

* src/native/jni.c (_Jv_jni_invokeNative): Added new version.

* src/vmcore/descriptor.h (stdint.h): Added.
(paramdesc): Added index field (this is temporarily).

16 years ago* src/vm/jit/tools/genoffsets.c (vmcore/class.h): Removed.
twisti [Wed, 13 Jun 2007 21:54:27 +0000 (21:54 +0000)]
* src/vm/jit/tools/genoffsets.c (vmcore/class.h): Removed.
(vmcore/linker.h): Likewise.
(vmcore/method.h): Likewise.

16 years ago* tests/regression/native/testarguments.java,
twisti [Wed, 13 Jun 2007 18:31:19 +0000 (18:31 +0000)]
* tests/regression/native/testarguments.java,
tests/regression/native/testarguments.c,
tests/regression/native/testarguments.output: Added address test.

16 years ago* src/vm/jit/tools/genoffsets.c (main): Removed some obsolete stuff.
twisti [Wed, 13 Jun 2007 17:37:55 +0000 (17:37 +0000)]
* src/vm/jit/tools/genoffsets.c (main): Removed some obsolete stuff.
* src/vm/jit/m68k/md.c (md_init): Removed offobjvftbl check.

16 years ago* src/native/jni.c (_Jv_jni_vmargs_from_objectarray): Removed.
twisti [Wed, 13 Jun 2007 14:26:41 +0000 (14:26 +0000)]
* src/native/jni.c (_Jv_jni_vmargs_from_objectarray): Removed.
(_Jv_jni_invokeNative): Use vm_vmargs_from_objectarray.

* src/vm/vm.c (stdint.h): Added.
(native/include/java_lang_Byte.h)
(native/include/java_lang_Character.h)
(native/include/java_lang_Short.h)
(native/include/java_lang_Integer.h)
(native/include/java_lang_Boolean.h)
(native/include/java_lang_Long.h)
(native/include/java_lang_Float.h)
(native/include/java_lang_Double.h): Likewise.
(vm_vmargs_from_objectarray): New function.

* src/vm/vm.h (vm_vmargs_from_objectarray): Added.

16 years ago* src/native/jni.c (stdint.h): Added.
twisti [Wed, 13 Jun 2007 14:08:24 +0000 (14:08 +0000)]
* src/native/jni.c (stdint.h): Added.
(_Jv_jni_vmargs_from_objectarray): Use stdint-types, use global class
variables.

16 years ago* src/vm/jits/390/codegen.h (N_BRC_BACK_PATCH, N_LTEBR, N_LTDBR, N_LTXBR, DD_0, ...
pm [Tue, 12 Jun 2007 15:50:35 +0000 (15:50 +0000)]
* src/vm/jits/390/codegen.h (N_BRC_BACK_PATCH, N_LTEBR, N_LTDBR, N_LTXBR, DD_0, ..., DD_3): added, (M_CVTFI, M_CVTDI) changed to round to nearest.
* src/vm/jits/390/codegen.c (codegen_emit): In ICMD_F2I and ICMD_D2I correct handling of corner cases, ICMD_LALOAD fix.
* src/vm/jit/s390/md.c (md_dump_context): Include information on java method in dump.
* src/vm/jits/390/tests/dacapo.status: Noted dacapo eclipse results.

16 years ago* src/native/vm/gnu/java_lang_reflect_Constructor.c (constructNative):
twisti [Tue, 12 Jun 2007 12:32:18 +0000 (12:32 +0000)]
* src/native/vm/gnu/java_lang_reflect_Constructor.c (constructNative):
Added asserts for declaringClass and slot.
* src/native/vm/gnu/java_lang_reflect_Method.c (invokeNative): Likewise.

16 years ago* src/vm/vm.c (opts): Added OPT_EA, OPT_DA.
twisti [Tue, 12 Jun 2007 09:08:12 +0000 (09:08 +0000)]
* src/vm/vm.c (opts): Added OPT_EA, OPT_DA.
(usage): Print help for OPT_EA, OPT_DA.
(vm_create): Ignore OPT_EA, OPT_DA.

16 years ago* src/vm/jit/s390/emit.c (emit_load_s1_notzero, emit_load_s2_notzero, emit_load_s1_bu...
pm [Mon, 11 Jun 2007 15:22:09 +0000 (15:22 +0000)]
* src/vm/jit/s390/emit.c (emit_load_s1_notzero, emit_load_s2_notzero, emit_load_s1_but, emit_load_s2_but): Correctly handle float regissters.
* src/vm/jit/s390/tests/dacapo.status: Include dacapo lusearch results.

16 years ago* src/native/vm/java_lang_reflect_Method.c: New file.
twisti [Mon, 11 Jun 2007 15:11:01 +0000 (15:11 +0000)]
* src/native/vm/java_lang_reflect_Method.c: New file.
* src/native/vm/java_lang_reflect_Method.h: Likewise.

* src/native/vm/Makefile.am [ENABLE_JAVASE]
(JAVA_LANG_REFLECT_METHOD_SOURCES): Added
(libnativevm_la_SOURCES): Added JAVA_LANG_REFLECT_METHOD_SOURCES.

* src/native/vm/gnu/java_lang_reflect_Method.c
(native/vm/java_lang_reflect_Method.h): Added.
(invokeNative): Use _Jv_java_lang_reflect_Method_invoke.

16 years ago* src/vmcore/method.c (method_returntype_get): New function.
twisti [Mon, 11 Jun 2007 14:44:58 +0000 (14:44 +0000)]
* src/vmcore/method.c (method_returntype_get): New function.
* src/vmcore/method.h (method_returntype_get): Added.

* src/native/vm/gnu/java_lang_reflect_Method.c (getReturnType): Use
method_returntype_get.

17 years ago* src/vm/resolve.c (resolve_class_from_name): Call
twisti [Mon, 11 Jun 2007 08:12:14 +0000 (08:12 +0000)]
* src/vm/resolve.c (resolve_class_from_name): Call
exceptions_classnotfoundexception_to_noclassdeffounderror in exception
case.

* src/vm/exceptions.c (vmcore/method.h): Added.
(exceptions_throw_utf_throwable): Added object-initialize code.
(exceptions_throw_utf_exception): Likewise.
(exceptions_throw_noclassdeffounderror_cause): New function.
(classnotfoundexception_to_noclassdeffounderror): Renamed to
exceptions_classnotfoundexception_to_noclassdeffounderror.
(exceptions_print_stacktrace): Don't use exceptionptr directly.

* src/vm/exceptions.h (exceptions_throw_noclassdeffounderror_cause):
Added.
(classnotfoundexception_to_noclassdeffounderror): Renamed to
exceptions_classnotfoundexception_to_noclassdeffounderror.

* src/vm/vm.c (opts): Added XX:.
(vm_create): Likewise.
(vm_run): Call exceptions_throw_noclassdeffounderror_cause when
main-class is not found.

* src/native/vm/java_lang_Class.c (forName): Don't convert exception.

* src/native/vm/gnu/java_lang_VMClassLoader.c (getPrimitiveClass): Use
primitive_class_get_by_char.
(loadClass): Don't convert exception.

* src/native/native.c (native_new_and_init_string): Use
class_findmethod instead of class_resolveclassmethod.
(native_new_and_init_throwable): Removed.
(native_new_and_init_exception): Likewise.

* src/native/native.h (native_new_and_init_throwable): Removed.
(native_new_and_init_exception): Likewise.

* src/vmcore/class.c (class_array_of): Smaller code changes.

* src/vmcore/loader.c (vmcore/primitive.h): Added.
(load_class_from_classloader): Don't convert exception.
(load_class_bootstrap): Throw ClassNotFoundException instead of
NoClassDefFoundError.
(load_newly_created_array): Likewise, check if primitive-array type is
valid.

* src/vmcore/utf8.c (utf_initCause): Added.
(utf_java_lang_Throwable__java_lang_Throwable): Likewise.
(utf8_init): Initialize new variables.

* src/vmcore/utf8.h (utf_initCause): Added.
(utf_java_lang_Throwable__java_lang_Throwable): Likewise.

* src/cacaoh/dummy.c (exceptions_throw_classnotfoundexception): New
function.
(classnotfoundexception_to_noclassdeffounderror): Removed.

* src/vmcore/options.c (options_xx): New function.
* src/vmcore/options.h (options_xx): Added.

17 years ago* src/vmcore/primitive.c (primitive_class_get_by_char): New function.
twisti [Mon, 11 Jun 2007 07:59:36 +0000 (07:59 +0000)]
* src/vmcore/primitive.c (primitive_class_get_by_char): New function.
* src/vmcore/primitive.h (primitive_class_get_by_char): Added.

17 years ago* src/vm/global.h (PRIMITIVETYPE_*): Removed.
twisti [Sun, 10 Jun 2007 20:00:40 +0000 (20:00 +0000)]
* src/vm/global.h (PRIMITIVETYPE_*): Removed.
(ARRAYTYPE_*): Likewise.

* src/vm/jit/verify/typecheck-typeinferer.c (vmcore/primitive.h): Added.
* src/vm/jit/verify/typecheck.c: Likewise.
* src/vm/jit/verify/typecheck-stackbased.c: Likewise.
* src/vm/jit/verify/typeinfo.c: Likewise.
* src/vm/builtin.c: Likewise.
* src/native/jni.c: Likewise.
* src/native/vm/gnu/java_lang_VMClassLoader.c: Likewise.
* src/native/vm/gnu/java_lang_reflect_Field.c: Likewise.
* src/vmcore/descriptor.c: Likewise.

* src/vm/string.c (vmcore/primitive.h): Added.
(stringtable_update): Use new primitive functions.

* src/vm/resolve.c: Likewise.
(resolve_class_from_typedesc): Use new primitive functions.

* src/vm/vm.c (vmcore/primitive.h): Added.
(vm_create): Call primitive_init.

* src/native/vm/java_lang_Class.c (vmcore/primitive.h): Added.
(isPrimitive): Use primitive_class_is_primitive.
(getDeclaringClass): Likewise.
(getDeclaredClasses): Likewise.
(getComponentType): Use primitive_class_get_by_type.

* src/vmcore/class.c (class_is_primitive): Removed.
(class_primitive_get): Removed.
* src/vmcore/class.c: Likewise.

* src/vmcore/primitive.c: New file.
* src/vmcore/primitive.h: Likewise.

* src/vmcore/Makefile.am (libvmcore_la_SOURCES): Added primitive.[ch].

* src/vmcore/linker.c (vmcore/primitive.h): Added.
(primitivetype_table): Removed.
(linker_init): Removed link_primitivetype_table call.
(link_primitivetype_table): Removed.

* src/vmcore/linker.h (primitivetypeinfo): Removed.
(primitivetype_table): Removed.

* src/vm/jit/verify/typecheck-builtins.inc: Removed Contact, Authors
from header.

17 years ago* src/vm/vm.c (vm_vmargs_from_valist): Use TYPE_-defines instead of
twisti [Sun, 10 Jun 2007 19:31:28 +0000 (19:31 +0000)]
* src/vm/vm.c (vm_vmargs_from_valist): Use TYPE_-defines instead of
PRIMITIVETYPE_ ones.
(vm_vmargs_from_jvalue): Likewise.

17 years ago* src/native/jni.c (_Jv_jni_vmargs_from_objectarray): Indent.
twisti [Sun, 10 Jun 2007 19:30:25 +0000 (19:30 +0000)]
* src/native/jni.c (_Jv_jni_vmargs_from_objectarray): Indent.

17 years ago* m4/classpath.m4 (AC_CHECK_WITH_CLASSPATH_INCLUDEDIR): Check for
twisti [Fri, 8 Jun 2007 20:42:54 +0000 (20:42 +0000)]
* m4/classpath.m4 (AC_CHECK_WITH_CLASSPATH_INCLUDEDIR): Check for
jni_md.h too.

17 years ago* configure.ac (AC_CHECK_FUNCS): Added lseek.
twisti [Fri, 8 Jun 2007 20:04:34 +0000 (20:04 +0000)]
* configure.ac (AC_CHECK_FUNCS): Added lseek.

17 years ago* src/vmcore/class.c (class_define): New function.
twisti [Thu, 7 Jun 2007 23:30:45 +0000 (23:30 +0000)]
* src/vmcore/class.c (class_define): New function.
* src/vmcore/class.h (class_define): Added.

* src/native/vm/java_lang_ClassLoader.c (defineClass): Use
class_define.

17 years ago* src/vmcore/utf8.c (utf_java_lang_Exception__V): Added.
twisti [Thu, 7 Jun 2007 22:41:54 +0000 (22:41 +0000)]
* src/vmcore/utf8.c (utf_java_lang_Exception__V): Added.
(utf8_init): Initialize utf_java_lang_Exception__V.
* src/vmcore/utf8.h (utf_java_lang_Exception__V): Added.

* src/vm/exceptions.c (exceptions_throw_utf_exception): New function.
(exceptions_throw_privilegedactionexception): Use
exceptions_throw_utf_exception.

* src/native/native.c (native_new_and_init_exception): New function.
* src/native/native.h (native_new_and_init_exception): Added.

17 years ago* src/vmcore/utf8.c (utf_java_security_PrivilegedActionException):
twisti [Thu, 7 Jun 2007 22:20:37 +0000 (22:20 +0000)]
* src/vmcore/utf8.c (utf_java_security_PrivilegedActionException):
Added.
(utf8_init): Initialize utf_java_security_PrivilegedActionException.

* src/vmcore/utf8.h (utf_java_security_PrivilegedActionException):
Added.

* src/vm/exceptions.c (exceptions_throw_privilegedactionexception):
New function.

* src/vm/exceptions.h (exceptions_throw_privilegedactionexception):
Added.

17 years ago* src/vm/jit/s390/emit.c (emit_verbosecall_enter): Fix passing of float argument...
pm [Thu, 7 Jun 2007 22:02:16 +0000 (22:02 +0000)]
* src/vm/jit/s390/emit.c (emit_verbosecall_enter): Fix passing of float argument 2 to builtin_verbosecall_enter.
* src/vm/builtin.c (builtin_print_argument): Fix malfunctioning conversion from s8 to float on s390.

17 years ago* src/native/jni.c (_Jv_JNI_FatalError): Changed error message.
twisti [Thu, 7 Jun 2007 21:52:21 +0000 (21:52 +0000)]
* src/native/jni.c (_Jv_JNI_FatalError): Changed error message.

17 years ago* src/vm/builtin.c (builtin_nanotime): New function.
twisti [Thu, 7 Jun 2007 19:24:35 +0000 (19:24 +0000)]
* src/vm/builtin.c (builtin_nanotime): New function.
(builtin_currenttimemillis): Use builtin_nanotime.

* src/vm/builtin.h (builtin_nanotime): Added.

17 years ago* configure.ac (AC_CHECK_FUNCS): Added open, strerror.
twisti [Thu, 7 Jun 2007 19:22:31 +0000 (19:22 +0000)]
* configure.ac (AC_CHECK_FUNCS): Added open, strerror.

17 years ago* src/vmcore/class.c (class_primitive_get): New function.
twisti [Thu, 7 Jun 2007 17:43:29 +0000 (17:43 +0000)]
* src/vmcore/class.c (class_primitive_get): New function.
* src/vmcore/class.h (class_primitive_get): Added.

* src/vmcore/linker.c (primitivetype_table): Changed layout.
(link_primitivetype_table): Store UTF-8 name in table.

* src/vmcore/linker.h (primitivetypeinfo): Changed layout, added
cname, changed name to UTF-8.

17 years ago* configure.ac (AC_CHECK_HEADERS): Check for sys/select.h, sys/stat.h,
twisti [Thu, 7 Jun 2007 16:21:11 +0000 (16:21 +0000)]
* configure.ac (AC_CHECK_HEADERS): Check for sys/select.h, sys/stat.h,
sys/types.h.
(AC_CHECK_FUNCS): Check for fstat, ioctl, select.

17 years ago* src/vm/jit/m68k/linux/md-abi.c: Additional defines for address registers.
tbfg [Thu, 7 Jun 2007 11:23:52 +0000 (11:23 +0000)]
* src/vm/jit/m68k/linux/md-abi.c: Additional defines for address registers.

17 years ago* src/native/vm/gnu/java_lang_reflect_Constructor.c (methods): Install
twisti [Thu, 7 Jun 2007 09:04:51 +0000 (09:04 +0000)]
* src/native/vm/gnu/java_lang_reflect_Constructor.c (methods): Install
_Jv_- functions directly.
(getModifiersInternal): Removed.
(getParameterTypes): Likewise.
(getExceptionTypes): Likewise.
(constructNative): Call _Jv_java_lang_reflect_Constructor_newInstance.
(getSignature): Removed.

* src/native/vm/Makefile.am [ENABLE_JAVASE]
(JAVA_LANG_REFLECT_CONSTRUCTOR_SOURCES): Added.
(libnativevm_la_SOURCES): Added JAVA_LANG_REFLECT_CONSTRUCTOR_SOURCES.

* src/native/vm/java_lang_reflect_Constructor.c: New file.
* src/native/vm/java_lang_reflect_Constructor.h: Likewise.

17 years ago* src/vm/jit/code.h (codeinfo) [ENABLE_REPLACEMENT, HAS_ADDRESS_REGISTER_FILE]:
michi [Thu, 7 Jun 2007 08:51:54 +0000 (08:51 +0000)]
* src/vm/jit/code.h (codeinfo) [ENABLE_REPLACEMENT, HAS_ADDRESS_REGISTER_FILE]:
Added savedadrcount.

* src/vm/jit/replace.c [HAS_ADDRESS_REGISTER_FILE]: Added support for address
registers.

* src/vm/jit/replace.h [HAS_ADDRESS_REGISTER_FILE]: Likewise.

17 years ago* src/vmcore/class.c (class_is_primitive): New function.
twisti [Wed, 6 Jun 2007 17:23:42 +0000 (17:23 +0000)]
* src/vmcore/class.c (class_is_primitive): New function.
* src/vmcore/class.h (class_is_primitive): Added.

* src/native/vm/java_lang_Class.c (isPrimitive): Use
class_is_primitive.
(getDeclaringClass): Likewise.
(getDeclaredClasses): Likewise.

17 years ago* NEWS: Fixed 0.98 release date.
twisti [Wed, 6 Jun 2007 17:19:17 +0000 (17:19 +0000)]
* NEWS: Fixed 0.98 release date.

17 years ago* configure.ac (AC_INIT): Changed version to 0.98+svn.
twisti [Wed, 6 Jun 2007 11:31:28 +0000 (11:31 +0000)]
* configure.ac (AC_INIT): Changed version to 0.98+svn.
(OPT_CFLAGS): Changed to -O0.

17 years ago* ChangeLog: Updated.
twisti [Wed, 6 Jun 2007 09:26:00 +0000 (09:26 +0000)]
* ChangeLog: Updated.

17 years ago* configure.ac (AC_INIT): Changed version to 0.98.
twisti [Wed, 6 Jun 2007 09:24:22 +0000 (09:24 +0000)]
* configure.ac (AC_INIT): Changed version to 0.98.

17 years ago* src/native/vm/gnu/java_lang_VMString.c
twisti [Tue, 5 Jun 2007 23:46:59 +0000 (23:46 +0000)]
* src/native/vm/gnu/java_lang_VMString.c
(native/vm/java_lang_String.h): Added.
(intern): Call _Jv_java_lang_String_intern.

* src/native/vm/java_lang_String.c: New file.
* src/native/vm/java_lang_String.h: Likewise.

* src/native/vm/Makefile.am (libnativevm_la_SOURCES): Added
java_lang_String.[ch].

17 years ago* src/native/native.c (native_init): Check nativevm_init return value.
twisti [Tue, 5 Jun 2007 22:11:12 +0000 (22:11 +0000)]
* src/native/native.c (native_init): Check nativevm_init return value.

* src/native/vm/nativevm.c (nativevm_init): Changed signature.
* src/native/vm/nativevm.h (nativevm_init): Likewise.

17 years ago* src/native/vm/gnu/Makefile.am (libnativevmcore_la_SOURCES): Removed
twisti [Tue, 5 Jun 2007 20:58:11 +0000 (20:58 +0000)]
* src/native/vm/gnu/Makefile.am (libnativevmcore_la_SOURCES): Removed
sun_misc_Unsafe.c.

* src/native/vm/Makefile.am [ENABLE_JAVASE] (SUN_MISC_UNSAFE_SOURCES):
Added.
(libnativevm_la_SOURCES): Added SUN_MISC_UNSAFE_SOURCES.

* src/native/vm/gnu/sun_misc_Unsafe.c: Removed.
* src/native/vm/sun_misc_Unsafe.c: Added.

--HG--
rename : src/native/vm/gnu/sun_misc_Unsafe.c => src/native/vm/sun_misc_Unsafe.c

17 years ago* src/vm/jit/codegen-common.c [__ARM__] (md-abi.h): Removed.
twisti [Tue, 5 Jun 2007 12:53:30 +0000 (12:53 +0000)]
* src/vm/jit/codegen-common.c [__ARM__] (md-abi.h): Removed.
(codegen_reg_of_var) [__ARM__]: Removed split-code.

17 years ago* src/vm/jit/mips/md-abi.c (md_param_alloc) [SIZEOF_VOID_P == 8]: Use
twisti [Tue, 5 Jun 2007 10:19:09 +0000 (10:19 +0000)]
* src/vm/jit/mips/md-abi.c (md_param_alloc) [SIZEOF_VOID_P == 8]: Use
reguse instead of i.

17 years ago* src/vm/jit/mips/md-abi.c (md_param_alloc_native)
twisti [Tue, 5 Jun 2007 10:14:29 +0000 (10:14 +0000)]
* src/vm/jit/mips/md-abi.c (md_param_alloc_native)
[SIZEOF_VOID_P == 8]: Fixed compilation.

17 years ago* src/vm/jit/mips/md-abi.c (md_param_alloc) [SIZEOF_VOID_P == 4]: Use
twisti [Tue, 5 Jun 2007 10:06:18 +0000 (10:06 +0000)]
* src/vm/jit/mips/md-abi.c (md_param_alloc) [SIZEOF_VOID_P == 4]: Use
internally a different calling convention. It's the same as on n64
with register skipping and, but with long alignment (as on ARM).
(md_param_alloc_native) [SIZEOF_VOID_P == 4]: Use the o32 ABI.

* src/vm/jit/mips/codegen.c (codegen_emit) [SIZEOF_VOID_P == 4]:
Changes for new internal calling conventions.
(codegen_emit_stub_native) [SIZEOF_VOID_P == 4]: Likewise.

* src/vm/jit/mips/asmpart.S (asm_vm_call_method) [SIZEOF_VOID_P == 4]:
Adjusted reserved stack-space to 4*4.

17 years ago* src/vm/jit/mips/codegen.c (codegen_emit): Use FLTMOVE and DBLMOVE to
twisti [Tue, 5 Jun 2007 09:00:30 +0000 (09:00 +0000)]
* src/vm/jit/mips/codegen.c (codegen_emit): Use FLTMOVE and DBLMOVE to
save some moves.

17 years ago* src/vm/jit/mips/codegen.c (codegen_emit): Small code-layout change.
twisti [Tue, 5 Jun 2007 07:56:35 +0000 (07:56 +0000)]
* src/vm/jit/mips/codegen.c (codegen_emit): Small code-layout change.

17 years ago* src/vm/vm.c: Set Id keyword.
twisti [Tue, 5 Jun 2007 07:44:38 +0000 (07:44 +0000)]
* src/vm/vm.c: Set Id keyword.

17 years ago* src/vm/vm.c (vmcore/statistics.h): Added.
twisti [Tue, 5 Jun 2007 07:42:57 +0000 (07:42 +0000)]
* src/vm/vm.c (vmcore/statistics.h): Added.

17 years ago* src/vmcore/statistics.c (count_calls_java_to_native): Added.
twisti [Tue, 5 Jun 2007 07:40:49 +0000 (07:40 +0000)]
* src/vmcore/statistics.c (count_calls_java_to_native): Added.
(count_calls_native_to_java): Likewise.
(count_native_function_calls): Removed.
(nativeinvokation): Likewise.
(print_stats): Print new variables.

* src/vmcore/statistics.h (count_calls_java_to_native): Added.
(count_calls_native_to_java): Likewise.
(nativeinvokation): Removed.

* src/vm/jit/codegen-common.c (codegen_start_native_call)
[ENABLE_STATISTICS]: Increase count_calls_java_to_native.

* src/vm/vm.c (vm_call_method_vmarg) [ENABLE_STATISTICS]: Increase
count_calls_native_to_java.
(vm_call_method_int_vmarg): Likewise.
(vm_call_method_long_vmarg): Likewise.
(vm_call_method_float_vmarg): Likewise.
(vm_call_method_double_vmarg): Likewise.

17 years ago* src/vm/signal.c (unistd.h): Removed.
twisti [Mon, 4 Jun 2007 13:12:56 +0000 (13:12 +0000)]
* src/vm/signal.c (unistd.h): Removed.
(sys/mman.h): Likewise.
(signal_init): Moved mmap of page 0x0 and the hardware-exceptions
check into exceptions_init.

* src/vm/exceptions.c (unistd.h): Added.
(sys/mman.h): Likewise.
(exceptions_init): See above.

17 years ago* src/vm/signal.c (signal_init): Use if-vm_abort instead of assert.
twisti [Mon, 4 Jun 2007 12:59:04 +0000 (12:59 +0000)]
* src/vm/signal.c (signal_init): Use if-vm_abort instead of assert.
* src/vm/exceptions.h: Changed hardware-exception comment accordingly.

17 years ago* src/threads/threads-common.c (threads_thread_start_internal):
twisti [Sun, 3 Jun 2007 18:42:09 +0000 (18:42 +0000)]
* src/threads/threads-common.c (threads_thread_start_internal):
Changed order of initialization stuff, so we can leave the join-mutex
very early.
(threads_thread_start): Likewise.

* src/threads/native/threads.c (threads_mutex_join_lock): New
function.
(threads_mutex_join_unlock): Likewise.
(threads_attach_current_thread): Changed order of initialization
stuff, so we can leave the join-mutex very early.
(threads_detach_thread): Send the signal inside the join-mutex.
(threads_join_all_threads): Use join-mutex functions.

* src/threads/threads-common.h (threads_mutex_join_lock): Added.
(threads_mutex_join_unlock): Likewise.

17 years ago* configure.ac: Fix broken regex.h test.
pm [Sun, 3 Jun 2007 18:24:44 +0000 (18:24 +0000)]
* configure.ac: Fix broken regex.h test.

17 years ago* contrib/vmlog/vmlogfilter.c: Added a tool that filters a vmlog log file the same...
pm [Sat, 2 Jun 2007 17:47:30 +0000 (17:47 +0000)]
* contrib/vmlog/vmlogfilter.c: Added a tool that filters a vmlog log file the same way as -XXfi and -XXfx do.

* contrib/vmlog/vmlog.c,
contrib/vmlog/vmlog.h (vmlog_thread_log_append): Made not-static.

* contrib/vmlog/Makefile.am,
configure.ac: Conditional building of vmlogfilter if ENABLE_VMLOG is set and regex.h present.

17 years ago* src/vm/signal.c: Added ifdefs to fix compiling with disabled threads.
ajordan [Fri, 1 Jun 2007 19:34:56 +0000 (19:34 +0000)]
* src/vm/signal.c: Added ifdefs to fix compiling with disabled threads.

17 years ago* src/vm/jit/sparc64/codegen.c (codegen_emit_stub_native): Fixed the way
ajordan [Fri, 1 Jun 2007 00:45:04 +0000 (00:45 +0000)]
* src/vm/jit/sparc64/codegen.c (codegen_emit_stub_native): Fixed the way
float arguments are preserved over codegen_start_native_call.
* src/vm/jit/sparc64/md-abi.c (codegen_start_native_call): Likewise.

* src/vm/jit/sparc64/machine-instr.h (compare_and_swap): Changed inline
assembly, so it survives gcc optimization.

* src/vm/jit/sparc64/asmpart.S (asm_patcher_wrapper): Saving and restoring
float return register.
* src/vm/jit/sparc64/md-asm.h: Likewise.

17 years ago* m4/ac_pthreads_implementation.m4: Reverted rev7996.
twisti [Fri, 1 Jun 2007 00:29:51 +0000 (00:29 +0000)]
* m4/ac_pthreads_implementation.m4: Reverted rev7996.
* m4/threads.m4: Likewise.

* src/threads/threads-common.c [__LINUX__]
(threads_pthreads_implementation_nptl): Added.
(threads_preinit) [__LINUX__]: Check which thread-implementation we
are using.

* src/threads/threads-common.h [__LINUX__]
(threads_pthreads_implementation_nptl): Added.

* src/vm/signal.c (signal_init) [__LINUX__]: Check for
threads_pthreads_implementation_nptl.

* src/vm/vm.c (vm_create) [__LINUX__]: Likewise.

17 years ago* src/vm/jit/mips/irix/md-os.c (vm/jit/mips/codegen.h): Added.
twisti [Thu, 31 May 2007 23:26:23 +0000 (23:26 +0000)]
* src/vm/jit/mips/irix/md-os.c (vm/jit/mips/codegen.h): Added.
(md_signal_handler_sigsegv): Updated to new exception-handling.
(thread_restartcriticalsection): Renamed to
md_critical_section_restart.

17 years ago* m4/ac_pthreads_implementation.m4: New file.
twisti [Thu, 31 May 2007 23:05:51 +0000 (23:05 +0000)]
* m4/ac_pthreads_implementation.m4: New file.

* m4/threads.m4 (AC_CHECK_ENABLE_THREADS): Call
AC_CHECK_PTHREADS_IMPLEMENTATION for posix and linux.

* configure.ac (AC_CHECK_HEADERS): Added stdlib.h.
(AC_CHECK_FUNCS): Added confstr, strstr.

* src/vm/signal.c (signal_init) [!PTHREADS_IS_LINUXTHREADS]: Only
block the signals if we are not on LinuxThreads.
(signal_thread): Set state accordingly.

* src/vm/vm.c (vm_create) [!PTHREADS_IS_LINUXTHREADS]: Only start
signal-thread if we are not on LinuxThreads.

17 years ago* src/vm/signal.c: Reverted rev7978.
twisti [Thu, 31 May 2007 22:45:19 +0000 (22:45 +0000)]
* src/vm/signal.c: Reverted rev7978.

17 years ago* src/vm/vm.c (vm_create): Added comment.
twisti [Thu, 31 May 2007 16:10:58 +0000 (16:10 +0000)]
* src/vm/vm.c (vm_create): Added comment.