motse [Sun, 6 Nov 2005 16:21:03 +0000 (16:21 +0000)]
add check for ENABLE_JVMTI
motse [Sun, 6 Nov 2005 16:16:07 +0000 (16:16 +0000)]
split VMjvmti.c in VMVirtualMachine.c and VMFrame.c
motse [Sun, 6 Nov 2005 16:05:30 +0000 (16:05 +0000)]
ignore for jvmti header files added
twisti [Sun, 6 Nov 2005 14:47:18 +0000 (14:47 +0000)]
* x86_64_emit_ishift, x86_64_emit_lshift: Bugfix where s1 maybe equal to
RCX.
twisti [Sun, 6 Nov 2005 14:46:37 +0000 (14:46 +0000)]
* asm_wrapper_patcher: We now use %rbp to address the patcher stub
variables and align %rsp to 16-bytes. This is necessary for leaf methods
and the infamous printf-movaps bug.
twisti [Sun, 6 Nov 2005 14:44:42 +0000 (14:44 +0000)]
* bp: Defined.
motse [Sun, 6 Nov 2005 14:01:10 +0000 (14:01 +0000)]
VMjdwp/VMjvmti new makefile entries
twisti [Sat, 5 Nov 2005 23:42:13 +0000 (23:42 +0000)]
* codegen_findmethod: Use structure in local stackframe instead of
allocating each time on the heap.
twisti [Sat, 5 Nov 2005 22:32:38 +0000 (22:32 +0000)]
* main: Call nogc_init at the very beginning for DISABLE_GC.
twisti [Sat, 5 Nov 2005 22:32:07 +0000 (22:32 +0000)]
* nogc_init, nogc_realloc: Added for DISABLE_GC.
twisti [Sat, 5 Nov 2005 22:31:49 +0000 (22:31 +0000)]
* nogc_realloc, heap_free, nogc_init: Added.
twisti [Sat, 5 Nov 2005 22:30:59 +0000 (22:30 +0000)]
* Define some macros differently for DISABLE_GC, allocate always from the
heap.
twisti [Sat, 5 Nov 2005 19:51:18 +0000 (19:51 +0000)]
* builtin_new: Check for java.lang.InstantiationError.
twisti [Sat, 5 Nov 2005 19:44:38 +0000 (19:44 +0000)]
* string_java_lang_InstantiationError: Added.
twisti [Sat, 5 Nov 2005 17:57:09 +0000 (17:57 +0000)]
* show_icmd: Fixed ICMD_ARRAYCHECKCAST output.
twisti [Sat, 5 Nov 2005 16:33:53 +0000 (16:33 +0000)]
* asm_call_jit_compiler: Renamed _exceptionptr to _no_threads_exceptionptr.
* asm_wrapper_patcher: Added athrow/areturn support, the wrapper can now
handle leaf methods.
twisti [Sat, 5 Nov 2005 16:31:41 +0000 (16:31 +0000)]
* createnativestub: Renamed _exceptionptr to _no_threads_exceptionptr.
twisti [Sat, 5 Nov 2005 16:30:33 +0000 (16:30 +0000)]
* JAVA_GET/PUT*: Removed __POWERPC__ define, since we can now handle lazy
loading in leafs.
twisti [Sat, 5 Nov 2005 16:29:36 +0000 (16:29 +0000)]
* JAVA_GET/PUT*, JAVA_CHECKCAST, JAVA_INSTANCEOF: Removed __POWERPC__
define, since we can now handle lazy loading in leafs.
twisti [Sat, 5 Nov 2005 16:26:56 +0000 (16:26 +0000)]
* currentThread: Assign return value to variable, this removes a compiler
warning and eases debugging.
twisti [Sat, 5 Nov 2005 16:13:34 +0000 (16:13 +0000)]
* Only added some debug output for mips and powerpc, this should be remove
asap.
twisti [Sat, 5 Nov 2005 11:10:42 +0000 (11:10 +0000)]
* patcher_builtin_newarray, patcher_builtin_multianewarray,
patcher_builtin_arraycheckcast, patcher_builtin_arrayinstanceof: Patch
classinfo instead of vftbl.
twisti [Fri, 4 Nov 2005 17:49:54 +0000 (17:49 +0000)]
* patcher_builtin_newarray, patcher_builtin_multianewarray,
patcher_builtin_arraycheckcast, patcher_builtin_arrayinstanceof: Patch
classinfo instead of vftbl.
twisti [Fri, 4 Nov 2005 17:17:36 +0000 (17:17 +0000)]
* patcher_builtin_newarray, patcher_builtin_multianewarray,
patcher_builtin_arraycheckcast, patcher_builtin_arrayinstanceof: Patch
classinfo instead of vftbl.
motse [Fri, 4 Nov 2005 16:58:36 +0000 (16:58 +0000)]
almost all required function implemented - first integration with jdwp - nothing tested
twisti [Fri, 4 Nov 2005 16:47:25 +0000 (16:47 +0000)]
* patcher_builtin_newarray, patcher_builtin_multianewarray,
patcher_builtin_arraycheckcast, patcher_builtin_arrayinstanceof: Patch
classinfo instead of vftbl.
twisti [Fri, 4 Nov 2005 16:33:41 +0000 (16:33 +0000)]
* M_XOR, M_CLR: Added.
twisti [Fri, 4 Nov 2005 16:33:20 +0000 (16:33 +0000)]
* createnativestub: Call trace fixes.
twisti [Fri, 4 Nov 2005 16:27:56 +0000 (16:27 +0000)]
* verify_builtin: Use classinfo instead of vftbl for BUILTIN_newarray,
BUILTIN_arrayinstanceof.
* verify_multianewarray: Likewise.
* verify_basic_block: Likewise for ICMD_ARRAYCHECKCAST.
twisti [Fri, 4 Nov 2005 16:25:00 +0000 (16:25 +0000)]
* patcher_builtin_newarray, patcher_builtin_multianewarray,
patcher_builtin_arraycheckcast, patcher_builtin_arrayinstanceof: Patch
classinfo instead of vftbl.
twisti [Fri, 4 Nov 2005 16:24:04 +0000 (16:24 +0000)]
* JAVA_ANEWARRAY, JAVA_MULTIANEWARRAY, JAVA_CHECKCAST, JAVA_INSTANCEOF: Use
classinfo instead of vftbl in ICMDs.
twisti [Fri, 4 Nov 2005 16:21:48 +0000 (16:21 +0000)]
* M_IMOV_IMM: Added.
twisti [Fri, 4 Nov 2005 16:20:54 +0000 (16:20 +0000)]
* builtin_arrayinstanceof, builtin_arraycheckcast, builtin_newarray,
builtin_multianewarray: Use classinfo instead of vftbl.
twisti [Fri, 4 Nov 2005 16:19:32 +0000 (16:19 +0000)]
* fill_callblock_from_objectarray: Pass classinfo to
builtin_arrayinstanceof.
twisti [Fri, 4 Nov 2005 16:18:27 +0000 (16:18 +0000)]
* config.h, vm/types.h: Added.
twisti [Fri, 4 Nov 2005 09:57:34 +0000 (09:57 +0000)]
* defineClass: Renamed arguments so they fit to the java ones, add null
pointer check, removed truncated class file check since this is done by
the loader function.
twisti [Thu, 3 Nov 2005 23:07:30 +0000 (23:07 +0000)]
* CallStatic*Method*: Some cleanups and correct log messages.
twisti [Thu, 3 Nov 2005 22:42:00 +0000 (22:42 +0000)]
* Added mips32 stuff.
twisti [Thu, 3 Nov 2005 21:39:25 +0000 (21:39 +0000)]
* patcher_athrow_areturn changes.
twisti [Thu, 3 Nov 2005 21:38:48 +0000 (21:38 +0000)]
* thread_restartcriticalsection: Added.
twisti [Thu, 3 Nov 2005 20:45:04 +0000 (20:45 +0000)]
* Finalizer thread changes.
* Some functions renamed.
* threads_dump: Print daemon, if any.
twisti [Thu, 3 Nov 2005 20:43:49 +0000 (20:43 +0000)]
* Some functions renamed.
* Smaller changes.
twisti [Thu, 3 Nov 2005 20:43:17 +0000 (20:43 +0000)]
* codememlock: #ifdef for threads.
twisti [Thu, 3 Nov 2005 20:43:01 +0000 (20:43 +0000)]
* runboehmfinalizer: Removed.
* --disable-threads compile fixes.
* heap_allocate: Use finalizer_add.
twisti [Thu, 3 Nov 2005 20:41:44 +0000 (20:41 +0000)]
* start: threads changes.
twisti [Thu, 3 Nov 2005 20:40:52 +0000 (20:40 +0000)]
* _no_threads_localref_table: Made non-static.
* LOCALREFTABLE: Moved to jni.h
twisti [Thu, 3 Nov 2005 20:39:46 +0000 (20:39 +0000)]
* threads renaming changes.
twisti [Thu, 3 Nov 2005 20:38:59 +0000 (20:38 +0000)]
* new_illegalmonitorstateexception: Added.
twisti [Thu, 3 Nov 2005 20:38:44 +0000 (20:38 +0000)]
* Finalizer thread changes.
twisti [Thu, 3 Nov 2005 20:36:59 +0000 (20:36 +0000)]
* Finalizer thread and stuff required for that.
twisti [Thu, 3 Nov 2005 20:35:18 +0000 (20:35 +0000)]
* finalizer.[ch]: Added.
twisti [Thu, 3 Nov 2005 20:34:57 +0000 (20:34 +0000)]
* threads_dump: Renamed from thread_dump.
twisti [Thu, 3 Nov 2005 20:34:14 +0000 (20:34 +0000)]
* class_java_lang_IllegalMonitorStateException: Added.
twisti [Thu, 3 Nov 2005 20:33:51 +0000 (20:33 +0000)]
* utf_java_lang_IllegalMonitorStateException: Added.
twisti [Thu, 3 Nov 2005 20:33:20 +0000 (20:33 +0000)]
* --disable-threads fixes.
twisti [Thu, 3 Nov 2005 20:18:51 +0000 (20:18 +0000)]
* gnu_classpath_Pointer.h: Added, required by java_lang_VMThread.h.
twisti [Thu, 3 Nov 2005 20:15:43 +0000 (20:15 +0000)]
* Updated.
twisti [Thu, 3 Nov 2005 20:08:48 +0000 (20:08 +0000)]
* Regenerated with GNU classpath 0.19 files.
twisti [Thu, 3 Nov 2005 20:08:26 +0000 (20:08 +0000)]
* genall: Added, generates the headers which are in cvs.
twisti [Thu, 3 Nov 2005 19:07:57 +0000 (19:07 +0000)]
* CHECK_MONITORSTATE: Check for lr == NULL, this is for wait's which are
not in a synchronized block.
twisti [Thu, 3 Nov 2005 11:13:07 +0000 (11:13 +0000)]
* Updated to classpath-0.19 versions.
twisti [Wed, 2 Nov 2005 13:35:21 +0000 (13:35 +0000)]
* preInit: When GC is disabled, we add constant strings to os.* properties
to keep the memory allocation equal on all architectures.
twisti [Wed, 2 Nov 2005 13:33:26 +0000 (13:33 +0000)]
* Map the whole heap to a specific address (0x10000000), so we can compare
calltraces.
* heap_reallocate: Removed.
twisti [Wed, 2 Nov 2005 13:29:38 +0000 (13:29 +0000)]
* stackcall_realloc, heap_reallocate: Removed.
twisti [Wed, 2 Nov 2005 00:05:11 +0000 (00:05 +0000)]
* preInit: Set java.vendor and java.vendor.url to GNU classpath.
twisti [Tue, 1 Nov 2005 21:59:33 +0000 (21:59 +0000)]
* config.h, vm/types.h: Added include.
* arraycopy: Added missing ArrayIndexOutOfBoundsException check for
sp + len < 0.
* Smaller changes.
edwin [Tue, 1 Nov 2005 21:33:28 +0000 (21:33 +0000)]
fix in linker: do not store self-reference for bootloader loaded classes
This fixes the bug that primitive classes were stored in the classcache.
twisti [Tue, 1 Nov 2005 18:32:53 +0000 (18:32 +0000)]
2005-11-01 Christian Thalinger <twisti@complang.tuwien.ac.at>
* vm/reference/java/lang/VMThread.java (sleep): Don't round
ms and pass ns to Object.wait, fixes mauve test.
twisti [Tue, 1 Nov 2005 15:26:34 +0000 (15:26 +0000)]
* getDeclaredClasses: Mauve bugfix, we took the wrong flag in the second
loop.
* getSuperclass* Check for use_class_as_object return value.
* Some smaller changes, more to come.
twisti [Tue, 1 Nov 2005 12:39:01 +0000 (12:39 +0000)]
* analyse_stack: Added mips32 stuff.
* icmd_print_stack: Print v0 instead of ra, since ra is the return address
on some architectures.
* show_icmd: Better debug output.
twisti [Tue, 1 Nov 2005 12:36:30 +0000 (12:36 +0000)]
* cacao_stacktrace_fillInStackTrace: Flush after debug output.
twisti [Fri, 28 Oct 2005 19:56:29 +0000 (19:56 +0000)]
* Pass and print arguments as hex values.
twisti [Fri, 28 Oct 2005 18:07:00 +0000 (18:07 +0000)]
* Print floats/doubles as hex values.
twisti [Fri, 28 Oct 2005 18:06:59 +0000 (18:06 +0000)]
* Print arguments as hex values.
twisti [Fri, 28 Oct 2005 17:50:55 +0000 (17:50 +0000)]
* patcher_get_putfield: Fixed TYPE_LNG on mips32.
* Also flush the data cache.
twisti [Fri, 28 Oct 2005 14:48:18 +0000 (14:48 +0000)]
* Calculate the return address of a patcher call via PV + offset. This
fixes leaf method problems.
twisti [Fri, 28 Oct 2005 14:47:11 +0000 (14:47 +0000)]
* patcher_get_putstatic, patcher_get_putfield,
patcher_builtin_multianewarray, patcher_builtin_arraycheckcast,
patcher_invokestatic_special, patcher_invokevirtual,
patcher_invokeinterface, patcher_checkcast_instanceof_flags,
patcher_checkcast_instanceof_interface,
patcher_checkcast_instanceof_class, patcher_clinit,
patcher_athrow_areturn: Don't calculate return address and write it back,
this is now done implicitly by the patcher stub.
* patcher_builtin_new, patcher_builtin_newarray,
patcher_builtin_arrayinstanceof: Adjusted return address calculation.
twisti [Fri, 28 Oct 2005 11:39:25 +0000 (11:39 +0000)]
* main: Call memory_init.
* exit_handler: Print mem usage before times.
twisti [Fri, 28 Oct 2005 11:37:03 +0000 (11:37 +0000)]
* codememlock, codememsize, codememptr: Global variables added.
* memory_init: Added.
* memory_checked_alloc: Renamed from checked_alloc.
* memory_cnew: Memory usage bugfix, we always allocated a page, even for
1-byte allocations. Reverted back to old allocation scheme but handle
thread race conditions with a lock.
twisti [Fri, 28 Oct 2005 11:34:55 +0000 (11:34 +0000)]
* memory_init: Added.
twisti [Fri, 28 Oct 2005 11:34:23 +0000 (11:34 +0000)]
* codememusage, maxcodememusage: Added.
* print_stats, mem_usagelog: Some output reformated.
twisti [Fri, 28 Oct 2005 11:30:19 +0000 (11:30 +0000)]
* load_method: Calculate count_extable_len correctly.
twisti [Fri, 28 Oct 2005 11:29:52 +0000 (11:29 +0000)]
* utf_new_intern: Calculate count_utf_len correctly (off by 1).
twisti [Fri, 28 Oct 2005 11:28:59 +0000 (11:28 +0000)]
* AC_CHECK_FUNCS: Added calloc mprotect getpagesize free.
twisti [Thu, 27 Oct 2005 10:49:57 +0000 (10:49 +0000)]
* asm_wrapper_patcher: We also need to save return registers for
areturn patchers.
twisti [Thu, 27 Oct 2005 10:49:20 +0000 (10:49 +0000)]
* SAVE_RETURN_REGISTERS, RESTORE_RETURN_REGISTERS: Added.
edwin [Thu, 27 Oct 2005 10:23:59 +0000 (10:23 +0000)]
print numerical nesting level for -verbosecall (easier to search for than whitespace)
twisti [Thu, 27 Oct 2005 10:22:20 +0000 (10:22 +0000)]
* asm_handle_exception: Pass indent flag correctly.
* asm_wrapper_patcher: We also need to save return registers for
areturn patchers.
twisti [Thu, 27 Oct 2005 10:20:48 +0000 (10:20 +0000)]
* fv0: Defined.
* SAVE_RETURN_REGISTERS, RESTORE_RETURN_REGISTERS: Added.
twisti [Wed, 26 Oct 2005 20:41:49 +0000 (20:41 +0000)]
* GetMethodID, GetStaticMethodID: Check clazz, initialize class.
twisti [Wed, 26 Oct 2005 20:40:00 +0000 (20:40 +0000)]
* cacao_get_field_address: Don't call cacao_callingMethod, instead use
cacao_createClassContextArray.
twisti [Wed, 26 Oct 2005 20:37:42 +0000 (20:37 +0000)]
* invokeNative: Fixed access check, initialize class.
* Removed slot checks, these shouldn't be necessary.
twisti [Wed, 26 Oct 2005 20:30:43 +0000 (20:30 +0000)]
* builtin_multianewarray_intern: Renamed from builtin_multianewarray.
* builtin_multianewarray: Wrapper for builtin_multianewarray_intern, checks
for dimensions (fixes mauve test).
twisti [Wed, 26 Oct 2005 20:27:15 +0000 (20:27 +0000)]
* class_resolvefield, class_findmethod, class_resolvemethod,
class_resolveclassmethod, class_resolveinterfacemethod,
class_findmethod_approx, class_resolvemethod_approx, class_issubclass,
class_showmethods, class_showconstantpool: Moved from loader.[ch] to
class.[ch].
twisti [Wed, 26 Oct 2005 20:22:30 +0000 (20:22 +0000)]
* callingMethodCollector, cacao_callingMethod: Removed.
twisti [Wed, 26 Oct 2005 16:49:18 +0000 (16:49 +0000)]
* Some code reformated.
twisti [Wed, 26 Oct 2005 16:42:22 +0000 (16:42 +0000)]
* exceptions_init: Load and link class_java_lang_NullPointerException.
* new_nullpointerexception: Use native_new_and_init instead of
new_exception.
twisti [Wed, 26 Oct 2005 15:00:20 +0000 (15:00 +0000)]
* class_java_lang_NullPointerException: Added.
twisti [Wed, 26 Oct 2005 14:58:15 +0000 (14:58 +0000)]
* utf_java_lang_NullPointerException: Added.
twisti [Wed, 26 Oct 2005 13:29:53 +0000 (13:29 +0000)]
* asm_handle_exception: Indent.