cacao.git
16 years ago* Merged with df1b780317c3.
Christian Thalinger [Sat, 19 Jan 2008 10:17:33 +0000 (11:17 +0100)]
* Merged with df1b780317c3.

16 years ago* src/mm/dumpmemory.c (dump_release): Renamed to dumpmemory_release.
Christian Thalinger [Sat, 19 Jan 2008 10:16:35 +0000 (11:16 +0100)]
* src/mm/dumpmemory.c (dump_release): Renamed to dumpmemory_release.
(dump_size): Renamed to dumpmemory_marker.

* src/mm/dumpmemory.h: Likewise.
(DMARKER, DRELEASE): New macros.

* src/cacaoh/dummy.c,
src/mm/cacao-gc/gc.c,
src/mm/memory.h,
src/native/native.c,
src/native/vm/gnu/java_lang_VMRuntime.c,
src/vm/builtin.c,
src/vm/jit/codegen-common.c,
src/vm/jit/intrp/codegen.c,
src/vm/jit/jit.c,
src/vm/jit/replace.c,
src/vm/jit/show.c,
src/vm/jit/trace.c,
src/vm/vm.c,
src/vmcore/class.c,
src/vmcore/loader.c: Use new macros.

16 years ago* tests/regression/Makefile.am (SUBDIRS): Removed resolving. These
Christian Thalinger [Sat, 19 Jan 2008 10:13:01 +0000 (11:13 +0100)]
* tests/regression/Makefile.am (SUBDIRS): Removed resolving. These
test are broken.

16 years ago* src/vm/jit/alpha/codegen.c,
Peter Molnar [Thu, 17 Jan 2008 00:01:35 +0000 (01:01 +0100)]
* src/vm/jit/alpha/codegen.c,
src/vm/jit/codegen-common.c,
src/vm/jit/jit.c,
src/vm/jit/show.c,
src/vm/vm.c,
src/vmcore/options.c,
src/vmcore/options.h: Integrated Christian Ullrichs changes related to SSA and LSRA. The diff against SVN version 8144 was carefully integrated.

* src/vm/jit/optimizing/Makefile.am,
src/vm/jit/optimizing/graph.c,
src/vm/jit/optimizing/lifetimes.c,
src/vm/jit/optimizing/lsra.c,
src/vm/jit/optimizing/lsra.h,
src/vm/jit/optimizing/ssa.c,
src/vm/jit/optimizing/ssa.h,
src/vm/jit/optimizing/ssa_phi.c,
src/vm/jit/optimizing/ssa_phi.h,
src/vm/jit/optimizing/ssa_rename.c,
src/vm/jit/optimizing/ssa_rename.h: Integrated Christian Ullrichs changes related to SSA and LSRA. Those files were just COPYED and adapted from his modified SVN 8144 working copy.

NOTE: Christian Ullrichs SSA+LSRA related changes to the x86_64 codegenerator are NOT MERGED in this commit.

16 years ago* src/vm/jit/python.c: Wrapped control flow and data flow fields and respective const...
Peter Molnar [Wed, 16 Jan 2008 23:31:14 +0000 (00:31 +0100)]
* src/vm/jit/python.c: Wrapped control flow and data flow fields and respective constants for instruction.

16 years ago* src/native/vm/sun_misc_Unsafe.c (getChar, putChar): Implemented.
Christian Thalinger [Wed, 16 Jan 2008 14:28:45 +0000 (15:28 +0100)]
* src/native/vm/sun_misc_Unsafe.c (getChar, putChar): Implemented.
(copyMemory): Likewise.

16 years ago* src/mm/dumpmemory.c (dump_alloc): Renamed to dumpmemory_get.
Christian Thalinger [Fri, 11 Jan 2008 13:42:25 +0000 (14:42 +0100)]
* src/mm/dumpmemory.c (dump_alloc): Renamed to dumpmemory_get.
(dumpmemory_alloc): New function.
(dump_realloc): Renamed to dumpmemory_realloc.

* src/mm/dumpmemory.h (dump_allocation_t): Renamed useddumpsize to
used.
(dumpinfo_t): Renamed currentdumpblock to block, allocateddumpsize to
allocated, useddumpsize to used.
(DNEW, DMNEW, DMREALLOC): Defined to new function names.

* src/cacaoh/dummy.c (dump_alloc): Renamed to dumpmemory_get.

* src/vm/jit/verify/typeinfo.h (DNEW_TYPEVECTOR): Use DMNEW.
(DMNEW_TYPEVECTOR): Likewise.
(TYPEINFO_ALLOCMERGED): Likewise.

16 years ago* src/vm/jit/patcher-common.c (patcher_handler): Fixed compiler
Christian Thalinger [Fri, 11 Jan 2008 12:53:40 +0000 (13:53 +0100)]
* src/vm/jit/patcher-common.c (patcher_handler): Fixed compiler
warning.

16 years ago* doc/Makefile.am (dist_noinst_DATA): Added assertions.tex.
Gregor Kaufmann [Thu, 10 Jan 2008 15:57:40 +0000 (16:57 +0100)]
* doc/Makefile.am (dist_noinst_DATA): Added assertions.tex.
(assertions): New target, creates assertions.dvi.
(CLEANFILES): Added assertions.aux/.dvi/.log/.toc.

* doc/assertions.tex: New file, documentation of the assertion implementation.

16 years ago* src/vm/jit/python.c: (python_global_lock) added, (pythonpass_init) creating python...
Peter Molnar [Thu, 10 Jan 2008 00:41:07 +0000 (01:41 +0100)]
* src/vm/jit/python.c: (python_global_lock) added, (pythonpass_init) creating python lock, (pythonpass_run) locking python lock.
* src/vm/jit/jit.c [ENABLE_PYTHON]: Changed name of hardcoded function.

16 years ago* src/mm/Makefile.am (libmm_la_SOURCES): Added codememory.[ch],
Christian Thalinger [Tue, 8 Jan 2008 14:07:59 +0000 (15:07 +0100)]
* src/mm/Makefile.am (libmm_la_SOURCES): Added codememory.[ch],
dumpmemory.[ch].

* src/mm/codememory.c: New file.
* src/mm/codememory.h: Likewise.
* src/mm/dumpmemory.c: Likewise.
* src/mm/dumpmemory.h: Likewise.

* src/mm/memory.c: Moved code and dump memory related stuff into their
respective files.
* src/mm/memory.h: Likewise.

* src/vm/vm.c (mm/codememory.h): Added.
(vm_create): Call codememory_init instead of memory_init.

16 years ago* m4/dump.m4: Smaller changes.
Christian Thalinger [Tue, 8 Jan 2008 11:59:12 +0000 (12:59 +0100)]
* m4/dump.m4: Smaller changes.

16 years ago* src/vm/jit/jit.c [ENABLE_PYTHON]: Changed name of hardcoded script.
Peter Molnar [Sat, 5 Jan 2008 12:54:36 +0000 (13:54 +0100)]
* src/vm/jit/jit.c [ENABLE_PYTHON]: Changed name of hardcoded script.
* src/vm/jit/python.c: Changed a lot.

16 years ago* src/vm/jit/s390/asmpart.S (asm_vm_call_method): Fixed stack pointer corruption...
Peter Molnar [Sat, 5 Jan 2008 12:15:10 +0000 (12:15 +0000)]
* src/vm/jit/s390/asmpart.S (asm_vm_call_method): Fixed stack pointer corruption in case there are stack arguments and an exception escapes.

16 years ago* src/vm/jit/i386/asmpart.S (asm_handle_exception): Correct offsets for
Stefan Ring [Fri, 4 Jan 2008 07:54:19 +0000 (08:54 +0100)]
* src/vm/jit/i386/asmpart.S (asm_handle_exception): Correct offsets for
16 byte aligned stack.

16 years ago* src/vm/jit/alpha/asmpart.S (asm_vm_call_method): Restore SP also in
Christian Thalinger [Thu, 3 Jan 2008 15:12:45 +0000 (16:12 +0100)]
* src/vm/jit/alpha/asmpart.S (asm_vm_call_method): Restore SP also in
exception case.
* src/vm/jit/mips/asmpart.S: Likewise.

16 years ago* src/vm/jit/x86_64/asmpart.S (asm_vm_call_method): Restore SP also in
Christian Thalinger [Thu, 3 Jan 2008 14:34:37 +0000 (15:34 +0100)]
* src/vm/jit/x86_64/asmpart.S (asm_vm_call_method): Restore SP also in
exception case.

16 years ago* src/native/vm/sun/jvm.c (JVM_FillInStackTrace): Fixed warning.
Christian Thalinger [Thu, 3 Jan 2008 13:39:58 +0000 (14:39 +0100)]
* src/native/vm/sun/jvm.c (JVM_FillInStackTrace): Fixed warning.
(JVM_GetSystemPackage): Likewise.
(JVM_NewMultiArray): Likewise.

16 years ago* changed src/vmcore/system.h [HAVE_SYS_SOCKET_H] (sys/socket.h):
Christian Thalinger [Thu, 3 Jan 2008 13:31:35 +0000 (14:31 +0100)]
* changed src/vmcore/system.h [HAVE_SYS_SOCKET_H] (sys/socket.h):
Added.
[HAVE_SYS_TYPES_H] (sys/types.h): Likewise.
(system_accept): New function.
(system_connect, system_fsync, system_ftruncate, system_gethostname)
(system_getsockname, system_getsockopt, system_listen, system_lseek)
(system_setsockopt, system_shutdown, system_socket): Likewise.

* changed src/native/vm/sun/jvm.c: Use new system_* functions.

16 years ago* src/native/vm/sun/jvm.c: Added return values to all functions.
Christian Thalinger [Thu, 3 Jan 2008 12:59:44 +0000 (13:59 +0100)]
* src/native/vm/sun/jvm.c: Added return values to all functions.

16 years ago* src/native/vm/sun/jvm.c (PRINTJVM): Removed.
Christian Thalinger [Thu, 3 Jan 2008 12:40:26 +0000 (13:40 +0100)]
* src/native/vm/sun/jvm.c (PRINTJVM): Removed.
(native/include/java_lang_Integer.h,
native/include/java_lang_Long.h,
native/include/java_lang_Short.h,
native/include/java_lang_Byte.h,
native/include/java_lang_Character.h,
native/include/java_lang_Boolean.h,
native/include/java_lang_Float.h,
native/include/java_lang_Double.h): Likewise.
(JVM_RawMonitorCreate): Fixed typo.

16 years ago* configure.ac (AC_CHECK_FUNCS): Added read, write.
Christian Thalinger [Thu, 3 Jan 2008 11:11:56 +0000 (12:11 +0100)]
* configure.ac (AC_CHECK_FUNCS): Added read, write.

* src/native/vm/sun/jvm.c (fcntl.h): Removed.
(JVM_Open, JVM_Close, JVM_Read, JVM_Write): Use system_* function.

* src/vmcore/system.h [HAVE_FCNTL_H] (fcntl.h): Added.
(system_close, system_open, system_read, system_write): New function.

16 years ago* src/vmcore/options.c (opt_TraceJVMCallsVerbose): Added.
Christian Thalinger [Thu, 3 Jan 2008 10:54:40 +0000 (11:54 +0100)]
* src/vmcore/options.c (opt_TraceJVMCallsVerbose): Added.
* src/vmcore/options.h: Likewise.

* src/native/vm/sun/jvm.c (TRACEJVMCALLSVERBOSE): New macro.
Use TRACEJVMCALLS in all functions.

16 years ago* configure.ac (AC_CONFIG_FILES): Added src/vm/jit/ir/Makefile.
Christian Thalinger [Sun, 30 Dec 2007 16:43:35 +0000 (17:43 +0100)]
* configure.ac (AC_CONFIG_FILES): Added src/vm/jit/ir/Makefile.

* src/vm/jit/Makefile.am (DIST_SUBDIRS): Added ir.
(SUBDIRS): Likewise.
(libjit_la_LIBADD): Added ir/libir.la.

* src/vm/jit/ir/Makefile.am: New file.
* src/vm/jit/ir/bytecode.c: Likewise.
* src/vm/jit/ir/bytecode.h: Likewise.

* src/vm/jit/jit.c (vm/jit/ir/bytecode.h): Added.
* src/vm/jit/jit.h (vm/jit/ir/bytecode.h): Likewise.
Use new BC_* constants in the ICMD-enum.

* src/vm/jit/parse.c (vm/jit/ir/bytecode.h): Added.
(parse): Use new BC_* constants.

16 years ago* src/vmcore/system.h (system_mprotect): New function.
Christian Thalinger [Sat, 29 Dec 2007 13:50:48 +0000 (14:50 +0100)]
* src/vmcore/system.h (system_mprotect): New function.
[HAVE_SYS_MMAN_H] (sys/mman.h): Added.

* src/mm/memory.c (vmcore/system.h): Added.
(memory_mprotect): Use system_mprotect.

16 years ago* src/vm/jit/powerpc/disass.c: Fixed copyright header.
Christian Thalinger [Fri, 28 Dec 2007 12:50:58 +0000 (13:50 +0100)]
* src/vm/jit/powerpc/disass.c: Fixed copyright header.
(stdint.h): Added.
(vm/types.h): Removed.

16 years ago* configure.ac: Added tests for python.
Peter Molnar [Thu, 20 Dec 2007 15:47:16 +0000 (16:47 +0100)]
* configure.ac: Added tests for python.
* m4/az_python.m4: New file.
* src/cacao/Makefile.am
src/vm/jit/Makefile.am: [ENABLE_PYTHON] Building python module and linking with python libs.
* src/vm/jit/jit.c [ENABLE_PYTHON] Calling some python function.
* src/vm/jit/python.c,
src/vm/jit/python.h: New files.
* src/vm/vm.c [ENABLE_PYTHON] Initializing python module.

16 years ago* src/native/vm/sun/jvm.c (JVM_GetManagement): Implemented (only
Christian Thalinger [Wed, 19 Dec 2007 15:07:50 +0000 (16:07 +0100)]
* src/native/vm/sun/jvm.c (JVM_GetManagement): Implemented (only
returning NULL).

16 years ago* src/native/native.c [ENABLE_LTDL] (native_library_close): New
Christian Thalinger [Wed, 19 Dec 2007 14:57:26 +0000 (15:57 +0100)]
* src/native/native.c [ENABLE_LTDL] (native_library_close): New
function.
* src/native/native.h: Likewise.

* src/native/vm/sun/jvm.c (JVM_UnloadLibrary): Implemented.

16 years ago* m4/debug.m4: Changed wording to make some defaults less confusing (forgot
Stefan Ring [Sun, 16 Dec 2007 10:25:05 +0000 (11:25 +0100)]
* m4/debug.m4: Changed wording to make some defaults less confusing (forgot
those in previous commit).
* m4/dump.m4: Likewise.

16 years ago* src/native/vm/cldc1.1/java_lang_Throwable.c (vm/types.h): Removed.
Christian Thalinger [Mon, 10 Dec 2007 12:50:23 +0000 (13:50 +0100)]
* src/native/vm/cldc1.1/java_lang_Throwable.c (vm/types.h): Removed.
(stdint.h): Added.
(native/llni.h): Added.
(printStackTrace): Use new stacktrace functions.
(fillInStackTrace): Likewise.

16 years ago* configure.ac: Changed wording to make some defaults less confusing.
Stefan Ring [Fri, 7 Dec 2007 15:09:51 +0000 (16:09 +0100)]
* configure.ac: Changed wording to make some defaults less confusing.
* m4/jit.m4: Likewise.
* m4/libjvm.m4: Likewise.
* m4/ltdl.m4: Likewise.
* m4/zlib.m4: Likewise.

16 years ago* src/native/vm/sun/jvm.c (JVM_GetEnclosingMethodInfo): Implemented.
Christian Thalinger [Wed, 5 Dec 2007 12:55:47 +0000 (13:55 +0100)]
* src/native/vm/sun/jvm.c (JVM_GetEnclosingMethodInfo): Implemented.
* src/vmcore/class.c (class_get_enclosingmethod): New function.
* src/vmcore/class.h: Likewise.

16 years ago* src/vm/jit/i386/codegen.c (codegen_emit, codegen_emit_stub_native): Repaired 16...
Stefan Ring [Sat, 24 Nov 2007 14:12:23 +0000 (15:12 +0100)]
* src/vm/jit/i386/codegen.c (codegen_emit, codegen_emit_stub_native): Repaired 16 byte stack alignment.

* src/vm/jit/i386/emit.c (emit_verbosecall_enter): Likewise.

16 years ago* doc/handbook/s390.tex: New file, docs for the s390 port.
Peter Molnar [Wed, 21 Nov 2007 10:32:30 +0000 (11:32 +0100)]
* doc/handbook/s390.tex: New file, docs for the s390 port.
* doc/handbook/cacao.tex,
doc/handbook/java.bib: Added support for s390.tex.

16 years ago* src/vm/jit/i386/darwin/md-os.c: Synched with linux version. Compiles but
Stefan Ring [Tue, 13 Nov 2007 01:08:16 +0000 (02:08 +0100)]
* src/vm/jit/i386/darwin/md-os.c: Synched with linux version. Compiles but
doesn't work yet.

16 years ago* src/vm/jit/codegen-common.c (codegen_generate_stub_builtin): Unflag
Christian Thalinger [Thu, 8 Nov 2007 19:34:04 +0000 (20:34 +0100)]
* src/vm/jit/codegen-common.c (codegen_generate_stub_builtin): Unflag
leafmethod.
(codegen_generate_stub_native): Likewise.

* src/vm/jit/powerpc64/codegen.c (codegen_emit_stub_native): Added
leafmethod sanity check.

* src/vm/jit/stacktrace.c (stacktrace_stackframeinfo_add): Use
code_is_leafmethod.

16 years ago* src/vm/jit/m68k/arch.h: Removed commented HAS_4BYTE_STACKSLOT.
Christian Thalinger [Thu, 8 Nov 2007 14:14:44 +0000 (15:14 +0100)]
* src/vm/jit/m68k/arch.h: Removed commented HAS_4BYTE_STACKSLOT.
* src/vm/jit/powerpc64/arch.h: Likewise.
* src/vm/jit/s390/arch.h: Likewise.

16 years ago* src/native/jni.c (TRACEJNICALLS): Don't use a variadic macro but
Christian Thalinger [Thu, 8 Nov 2007 12:49:45 +0000 (13:49 +0100)]
* src/native/jni.c (TRACEJNICALLS): Don't use a variadic macro but
pass the text to log in parentheses.  This also fixes a bug when only
one argument is passed.

16 years ago* src/vm/jit/cfg.c: Fixed copyright header.
Christian Thalinger [Thu, 8 Nov 2007 12:39:49 +0000 (13:39 +0100)]
* src/vm/jit/cfg.c: Fixed copyright header.
(vm/types.h): Removed.
(vm/global.h): Added.
* src/vm/jit/cfg.h: Likewise.

16 years ago* src/native/jni.c (_Jv_JNI_FindClass): Renamed
Christian Thalinger [Wed, 7 Nov 2007 12:06:46 +0000 (13:06 +0100)]
* src/native/jni.c (_Jv_JNI_FindClass): Renamed
stacktrace_getCurrentClass to stacktrace_get_current_class.

* src/native/vm/gnu/java_lang_VMThrowable.c (vm/jit/code.h): Added.
(vm/jit/linenumbertable.h): Likewise.
(fillInStackTrace): Renamed stacktrace_fillInStackTrace to
stacktrace_get.
(getStackTrace): Rewritten for new stacktrace code.

* src/native/vm/gnu/java_security_VMAccessController.c (vm/types.h):
Removed.
(stdint.h): Added.
(vm/builtin.h): Removed.
(vm/global.h): Added.
(vmcore/class.h): Removed.
(vmcore/options.h): Likewise.
(vmcore/utf8.h): Added.
(getStack): Renamed stacktrace_getStack to stacktrace_get_stack.

* src/native/vm/sun/jvm.c (JVM_FillInStackTrace): Renamed
stacktrace_fillInStackTrace to stacktrace_get.
(JVM_GetStackTraceDepth): Rewritten for new stacktrace code and added
critical section.
(JVM_GetStackTraceElement): Rewritten for new stacktrace code.
(JVM_LatestUserDefinedLoader): Implemented.

* src/threads/threads-common.c (threads_thread_print_stacktrace):
Rewritten for new stacktrace code and added critical section.

* src/vm/jit/stacktrace.c (stacktrace_entry_add): Removed.
(stacktrace_method_add): Likewise.
(stacktrace_stackframeinfo_fill) [!NDEBUG]: Added debug output.
(stacktrace_stackframeinfo_next): Likewise.
(stacktrace_stackframeinfo_end_check): Likewise.
(stacktrace_create): Removed.
(stacktrace_fillInStackTrace): Removed.
(stacktrace_depth): New function.
(stacktrace_get): Likewise.
(stacktrace_first_nonnull_classloader): Likewise.
(stacktrace_getClassContext): Rewritten.
(stacktrace_getCurrentClass): Renamed to stacktrace_get_current_class
and rewritten.
(stacktrace_getStack): Renamed to stacktrace_get_stack and rewritten.
(stacktrace_print_trace_from_buffer): Renamed to stacktrace_print and
rewritten.
(stacktrace_print_exception): Rewritten.

* src/vm/jit/stacktrace.h (stacktracebuffer): Removed.
(stacktrace_entry): Likewise.
(stacktrace_t): New structure.
(stacktrace_entry_t): Likewise.

16 years ago* src/vm/jit/i386/linux/md-os.c (md_replace_executionstate_read): Implemented.
Michael Starzinger [Wed, 7 Nov 2007 11:45:56 +0000 (12:45 +0100)]
* src/vm/jit/i386/linux/md-os.c (md_replace_executionstate_read): Implemented.
(md_replace_executionstate_write): Likewise.

16 years ago* src/native/vm/sun/jvm.c (JVM_FillInStackTrace): Use LLNI macro.
Christian Thalinger [Tue, 6 Nov 2007 12:34:01 +0000 (13:34 +0100)]
* src/native/vm/sun/jvm.c (JVM_FillInStackTrace): Use LLNI macro.
(JVM_GetStackTraceDepth): Likewise and added a comment about missing
critical sections.
(JVM_GetStackTraceElement): Likewise.

16 years ago* src/vm/jit/md.h: Removed.
Christian Thalinger [Mon, 5 Nov 2007 12:58:22 +0000 (13:58 +0100)]
* src/vm/jit/md.h: Removed.
* src/vm/jit/Makefile.am (noinst_HEADERS): Removed md.h.

* src/vm/jit/asmpart.h (md_asm_codegen_get_pv_from_pc): Added
temporarily.

* src/vm/jit/codegen-common.c (md.h): Added.
(vm/jit/md.h): Removed.
(md_asm_codegen_get_pv_from_pc): Added temporarily.

* src/vm/jit/codegen-common.h (md_codegen_get_pv_from_pc): Removed.

* src/vm/jit/jit.c (stdint.h): Added.
(md.h): Likewise.

* src/vm/jit/patcher-common.c (md.h): Added.
(vm/jit/md.h): Removed.
* src/vm/jit/replace.c: Likewise.

* src/vm/jit/stacktrace.c (md.h): Added.
* src/vm/jit/stacktrace.h (md_stacktrace_get_returnaddress): Removed.

* src/vm/jit/alpha/asmpart.S,
src/vm/jit/alpha/linux/md-os.c,
src/vm/jit/alpha/md.c,
src/vm/jit/alpha/md.h,
src/vm/jit/alpha/patcher.c,
src/vm/jit/arm/asmpart.S,
src/vm/jit/arm/codegen.c,
src/vm/jit/arm/md.c,
src/vm/jit/arm/md.h,
src/vm/jit/arm/patcher.c,
src/vm/jit/i386/linux/md-os.c,
src/vm/jit/i386/md.c,
src/vm/jit/i386/md.h,
src/vm/jit/m68k/asmpart.S,
src/vm/jit/m68k/codegen.c,
src/vm/jit/m68k/md.c,
src/vm/jit/m68k/md.h,
src/vm/jit/m68k/patcher.c,
src/vm/jit/mips/asmpart.S,
src/vm/jit/mips/codegen.c,
src/vm/jit/mips/linux/md-os.c,
src/vm/jit/mips/md.c,
src/vm/jit/mips/md.h,
src/vm/jit/mips/patcher.c,
src/vm/jit/powerpc/asmpart.S,
src/vm/jit/powerpc/codegen.c,
src/vm/jit/powerpc/darwin/md-asm.h,
src/vm/jit/powerpc/linux/md-os.c,
src/vm/jit/powerpc/md.c,
src/vm/jit/powerpc/md.h,
src/vm/jit/powerpc/patcher.c,
src/vm/jit/powerpc64/asmpart.S,
src/vm/jit/powerpc64/codegen.c,
src/vm/jit/powerpc64/linux/md-os.c,
src/vm/jit/powerpc64/md.c,
src/vm/jit/powerpc64/md.h,
src/vm/jit/powerpc64/patcher.c,
src/vm/jit/s390/md.c,
src/vm/jit/s390/md.h,
src/vm/jit/sparc64/md.c,
src/vm/jit/sparc64/md.h,
src/vm/jit/sparc64/patcher.c,
src/vm/jit/x86_64/linux/md-os.c,
src/vm/jit/x86_64/md.c,
src/vm/jit/x86_64/md.h
(md_stacktrace_get_returnaddress): Made inline function.
(md_codegen_get_pv_from_pc): Likewise.
(md_cacheflush): Likewise.
(md_icacheflush): Likewise.
(md_dcacheflush): Likewise.

16 years ago* src/vm/jit/s390/patcher.c: Fixed header.
Christian Thalinger [Mon, 5 Nov 2007 12:06:04 +0000 (13:06 +0100)]
* src/vm/jit/s390/patcher.c: Fixed header.

16 years ago* src/vm/jit/linenumbertable.c (linenumbertable_create, linenumbertable_linenumber_fo...
Peter Molnar [Sat, 27 Oct 2007 00:55:32 +0000 (00:55 +0000)]
* src/vm/jit/linenumbertable.c (linenumbertable_create, linenumbertable_linenumber_for_pc_intern) [__S390__]: Use 31 bits of addresses as lookup keys.
* src/vm/jit/s390/codegen.c (codegen_emit_stub_native): In case of exception, use branch (not following) instruction as XPC.
* src/vm/jit/s390/md.c (md_signal_handler_sigill): Fixes to scenario where JIT compiler fails.

16 years ago* src/vm/jit/code.c (vm/jit/methodheader.h): Removed.
Christian Thalinger [Fri, 26 Oct 2007 23:23:52 +0000 (01:23 +0200)]
* src/vm/jit/code.c (vm/jit/methodheader.h): Removed.
(code_get_codeinfo_for_pv): Likewise.

* src/vm/jit/code.h (assert.h): Added.
(vm/jit/methodheader.h): Likewise.
(code_get_codeinfo_for_pv): New function.

16 years ago* src/vm/jit/codegen-common.c (vm/jit/code.h): Added.
Christian Thalinger [Fri, 26 Oct 2007 22:11:09 +0000 (00:11 +0200)]
* src/vm/jit/codegen-common.c (vm/jit/code.h): Added.
(codegen_finish_native_call): Use code_get_codeinfo_for_pv.

16 years ago* src/vm/vm.c (vm_create): Removed codegen_init call, jit_init does
Christian Thalinger [Fri, 26 Oct 2007 21:05:07 +0000 (23:05 +0200)]
* src/vm/vm.c (vm_create): Removed codegen_init call, jit_init does
that.

16 years ago* src/vm/jit/arm/codegen.c (codegen_emit_stub_native): Removed
Christian Thalinger [Fri, 26 Oct 2007 19:55:50 +0000 (21:55 +0200)]
* src/vm/jit/arm/codegen.c (codegen_emit_stub_native): Removed
emit_patcher_traps call.

16 years ago* src/vm/jit/s390/codegen.c (codegen_emit_stub_native): Removed
Christian Thalinger [Fri, 26 Oct 2007 19:42:21 +0000 (21:42 +0200)]
* src/vm/jit/s390/codegen.c (codegen_emit_stub_native): Removed
patcher stuff.

16 years ago* src/vm/jit/i386/codegen.c (codegen_emit_stub_native): Removed
Christian Thalinger [Fri, 26 Oct 2007 19:31:13 +0000 (21:31 +0200)]
* src/vm/jit/i386/codegen.c (codegen_emit_stub_native): Removed
patcher stuff.

16 years ago* src/vm/jit/alpha/codegen.c (codegen_emit_stub_native): Removed
Christian Thalinger [Fri, 26 Oct 2007 19:25:42 +0000 (21:25 +0200)]
* src/vm/jit/alpha/codegen.c (codegen_emit_stub_native): Removed
patcher stuff.

16 years ago* src/vm/jit/mips/linux/md-os.c (vm/jit/md.h): Removed (accidentally
Christian Thalinger [Thu, 25 Oct 2007 15:33:40 +0000 (17:33 +0200)]
* src/vm/jit/mips/linux/md-os.c (vm/jit/md.h): Removed (accidentally
commited).
(md_signal_handler_sigsegv): Removed some code.

16 years ago* src/vm/jit/mips/arch.h (JIT_COMPILER_VIA_SIGNAL): Temporarily added.
Christian Thalinger [Thu, 25 Oct 2007 15:28:17 +0000 (17:28 +0200)]
* src/vm/jit/mips/arch.h (JIT_COMPILER_VIA_SIGNAL): Temporarily added.

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

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

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

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

16 years ago* src/vm/jit/alpha/md.c (md_init): Smaller changes.
Christian Thalinger [Thu, 25 Oct 2007 13:06:30 +0000 (15:06 +0200)]
* src/vm/jit/alpha/md.c (md_init): Smaller changes.
(md_codegen_get_pv_from_pc): Rewritten.

16 years ago* src/vm/jit/jit.c (vm/jit/md.h): Removed.
Christian Thalinger [Thu, 25 Oct 2007 11:15:03 +0000 (13:15 +0200)]
* src/vm/jit/jit.c (vm/jit/md.h): Removed.
(jit_init): Call md_init.

* src/vm/jit/jit.h [ENABLE_JIT] (md_init): Added.
[ENABLE_INTRP] (intrp_md_init): Likewise.

* src/vm/jit/md.h [ENABLE_JIT] (md_init): Removed.
[ENABLE_INTRP] (intrp_md_init): Likewise.

* src/vm/vm.c (vm/jit/md.h): Removed.
(vm_create): Don't call md_init.

16 years ago* src/vm/primitive.c (primitive_box): Fixed -O2 wanrings.
Christian Thalinger [Thu, 25 Oct 2007 11:12:30 +0000 (13:12 +0200)]
* src/vm/primitive.c (primitive_box): Fixed -O2 wanrings.
* src/vm/signal.c (signal_handle): Likewise.

16 years ago* src/native/include/Makefile.am (COMMON_HEADER_FILES): Removed
Christian Thalinger [Thu, 25 Oct 2007 11:02:17 +0000 (13:02 +0200)]
* src/native/include/Makefile.am (COMMON_HEADER_FILES): Removed
java_util_HashMap and java_util_Map.
(JAVASE_HEADER_FILES): Added java_util_HashMap and java_util_Map.

16 years ago* src/vm/jit/s390/arch.h (JIT_COMPILER_VIA_SIGNAL): defined.
Peter Molnar [Wed, 24 Oct 2007 21:30:39 +0000 (21:30 +0000)]
* src/vm/jit/s390/arch.h (JIT_COMPILER_VIA_SIGNAL): defined.
* src/vm/jit/s390/asmpart.S (asm_call_jit_compiler): removed.
* src/vm/jit/s390/codegen.c (codegen_emit_stub_compiler): removed.
* src/vm/jit/s390/emit.c (emit_trap_compiler): new function.
* src/vm/jit/s390/md.c (md_signal_handler_sigill): adapted for compiler call via signal.

16 years ago* src/vm/jit/stacktrace.c (stacktrace_print_trace): Renamed to
Christian Thalinger [Wed, 24 Oct 2007 15:27:08 +0000 (17:27 +0200)]
* src/vm/jit/stacktrace.c (stacktrace_print_trace): Renamed to
stacktrace_print_exception.
* src/vm/jit/stacktrace.h: Likewise.

* src/vm/exceptions.c (exceptions_handle_exception): Likewise.

16 years ago* src/native/vm/gnu/java_lang_VMThrowable.c (getStackTrace): Removed
Christian Thalinger [Wed, 24 Oct 2007 13:04:46 +0000 (15:04 +0200)]
* src/native/vm/gnu/java_lang_VMThrowable.c (getStackTrace): Removed
unused resolving of the init method.

16 years ago* src/native/vm/sun/jvm.c (JVM_FillInStackTrace): Use TRACEJVMCALLS.
Christian Thalinger [Wed, 24 Oct 2007 11:48:44 +0000 (13:48 +0200)]
* src/native/vm/sun/jvm.c (JVM_FillInStackTrace): Use TRACEJVMCALLS.
(JVM_GetStackTraceElement): Likewise.
(JVM_IHashCode): Likewise.

16 years ago* src/vm/jit/stacktrace.c (stacktrace_stackframeinfo_fill): New
Christian Thalinger [Wed, 24 Oct 2007 11:06:43 +0000 (13:06 +0200)]
* src/vm/jit/stacktrace.c (stacktrace_stackframeinfo_fill): New
function.
(stacktrace_stack_walk): Renamed to stacktrace_stackframeinfo_next.
(stacktrace_stackframeinfo_end_check): New function.
(stacktrace_create): Use new stackframeinfo functions.

16 years ago* src/native/include/Makefile.am [ENABLE_ANNOTATIONS]
Christian Thalinger [Wed, 24 Oct 2007 09:45:12 +0000 (11:45 +0200)]
* src/native/include/Makefile.am [ENABLE_ANNOTATIONS]
(JAVASE_HEADER_FILES): Removed java_util_Map.h.

16 years ago* src/vmcore/linker.c (linker_preinit): Define
Christian Thalinger [Tue, 23 Oct 2007 15:42:27 +0000 (17:42 +0200)]
* src/vmcore/linker.c (linker_preinit): Define
LINKER_ALIGNMENT_LONG_DOUBLE.
(link_class_intern): Added a compile time check for
LINKER_ALIGNMENT_LONG_DOUBLE.

16 years ago* src/native/vm/java_lang_Thread.c (interrupt): Removed.
Christian Thalinger [Tue, 23 Oct 2007 15:27:00 +0000 (17:27 +0200)]
* src/native/vm/java_lang_Thread.c (interrupt): Removed.
* src/native/vm/java_lang_Thread.h: Likewise.

* src/native/vm/gnu/java_lang_VMThread.c (interrupt): Use
threads_thread_interrupt.

16 years ago* src/vm/jit/argument.c (argument_vmarray_from_jvalue): Fixed warning
Christian Thalinger [Tue, 23 Oct 2007 11:43:44 +0000 (13:43 +0200)]
* src/vm/jit/argument.c (argument_vmarray_from_jvalue): Fixed warning
when compiling with Sun's jni.h.

16 years ago* configure.ac (AC_CHECK_ENABLE_ASSERTION): Added
Gregor Kaufmann [Mon, 22 Oct 2007 19:44:46 +0000 (21:44 +0200)]
* configure.ac (AC_CHECK_ENABLE_ASSERTION): Added

* src/lib/gnu/java/lang/VMClassLoader.java
(packageAssertionStatus0): New function
(classAssertionStatus0): Likewise
(defaultUserAssertionStatus): Likewise
(defaultAssertionStatus): Implemented
(packageAssertionStatus): Likewise
(classAssertionStatus): Likewise

* src/native/include/Makefile.am (COMMON_HEADER_FILES):
Added java_util_HashMap.h, java_util_Map.h

* /src/native/jni.h
(_Jv_JavaVM->Java_java_lang_VMClassLoader_defaultAssertionStatus): Removed

* src/native/vm/gnu/java_lang_VMClassLoader.c
(native/include/java_util_HashMap.h): Added
(native/include/java_util_Map.h): Likewise
(native/include/java_lang_Boolean.h): Likewise
(toolbox/list.h): Likewise
(vm/assertion.h): Likewise
(methods): Added information for defaultUserAssertionStatus,
packageAssertionStatus0, classAssertionStatus0
(Java_java_lang_VMClassLoader_defaultAssertionStatus): Implemented
(Java_java_lang_VMClassLoader_defaultUserAssertionStatus): New function
(Java_java_lang_VMClassLoader_packageAssertionStatus0): Likewise
(Java_java_lang_VMClassLoader_classAssertionStatus0): Likewise

* src/native/vm/sun/jvm.c (toolbox/list.h): Added
(vm/assertion.h): Likewise
(JVM_DesiredAssertionStatus): Implemented
(JVM_AssertionStatusDirectives): Now returns a usable
java.lang.AssertionStatusDirectives object

* src/vm/Makefile.am (libvm_la_SOURCES): Added assertion.c, assertion.h

* src/vm/vm.c (vm/assertion.h): Added
(OPT_EA, OPT_DA, OPT_ESA, OPT_DSA): Now handled by assertion module

* src/vmcore/class.c (class_java_util_HashMap): Added

* src/vmcore/class.h (class_java_util_HashMap): Added

* src/vmcore/linker.c (linker_init): Added linking of class_java_util_HashMap

* src/vmcore/loader.c (loader_init): Added loading of class_java_util_HashMap

* m4/assertion.m4: New file

* src/vm/assertion.c: New file

* src/vm/assertion.h: New file

16 years ago* src/vm/exceptions.c (unistd.h): Removed.
Christian Thalinger [Mon, 22 Oct 2007 19:13:57 +0000 (21:13 +0200)]
* src/vm/exceptions.c (unistd.h): Removed.

16 years ago* src/vm/exceptions.c (vmcore/system.h): Added.
Christian Thalinger [Mon, 22 Oct 2007 19:10:09 +0000 (21:10 +0200)]
* src/vm/exceptions.c (vmcore/system.h): Added.
(exceptions_init): Use system_getpagesize and system_mmap_anonymous.

16 years ago* src/vm/exceptions.c (exceptions_handle_exception): Changed signature
Christian Thalinger [Mon, 22 Oct 2007 18:50:07 +0000 (20:50 +0200)]
* src/vm/exceptions.c (exceptions_handle_exception): Changed signature
to use void*.

16 years ago* src/vm/jit/show.c (stdint.h): Added.
Christian Thalinger [Mon, 22 Oct 2007 18:40:44 +0000 (20:40 +0200)]
* src/vm/jit/show.c (stdint.h): Added.
(SHOW_INT_CONST): Fixed compiler warnings.

16 years ago* src/vm/jit/show.c (show_basicblock): Pass correct arguments to
Christian Thalinger [Mon, 22 Oct 2007 18:36:40 +0000 (20:36 +0200)]
* src/vm/jit/show.c (show_basicblock): Pass correct arguments to
linenumbertable_linenumber_for_pc.

16 years ago* changed src/vm/jit/m68k/emit.c (builtin_verbosecall_exit): Use
Roland Lezuo [Mon, 22 Oct 2007 18:27:28 +0000 (20:27 +0200)]
* changed src/vm/jit/m68k/emit.c (builtin_verbosecall_exit): Use
trace_java_call_exit.

* changed src/vm/jit/m68k/linux/md-os.c (emit_trap): Fixed a bug.

* changed src/vm/jit/m68k/patcher.c (md_signal_handler_sigill): Bug.
(PATCH_BACK_ORIGINAL_MCODE): Bug.

16 years ago* changed src/vm/jit/m68k/asmpart.S: Removed unused method
Roland Lezuo [Mon, 22 Oct 2007 16:41:26 +0000 (18:41 +0200)]
* changed src/vm/jit/m68k/asmpart.S: Removed unused method
header entries.

* changed src/vm/jit/m68k/codegen.c (codegen_emit): New
linenumbertables code.

16 years ago* changed src/vm/jit/m68k/arch.h (JIT_COMPILER_VIA_SIGNAL): Added.
Roland Lezuo [Mon, 22 Oct 2007 16:08:41 +0000 (18:08 +0200)]
* changed src/vm/jit/m68k/arch.h (JIT_COMPILER_VIA_SIGNAL): Added.

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

* changed src/vm/jit/m68k/codegen.c (codegen_emit): All
codegen_addpatchref replaced by patcher_add_patch_ref.

(codegen_emit_stub_native): Use 8 byte stack slots.

* changed src/vm/jit/m68k/emit.c (emit_verbosecall_enter): New tracer.
(emit_trap_compiler): Added.
(emit_trap): Likewise.

* changed src/vm/jit/m68k/linux/md-abi.c (md_param_alloc): Use 8 byte
stackslots.

* changed src/vm/jit/m68k/linux/md-os.c (md_init_linux): Removed.
(md_signal_handler_sigsegv): Support for patchers and compiler
via signal added.

* changed src/vm/jit/m68k/linux/md-os.h (md_init_linux): Removed.

* changed src/vm/jit/m68k/md.c (md_init): Call to md_init_linux
removed.

* changed src/vm/signal.c (signal_init): Register sigill for M68K.

* changed src/vm/signallocal.h (md_signal_handler_sigill): Enabled
for M68K.

* changed src/vmcore/linker.c (link_class_intern): Enable long 4
byte alignment.

16 years ago* src/threads/none/threads.h (stackframeinfo): Removed.
Christian Thalinger [Mon, 22 Oct 2007 15:55:59 +0000 (17:55 +0200)]
* src/threads/none/threads.h (stackframeinfo): Removed.
(_no_threads_stackframeinfo): Likewise.

16 years ago* src/vm/jit/show.c (show_basicblock): Forgot to use
Christian Thalinger [Mon, 22 Oct 2007 15:52:44 +0000 (17:52 +0200)]
* src/vm/jit/show.c (show_basicblock): Forgot to use
linenumbertable_linenumber_for_pc.

16 years ago* src/vm/jit/jit.c (jit_jitdata_new) [!ENABLE_THREADS]: Fixed
Christian Thalinger [Mon, 22 Oct 2007 15:52:11 +0000 (17:52 +0200)]
* src/vm/jit/jit.c (jit_jitdata_new) [!ENABLE_THREADS]: Fixed
compilation.

16 years ago* src/vm/jit/trace.c (trace_java_call_enter): Removed unused variable.
Christian Thalinger [Mon, 22 Oct 2007 15:51:09 +0000 (17:51 +0200)]
* src/vm/jit/trace.c (trace_java_call_enter): Removed unused variable.

16 years ago* src/vmcore/statistics.c (count_linenumbertable): New variable.
Christian Thalinger [Mon, 22 Oct 2007 15:32:39 +0000 (17:32 +0200)]
* src/vmcore/statistics.c (count_linenumbertable): New variable.
(size_linenumbertable): Likewise.
(statistics_print_memory_usage): Adapted.
* src/vmcore/statistics.h: Likewise.

* src/vm/jit/linenumbertable.c [ENABLE_STATISTICS] (vmcore/options.h):
Added
[ENABLE_STATISTICS] (vmcore/statistics.h): Likewise.
(linenumbertable_create) [ENABLE_STATISTICS]: Added statistics
calculation.

16 years ago* src/vm/jit/linenumbertable.c: New file.
Christian Thalinger [Mon, 22 Oct 2007 13:57:35 +0000 (15:57 +0200)]
* src/vm/jit/linenumbertable.c: New file.
* src/vm/jit/linenumbertable.h: Likewise.
* src/vm/jit/Makefile.am (libjit_la_SOURCES): Added
linenumbertable.[ch].

* src/vm/jit/code.h (vm/jit/linenumbertable.h): Added.
(codeinfo): Added linenumbertable.

* src/vm/jit/codegen-common.c (vm/jit/linenumbertable.h): Added.
(codegen_setup): Create linenumbers list.
(codegen_reset): Likewise.
(codegen_finish): Removed old linenumber-resolving code and call
linenumbertable_create instead.

* src/vm/jit/codegen-common.h (codegendata): Removed
linenumberreferences, linenumbertablesizepos, linenumbertablestartpos,
linenumbertab, added linenumbers.

* src/vm/jit/dseg.c (dseg_addlinenumbertablesize): Removed.
(dseg_addlinenumber): Likewise.
(dseg_addlinenumber_inline_start): Likewise.
(dseg_addlinenumber_inline_end): Likewise.
(dseg_createlinenumbertable): Likewise.
(dseg_get_linenumber_from_pc_intern): Likewise.
(dseg_get_linenumber_from_pc): Likewise.

* src/vm/jit/dseg.h: Likewise
(linenumbertable_entry): Removed.

* src/vm/jit/methodheader.h (LineNumberTableSize)
(LineNumberTableStart): Removed.

* src/vm/jit/stacktrace.c (vm/jit/linenumbertable.h): Added.
(stacktrace_method_add): Renamed dseg_get_linenumber_from_pc to
linenumbertable_linenumber_for_pc.

* src/vm/jit/alpha/asmpart.S,
src/vm/jit/arm/asmpart.S,
src/vm/jit/i386/asmpart.S,
src/vm/jit/m68k/asmpart.S,
src/vm/jit/mips/asmpart.S,
src/vm/jit/powerpc/asmpart.S,
src/vm/jit/powerpc64/asmpart.S,
src/vm/jit/s390/asmpart.S,
src/vm/jit/sparc64/asmpart.S,
src/vm/jit/x86_64/asmpart.S (asm_vm_call_method): Removed obsolete
method-header entries.

* src/vm/jit/alpha/codegen.c,
src/vm/jit/arm/codegen.c,
src/vm/jit/i386/codegen.c,
src/vm/jit/m68k/codegen.c,
src/vm/jit/mips/codegen.c,
src/vm/jit/powerpc/codegen.c,
src/vm/jit/powerpc64/codegen.c,
src/vm/jit/s390/codegen.c,
src/vm/jit/sparc64/codegen.c,
src/vm/jit/x86_64/codegen.c (vm/jit/linenumbertable.h): Added.
(codegen_emit): Removed dseg_addlinenumbertablesize call, use new
linenumbertable functions, removed dseg_createlinenumbertable.
(codegen_emit_stub_native): Removed obsolete method-header entries.

16 years ago* src/vm/jit/arm/codegen.c (codegen_emit): Moved ICMD_POP and
Christian Thalinger [Mon, 22 Oct 2007 13:19:41 +0000 (15:19 +0200)]
* src/vm/jit/arm/codegen.c (codegen_emit): Moved ICMD_POP and
ICMD_POP2 to ICMD_NOP case.

16 years ago* src/vm/array.c: Changed copyright.
Christian Thalinger [Mon, 22 Oct 2007 11:19:55 +0000 (13:19 +0200)]
* src/vm/array.c: Changed copyright.
* src/vm/array.h: Likewise.

16 years ago* src/vm/jit/s390/codegen.c,
Peter Molnar [Sat, 20 Oct 2007 19:19:06 +0000 (19:19 +0000)]
* src/vm/jit/s390/codegen.c,
src/vm/jit/s390/disass.c,
src/vm/jit/s390/md.c: Fixed compile warnings.

16 years ago* src/vm/jit/x86_64/md-abi.c (abi_registers_integer_saved): Fixed severe typo.
Michael Starzinger [Thu, 18 Oct 2007 23:57:46 +0000 (01:57 +0200)]
* src/vm/jit/x86_64/md-abi.c (abi_registers_integer_saved): Fixed severe typo.

16 years ago* src/vm/properties.c (properties_set)
Christian Thalinger [Thu, 18 Oct 2007 22:03:33 +0000 (00:03 +0200)]
* src/vm/properties.c (properties_set)
[ENABLE_JAVASE && WITH_CLASSPATH_GNU]: Fixed endorseddirs length.

16 years ago* configure.ac (AC_CHECK_HEADERS): Added assert.h, errno.h.
Christian Thalinger [Thu, 18 Oct 2007 21:53:00 +0000 (23:53 +0200)]
* configure.ac (AC_CHECK_HEADERS): Added assert.h, errno.h.
(AC_CHECK_FUNCS): Added memcpy, memset, realloc.

* src/vmcore/system.c (errno.h): Added.
(stdint.h): Likewise.
(string.h): Likewise.
(unistd.h): Likewise.
(sys/mman.h): Likewise.
(system_mmap_anonymous): New function.

* src/vmcore/system.h (stdint.h): Added.
(stdlib.h): Likewise.
(string.h): Likewise.
(unistd.h): Likewise.
(system_calloc): New function.
(system_free): Likewise.
(system_getpagesize): Likewise.
(system_malloc): Likewise.
(system_memcpy): Likewise.
(system_memset): Likewise.
(system_realloc): Likewise.
(system_mmap_anonymous): Likewise.

16 years ago* src/threads/threads-common.c (threads_dump): Ignore NEW threads while dumping.
Michael Starzinger [Thu, 18 Oct 2007 14:59:13 +0000 (16:59 +0200)]
* src/threads/threads-common.c (threads_dump): Ignore NEW threads while dumping.

16 years ago* src/vm/system.c: Removed.
Christian Thalinger [Thu, 18 Oct 2007 13:49:34 +0000 (15:49 +0200)]
* src/vm/system.c: Removed.
* src/vm/system.h: Likewise.
* src/vm/Makefile.am (libvm_la_SOURCES): Removed system.[ch].

* src/vmcore/system.c: Added.
* src/vmcore/system.h: Likewise.
* src/vmcore/Makefile.am (libvmcore_la_SOURCES): Added system.[ch].

* src/native/vm/gnu/java_lang_VMRuntime.c (vm/system.h): Renamed to
vmcore/system.h.
* src/native/vm/sun/jvm.c: Likewise.

--HG--
rename : src/vm/system.c => src/vmcore/system.c
rename : src/vm/system.h => src/vmcore/system.h

16 years ago* src/vm/exceptions.c (exceptions_handle_exception): Use LLNI macro for
Michael Starzinger [Thu, 18 Oct 2007 13:41:58 +0000 (15:41 +0200)]
* src/vm/exceptions.c (exceptions_handle_exception): Use LLNI macro for
unlocking synchronized methods during stack unwinding.

16 years ago* src/vm/builtin.h (builtin_retrieve_exception): Added prototype.
Michael Starzinger [Thu, 18 Oct 2007 13:39:22 +0000 (15:39 +0200)]
* src/vm/builtin.h (builtin_retrieve_exception): Added prototype.
* src/vm/builtin.c (builtin_retrieve_exception): Implemented.

* src/vm/jit/alpha/linux/md-os.c (md_signal_handler_sigsegv): Use above builtin.
* src/vm/jit/i386/linux/md-os.c,
* src/vm/jit/powerpc/darwin/md-os.c,
* src/vm/jit/powerpc/linux/md-os.c,
* src/vm/jit/powerpc64/linux/md-os.c,
* src/vm/jit/x86_64/linux/md-os.c: Likewise.

16 years ago* Merged with 5c4efabb7787.
Christian Thalinger [Thu, 18 Oct 2007 12:13:55 +0000 (14:13 +0200)]
* Merged with 5c4efabb7787.

16 years ago* src/vm/jit/replace.c (replace_create_replacement_points): Removed bogus flag
Michael Starzinger [Thu, 18 Oct 2007 11:54:20 +0000 (13:54 +0200)]
* src/vm/jit/replace.c (replace_create_replacement_points): Removed bogus flag
tampering of codeinfo.

16 years ago* changed src/vm/jit/m68k/asmpart.S (asm_patcher_wrapper): Removed.
Roland Lezuo [Wed, 17 Oct 2007 18:11:11 +0000 (20:11 +0200)]
* changed src/vm/jit/m68k/asmpart.S (asm_patcher_wrapper): Removed.
* changed src/vm/jit/m68k/codegen.c (patcher.h): Include removed.
(emit_codegen): Replaced emit_patcher_stubs by emit_patcher_trap.
(codegen_emit_stub_native): Likewise.

* changed src/vm/jit/m68k/emit.c (emit_patcher_stubs): Removed.

* changed src/vm/jit/m68k/patcher.c
(patcher_resolve_classref_to_classinfo): Ported to new patcher signature.

* changed src/vm/jit/patcher-common.h: Enabled new patchers for __M68K__.

* changed src/vmcore/linker.c (linker_preinit): __M68K__ has 4 byte
long alignment.

16 years ago* src/vm/properties.c (properties_set)
Christian Thalinger [Wed, 17 Oct 2007 13:58:45 +0000 (15:58 +0200)]
* src/vm/properties.c (properties_set)
[ENABLE_JAVASE && WITH_CLASSPATH_SUN]: Set java.ext.dirs and
java.ext.endorsed properly.

16 years ago* src/vm/jit/dseg.h (dseg_exception_entry): Removed.
Christian Thalinger [Sun, 14 Oct 2007 17:57:13 +0000 (19:57 +0200)]
* src/vm/jit/dseg.h (dseg_exception_entry): Removed.

16 years ago* src/vm/jit/intrp/codegen.c (intrp_codegen): Ported methodheader
Christian Thalinger [Sun, 14 Oct 2007 13:37:29 +0000 (15:37 +0200)]
* src/vm/jit/intrp/codegen.c (intrp_codegen): Ported methodheader
changes (IsSync, exception table).

16 years ago* src/vm/jit/stacktrace.c (stacktrace_stack_walk): Changed return type
Christian Thalinger [Sun, 14 Oct 2007 12:51:05 +0000 (14:51 +0200)]
* src/vm/jit/stacktrace.c (stacktrace_stack_walk): Changed return type
to bool, fill the temporary stackframe info with the values from the
stackframe info chain, if available.
(stacktrace_create): Don't include fillInStackTrace and init methods
in the trace (as HotSpot does).

* src/native/vm/gnu/java_lang_VMThrowable.c (getStackTrace): Removed
fillInStackTrace and init checks.

* src/native/vm/sun/jvm.c (JVM_GetStackTraceDepth): Use TRACEJVMCALLS,
check for NPE, check if backtrace is NULL.