michi [Thu, 5 Apr 2007 00:14:42 +0000 (00:14 +0000)]
* src/mm/cacao-gc/rootset.h [!ENABLE_THREADS]: Added missing include.
--HG--
branch : exact-gc
michi [Mon, 2 Apr 2007 23:14:41 +0000 (23:14 +0000)]
Merged revisions 7639-7641 via svnmerge from
svn+ssh://michi@c1.complang.tuwien.ac.at/ahome/cacao/svn/cacao/trunk
........
r7641 | michi | 2007-04-03 01:13:55 +0200 (Tue, 03 Apr 2007) | 2 lines
* src/vm/jit/replace.c: Added include to fix crash on x86_64.
........
--HG--
branch : exact-gc
twisti [Mon, 2 Apr 2007 21:47:01 +0000 (21:47 +0000)]
* src/mm/cacao-gc/gc.h: Enable __ALPHA__.
* src/vm/jit/alpha/codegen.c (vm/jit/abi.h): Added.
(createnativestub) [ENABLE_GC_CACAO]: Save and restore callee saved
integer registers in the stackframe info for the GC.
--HG--
branch : exact-gc
michi [Mon, 2 Apr 2007 21:27:22 +0000 (21:27 +0000)]
Merged revisions 7632-7638 via svnmerge from
svn+ssh://michi@c1.complang.tuwien.ac.at/ahome/cacao/svn/cacao/trunk
........
r7637 | twisti | 2007-04-02 22:58:30 +0200 (Mon, 02 Apr 2007) | 4 lines
* src/vm/jit/alpha/md-abi.c (abi_registers_integer_argument): Added.
(abi_registers_integer_saved): Likewise.
(abi_registers_integer_temporary): Likewise.
........
r7638 | twisti | 2007-04-02 23:24:59 +0200 (Mon, 02 Apr 2007) | 4 lines
* src/vm/jit/alpha/linux/md-os.c [ENABLE_THREADS]
(threads/native/threads.h): Added.
[ENABLE_THREADS] (md_signal_handler_sigusr2): Added #ifdef.
........
--HG--
branch : exact-gc
twisti [Mon, 2 Apr 2007 20:48:33 +0000 (20:48 +0000)]
* src/mm/cacao-gc/gc.h: Enable __X86_64__.
* src/vm/jit/x86_64/codegen.c (vm/jit/abi.h): Added.
(createnativestub) [ENABLE_GC_CACAO]: Save and restore callee saved
integer registers in the stackframe info for the GC.
--HG--
branch : exact-gc
michi [Mon, 2 Apr 2007 20:44:25 +0000 (20:44 +0000)]
* tests/gc/New.java: Added testcase.
--HG--
branch : exact-gc
twisti [Mon, 2 Apr 2007 20:44:11 +0000 (20:44 +0000)]
* src/mm/cacao-gc/gc.h: Enable __POWERPC__.
* src/vm/jit/powerpc/codegen.c (vm/jit/abi.h): Added.
(createnativestub) [ENABLE_GC_CACAO]: Save and restore callee saved
integer registers in the stackframe info for the GC.
--HG--
branch : exact-gc
michi [Mon, 2 Apr 2007 20:37:55 +0000 (20:37 +0000)]
* src/mm/cacao-gc/heap.c (heap_print_object): Fixed for 64 bit architectures.
--HG--
branch : exact-gc
michi [Mon, 2 Apr 2007 20:05:05 +0000 (20:05 +0000)]
Merged revisions 7628-7631 via svnmerge from
svn+ssh://michi@c1.complang.tuwien.ac.at/ahome/cacao/svn/cacao/trunk
........
r7629 | twisti | 2007-04-02 21:45:20 +0200 (Mon, 02 Apr 2007) | 3 lines
* src/vm/jit/parse.c (parse): JAVA_GOTO_W must be converted to a
ICMD_GOTO.
........
r7630 | twisti | 2007-04-02 21:56:14 +0200 (Mon, 02 Apr 2007) | 4 lines
* src/vm/jit/x86_64/md-abi.c (abi_registers_integer_argument): Added.
(abi_registers_integer_saved): Likewise.
(abi_registers_integer_temporary): Likewise.
........
r7631 | michi | 2007-04-02 22:04:22 +0200 (Mon, 02 Apr 2007) | 3 lines
* src/vm/jit/stacktrace.c (stacktrace_create): Returns NULL if there is no
stacktrace available for the given thread. Fixed comments.
........
--HG--
branch : exact-gc
michi [Mon, 2 Apr 2007 19:09:52 +0000 (19:09 +0000)]
Merged revisions 7616-7627 via svnmerge from
svn+ssh://michi@c1.complang.tuwien.ac.at/ahome/cacao/svn/cacao/trunk
........
r7617 | twisti | 2007-03-30 01:22:07 +0200 (Fri, 30 Mar 2007) | 3 lines
* src/vm/jit/powerpc/linux/md-os.c (md_signal_handler_sigsegv): Fixed
address check (thanks Michi).
........
r7619 | twisti | 2007-03-30 13:41:27 +0200 (Fri, 30 Mar 2007) | 9 lines
* src/vm/jit/parse.c (parse_realloc_instructions): Renamed ipc to
icount.
(parse): Renamed ipc to icount, set method variables at the very end
and use local variables before.
* src/vm/jit/parse.h (INSTRUCTIONS_CHECK): Renamed ipc to icount.
(PINC): Likewise.
(OP_PREPARE_FLAGS): Likewise.
........
r7620 | edwin | 2007-04-01 12:50:39 +0200 (Sun, 01 Apr 2007) | 3 lines
* contrib/vmlog: Committed vmlog 0.0.5.
* THIRDPARTY: Added copyright notice for vmlog.
........
r7621 | stefan | 2007-04-01 18:18:16 +0200 (Sun, 01 Apr 2007) | 3 lines
* src/vm/jit/powerpc/darwin/md-asm.h,
src/vm/jit/i386/darwin/md-asm.h: added missing symbol asm_vm_call_method_end.
........
r7622 | ajordan | 2007-04-02 00:53:59 +0200 (Mon, 02 Apr 2007) | 3 lines
* src/vm/jit/sparc64/codegen.c: Implemented float argument passing for builtin calls.
* src/vm/jit/sparc64/codegen.h: Likewise.
........
r7623 | twisti | 2007-04-02 15:45:30 +0200 (Mon, 02 Apr 2007) | 5 lines
* src/vm/jit/stack.c (stack_mark_reached): Added assert on b.
(stack_mark_reached_from_outvars): Likewise.
(stack_reach_next_block): Use NULL instead of !.
(stack_analyse): Indent.
........
r7624 | twisti | 2007-04-02 18:09:44 +0200 (Mon, 02 Apr 2007) | 3 lines
* src/vm/jit/stack.c (stack_reach_next_block): Reformatted comments.
(stack_analyse): Likewise.
........
r7627 | twisti | 2007-04-02 20:56:59 +0200 (Mon, 02 Apr 2007) | 8 lines
* src/vm/jit/jit.h (INS_FLAG_BASICBLOCK): Defined.
(INS_FLAG_ID_SHIFT): Changed to 5.
(INSTRUCTION_STARTS_BASICBLOCK): Added.
* src/vm/jit/parse.c (parse): Changed basic block determination. Now
basic blocks can start at IR instruction level. This is required for
slow-fast path builtins.
........
--HG--
branch : exact-gc
michi [Mon, 2 Apr 2007 17:20:38 +0000 (17:20 +0000)]
* tests/gc/ThreadJava.java: Added testcase.
* tests/gc/ThreadSleep.java: Added testcase.
--HG--
branch : exact-gc
michi [Mon, 2 Apr 2007 16:17:01 +0000 (16:17 +0000)]
* src/mm/cacao-gc/gc.c (gc_collect): Moved notification of finalizer thread.
* src/mm/cacao-gc/mark.c (mark_me): Cleaned up and ifdefed finalizer code.
--HG--
branch : exact-gc
michi [Fri, 30 Mar 2007 00:20:05 +0000 (00:20 +0000)]
* tests/gc/NativeGlobalRef.java: Added testcase for global references.
* tests/gc/native.c: Added native library for all testcases.
* tests/gc/Makefile: Added for easy handling of native testcases.
--HG--
branch : exact-gc
michi [Thu, 29 Mar 2007 23:21:50 +0000 (23:21 +0000)]
Merged revisions 7599,7601-7615 via svnmerge from
svn+ssh://michi@c1.complang.tuwien.ac.at/ahome/cacao/svn/cacao/trunk
........
r7604 | pm | 2007-03-29 08:52:15 +0200 (Thu, 29 Mar 2007) | 7 lines
* src/vm/jit/s390/md-abi.h,
src/vm/jit/s390/emit.c,
src/vm/jit/s390/emit.h,
src/vm/jit/s390/codegen.c,
src/vm/jit/s390/codegen.h,
src/vm/jit/s390/arch.h: Changed a lot.
........
r7605 | twisti | 2007-03-29 13:04:25 +0200 (Thu, 29 Mar 2007) | 3 lines
* src/vm/jit/powerpc/linux/md-os.c (md_signal_handler_sigsegv): Check
for addr == NULL in NPE case.
........
r7611 | ajordan | 2007-03-29 23:37:40 +0200 (Thu, 29 Mar 2007) | 6 lines
* src/vm/jit/sparc64/md.c (md_get_pv_from_pc): Implemented sethi hanlding.
* src/vm/jit/sparc64/codegen.c (createnativestub): Fixed window/stack handling in case of exception.
* src/vm/jit/sparc64/asmpart.S (asm_call_jit_compiler): Likewise.
........
r7612 | michi | 2007-03-29 23:56:35 +0200 (Thu, 29 Mar 2007) | 2 lines
* src/mm/nogc.c: Fixed merging conflict which was commited to that file.
........
r7614 | ajordan | 2007-03-30 01:01:58 +0200 (Fri, 30 Mar 2007) | 5 lines
* src/vm/jit/sparc64/codegen.c (codegen_emit): Fixed ICMD_IREMPOW2.
Added ICMD_L2F and ICMD_L2D.
Fixed constant creation in IF_L* compares.
........
--HG--
branch : exact-gc
michi [Thu, 29 Mar 2007 23:10:59 +0000 (23:10 +0000)]
* src/vm/builtin.c (builtin_fast_new): Added.
* src/mm/memory.h: Defined away GC macros for cacao gc.
* src/vm/jit/mips/linux/md-os.c (md_init): Better use macro here.
* src/vm/jit/mips/irix/md-os.c (md_init): See above.
* src/vmcore/class.c (class_create_classinfo): Do not use GC macro.
* src/mm/gc-common.h (heap_alloc): Changed signature of old heap_allocate.
* src/mm/nogc.c (heap_alloc): Adapted to above changes.
* src/mm/boehm.c (heap_alloc): See above.
* src/mm/cacao-gc/heap.c (heap_alloc): See above.
* src/mm/cacao-gc/copy.c: Removed wrongly placed comment.
--HG--
branch : exact-gc
michi [Thu, 29 Mar 2007 22:42:48 +0000 (22:42 +0000)]
* src/mm/cacao-gc/gc.c (gc_finalizer_all): Implemented
* src/mm/cacao-gc/final.c (final_set_all_reclaimable): Added.
* src/mm/cacao-gc/final.h (final_set_all_reclaimable): Added prototype.
--HG--
branch : exact-gc
michi [Thu, 29 Mar 2007 18:08:11 +0000 (18:08 +0000)]
* src/mm/cacao-gc/final.c (final_register): Uses list_add_first instead of list_add_last
to be more Sun-like.
* tests/gc/Final.java: Added testcase for finalization testing.
* tests/gc/FinalExit.java: See above.
* tests/gc/FinalForce.java: See above.
--HG--
branch : exact-gc
michi [Thu, 29 Mar 2007 17:09:48 +0000 (17:09 +0000)]
Merged revisions 7600 via svnmerge from
svn+ssh://michi@c1.complang.tuwien.ac.at/ahome/cacao/svn/cacao/trunk
........
r7600 | twisti | 2007-03-29 00:59:52 +0200 (Thu, 29 Mar 2007) | 3 lines
* src/vm/exceptions.h (exceptionptr): Removed.
(_no_threads_exceptionptr): Likewise.
........
--HG--
branch : exact-gc
michi [Thu, 29 Mar 2007 16:59:52 +0000 (16:59 +0000)]
* src/mm/cacao-gc/gc.c (gc_collect): Added a global gc lock.
--HG--
branch : exact-gc
michi [Thu, 29 Mar 2007 16:44:06 +0000 (16:44 +0000)]
* tests/gc/ThreadStress.java: Added stress test for threads.
--HG--
branch : exact-gc
michi [Thu, 29 Mar 2007 14:43:04 +0000 (14:43 +0000)]
* src/mm/cacao-gc/heap.c (heap_increase_size): Uses vm_abort on error now.
* src/mm/cacao-gc/gc.c (gc_finalize_all): Added.
* src/vm/jit/replace.c (replace_me) [ENABLE_GC_CACAO]: Fixed ifdef here.
--HG--
branch : exact-gc
michi [Wed, 28 Mar 2007 23:39:26 +0000 (23:39 +0000)]
* test/gc: Added directory to contain Garbage Collector testcases.
* test/gc/Chain.java: Added.
* tests/gc/Simple.java: Added.
* tests/gc/Hashcode.java: Added.
--HG--
branch : exact-gc
michi [Wed, 28 Mar 2007 23:16:49 +0000 (23:16 +0000)]
Removed author and contact from header, sorry for not listing every file here.
--HG--
branch : exact-gc
michi [Wed, 28 Mar 2007 23:02:50 +0000 (23:02 +0000)]
Merged revisions 7501-7598 via svnmerge from
svn+ssh://michi@c1.complang.tuwien.ac.at/ahome/cacao/svn/cacao/trunk
........
r7503 | twisti | 2007-03-12 11:11:33 +0100 (Mon, 12 Mar 2007) | 11 lines
* src/native/vm/cldc1.1/com_sun_cldc_io_ResourceInputStream.c
(vm/vm.h): Added.
(open): Call vm_abort.
* src/native/vm/cldc1.1/com_sun_cldc_io_j2me_socket_Protocol.c
(unistd.h): Added.
(readByte): New function.
(writeBuf): Likewise.
(available0): Likewise.
(close0): Likewise.
........
r7504 | twisti | 2007-03-12 14:17:07 +0100 (Mon, 12 Mar 2007) | 2 lines
* src/vm/jit/arm/md.c (vm/jit/codegen-common.h): Added.
........
r7505 | twisti | 2007-03-12 14:34:37 +0100 (Mon, 12 Mar 2007) | 8 lines
* src/vm/jit/codegen.c (codegen): Change the operand direction of some
macros. Started to implement long-compares differently.
* src/vm/jit/codegen.h (M_AND, M_ORR, M_EOR, M_AND_IMM, M_MOVEQ)
(M_MOVVS_IMM, M_MOVNE_IMM, M_MOVLT_IMM, M_MOVLS_IMM): Changed operand
direction.
(M_ORR_S, M_CMPEQ, M_CMPLE): New macro.
........
r7510 | michi | 2007-03-13 14:19:07 +0100 (Tue, 13 Mar 2007) | 2 lines
* src/vm/jit/arm/linux/Makefile.am: Fixed include path to care about builddir.
........
r7511 | michi | 2007-03-13 17:32:56 +0100 (Tue, 13 Mar 2007) | 6 lines
* src/vm/jit/arm/codegen.c (codegen): Long branches are implemented
differently now.
* src/vm/jit/arm/codegen.h (M_COMPARE): Easier macros without overjumps.
(M_MOVEQ_IMM, M_MOVGT_IMM, M_ADDHI_IMM, M_SUBLO_IMM, M_CMPEQ_IMM): New macro.
........
r7513 | twisti | 2007-03-13 21:31:23 +0100 (Tue, 13 Mar 2007) | 2 lines
* src/vm/jit/i386/codegen.c (codegen): Fixed compiler warning.
........
r7514 | twisti | 2007-03-13 21:31:51 +0100 (Tue, 13 Mar 2007) | 5 lines
* src/vm/jit/i386/emit.c (emit_load): Use switch-case instead of
if-else contruct.
(emit_store): Likewise.
(emit_copy): Likewise.
........
r7516 | michi | 2007-03-14 13:00:07 +0100 (Wed, 14 Mar 2007) | 2 lines
* src/mm/nogc.c: Fixed includes and exceptions.
........
r7518 | michi | 2007-03-14 17:44:05 +0100 (Wed, 14 Mar 2007) | 3 lines
* src/vm/jit/arm/emit.c (emit_verbosecall_enter): Fixed bug with inmemory
arguments, which caused some crashes with verbose-calls.
........
r7519 | michi | 2007-03-14 18:31:05 +0100 (Wed, 14 Mar 2007) | 3 lines
* src/vm/jit/arm/codegen.c (codegen): All the long compares have a different
implementation now.
........
r7520 | twisti | 2007-03-14 22:16:04 +0100 (Wed, 14 Mar 2007) | 2 lines
* src/vm/jit/alpha/md.c (vm/jit/codegen-common.h): Added temporarily.
........
r7521 | twisti | 2007-03-14 22:18:00 +0100 (Wed, 14 Mar 2007) | 5 lines
* src/vm/jit/alpha/emit.c (emit_load): Use switch-case instead of
if-else contruct.
(emit_store): Likewise.
(emit_copy): Likewise.
........
r7522 | twisti | 2007-03-14 22:54:49 +0100 (Wed, 14 Mar 2007) | 7 lines
* src/vmcore/statistics.c (size_string): Added.
(statistics_print_memory_usage): Likewise.
* src/vmcore/statistics.h (size_string): Likewise.
* src/vm/string.c (vmcore/statistics.h): Added.
(literalstring_u2): Added statistics.
........
r7524 | pm | 2007-03-15 08:07:51 +0100 (Thu, 15 Mar 2007) | 7 lines
* src/vm/jit/s390/codegen.c,
src/vm/jit/s390/codegen.h: Changed a lot.
* src/vm/jit/s390/tests,
src/vm/jit/s390/tests/tests.java.pp,
src/vm/jit/s390/tests/Makefile: Added opcode tests in java.
........
r7525 | pm | 2007-03-15 09:23:19 +0100 (Thu, 15 Mar 2007) | 2 lines
* src/vm/jit/s390/tests/tests.java.pp: added INT2CHAR test testing negative values.
........
r7526 | twisti | 2007-03-15 10:28:56 +0100 (Thu, 15 Mar 2007) | 3 lines
* src/native/jni.c (_Jv_jni_invokeNative): Release memory in exception
case.
........
r7534 | pm | 2007-03-17 00:00:18 +0100 (Sat, 17 Mar 2007) | 11 lines
* src/vm/exceptions.c (exceptions_handle_exception): 31 bit address comparison for S390. These address comparison macros need to be moved to some header.
* src/vm/jit/s390/emit.c,
src/vm/jit/s390/md.c,
src/vm/jit/s390/codegen.c,
src/vm/jit/s390/codegen.h,
src/vm/jit/s390/arch.h,
src/vm/jit/s390/patcher.c,
src/vm/jit/s390/md-abi.c,
src/vm/jit/s390/tests/tests.java.pp,
src/vm/jit/s390/tests/Makefile: Changed a lot.
........
r7535 | twisti | 2007-03-17 13:57:32 +0100 (Sat, 17 Mar 2007) | 2 lines
* src/vm/builtin.c (builtin_isanysubclass): Cleanup and comments.
........
r7536 | twisti | 2007-03-17 14:10:04 +0100 (Sat, 17 Mar 2007) | 2 lines
* src/native/vm/gnu/java_lang_reflect_Method.c (vm/resolve.h): Added.
........
r7537 | twisti | 2007-03-17 14:11:11 +0100 (Sat, 17 Mar 2007) | 3 lines
* src/vm/builtin.c (builtin_isanysubclass): Code cleanup.
(builtin_isanysubclass_vftbl): Likewise.
........
r7538 | twisti | 2007-03-17 14:12:00 +0100 (Sat, 17 Mar 2007) | 3 lines
* src/vm/builtin.h (builtin_isanysubclass_vftbl): Removed, made
static.
........
r7543 | ajordan | 2007-03-20 01:25:19 +0100 (Tue, 20 Mar 2007) | 3 lines
* src/vm/jit/sparc64/md-abi.c (md_param_alloc_native): using this for native param allocation. No need for my own version of this anymore.
* src/vm/jit/sparc64/codegen.c: Likewise.
........
r7547 | twisti | 2007-03-21 14:18:20 +0100 (Wed, 21 Mar 2007) | 4 lines
* src/vmcore/linker.c (link_primitivetype_table): Set super class
explicitly to NULL.
(linker_compute_subclasses): Indent.
........
r7548 | twisti | 2007-03-21 14:19:44 +0100 (Wed, 21 Mar 2007) | 3 lines
* src/vmcore/zip.c (zip_get): Don't assign in if-statement, this makes
debugging a bit easier.
........
r7549 | twisti | 2007-03-21 14:27:14 +0100 (Wed, 21 Mar 2007) | 22 lines
* src/vmcore/statistics.c (size_threadobject, size_lock_hashtable)
(size_lock_waiter): Added.
(statistics_print_memory_usage): Print new variables.
* src/vmcore/statistics.h (size_threadobject, size_lock_hashtable)
(size_lock_waiter): Added.
* src/threads/native/lock.c (vmcore/options.h): Added.
[ENABLE_STATISTICS] (vmcore/statistics.h): Added.
(lock_hashtable_init): Added statistics.
(lock_hashtable_grow): Likewise.
(lock_record_add_waiter): Likewise.
(lock_record_remove_waiter): Likewise.
* src/threads/native/threads.c [ENABLE_STATISTICS]
(vmcore/statistics.h): Added.
(threads_preinit): Added statistics.
(threads_init): Likewise.
(threads_start_javathread): Likewise.
(threads_attach_current_thread): Likewise.
(threads_detach_thread): Likewise.
........
r7551 | twisti | 2007-03-21 15:26:09 +0100 (Wed, 21 Mar 2007) | 8 lines
* src/vmcore/statistics.c (size_lock_record_pool): Added.
(statistics_print_memory_usage): Print new variable.
* src/vmcore/statistics.h (size_lock_record_pool): Added.
* src/threads/native/lock.c (lock_record_alloc_new_pool): Added
statistics.
........
r7554 | michi | 2007-03-22 14:55:44 +0100 (Thu, 22 Mar 2007) | 3 lines
* src/vm/jit/arm/codegen.c (codegen) [!ENABLE_SOFTFLOAT]: Fixed position of
soft null pointer checks in PUTFIELD and GETFIELD.
........
r7559 | twisti | 2007-03-23 12:56:31 +0100 (Fri, 23 Mar 2007) | 5 lines
* src/vm/jit/powerpc/emit.c (emit_load): Use switch-case instead of
if-else contruct.
(emit_store): Likewise.
(emit_copy): Likewise.
........
r7560 | twisti | 2007-03-23 19:51:41 +0100 (Fri, 23 Mar 2007) | 4 lines
* src/vmcore/classcache.c (classcache_add_constraint)
[CLASSCACHE_VERBOSE]: Started to use log-functions.
(classcache_debug_dump): Likewise.
........
r7561 | twisti | 2007-03-23 20:10:35 +0100 (Fri, 23 Mar 2007) | 7 lines
* src/vm/global.h (ACC_CLASS_PRIMITIVE): Defined.
* src/vm/builtin.c (builtin_isanysubclass): Check for primitive
classes.
* src/vmcore/linker.c (link_primitivetype_table): Set primitive flag.
........
r7562 | twisti | 2007-03-23 21:38:14 +0100 (Fri, 23 Mar 2007) | 4 lines
* src/vm/builtin.c (builtin_isanysubclass_vftbl): Removed.
(builtin_descriptorscompatible): Use builtin_isanysubclass instead of
builtin_isanysubclass_vftbl.
........
r7563 | twisti | 2007-03-23 22:33:53 +0100 (Fri, 23 Mar 2007) | 22 lines
* src/vm/builtin.c (builtin_isanysubclass): Removed.
(builtin_instanceof): Replaced builtin_isanysubclass with
class_isanysubclass.
(builtin_descriptorscompatible): Likewise.
* src/vm/builtin.h (builtin_isanysubclass): Removed.
* src/vm/access.c (access_is_accessible_member): Replaced
builtin_isanysubclass with class_isanysubclass.
* src/native/vm/java_lang_Class.c (isAssignableFrom): Likewise.
* src/vm/jit/asmpart.h (castinfo): Removed.
* src/vmcore/class.c (vm/jit/asmpart.h): Added.
(class_isanysubclass): New function.
* src/vmcore/class.h (castinfo): Added.
(class_isanysubclass): Likewise.
* src/cacaoh/dummy.c (asm_getclassvalues_atomic): New function.
(intrp_asm_getclassvalues_atomic): Likewise.
........
r7573 | twisti | 2007-03-25 20:55:02 +0200 (Sun, 25 Mar 2007) | 21 lines
* src/native/native.c (native_get_parametertypes): Removed.
(native_get_exceptiontypes): Likewise.
* src/native/native.h: Likewise.
* src/vmcore/method.c (vm/builtin.h): Added.
(vm/resolve.h): Likewise.
(method_get_parametertypearray): New function.
(method_get_exceptionarray): Likewise.
* src/vmcore/method.h (method_get_parametertypearray): Added.
(method_get_exceptionarray): Likewise.
* src/cacaoh/dummy.c (builtin_anewarray): Added.
(resolve_class_from_typedesc): Likewise.
* src/native/vm/gnu/java_lang_reflect_Method.c (getParameterTypes):
Use method function.
(getExceptionTypes): Likewise.
* src/native/vm/gnu/java_lang_reflect_Constructor.c
(getParameterTypes): Likewise.
(getExceptionTypes): Likewise.
........
r7575 | twisti | 2007-03-25 22:30:50 +0200 (Sun, 25 Mar 2007) | 9 lines
Reverted patch 7268.
* src/vm/jit/code.c: Reverted.
* src/vm/jit/code.h: Likewise.
* src/vm/jit/jit.c: Likewise.
* src/vm/jit/jit.h: Likewise.
* src/vmcore/loader.c: Likewise.
* src/vmcore/method.h: Likewise.
........
r7581 | pm | 2007-03-26 09:23:16 +0200 (Mon, 26 Mar 2007) | 10 lines
* src/vm/jit/s390/emit.c,
src/vm/jit/s390/md-abi.h,
src/vm/jit/s390/md.c,
src/vm/jit/s390/emit.h,
src/vm/jit/s390/codegen.c,
src/vm/jit/s390/codegen.h,
src/vm/jit/s390/tests/tests.java.pp,
src/vm/jit/s390/patcher.c,
src/vm/jit/s390/md-abi.c: Chaned a lot.
........
r7587 | twisti | 2007-03-28 15:29:09 +0200 (Wed, 28 Mar 2007) | 19 lines
* src/vm/exceptions.c (throw_exception_exit_intern): Removed.
(throw_exception): Likewise.
(throw_exception_exit): Likewise.
(throw_main_exception): Likewise.
(throw_main_exception_exit): Likewise.
(throw_cacao_exception_exit): Likewise.
(exceptions_print_stacktrace): New function.
* src/vm/exceptions.h: Likewise.
* src/vm/vm.c (vm_create): Use vm_abort or exceptions_print_stacktrace
instead of throw_main_exception_exit.
(vm_run): Likewise.
(vm_exit): Likewise.
(vm_get_mainclass_from_jar): Likewise.
* src/threads/native/threads.c (threads_init): Use return instead of
throw_exception_exit.
(threads_startup_thread): Use vm_abort.
........
r7593 | twisti | 2007-03-28 22:22:13 +0200 (Wed, 28 Mar 2007) | 3 lines
Initialized merge tracking via "svnmerge" with revisions "1-7592" from
svn+ssh://c1.complang.tuwien.ac.at/ahome/cacao/svn/cacao/branches/twisti
........
r7594 | twisti | 2007-03-28 22:28:37 +0200 (Wed, 28 Mar 2007) | 3 lines
Initialized merge tracking via "svnmerge" with revisions "1-6086" from
svn+ssh://c1.complang.tuwien.ac.at/ahome/cacao/svn/cacao/branches/twisti
........
r7595 | twisti | 2007-03-28 22:50:34 +0200 (Wed, 28 Mar 2007) | 3 lines
Initialized merge tracking via "svnmerge" with revisions "1-6085" from
file:///ahome/cacao/svn/cacao/branches/twisti
........
r7596 | twisti | 2007-03-28 23:05:53 +0200 (Wed, 28 Mar 2007) | 2 lines
* Merged in twisti-branch.
........
r7597 | michi | 2007-03-29 00:25:44 +0200 (Thu, 29 Mar 2007) | 2 lines
* AUTHORS: Added myself to the list of authors (finally).
........
r7598 | twisti | 2007-03-29 00:32:13 +0200 (Thu, 29 Mar 2007) | 2 lines
* svnmerge uninit.
........
--HG--
branch : exact-gc
michi [Wed, 28 Mar 2007 22:55:14 +0000 (22:55 +0000)]
* src/mm/cacao-gc/gc.h: Added GC_EXECUTIONSTATE and GC_SOURCESTATE defines.
* src/mm/cacao-gc/gc.c [!ENABLE_THREADS]: Added _no_threads variables for
above defines.
* src/mm/cacao-gc/rootset.c: Now uses above defines.
* src/vm/jit/replace.c (replace_me, replace_gc_from_native): Same.
--HG--
branch : exact-gc
michi [Mon, 12 Mar 2007 01:56:40 +0000 (01:56 +0000)]
* src/mm/cacao-gc/heap.c: Fixed includes.
--HG--
branch : exact-gc
michi [Mon, 12 Mar 2007 01:24:06 +0000 (01:24 +0000)]
* src/mm/cacao-gc/gc.c (gc_suspend): Implemented.
(gc_collect): Now properly suspends threads before collecting.
--HG--
branch : exact-gc
michi [Mon, 12 Mar 2007 01:12:39 +0000 (01:12 +0000)]
* src/vm/jit/replace.c [ENABLE_GC_CACAO] (replace_gc_from_native): Added.
(replace_me) [ENABLE_GC_CACAO]: Different execution path for the exact GC.
(replace_map_source_state_identity): Added.
--HG--
branch : exact-gc
michi [Mon, 12 Mar 2007 00:55:41 +0000 (00:55 +0000)]
* src/mm/cacao-gc/rootset.c (rootset_from_thread): Local references are added.
--HG--
branch : exact-gc
michi [Mon, 12 Mar 2007 00:39:43 +0000 (00:39 +0000)]
* src/mm/cacao-gc/compact.c: Class fields are no longer threaded directly.
* src/mm/cacao-gc/mark.c: Class fields are no longer marked directly.
--HG--
branch : exact-gc
michi [Mon, 12 Mar 2007 00:19:05 +0000 (00:19 +0000)]
* src/threads/native/threads.h (threadobject): Struct now contains es and ss.
* src/threads/native/threads.c (threads_suspend_ack): Informs GC about suspend.
* src/vm/jit/i386/linux/md-os.c (md_signal_handler_sigusr1): Pass SP as well.
* src/mm/cacao-gc/gc.h (gc_suspend): Adapted prototype.
* src/mm/cacao-gc/rootset.c (rootset_from_thread): Uses ss of threadobject.
--HG--
branch : exact-gc
michi [Sun, 11 Mar 2007 23:35:33 +0000 (23:35 +0000)]
* src/vm/jit/code.c (code_find_codeinfo_for_pc_nocheck): Added.
* src/vm/jit/code.h (code_find_codeinfo_for_pc_nocheck): Added prototype.
--HG--
branch : exact-gc
michi [Sun, 11 Mar 2007 23:32:09 +0000 (23:32 +0000)]
* src/mm/cacao-gc/region.h (regioninfo_t): Added object header for locking.
* src/mm/cacao-gc/region.c (region_create): Header mentioned above is initiated.
* src/mm/cacao-gc/heap.c (heap_alloc_intern): Lock regions while allocating.
--HG--
branch : exact-gc
michi [Thu, 8 Mar 2007 19:49:42 +0000 (19:49 +0000)]
Added support for thread suspension!
* src/threads/native/threads.h (threadobject): Needed fields added.
* src/threads/native/threads.c (threads_stopworld, threads_startworld): Improved.
(threads_suspend_thread, threads_resume_thread, threads_suspend_ack): Added.
* src/vm/jit/i386/linux/md-os.c (md_signal_handler_sigusr1): Adapted to changes.
--HG--
branch : exact-gc
michi [Thu, 8 Mar 2007 19:40:09 +0000 (19:40 +0000)]
* src/vm/jit/replace.c (replace_me): Loads sfi of current thread.
(replace_recover_source_state): No longer bound to current thread.
* src/mm/cacao-gc/rootset.c (rootset_from_thread): Loads sfi from passed thread.
--HG--
branch : exact-gc
michi [Thu, 8 Mar 2007 17:12:56 +0000 (17:12 +0000)]
* src/threads/native/threads.h: Added THREAD_FLAG_IN_NATIVE and gc_critical.
* src/threads/native/threads.c: Init and dump the above flags.
* src/vm/vm.c: Change the THREAD_IN_NATIVE_FLAG accordingly.
* src/vm/jit/codegen-common.c: Same as above.
--HG--
branch : exact-gc
michi [Thu, 8 Mar 2007 13:17:40 +0000 (13:17 +0000)]
Merged revisions 7441-7480 via svnmerge from
svn+ssh://michi@c1.complang.tuwien.ac.at/ahome/cacao/svn/cacao/trunk
........
r7442 | pm | 2007-03-03 00:28:37 +0100 (Sat, 03 Mar 2007) | 8 lines
* src/vm/jit/s390/emit.c,
src/vm/jit/s390/codegen.c,
src/vm/jit/s390/codegen.h,
src/vm/jit/s390/md-asm.h,
src/vm/jit/s390/patcher.c,
src/vm/jit/s390/asmpart.S: Changed a lot in S390 codegen.
........
r7444 | edwin | 2007-03-04 13:28:37 +0100 (Sun, 04 Mar 2007) | 5 lines
* tests/regression/resolving/test_return_subtype_violated.java:
New test.
* tests/regression/resolving/Makefile.am: Added new test.
........
r7445 | edwin | 2007-03-04 13:32:59 +0100 (Sun, 04 Mar 2007) | 4 lines
* tests/regression/resolving/test_return_subtype_ok.java: New test.
* tests/regression/resolving/Makefile.am: Added new test.
........
r7446 | edwin | 2007-03-04 15:02:49 +0100 (Sun, 04 Mar 2007) | 2 lines
* src/vm/jit/inline/inline.c: Committed breadth-first inlining code.
........
r7447 | edwin | 2007-03-04 15:22:42 +0100 (Sun, 04 Mar 2007) | 6 lines
* src/vmcore/method.h (methodinfo): Added hitcountdown field. (Only
if ENABLE_REPLACEMENT).
* src/vmcore/loader.c (loader_load_method): Initialize hitcountdown
field.
........
r7448 | edwin | 2007-03-04 15:46:21 +0100 (Sun, 04 Mar 2007) | 5 lines
* src/vm/jit/i386/codegen.c (codegen): Emit code for countdown traps.
* src/vm/jit/i386/emit.c (emit_replacement_stubs): Add jump reference
for countdown traps.
........
r7449 | twisti | 2007-03-04 19:07:55 +0100 (Sun, 04 Mar 2007) | 5 lines
* src/vm/jit/x86_64/emit.c (emit_load): Use switch-case instead of
if-else contruct.
(emit_store): Likewise.
(emit_copy): Likewise.
........
r7450 | edwin | 2007-03-04 20:13:29 +0100 (Sun, 04 Mar 2007) | 8 lines
* src/vmcore/options.h, src/vmcore/options.c, src/vmcore/method.c,
src/vmcore/linker.c: Replayed lost parts of commit 7228.
* src/vm/jit/intrp/intrp.h: Added missing #include to make it compile.
* src/vm/jit/inline/inline.c: Fixed names of vmcore/ #include files.
........
r7451 | edwin | 2007-03-04 21:10:18 +0100 (Sun, 04 Mar 2007) | 7 lines
* src/vm/jit/replace.c: Handle countdown traps. Request optimization
of hot methods and their callers.
* src/vm/jit/jit.c (jit_compile): Set JITDATA_FLAG_COUNTDOWN for
inlining.
(jit_recompile): Set JITDATA_FLAG_INLINE for inlining.
........
r7453 | pm | 2007-03-05 09:38:29 +0100 (Mon, 05 Mar 2007) | 8 lines
* src/vm/jit/s390/md-abi.h,
src/vm/jit/s390/emit.c,
src/vm/jit/s390/emit.h,
src/vm/jit/s390/codegen.c,
src/vm/jit/s390/codegen.h,
src/vm/jit/s390/patcher.c: Changed a lot.
........
r7457 | edwin | 2007-03-05 17:53:45 +0100 (Mon, 05 Mar 2007) | 3 lines
* src/vmcore/resolve.h, src/vmcore/resolve.c
(resolve_classref_or_classinfo_eager): New function.
........
r7458 | edwin | 2007-03-05 18:32:38 +0100 (Mon, 05 Mar 2007) | 2 lines
* src/vm/jit/code.c (code_get_methodinfo_from_pv): New function.
........
r7459 | edwin | 2007-03-05 18:34:43 +0100 (Mon, 05 Mar 2007) | 4 lines
* src/vm/builtin.h (builtintable_replace_function): Don't use
instruction * to avoid bootstrapping problems.
* src/vm/builtin.c (builtintable_replace_function): Likewise.
........
r7460 | edwin | 2007-03-05 18:44:20 +0100 (Mon, 05 Mar 2007) | 5 lines
* src/native/vm/java_lang_Class.c (_Jv_java_lang_Class_getSuperclass),
(_Jv_java_lang_Class_getDeclaringClass)
(_Jv_java_lang_Class_getDeclaredClasses):
Use resolve_classref_or_classinfo_eager.
........
r7461 | edwin | 2007-03-06 00:50:33 +0100 (Tue, 06 Mar 2007) | 3 lines
* src/native/native.c (native_get_exceptiontypes):
Use resolve_classref_or_classinfo_eager.
........
r7462 | edwin | 2007-03-06 00:56:41 +0100 (Tue, 06 Mar 2007) | 2 lines
* src/cacaoh/headers.c: Don't include asmpart.h.
........
r7463 | edwin | 2007-03-06 01:02:04 +0100 (Tue, 06 Mar 2007) | 3 lines
* src/vmcore/linker.c (link_class_intern):
Use resolve_classref_or_classinfo_eager.
........
r7464 | edwin | 2007-03-06 01:26:31 +0100 (Tue, 06 Mar 2007) | 30 lines
* src/vmcore/resolve.c: Moved back to src/vm/resolve.c.
* src/vmcore/resolve.h: Moved back to src/vm/resolve.h.
* src/vm/jit/code.h (codeinfo): Moved typedef to method.h.
(code_get_methodinfo_for_pv): Added prototype.
* src/vmcore/method.h (codeinfo): Moved typedef here.
* src/vm/jit_interface.h: New file.
* src/vm/Makefile.am: Added resolve.[ch] and jit_interface.h.
* src/vmcore/Makefile.am: Removed resolve.[ch].
* src/vmcore/class.c: Include "arch.h", but don't include "resolve.h".
* src/vmcore/method.c (method_vftbl_lookup):
Use code_get_methodinfo_for_pv.
* src/vmcore/linker.c (resolve_classref_or_classinfo_eager): Added
copy of prototype to avoid bootstrapping issues.
* src/cacaoh/dummy.c (code_get_methodinfo_for_pv): New dummy.
(resolve_classref_or_classinfo_eager): Simple implementation that does
not use resolve.c code.
(typeinfo_init_class): Removed dummy.
(typeinfo_init_classinfo): Likewise.
(typeinfo_is_assignable_to_class): Likewise.
(typeinfo_print): Likewise.
* many other files: Changed #include "vmcore/resolve.h" to
"vm/resolve.h".
........
r7465 | edwin | 2007-03-06 01:27:12 +0100 (Tue, 06 Mar 2007) | 2 lines
* src/vm/jit_interface.h: Added Id keyword.
........
r7468 | twisti | 2007-03-06 12:12:03 +0100 (Tue, 06 Mar 2007) | 11 lines
* src/vmcore/statistics.c (vm/jit/code.h): Added for codeinfo.
(vmcore/class.h): Added.
(vmcore/field.h): Likewise.
(vmcore/method.h): Likewise.
* src/vm/jit/optimizing/recompile.c (vm/jit/code.h): Likewise.
(vm/jit/jit.h): Likewise.
* src/vm/jit/x86_64/md.c (vm/jit/codegen-common.h): Likewise.
* src/vm/jit/x86_64/md-abi.c (vm/jit/jit.h): Likewise.
........
r7470 | twisti | 2007-03-06 18:01:19 +0100 (Tue, 06 Mar 2007) | 6 lines
* src/vm/vm.c (vm_create): Reenabled signal-thread. This only works on
NPTL-threads and NOT with linuxthreads!
* src/vm/signal.c (signal_init): Reenabled blocking for SIGINT and
SIGQUIT.
........
r7471 | twisti | 2007-03-06 18:01:49 +0100 (Tue, 06 Mar 2007) | 2 lines
* src/vm/signal.c (arch.h): Added.
........
r7472 | ajordan | 2007-03-06 19:55:12 +0100 (Tue, 06 Mar 2007) | 10 lines
* src/vm/jit/sparc64/emit.c: emit_{load,store,copy} changed to switch/case for handling different types.
* src/vm/jit/sparc64/codegen.h: fixed f2d and d2f conversion.
* src/vm/jit/sparc64/md-abi.c: removed md_native_reg_setup(), not needed any longer.
* src/vm/jit/sparc64/codegen.c: implemented ICMD_MULTIANEWARRAY.
fixed FRETURN, DRETURN.
repaired native float arg passing.
........
r7473 | ajordan | 2007-03-07 01:32:35 +0100 (Wed, 07 Mar 2007) | 6 lines
* src/vm/jit/sparc64/md-abi.h: increased number of JIT float argument registers to 5.
* src/vm/jit/sparc64/md-asm.h: likewise.
* src/vm/jit/sparc64/md-abi.c: likewise.
* src/vm/jit/sparc64/asmpart.S: added floating point argument handling in asm_vm_call.
........
r7474 | michi | 2007-03-07 12:47:45 +0100 (Wed, 07 Mar 2007) | 9 lines
* src/threads/native/threads.h (threadobject): This structure is no longer an
instance of java.lang.Thread, but contains a reference to it.
* src/threads/native/threads.c (threads_start_javathread): Added.
* src/threads/threads-common.c: Adapted to above changes.
* src/threads/native/threads.c: See above.
* src/native/vm/java_lang_Thread.c: See above.
........
r7475 | twisti | 2007-03-07 13:37:34 +0100 (Wed, 07 Mar 2007) | 3 lines
* src/vm/jit/x86_64/asmpart.S (asm_compare_and_swap): New function.
(asm_memory_barrier): Likewise.
........
r7476 | twisti | 2007-03-07 14:12:01 +0100 (Wed, 07 Mar 2007) | 2 lines
* src/vm/jit/x86_64/emit.c (emit_call_reg): Call emit_rex with size 0.
........
r7477 | twisti | 2007-03-07 15:05:04 +0100 (Wed, 07 Mar 2007) | 2 lines
* src/vm/jit/mips/md.c (vm/jit/codegen-common.h): Temporarily added.
........
r7478 | michi | 2007-03-08 03:59:31 +0100 (Thu, 08 Mar 2007) | 5 lines
* src/threads/native/threads.c (threads_init) [!ENABLE_GC_CACAO]: Fixed bug for
lost java.lang.Thread object of mainthread with BoehmGC.
* src/native/vm/java_lang_Thread.c: Fixed includes to prevend compiler warnings.
........
--HG--
branch : exact-gc
michi [Thu, 8 Mar 2007 13:16:34 +0000 (13:16 +0000)]
* src/vm/jit/i386/linux/md-os.c: Cleaned up.
* src/mm/cacao-gc/gc.h: Fixed includes.
* src/mm/cacao-gc/gc.c (gc_pending): Added global variable.
--HG--
branch : exact-gc
michi [Thu, 8 Mar 2007 12:46:19 +0000 (12:46 +0000)]
* src/mm/cacao-gc/gc.h (gc_suspend): Added prototype.
* src/vm/signale.c (signale_init) [ENABLE_GC_CACAO]: Handler for SIGUSR1.
* src/vm/signallocal.h: Added prototype for SIGUSR1 handler.
* src/vm/jit/i386/linux/md-os.c (md_signal_handler_sigusr1): Added.
--HG--
branch : exact-gc
michi [Tue, 6 Mar 2007 10:30:32 +0000 (10:30 +0000)]
* src/mm/cacao-gc/copy.c: Added file.
* src/mm/cacao-gc/copy.h: Added file.
* src/mm/cacao-gc/Makefile.am: See above.
* src/mm/cacao-gc/heap.c: Moved copy specific stuff to own file.
* src/mm/cacao-gc/gc.c: Now tests copy collections.
--HG--
branch : exact-gc
michi [Tue, 6 Mar 2007 10:28:12 +0000 (10:28 +0000)]
Static class references are now explicitly added to the rootset.
* src/mm/cacao-gc/rootset.c (rootset_from_classes): Added.
* src/mm/cacao-gc/rootset.h (REFTYPE_CLASSREF): Added.
--HG--
branch : exact-gc
michi [Sat, 3 Mar 2007 00:20:18 +0000 (00:20 +0000)]
* src/vmcore/rt-timing.c: Added rt-timing for heap allocation time.
* src/vmcore/rt-timing.h: See above.
* src/mm/boehm.c (heap_allocate): Heap allocation time is measured.
* src/mm/cacao-gc/heap.c (heap_allocate): Heap allocation time is measured.
--HG--
branch : exact-gc
michi [Fri, 2 Mar 2007 23:13:10 +0000 (23:13 +0000)]
Merged revisions 7407-7440 via svnmerge from
svn+ssh://michi@c1.complang.tuwien.ac.at/ahome/cacao/svn/cacao/trunk
........
r7408 | twisti | 2007-02-26 23:11:38 +0100 (Mon, 26 Feb 2007) | 15 lines
* src/native/vm/java_lang_ClassLoader.c: New file.
* src/native/vm/java_lang_ClassLoader.h: Likewise.
* src/native/vm/gnu/java_lang_VMClassLoader.c
(native/vm/java_lang_ClassLoader.h): Added.
(defineClass): Removed code and call
_Jv_java_lang_ClassLoader_defineClass.
* src/native/vm/Makefile.am (libnativevm_la_SOURCES): Added
java_lang_ClassLoader.[ch].
* src/native/jni.c [ENABLE_JAVASE]
(native/vm/java_lang_ClassLoader.h): Added.
(_Jv_JNI_DefineClass): Removed env and NULL arguments.
........
r7409 | ajordan | 2007-02-27 03:07:00 +0100 (Tue, 27 Feb 2007) | 8 lines
* configure.ac: added solaris specific stuff: arch defines, libintl dependency and solaris subdir makefile.
* src/vm/jit/stacktrace.h: declared SPARC specific functions.
* src/vm/jit/sparc64/emit.c: fixed call to builtin_verbosecall_exit.
* src/vm/jit/sparc64/solaris/md-os.c: signal handling disabled, can't test right now.
........
r7412 | twisti | 2007-02-27 22:13:26 +0100 (Tue, 27 Feb 2007) | 2 lines
* src/vm/jit/sparc64/solaris: Set ignore-properties.
........
r7414 | pm | 2007-02-28 08:22:04 +0100 (Wed, 28 Feb 2007) | 5 lines
* src/vm/jit/s390/codegen.c (codegen): Added ICMD_AASTORE.
* src/vm/jit/s390/asmpart.S (asm_patcher_wrapper): Added exception handler.
* src/vm/jit/s390/asmpart.S (asm_call_jit_compiler): Likewise.
........
r7415 | twisti | 2007-02-28 14:23:54 +0100 (Wed, 28 Feb 2007) | 3 lines
* src/native/vm/java_lang_ClassLoader.c (defineClass): Added
loader-variable for convenience.
........
r7416 | twisti | 2007-02-28 14:25:56 +0100 (Wed, 28 Feb 2007) | 2 lines
* src/native/vm/java_lang_ClassLoader.c (vm/stringlocal.h): Added.
........
r7418 | twisti | 2007-02-28 21:07:06 +0100 (Wed, 28 Feb 2007) | 13 lines
* src/vm/access.c (access_check_caller): Renamed to
access_check_member. Don't call access_is_accessible_class, this is
wrong.
* src/native/vm/gnu/java_lang_reflect_Constructor.c (constructNative):
Use access_check_member.
* src/native/vm/gnu/java_lang_reflect_Field.c (CHECKFIELDACCESS):
Removed.
(cacao_get_field_address): Use access_check_member.
* src/native/vm/gnu/java_lang_reflect_Method.c (invokeNative): Likewise.
........
r7419 | twisti | 2007-02-28 23:00:50 +0100 (Wed, 28 Feb 2007) | 3 lines
* src/vm/access.h (access_check_caller): Renamed to
access_check_member.
........
r7420 | edwin | 2007-02-28 23:30:31 +0100 (Wed, 28 Feb 2007) | 3 lines
* src/vm/jit/stack.c (stack_analyse): Fix: reset TYPE_VOID to
TYPE_ADR at the end of stack_analyse.
........
r7421 | twisti | 2007-02-28 23:31:50 +0100 (Wed, 28 Feb 2007) | 4 lines
* src/vm/vm.c (vm_create): Changed initialization order. Call
properties_postinit later, since it puts a pointer to
_Jv_bootclasspath into the properties list.
........
r7422 | edwin | 2007-02-28 23:50:28 +0100 (Wed, 28 Feb 2007) | 4 lines
* tests/regression/jasmin/test_verify_ok_local_as_retaddr_and_reference.j:
New test.
* tests/regression/jasmin/Makefile.am: Added new test.
........
r7423 | edwin | 2007-03-01 00:20:58 +0100 (Thu, 01 Mar 2007) | 2 lines
* src/vm/jit/stack.c (stack_analyse): Minor STACK_VERBOSE improvements.
........
r7424 | edwin | 2007-03-01 00:27:15 +0100 (Thu, 01 Mar 2007) | 3 lines
* src/vm/jit/verify/typecheck.c (handle_basic_block): Move the printing
of the block to a point where jd->var is already valid.
........
r7425 | twisti | 2007-03-01 00:39:48 +0100 (Thu, 01 Mar 2007) | 2 lines
* src/cacaoh/dummy.c (typeinfo_print): Added.
........
r7426 | twisti | 2007-03-01 00:57:39 +0100 (Thu, 01 Mar 2007) | 5 lines
* src/vmcore/classcache.c (toolbox/logging.h): Added.
(classcache_merge_class_entries): Replace log_text with log_println.
(classcache_store): Likewise.
(classcache_store_defined): Likewise.
........
r7427 | edwin | 2007-03-01 13:32:10 +0100 (Thu, 01 Mar 2007) | 3 lines
* src/vmcore/resolve.c (resolve_classref_or_classinfo): Always use
refmethod->class as the referring class, if it is available.
........
r7428 | twisti | 2007-03-01 13:39:45 +0100 (Thu, 01 Mar 2007) | 6 lines
* src/native/vm/Makefile.am [ENABLE_JAVASE] (CLASSLOADER_SOURCES):
Added.
(libnativevm_la_SOURCES): Use CLASSLOADER_SOURCES.
* src/native/vm/java_lang_ClassLoader.c (native/jni.h): Added.
........
r7431 | edwin | 2007-03-01 14:49:14 +0100 (Thu, 01 Mar 2007) | 14 lines
* src/vmcore/resolve.h, src/vmcore/resolve.c
(resolve_class_eager_no_access_check): New function.
* src/vm/jit/powerpc/patcher.c: Use resolve_class_eager_no_access_check.
* src/vm/jit/arm/patcher.c: Likewise.
* src/vm/jit/sparc64/patcher.c: Likewise.
* src/vm/jit/alpha/patcher.c: Likewise.
* src/vm/jit/s390/patcher.c: Likewise.
* src/vm/jit/mips/patcher.c: Likewise.
* src/vm/jit/powerpc64/patcher.c: Likewise.
* src/vm/jit/i386/patcher.c: Likewise.
* src/vm/jit/x86_64/patcher.c: Likewise.
........
r7433 | edwin | 2007-03-02 20:42:13 +0100 (Fri, 02 Mar 2007) | 3 lines
* tests/regression/resolving: Added resolving test suite. These tests
check lazy loading, classloader handling, loading & subtype constraints.
........
r7434 | edwin | 2007-03-02 20:44:53 +0100 (Fri, 02 Mar 2007) | 2 lines
* configure.ac: Added Makefiles of resolving test suite.
........
r7435 | edwin | 2007-03-02 20:45:42 +0100 (Fri, 02 Mar 2007) | 2 lines
* src/vmcore/classcache.c: Print debug messages to stdout.
........
--HG--
branch : exact-gc
michi [Fri, 2 Mar 2007 22:47:11 +0000 (22:47 +0000)]
* src/vmcore/rt-timing.h: Added gc rt-timing defines.
* src/vmcore/rt-timing.c [ENABLE_GC_CACAO]: Added gc rt-timing entries.
* src/mm/cacao-gc/gc.c: Added realtime-timing.
* src/mm/cacao-gc/heap.h: Removed unused global variables.
--HG--
branch : exact-gc
michi [Fri, 2 Mar 2007 22:43:27 +0000 (22:43 +0000)]
* src/native/jni.h (hashtable_global_ref): Added.
* src/native/jni.c (hashtable_global_ref): Made non-static for the exact gc.
--HG--
branch : exact-gc
michi [Fri, 2 Mar 2007 22:39:06 +0000 (22:39 +0000)]
* src/mm/cacao-gc/rootset.c [!ENABLE_THREADS]: Now compiles again.
--HG--
branch : exact-gc
michi [Fri, 2 Mar 2007 22:36:09 +0000 (22:36 +0000)]
* src/vm/global.h (HDRFLAG_REFERENCING): Added.
* src/mm/cacao-gc/heap.c: Sets above header flag now.
* src/mm/cacao-gc/compact.c: Check for above header flag now.
* src/mm/cacao-gc/mark.c: See above.
* src/mm/cacao-gc/gc.h: Added configuration define for the above behavior.
--HG--
branch : exact-gc
michi [Fri, 2 Mar 2007 15:19:54 +0000 (15:19 +0000)]
* src/mm/cacao-gc/gc.c (gc_collect): Moved rootset creation to rootset_readout.
* src/mm/cacao-gc/rootset.c (rootset_readout): Added
* src/mm/cacao-gc/rootset.c (rootset_from_globals): Now adds threadobjects
and global references.
* src/mm/cacao-gc/rootset.h: Added refs_type field to rootset.
--HG--
branch : exact-gc
michi [Thu, 1 Mar 2007 13:29:54 +0000 (13:29 +0000)]
* src/mm/cacao-gc/mark.c (mark_me): Fixed a bug for "outside pointers".
--HG--
branch : exact-gc
michi [Wed, 28 Feb 2007 16:35:25 +0000 (16:35 +0000)]
* src/mm/cacao-gc/mark.c: Added MARK() as helper macro.
--HG--
branch : exact-gc
michi [Tue, 27 Feb 2007 18:19:06 +0000 (18:19 +0000)]
* src/mm/cacao-gc/gc.h: Fixed typo in POINTS_INTO.
* src/mm/cacao-gc/compact.c (compact_move): Fixed typo.
--HG--
branch : exact-gc
michi [Tue, 27 Feb 2007 16:25:15 +0000 (16:25 +0000)]
* src/mm/cacao-gc/gc.h, src/mm/cacao-gc/gc.c: Added define (GCCONF_FINALIZER)
to disable finalization.
--HG--
branch : exact-gc
michi [Mon, 26 Feb 2007 19:12:03 +0000 (19:12 +0000)]
Merged revisions 7390-7406 via svnmerge from
svn+ssh://michi@c1.complang.tuwien.ac.at/ahome/cacao/svn/cacao/trunk
........
r7395 | michi | 2007-02-23 23:57:53 +0100 (Fri, 23 Feb 2007) | 2 lines
* src/vm/jit/replace.c: Renamed regs to abi_registers_integer_name.
........
r7402 | twisti | 2007-02-24 15:47:12 +0100 (Sat, 24 Feb 2007) | 4 lines
* src/vmcore/zip.c (errno.h): Added.
(vm/vm.h): Likewise.
(zip_get): Replaced asserts with vm_abort.
........
r7403 | pm | 2007-02-25 22:31:58 +0100 (Sun, 25 Feb 2007) | 6 lines
* src/vm/jit/codegen-common.c (methodtree_comparator): Fixed S390 related comment.
* src/vm/jit/s390/codegen.h: Fixed M_JSR macro, did not store RA.
* src/vm/jit/s390/md-asm.h: Added (LOAD|STORE)_TEMPORARY_REGISTERS and (LOAD|STORE)_ARGUMENT_REGISTERS macros.
* src/vm/jit/s390/asmpart.S: Implemented asm_handle_exception and asm_vm_call_method_exception_handler.
* src/vm/jit/s390/md-abi.c (abi_registers_integer_temporary): did not contain %r0, added.
........
r7404 | pm | 2007-02-25 23:02:16 +0100 (Sun, 25 Feb 2007) | 2 lines
* src/vm/jit/s390/asmpart.S (asm_getclassvalues_atomic, asm_criticalsections): Added.
........
r7405 | pm | 2007-02-25 23:34:27 +0100 (Sun, 25 Feb 2007) | 3 lines
* src/vm/jit/s390/codegen.c (codegen): Fixed ICMD_IF_ACMPNE
* src/vm/jit/s390/asmpart.S (asm_call_jit_compiler): Handling NULL return value of jit_asm_compile.
........
--HG--
branch : exact-gc
michi [Mon, 26 Feb 2007 19:03:48 +0000 (19:03 +0000)]
* src/mm/cacao-gc/final.h, src/mm/cacao-gc/final.c, src/mm/cacao-gc/rootset.h,
src/mm/cacao-gc/rootset.c: Added.
* src/mm/cacao-gc/Makefile.am: See above.
* src/mm/cacao-gc/gc.h (gc_notify_finalizer): Added.
* src/mm/cacao-gc/gc.c: Added finalization support.
* src/mm/cacao-gc/mark.c: Same as above. Rootset can contain "non-marking"
references now.
* src/mm/cacao-gc/heap.h, src/mm/cacao-gc/heap.c: Severe code cleanup,
this applies to almost all files.
--HG--
branch : exact-gc
michi [Sat, 24 Feb 2007 02:22:22 +0000 (02:22 +0000)]
* src/mm/cacao-gc/gc.h, src/mm/cacao-gc/compact.c, src/mm/cacao-gc/region.h,
src/mm/cacao-gc/gc.c, src/mm/cacao-gc/mark.c, src/mm/cacao-gc/heap.c:
Severe code cleanup.
--HG--
branch : exact-gc
michi [Sat, 24 Feb 2007 01:00:08 +0000 (01:00 +0000)]
* src/vm/global.h: Added defines HDRFLAG_HASH_TAKEN and HDRFLAG_HASH_ATTACHED.
* src/mm/cacao-gc/compact.c (compact_move): Hashcode gets attached to objects
while moving if previously taken.
* src/mm/cacao-gc/heap.c (get_object_size): Attached hashcode might increase
object size.
--HG--
branch : exact-gc
michi [Fri, 23 Feb 2007 23:29:13 +0000 (23:29 +0000)]
* src/vm/vm.c [ENABLE_GC_CACAO]: Added assertion for JVMTI.
* src/vmcore/loader.h (classloader): Added this typedef, use it to represent
the indirection cell for a classloader.
* src/vmcore/class.h (classinfo): Classloaders are now represendet as
indirection cells.
* src/vmcore/loader.c, src/vmcore/class.c, src/vmcore/classcache.h,
src/native/native.c, src/native/vm/java_lang_Class.c,
src/native/vm/gnu/java_lang_VMClassLoader.c,
src/native/vm/gnu/gnu_classpath_VMStackWalker.c,
src/native/vm/gnu/java_lang_VMSystem.c: Adapted to above changes.
--HG--
branch : exact-gc
michi [Fri, 23 Feb 2007 23:20:45 +0000 (23:20 +0000)]
* src/mm/cacao-gc/mark.h, src/mm/cacao-gc/heap.h, src/mm/cacao-gc/heap.c,
src/mm/cacao-gc/region.h, src/mm/cacao-gc/region.c: Added.
* src/mm/cacao-gc/Makefile.am: See above.
* src/mm/cacao-gc/gc.h, src/mm/cacao-gc/gc.c: Moved development breaks.
(gc_collect): Added.
* src/mm/cacao-gc/compact.c: Classloaders are threaded in now.
(compact_move): Fixed a severe typo.
--HG--
branch : exact-gc
michi [Fri, 23 Feb 2007 23:11:41 +0000 (23:11 +0000)]
* src/vm/global.h: Added defines for HDRFLAG_MARK1, HDRFLAG_MARK2 and
HDRFLAG_UNCOLLECTABLE.
--HG--
branch : exact-gc
michi [Fri, 23 Feb 2007 23:06:11 +0000 (23:06 +0000)]
* src/vm/jit/i386/codegen.c (createnativestub) [ENABLE_GC_CACAO]:
Saved registers are now stored/recovered into/from the stackframeinfo struct.
* src/vm/jit/replace.c (replace_pop_native_frame, replace_push_native_frame)
[ENABLE_GC_CACAO]: Handle saved registers in the stackframeinfo struct now.
* src/vm/jit/stacktrace.h [ENABLE_GC_CACAO]:
Modified stackframeinfo struct accordingly.
--HG--
branch : exact-gc
michi [Fri, 23 Feb 2007 22:47:06 +0000 (22:47 +0000)]
* src/mm/memory.c, src/mm/memory.h: Moved defines for memcheck into header file.
--HG--
branch : exact-gc
michi [Fri, 23 Feb 2007 20:28:35 +0000 (20:28 +0000)]
* src/native/native.h (hashtable_library_loader_entry): Uses indirection cells.
* src/native/native.c (native_hashtable_library_add): Uses indirection cells.
(native_hashtable_library_find): Uses indirection cells.
* src/vmcore/loader.h (hashtable_classloader_entry): Added to represent
indirection cells.
* src/vmcore/loader.c (hashtable_classloader): Added to hold indirection cells.
(loader_hashtable_classloader_add, loader_hashtable_classloader_find): Added.
* src/cacaoh/dummy.c (heap_get_hashcode): Added.
--HG--
branch : exact-gc
michi [Fri, 23 Feb 2007 20:15:31 +0000 (20:15 +0000)]
* src/native/jni.c (jni_free_localref_table): Added.
* src/native/jni.c [ENABLE_GC_CACAO]: The localref_table is no longer put onto
the heap, but managed explicitly.
--HG--
branch : exact-gc
michi [Fri, 23 Feb 2007 20:08:10 +0000 (20:08 +0000)]
* src/mm/gc-common.h [ENABLE_GC_CACAO]: Added prototype for heap_get_hashcode().
* src/native/vm/gnu/java_lang_VMSystem.c [ENABLE_GC_CACAO]: Uses new method to
get hashcodes for objects.
* src/native/vm/cldc1.1/java_lang_Object.c [ENABLE_GC_CACAO]: Don't know if we
can use this here.
--HG--
branch : exact-gc
twisti [Wed, 21 Feb 2007 23:26:24 +0000 (23:26 +0000)]
* src/vm/global.h (ACC_CLASS_SOFT_REFERENCE, ACC_CLASS_WEAK_REFERENCE)
(ACC_CLASS_PHANTOM_REFERENCE): Added.
* src/vmcore/class.c (class_create_classinfo) [ENABLE_JAVASE]: Check
if the class is a reference class and flag it.
* src/vmcore/loader.c (load_class_from_classbuffer): OR the flags
loaded.
* src/vmcore/utf8.c (utf_java_lang_ref_SoftReference)
(utf_java_lang_ref_WeakReference, utf_java_lang_ref_PhantomReference):
Added.
(utf8_init): Initialize added variables.
* src/vmcore/utf8.h: Likewise.
twisti [Wed, 21 Feb 2007 23:23:25 +0000 (23:23 +0000)]
* src/vm/exceptions.c (exceptions_throw_noclassdeffounderror): Abort
when VM is initializing.
pm [Wed, 21 Feb 2007 23:12:30 +0000 (23:12 +0000)]
* src/vm/jit/s390/codegen.c (codegen): allocate register save area required by C abi for builtin calls
* src/vm/jit/s390/codegen.c (createnativestub): fix errornous code generated for return, fix datasp argument to codegen_finish_native_call
twisti [Wed, 21 Feb 2007 22:17:16 +0000 (22:17 +0000)]
* m4/jni.m4: Added ENABLE_JNI AM_CONDITIONAL.
* src/vm/vm.c (vm_createjvm): Replaced some ENABLE_JAVASE with
ENABLE_JNI.
(vm_create): Likewise.
* src/native/Makefile.am: Likewise.
* src/native/jni.c (jni_init) [ENABLE_JAVASE]: ifdef'ed Java SE stuff.
(_Jv_JNI_DefineClass) [!ENABLE_JAVASE]: Abort.
(_Jv_JNI_FindClass): Likewise.
(_Jv_JNI_FromReflectedMethod): Likewise.
(_Jv_JNI_FromReflectedField): Likewise.
(_Jv_JNI_NewDirectByteBuffer): Likewise.
(_Jv_JNI_GetDirectBufferAddress): Likewise.
(_Jv_JNI_GetDirectBufferCapacity): Likewise.
(_Jv_JNI_IsAssignableFrom): Call _Jv_java_lang_Class_isAssignableFrom.
(_Jv_JNI_IsInstanceOf): Call _Jv_java_lang_Class_isInstance.
(_Jv_JNI_EnsureLocalCapacity): Removed debug output.
twisti [Wed, 21 Feb 2007 20:24:01 +0000 (20:24 +0000)]
* src/vm/jit/Makefile.am [!WITH_BINUTILS_DISASSEMBLER]
(DISASS_SOURCES): Removed.
* src/vm/jit/disass-common.c: Removed WITH_BINUTILS_DISASSEMBLER
ifdefs, since it's compiled conditionally.
twisti [Wed, 21 Feb 2007 18:20:01 +0000 (18:20 +0000)]
* src/vm/jit/x86_64/md-abi.c (regs): Renamed to
abi_registers_integer_name.
(md_param_alloc): Made code more clear.
(md_param_alloc_native): New function.
twisti [Wed, 21 Feb 2007 18:19:02 +0000 (18:19 +0000)]
* src/vm/jit/abi-asm.h: Cosmetic changes.
twisti [Tue, 20 Feb 2007 01:23:00 +0000 (01:23 +0000)]
* src/native/vm/cldc1.1/com_sun_cldchi_jvm_JVM.c (vm/exceptions.h):
Added.
(vm/stringlocal.h): Likewise.
(loadLibrary): Throw error in case.
twisti [Tue, 20 Feb 2007 00:42:27 +0000 (00:42 +0000)]
* src/native/vm/java_lang_Runtime.c (loadLibrary): Different signature
for _Jv_java_lang_Runtime_loadLibrary depending on ENABLE_JNI.
* src/native/vm/java_lang_Runtime.h: Likewise.
* src/native/vm/cldc1.1/com_sun_cldchi_jvm_JVM.c: Likewise.
* src/native/vm/gnu/java_lang_VMRuntime.c: Likewise.
twisti [Tue, 20 Feb 2007 00:38:06 +0000 (00:38 +0000)]
* configure.ac (AC_CHECK_ENABLE_JAVA): Added.
(AC_CHECK_ENABLE_JIT): Likewise.
(AC_CHECK_ENABLE_JNI): Likewise.
* m4/jni.m4: New file.
* m4/java.m4: Likewise.
* m4/jit.m4: Likewise.
twisti [Mon, 19 Feb 2007 23:47:58 +0000 (23:47 +0000)]
* src/native/vm/cldc1.1/com_sun_cldchi_jvm_JVM.c: New file.
* src/native/vm/cldc1.1/Makefile.am (libnativevmcore_la_SOURCES):
Added com_sun_cldchi_jvm_JVM.c.
* src/native/vm/java_lang_Runtime.c [!WITH_STATIC_CLASSPATH] (ltdl.h):
Added.
(native/jni.h): Likewise.
(native/native.h): Likewise.
(native/include/java_lang_String.h): Likewise.
(toolbox/logging.h): Likewise.
(vm/exceptions.h): Likewise.
(vm/stringlocal.h): Likewise.
(vmcore/options.h): Likewise.
(loadLibrary): New function.
* src/native/vm/java_lang_Runtime.h (native/jni.h): Added.
(native/include/java_lang_String.h): Likewise.
* src/native/vm/gnu/java_lang_VMRuntime.c [!WITH_STATIC_CLASSPATH]
(ltdl.h): Removed.
(native/native.h): Likewise.
(toolbox/logging.h): Likewise.
(vmcore/options.h): Likewise.
(nativeLoad): Call _Jv_java_lang_Runtime_loadLibrary.
* src/native/include/Makefile.am (JAVAME_CLDC1_1_HEADER_FILES): Added
com_sun_cldchi_jvm_JVM.h.
pm [Sun, 18 Feb 2007 20:16:14 +0000 (20:16 +0000)]
* src/vm/jit/s390/patcher.c (patcher_wrapper): Formatting changes.
* src/vm/jit/s390/asmpart.S (asm_patcher_wrapper): Did not remove stack frame created by patcher stubs.
twisti [Fri, 16 Feb 2007 17:56:40 +0000 (17:56 +0000)]
* src/vmcore/statistics.c (mm/gc-common.h): Added.
(statistics_print_gc_memory_usage): New function.
* src/vmcore/statistics.h (statistics_print_gc_memory_usage):
Likewise.
* src/cacaoh/dummy.c (gc_get_heap_size): New stub.
(gc_get_free_bytes): Likewise.
(gc_get_total_bytes): Likewise.
(gc_get_max_heap_size): Likewise.
* src/mm/memory.c (memory_thread): Call
statistics_print_gc_memory_usage.
pm [Fri, 16 Feb 2007 07:17:01 +0000 (07:17 +0000)]
* src/vm/jit/s390/md.c,
src/vm/jit/s390/codegen.c,
src/vm/jit/s390/codegen.h,
src/vm/jit/s390/patcher.c,
src/vm/jit/s390/asmpart.S,
src/vm/jit/s390/md-abi.c: Changed a lot. Mostly adapted to changes in the tree.
twisti [Thu, 15 Feb 2007 19:48:11 +0000 (19:48 +0000)]
* src/cacaoh/dummy.c (intrp_asm_abstractmethoderror): New stub.
(print_dynamic_super_statistics): Likewise.
* src/vm/jit/intrp/engine.c (mm/memory.h): Added.
* src/vm/jit/intrp/dynamic-super.c [!ENABLE_THREADS]
(threads/none/lock.h): Likewise.
twisti [Thu, 15 Feb 2007 19:42:13 +0000 (19:42 +0000)]
* src/Makefile.am [ENABLE_THREADS] (THREADS_DIR): Added.
(SUBDIRS): Added THREADS_DIR.
* src/threads/Makefile.am (SUBDIRS): Set always to native.
* src/threads/threads-common.c (threads/none/threads.h): Removed.
[ENABLE_THREADS] (threads_create_thread): Removed ifdef.
(threads_get_current_tid) [ENABLE_THREADS]: Removed.
pm [Thu, 15 Feb 2007 11:43:52 +0000 (11:43 +0000)]
* src/threads/threads-common.c (threads_get_current_tid): Return 0 if compiled with --enable-threads=none
twisti [Wed, 14 Feb 2007 11:35:59 +0000 (11:35 +0000)]
* src/vm/jit/intrp/peephole.c: Updated to current codebase.
* src/vm/jit/intrp/intrp.h: Likewise.
* src/vm/jit/intrp/codegen.c: Likewise.
* src/vm/jit/intrp/engine.c: Likewise.
* src/vm/jit/intrp/asmpart.c: Likewise.
* src/vm/jit/intrp/dynamic-super.c: Likewise.
* src/vm/jit/intrp/patcher.c: Likewise.
* src/vm/jit/intrp/java.vmg: Likewise.
twisti [Tue, 13 Feb 2007 23:14:35 +0000 (23:14 +0000)]
* src/vm/jit/arm/codegen.c (createnativestub) [!__ARM_EABI__]:
#ifdef'ed split-stuff.
* src/vm/jit/arm/md-abi.c (md_param_alloc_native) [!__ARM_EABI__]:
Added GNU EABI stuff.
ajordan [Tue, 13 Feb 2007 22:11:37 +0000 (22:11 +0000)]
* configure.ac: Added support for compiling on Solaris.
* src/vm/jit/sparc64/*: Added os subdir, changes for compiling on Solaris.
twisti [Tue, 13 Feb 2007 21:32:36 +0000 (21:32 +0000)]
* src/vm/jit/mips/md-abi.c (regs): Renamed to
abi_registers_integer_name.
(md_param_alloc_native): New function.
* src/vm/jit/mips/disass.c (disassinstr): Replaced regs with
abi_registers_integer_name.
twisti [Tue, 13 Feb 2007 21:30:13 +0000 (21:30 +0000)]
* src/vm/jit/mips/emit.c (emit_verbosecall_exit): Fixed argument
passing, but I think there's still something left to fix.
* src/vm/jit/mips/md-abi.h (REG_A2_A3_PACKED): Added.
twisti [Tue, 13 Feb 2007 15:15:17 +0000 (15:15 +0000)]
* src/threads/native/lock.c (vm/vm.h): Added.
(lock_record_add_waiter): New function.
(lock_record_remove_waiter): Free the waiter data structure.
(lock_record_wait): Use lock_record_add_waiter.
* src/threads/native/lock.h: Cosmetic changes.
twisti [Tue, 13 Feb 2007 14:15:42 +0000 (14:15 +0000)]
* src/cacaoh/dummy.c (mem_alloc): Arghhhh, fixed arguments.
twisti [Tue, 13 Feb 2007 14:13:50 +0000 (14:13 +0000)]
* src/cacaoh/dummy.c (mem_alloc): Use calloc instead of malloc.
twisti [Tue, 13 Feb 2007 13:23:06 +0000 (13:23 +0000)]
* src/threads/threads-common.c (threads_get_current_tid): Check if
thread is NULL and return 0.
twisti [Tue, 13 Feb 2007 13:04:21 +0000 (13:04 +0000)]
* src/threads/threads-common.c (threads_get_current_tid): New
function.
* src/threads/threads-common.h (threads_get_current_tid): Added.
* src/toolbox/logging.c (log_start): Use threads_get_current_tid.
* src/cacaoh/dummy.c (threads_get_current_threadobject): Removed.
(threads_get_current_tid): Added.
ajordan [Tue, 13 Feb 2007 12:23:54 +0000 (12:23 +0000)]
* src/vm/jit/Makefile.am: Reverted duplicate changes.
* src/vm/signal.c: Reverted one duplicate header include.
ajordan [Tue, 13 Feb 2007 02:36:29 +0000 (02:36 +0000)]
* src/vm/jit/stacktrace.c (stacktrace_create_extern_stackframeinfo): SPARC specific retrieval of the PV.
(stacktrace_create): SPARC specific stack walking.
* src/vm/jit/Makefile.am: Not compiling verifier source when disabled.
* src/vm/jit/codegen-common.c (codegen_add_patch_ref): Included __SPARC_64__ in ifdef to add patcher NOPs from here.
* src/vm/signal.c: Added include statements and/or ifdefs to fix compiling without threads.
* src/vm/exceptions.c: Likewise.
* src/vm/finalizer.c: Likewise.
* src/native/jni.c: Likewise.
* src/threads/none/threads.h: Likewise.
* src/threads/threads-common.c: Likewise.
* src/threads/critical.c: Likewise.
ajordan [Tue, 13 Feb 2007 02:12:20 +0000 (02:12 +0000)]
* src/vm/jit/sparc64/md-abi.h: set TRACE_ARGS_NUM to 6.
* src/vm/jit/sparc64/emit.c: using the 6 available integer argument regs for call tracing.
* src/vm/jit/sparc64/md-abi.c: added abi register names.
Added md_param_alloc_native(), but still using the existing workaround.
twisti [Tue, 13 Feb 2007 00:51:01 +0000 (00:51 +0000)]
* src/mm/memory.c (memory_thread) [ENABLE_STATISTICS]: #ifdef'ed
statistics_print_memory_usage call.
twisti [Tue, 13 Feb 2007 00:40:41 +0000 (00:40 +0000)]
* src/vm/vm.c (vm_create) [ENABLE_STATISTICS]: #ifdef opt_stat.
twisti [Tue, 13 Feb 2007 00:37:41 +0000 (00:37 +0000)]
* src/vm/vm.c (vm_create): Set opt_stat also true for -verbose:memory.
* src/mm/memory.c [ENABLE_THREADS] (threads/threads-common.h): Added.
(memory_thread): Call statistics_print_memory_usage.
twisti [Tue, 13 Feb 2007 00:17:22 +0000 (00:17 +0000)]
* src/vm/jit/optimizing/profile.c (native/jni.h): Removed.
(native/include/java_lang_Thread.h): Likewise.
(native/include/java_lang_VMThread.h): Likewise.
(threads/threads-common.h): Added.
(thread_profile): Changed type to threadobject.
(profile_start_thread): Use threads_create_thread.
* src/vm/jit/optimizing/recompile.c: Likewise.
* src/vm/signal.c: Likewise.
* src/vm/finalizer.c: Likewise.
* src/vm/jit/asmpart.h (threads/native/critical.h): Removed.
(threads/critical.h): Added.
* src/vmcore/options.c (opt_verbosememory): Added.
* src/vmcore/options.h: Likewise.
* src/vm/vm.c (XXusage): Added -verbose:memory.
(vm_create): Likewise. Start memory thread.
* src/cacao/Makefile.am (THREAD_LIB): Changed to
$(top_builddir)/src/threads/libthreads.la.
* src/mm/memory.c [ENABLE_THREADS] (thread_memory): Added.
[ENABLE_THREADS] (memory_thread): New function.
[ENABLE_THREADS] (memory_start_thread): Likewise.
* src/mm/memory.h [ENABLE_THREADS] (memory_start_thread): Added.
* src/threads/native/critical.c: Removed.
* src/threads/native/critical.h: Likewise.
* src/threads/critical.c: Added.
* src/threads/critical.h: Likewise.
* src/threads/threads-common.c: New file.
* src/threads/threads-common.h: Likewise.
* src/threads/Makefile.am (AM_CPPFLAGS): Added.
(LIB): Likewise.
[ENABLE_THREADS] (THREAD_LIB): Likewise.
(noinst_LTLIBRARIES): Likewise.
(libthreads_la_SOURCES): Likewise.
(libthreads_la_LIBADD): Likewise.
* src/threads/.cvsignore: New file.
* src/threads/native/threads.c (include "threads/threads-common.h):
Added.
* src/threads/native/threads.h (MIN_PRIORITY, NORM_PRIORITY)
(MAX_PRIORITY): Removed.
* src/threads/native/Makefile.am (noinst_LTLIBRARIES): Changed to
libthreadsposix.la.
--HG--
rename : src/threads/native/critical.c => src/threads/critical.c
rename : src/threads/native/critical.h => src/threads/critical.h
twisti [Tue, 13 Feb 2007 00:05:52 +0000 (00:05 +0000)]
* src/vmcore/annotation.c
(annotation_load_attribute_runtimevisibleannotations): Renamed aa to
annotations.
twisti [Mon, 12 Feb 2007 13:28:45 +0000 (13:28 +0000)]
* src/vm/jit/emit-common.h (_EMIT_H): Renamed to _EMIT_COMMON_H.
(config.h): Added.
(vm/jit/codegen-common.h): Likewise.
[SIZEOF_VOID_P == 4] (IS_IMM16): Added.