cacao.git
18 years ago* utf_java_lang_IllegalMonitorStateException: Added.
twisti [Thu, 3 Nov 2005 20:33:51 +0000 (20:33 +0000)]
* utf_java_lang_IllegalMonitorStateException: Added.

18 years ago* --disable-threads fixes.
twisti [Thu, 3 Nov 2005 20:33:20 +0000 (20:33 +0000)]
* --disable-threads fixes.

18 years ago* gnu_classpath_Pointer.h: Added, required by java_lang_VMThread.h.
twisti [Thu, 3 Nov 2005 20:18:51 +0000 (20:18 +0000)]
* gnu_classpath_Pointer.h: Added, required by java_lang_VMThread.h.

18 years ago* Updated.
twisti [Thu, 3 Nov 2005 20:15:43 +0000 (20:15 +0000)]
* Updated.

18 years ago* Regenerated with GNU classpath 0.19 files.
twisti [Thu, 3 Nov 2005 20:08:48 +0000 (20:08 +0000)]
* Regenerated with GNU classpath 0.19 files.

18 years ago* genall: Added, generates the headers which are in cvs.
twisti [Thu, 3 Nov 2005 20:08:26 +0000 (20:08 +0000)]
* genall: Added, generates the headers which are in cvs.

18 years ago* CHECK_MONITORSTATE: Check for lr == NULL, this is for wait's which are
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.

18 years ago* Updated to classpath-0.19 versions.
twisti [Thu, 3 Nov 2005 11:13:07 +0000 (11:13 +0000)]
* Updated to classpath-0.19 versions.

18 years ago* preInit: When GC is disabled, we add constant strings to os.* properties
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.

18 years ago* Map the whole heap to a specific address (0x10000000), so we can compare
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.

18 years ago* stackcall_realloc, heap_reallocate: Removed.
twisti [Wed, 2 Nov 2005 13:29:38 +0000 (13:29 +0000)]
* stackcall_realloc, heap_reallocate: Removed.

18 years ago* preInit: Set java.vendor and java.vendor.url to GNU classpath.
twisti [Wed, 2 Nov 2005 00:05:11 +0000 (00:05 +0000)]
* preInit: Set java.vendor and java.vendor.url to GNU classpath.

18 years ago* config.h, vm/types.h: Added include.
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.

18 years agofix in linker: do not store self-reference for bootloader loaded classes
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.

18 years ago2005-11-01 Christian Thalinger <twisti@complang.tuwien.ac.at>
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.

18 years ago* getDeclaredClasses: Mauve bugfix, we took the wrong flag in the second
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.

18 years ago* analyse_stack: Added mips32 stuff.
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.

18 years ago* cacao_stacktrace_fillInStackTrace: Flush after debug output.
twisti [Tue, 1 Nov 2005 12:36:30 +0000 (12:36 +0000)]
* cacao_stacktrace_fillInStackTrace: Flush after debug output.

18 years ago* Pass and print arguments as hex values.
twisti [Fri, 28 Oct 2005 19:56:29 +0000 (19:56 +0000)]
* Pass and print arguments as hex values.

18 years ago* Print floats/doubles as hex values.
twisti [Fri, 28 Oct 2005 18:07:00 +0000 (18:07 +0000)]
* Print floats/doubles as hex values.

18 years ago* Print arguments as hex values.
twisti [Fri, 28 Oct 2005 18:06:59 +0000 (18:06 +0000)]
* Print arguments as hex values.

18 years ago* patcher_get_putfield: Fixed TYPE_LNG on mips32.
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.

18 years ago* Calculate the return address of a patcher call via PV + offset. This
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.

18 years ago* patcher_get_putstatic, patcher_get_putfield,
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.

18 years ago* main: Call memory_init.
twisti [Fri, 28 Oct 2005 11:39:25 +0000 (11:39 +0000)]
* main: Call memory_init.
* exit_handler: Print mem usage before times.

18 years ago* codememlock, codememsize, codememptr: Global variables added.
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.

18 years ago* memory_init: Added.
twisti [Fri, 28 Oct 2005 11:34:55 +0000 (11:34 +0000)]
* memory_init: Added.

18 years ago* codememusage, maxcodememusage: Added.
twisti [Fri, 28 Oct 2005 11:34:23 +0000 (11:34 +0000)]
* codememusage, maxcodememusage: Added.
* print_stats, mem_usagelog: Some output reformated.

18 years ago* load_method: Calculate count_extable_len correctly.
twisti [Fri, 28 Oct 2005 11:30:19 +0000 (11:30 +0000)]
* load_method: Calculate count_extable_len correctly.

18 years ago* utf_new_intern: Calculate count_utf_len correctly (off by 1).
twisti [Fri, 28 Oct 2005 11:29:52 +0000 (11:29 +0000)]
* utf_new_intern: Calculate count_utf_len correctly (off by 1).

18 years ago* AC_CHECK_FUNCS: Added calloc mprotect getpagesize free.
twisti [Fri, 28 Oct 2005 11:28:59 +0000 (11:28 +0000)]
* AC_CHECK_FUNCS: Added calloc mprotect getpagesize free.

18 years ago* asm_wrapper_patcher: We also need to save return registers for
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.

18 years ago* SAVE_RETURN_REGISTERS, RESTORE_RETURN_REGISTERS: Added.
twisti [Thu, 27 Oct 2005 10:49:20 +0000 (10:49 +0000)]
* SAVE_RETURN_REGISTERS, RESTORE_RETURN_REGISTERS: Added.

18 years agoprint numerical nesting level for -verbosecall (easier to search for than whitespace)
edwin [Thu, 27 Oct 2005 10:23:59 +0000 (10:23 +0000)]
print numerical nesting level for -verbosecall (easier to search for than whitespace)

18 years ago* asm_handle_exception: Pass indent flag correctly.
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.

18 years ago* fv0: Defined.
twisti [Thu, 27 Oct 2005 10:20:48 +0000 (10:20 +0000)]
* fv0: Defined.
* SAVE_RETURN_REGISTERS, RESTORE_RETURN_REGISTERS: Added.

18 years ago* GetMethodID, GetStaticMethodID: Check clazz, initialize class.
twisti [Wed, 26 Oct 2005 20:41:49 +0000 (20:41 +0000)]
* GetMethodID, GetStaticMethodID: Check clazz, initialize class.

18 years ago* cacao_get_field_address: Don't call cacao_callingMethod, instead use
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.

18 years ago* invokeNative: Fixed access check, initialize class.
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.

18 years ago* builtin_multianewarray_intern: Renamed from builtin_multianewarray.
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).

18 years ago* class_resolvefield, class_findmethod, class_resolvemethod,
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].

18 years ago* callingMethodCollector, cacao_callingMethod: Removed.
twisti [Wed, 26 Oct 2005 20:22:30 +0000 (20:22 +0000)]
* callingMethodCollector, cacao_callingMethod: Removed.

18 years ago* Some code reformated.
twisti [Wed, 26 Oct 2005 16:49:18 +0000 (16:49 +0000)]
* Some code reformated.

18 years ago* exceptions_init: Load and link class_java_lang_NullPointerException.
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.

18 years ago* class_java_lang_NullPointerException: Added.
twisti [Wed, 26 Oct 2005 15:00:20 +0000 (15:00 +0000)]
* class_java_lang_NullPointerException: Added.

18 years ago* utf_java_lang_NullPointerException: Added.
twisti [Wed, 26 Oct 2005 14:58:15 +0000 (14:58 +0000)]
* utf_java_lang_NullPointerException: Added.

18 years ago* asm_handle_exception: Indent.
twisti [Wed, 26 Oct 2005 13:29:53 +0000 (13:29 +0000)]
* asm_handle_exception: Indent.

18 years ago* Added glibj.zip to jikes.
twisti [Tue, 25 Oct 2005 17:42:59 +0000 (17:42 +0000)]
* Added glibj.zip to jikes.

18 years agotypecheck: use patcher for postponed typechecks for ATHROW and ARETURN
edwin [Mon, 24 Oct 2005 21:28:15 +0000 (21:28 +0000)]
typecheck: use patcher for postponed typechecks for ATHROW and ARETURN

18 years agoadded more detailed statistics to typecheck.c
edwin [Mon, 24 Oct 2005 21:11:10 +0000 (21:11 +0000)]
added more detailed statistics to typecheck.c

18 years ago* LREM: Bugfix, we accidentaly overwrote REG_ITMP2 to which we saved the
twisti [Mon, 24 Oct 2005 19:40:57 +0000 (19:40 +0000)]
* LREM: Bugfix, we accidentaly overwrote REG_ITMP2 to which we saved the
  %rdx register.
* LDIV, LREM: Use alpha-style macros and compare with a value in the data
  segment instead of an inline move.

18 years ago* M_CMP, M_CMP_IMM, M_CMP_MEMBASE: Added.
twisti [Mon, 24 Oct 2005 19:38:52 +0000 (19:38 +0000)]
* M_CMP, M_CMP_IMM, M_CMP_MEMBASE: Added.

18 years ago* CFLAGS: Use default only if nothing's specified.
twisti [Mon, 24 Oct 2005 10:02:46 +0000 (10:02 +0000)]
* CFLAGS: Use default only if nothing's specified.
* Don't check for mmap stuff, not required anymore.

18 years ago* Define OS_INLINE for darwin.
twisti [Fri, 21 Oct 2005 13:48:20 +0000 (13:48 +0000)]
* Define OS_INLINE for darwin.

18 years ago* types.h: Include path fixed.
twisti [Fri, 21 Oct 2005 13:45:45 +0000 (13:45 +0000)]
* types.h: Include path fixed.
* Some reformatting.

18 years ago* types.h: Include path fixed.
twisti [Fri, 21 Oct 2005 13:45:10 +0000 (13:45 +0000)]
* types.h: Include path fixed.

18 years ago* ICMD_ATHROW, ICMD_ARETURN: Added patcher stub calls.
twisti [Fri, 21 Oct 2005 13:44:43 +0000 (13:44 +0000)]
* ICMD_ATHROW, ICMD_ARETURN: Added patcher stub calls.

18 years ago* patcher_athrow_areturn: Added.
twisti [Fri, 21 Oct 2005 13:43:51 +0000 (13:43 +0000)]
* patcher_athrow_areturn: Added.

18 years ago* Patcher stub call nop'ing stuff added.
twisti [Fri, 21 Oct 2005 13:23:25 +0000 (13:23 +0000)]
* Patcher stub call nop'ing stuff added.

18 years ago* PATCHER_CALL_SIZE: Added.
twisti [Fri, 21 Oct 2005 13:22:38 +0000 (13:22 +0000)]
* PATCHER_CALL_SIZE: Added.

18 years ago* patcher_athrow_areturn: Added.
twisti [Fri, 21 Oct 2005 13:16:52 +0000 (13:16 +0000)]
* patcher_athrow_areturn: Added.

18 years ago* ICMD_ATHROW, ICMD_ARETURN: Added patcher stub call.
twisti [Fri, 21 Oct 2005 13:16:35 +0000 (13:16 +0000)]
* ICMD_ATHROW, ICMD_ARETURN: Added patcher stub call.

18 years ago* memory_cnew: Added.
twisti [Fri, 21 Oct 2005 13:08:19 +0000 (13:08 +0000)]
* memory_cnew: Added.

18 years ago* memory_cnew: Added.
twisti [Fri, 21 Oct 2005 13:07:58 +0000 (13:07 +0000)]
* memory_cnew: Added.
* CNEW: Call memory_cnew.

18 years ago* lastmcodeptr: Stuff added.
twisti [Fri, 21 Oct 2005 12:04:52 +0000 (12:04 +0000)]
* lastmcodeptr: Stuff added.
* ICMD_ATHROW, ICMD_ARETURN: Added patcher stub call.
* ICMD_xRETURN: Moved monitorexit after the call trace.

18 years ago* PATCHER_CALL_SIZE: Added.
twisti [Fri, 21 Oct 2005 12:03:33 +0000 (12:03 +0000)]
* PATCHER_CALL_SIZE: Added.

18 years ago* patcher_athrow_areturn: Added.
twisti [Fri, 21 Oct 2005 12:03:06 +0000 (12:03 +0000)]
* patcher_athrow_areturn: Added.

18 years ago* codegen_increase: We also need to set the lastmcodeptr on some platforms.
twisti [Fri, 21 Oct 2005 12:02:40 +0000 (12:02 +0000)]
* codegen_increase: We also need to set the lastmcodeptr on some platforms.

18 years ago* ICMD_ARETURN: Added patcher call, missed in last commit.
twisti [Fri, 21 Oct 2005 11:44:26 +0000 (11:44 +0000)]
* ICMD_ARETURN: Added patcher call, missed in last commit.

18 years ago* patcher_athrow_areturn: Fixed comment.
twisti [Fri, 21 Oct 2005 11:43:50 +0000 (11:43 +0000)]
* patcher_athrow_areturn: Fixed comment.

18 years ago* Added stuff to nop the missing space for patcher stub calls
twisti [Fri, 21 Oct 2005 09:09:18 +0000 (09:09 +0000)]
* Added stuff to nop the missing space for patcher stub calls
  (lastmcodeptr).

18 years ago* config.h: Added.
twisti [Fri, 21 Oct 2005 09:07:25 +0000 (09:07 +0000)]
* config.h: Added.
* PATCHER_CALL_SIZE: Likewise.
* M_POP, M_CALL_IMM: Likewise.

18 years ago* patcher_athrow_areturn: Added.
twisti [Fri, 21 Oct 2005 09:06:30 +0000 (09:06 +0000)]
* patcher_athrow_areturn: Added.

18 years ago* dseg_addlinenumbertablesize: Do padding on all 64-bit machines.
twisti [Fri, 21 Oct 2005 08:46:14 +0000 (08:46 +0000)]
* dseg_addlinenumbertablesize: Do padding on all 64-bit machines.
* codegen_addpatchref: Set lastmcodeptr to the last byte of the patcher
  stub call instruction.

18 years ago* codegendata: Added lastmcodeptr.
twisti [Fri, 21 Oct 2005 08:44:21 +0000 (08:44 +0000)]
* codegendata: Added lastmcodeptr.

18 years agoadded Changes: Edwin Steiner to exceptions.[ch]
edwin [Thu, 20 Oct 2005 10:42:12 +0000 (10:42 +0000)]
added Changes: Edwin Steiner to exceptions.[ch]

18 years agosmall fix in classnotfoundexception_to_noclassdeffounderror
edwin [Thu, 20 Oct 2005 10:40:09 +0000 (10:40 +0000)]
small fix in classnotfoundexception_to_noclassdeffounderror

18 years agoinclude vm/resolve.h in patchers
edwin [Thu, 20 Oct 2005 10:16:29 +0000 (10:16 +0000)]
include vm/resolve.h in patchers

18 years agoremoved helper.h #includes
edwin [Thu, 20 Oct 2005 10:07:16 +0000 (10:07 +0000)]
removed helper.h #includes
removed helper.[ch] from Makefile.am

18 years agoremoved helper.[ch]
edwin [Thu, 20 Oct 2005 09:59:02 +0000 (09:59 +0000)]
removed helper.[ch]

18 years agoreplace helper_* calls in the pathers with calls to resolve_*_eager
edwin [Thu, 20 Oct 2005 09:53:00 +0000 (09:53 +0000)]
replace helper_* calls in the pathers with calls to resolve_*_eager

18 years agoadded resolve_*_eager functions
edwin [Thu, 20 Oct 2005 09:34:16 +0000 (09:34 +0000)]
added resolve_*_eager functions
reduced jit/helpers to bare minimum in order to prepare removal
cleaned up resolve.[ch], doc comments are now in resolve.c

18 years agoAdded new_noclassdeffounderror and a function to convert
edwin [Thu, 20 Oct 2005 00:49:47 +0000 (00:49 +0000)]
Added new_noclassdeffounderror and a function to convert
ClassNotFoundException to NoClassDefFoundError.
(This is the first of a series of commits to clean up the
creation/handling of loader exceptions.)

18 years ago* cacao_get_field_address: Check if we should bypass security checks,
twisti [Wed, 19 Oct 2005 23:38:32 +0000 (23:38 +0000)]
* cacao_get_field_address: Check if we should bypass security checks,
  pass this instead of c and f.
* set: Use local variables (it's better this way, thanks anton).

18 years ago* set: Assigment bugfix, wrong variable used. Maybe i should think about
twisti [Wed, 19 Oct 2005 22:11:27 +0000 (22:11 +0000)]
* set: Assigment bugfix, wrong variable used.  Maybe i should think about
  the way i'm using variables...

18 years ago* callingMethodCollector: Return [1] element since it's called from a
twisti [Wed, 19 Oct 2005 22:06:23 +0000 (22:06 +0000)]
* callingMethodCollector: Return [1] element since it's called from a
  native method (maybe this needs checking again).

18 years ago* Second part of the rewrite, seems quite ok now and codesize is smaller.
twisti [Wed, 19 Oct 2005 22:04:36 +0000 (22:04 +0000)]
* Second part of the rewrite, seems quite ok now and codesize is smaller.

18 years ago* new_illegalargumentexception: Added.
twisti [Wed, 19 Oct 2005 22:03:45 +0000 (22:03 +0000)]
* new_illegalargumentexception: Added.

18 years ago* utf_java_lang_IllegalArgumentException: Added.
twisti [Wed, 19 Oct 2005 22:03:06 +0000 (22:03 +0000)]
* utf_java_lang_IllegalArgumentException: Added.

18 years ago* class_java_lang_IllegalArgumentException: Added.
twisti [Wed, 19 Oct 2005 22:02:48 +0000 (22:02 +0000)]
* class_java_lang_IllegalArgumentException: Added.

18 years ago* is_accessible_class: Renamed to access_is_accessible_class.
twisti [Wed, 19 Oct 2005 22:01:25 +0000 (22:01 +0000)]
* is_accessible_class: Renamed to access_is_accessible_class.
* is_accessible_member: Renamed to access_is_accessible_member.

18 years ago* config.h, vm/types.h: Added.
twisti [Wed, 19 Oct 2005 21:35:52 +0000 (21:35 +0000)]
* config.h, vm/types.h: Added.

18 years ago* Fixed file path.
twisti [Wed, 19 Oct 2005 19:56:46 +0000 (19:56 +0000)]
* Fixed file path.
* Added Changes.

18 years ago* Smaller fixes, nothing important.
twisti [Wed, 19 Oct 2005 19:56:13 +0000 (19:56 +0000)]
* Smaller fixes, nothing important.

18 years ago* Use noinst_DATA target for header files since all does only work for
twisti [Wed, 19 Oct 2005 14:35:36 +0000 (14:35 +0000)]
* Use noinst_DATA target for header files since all does only work for
  plain make.

18 years ago* Arghhh! Sorry...
twisti [Wed, 19 Oct 2005 11:40:53 +0000 (11:40 +0000)]
* Arghhh! Sorry...

18 years ago* class_findfield_approx, class_findfield_index_approx: Removed.
twisti [Wed, 19 Oct 2005 11:28:41 +0000 (11:28 +0000)]
* class_findfield_approx, class_findfield_index_approx: Removed.

18 years ago* First part of rewrite, get/setXXX functions are now correct (mauve test).
twisti [Wed, 19 Oct 2005 11:27:42 +0000 (11:27 +0000)]
* First part of rewrite, get/setXXX functions are now correct (mauve test).
  Still some stuff left to do (access checks, get and set functions).

18 years ago* We have to configure all sub packages, otherwise we can't do any dist
twisti [Tue, 18 Oct 2005 12:42:38 +0000 (12:42 +0000)]
* We have to configure all sub packages, otherwise we can't do any dist
  stuff like distclean.
* Removed different mips flags.
* src/vm/jit/mips/linux/Makefile: Added.

18 years ago* types.h: Fixed include path.
twisti [Tue, 18 Oct 2005 12:38:16 +0000 (12:38 +0000)]
* types.h: Fixed include path.