cacao.git
20 years agoi386 and x86_64 methodtable bugfix.
twisti [Sat, 5 Jun 2004 14:37:51 +0000 (14:37 +0000)]
i386 and x86_64 methodtable bugfix.

20 years agoAdded dummy prototypes for calljava_xhandler and calljava_xhandler2.
twisti [Sat, 5 Jun 2004 14:37:14 +0000 (14:37 +0000)]
Added dummy prototypes for calljava_xhandler and calljava_xhandler2.

20 years ago- removed _GNU_SOURCE
twisti [Sat, 5 Jun 2004 12:22:26 +0000 (12:22 +0000)]
- removed _GNU_SOURCE
- started to set include directories correctly (to support builds in
different build directories)

20 years agoClass values (off*val) are s4's, so just read and write a long.
twisti [Thu, 3 Jun 2004 22:15:22 +0000 (22:15 +0000)]
Class values (off*val) are s4's, so just read and write a long.

20 years ago- replaced ICMD_CHECKOOM with ICMD_CHECKEXCEPTION
twisti [Thu, 3 Jun 2004 21:35:05 +0000 (21:35 +0000)]
- replaced ICMD_CHECKOOM with ICMD_CHECKEXCEPTION
- added missing gen_div_check's for software / by zero

20 years ago- added asm_getclassvalues_atomic and asm_criticalsections
twisti [Thu, 3 Jun 2004 21:30:30 +0000 (21:30 +0000)]
- added asm_getclassvalues_atomic and asm_criticalsections
- some risc-like defines

20 years agoRemoved methodtable.* stuff.
twisti [Thu, 3 Jun 2004 20:47:05 +0000 (20:47 +0000)]
Removed methodtable.* stuff.

20 years agoRemoved methodtable.* entries.
twisti [Thu, 3 Jun 2004 20:44:56 +0000 (20:44 +0000)]
Removed methodtable.* entries.

20 years agoWe don't need this anymore, we now use a much faster avl tree to find
twisti [Thu, 3 Jun 2004 20:43:34 +0000 (20:43 +0000)]
We don't need this anymore, we now use a much faster avl tree to find
methods.

20 years agoUse avl tree instead of a simple linked list for x86*'s methodtable.
twisti [Thu, 3 Jun 2004 20:40:39 +0000 (20:40 +0000)]
Use avl tree instead of a simple linked list for x86*'s methodtable.

20 years agoWe don't need this anymore, we now use a much faster avl tree to find
twisti [Thu, 3 Jun 2004 20:38:23 +0000 (20:38 +0000)]
We don't need this anymore, we now use a much faster avl tree to find
methods.

20 years ago- #include "config.h"
twisti [Wed, 2 Jun 2004 11:12:03 +0000 (11:12 +0000)]
- #include "config.h"
- added asm_getclassvalues_atomic and asm_criticalsections
- class_load/link calls in handle_exception
- handle ininitializererror in check_clinit

20 years ago- removed nullpointer proto
twisti [Wed, 2 Jun 2004 11:10:17 +0000 (11:10 +0000)]
- removed nullpointer proto
- removed LOOP_DEBUG stuff
- added ICMD_CHECKEXCEPTION
- don't recompute pv after asmpart calls
- call check_clinit from nativestub if native method

20 years agoCompile asmpart.S with all falgs (to get config.h).
twisti [Wed, 2 Jun 2004 10:56:49 +0000 (10:56 +0000)]
Compile asmpart.S with all falgs (to get config.h).

20 years agoAlso set xcheckarefs back to null.
twisti [Wed, 2 Jun 2004 10:34:31 +0000 (10:34 +0000)]
Also set xcheckarefs back to null.

20 years agoifdef __GNUC__ #warnings for mips pro compiler
twisti [Wed, 2 Jun 2004 10:31:09 +0000 (10:31 +0000)]
ifdef __GNUC__ #warnings for mips pro compiler

20 years agoExceptions work now with nested builtin_news correctly (set the exception pointer...
jowenn [Mon, 31 May 2004 15:47:20 +0000 (15:47 +0000)]
Exceptions work now with nested builtin_news correctly (set the exception pointer to zero, before creating a new exception, otherwise the next native stub does not return properly. Better handling of exceptions created during jit_compile, clear exceptions  during invocation of Call* jni functions, before the real invocation of  the target, refill in stack traces if an ICMD_CHECKEXCEPTION is encountered, ...

20 years agoshould have been , now it works in the cvs version too
jowenn [Sat, 29 May 2004 07:51:40 +0000 (07:51 +0000)]
should have been , now it works in the cvs version too

20 years agochecking the return value of a non void function, which contains returns without...
jowenn [Fri, 28 May 2004 21:45:51 +0000 (21:45 +0000)]
checking the return value of a non void function, which contains returns without values is a bad idea. I think an int return type true/false would be sufficient.

20 years agoPrint branch addresses correctly.
twisti [Fri, 28 May 2004 13:11:16 +0000 (13:11 +0000)]
Print branch addresses correctly.

20 years agoReplaced ICMD_CHECKOOM by ICMD_CHECKEXCEPTION.
twisti [Fri, 28 May 2004 13:04:46 +0000 (13:04 +0000)]
Replaced ICMD_CHECKOOM by ICMD_CHECKEXCEPTION.

20 years agoRemoved warnings.
twisti [Fri, 28 May 2004 12:18:44 +0000 (12:18 +0000)]
Removed warnings.

20 years agoRemoved warnings.
twisti [Fri, 28 May 2004 10:25:55 +0000 (10:25 +0000)]
Removed warnings.

20 years ago...and we should use it correctly ;-) Damn!
twisti [Fri, 28 May 2004 10:10:18 +0000 (10:10 +0000)]
...and we should use it correctly ;-) Damn!

20 years agoUse MNEW instead of malloc, removes warnings.
twisti [Fri, 28 May 2004 10:07:06 +0000 (10:07 +0000)]
Use MNEW instead of malloc, removes warnings.

20 years agoDefine some linux flags, maybe also used in other systems.
twisti [Thu, 27 May 2004 17:34:50 +0000 (17:34 +0000)]
Define some linux flags, maybe also used in other systems.

20 years ago- header changes
twisti [Thu, 27 May 2004 16:30:45 +0000 (16:30 +0000)]
- header changes
- install signal handlers in the posix way
- removed logging
- changed ICMD_CHECKOOM to ICMD_CHECKEXCEPTION

20 years agoSome header changes.
twisti [Thu, 27 May 2004 16:29:04 +0000 (16:29 +0000)]
Some header changes.

20 years agoReplaced findmethod with codegen_findmethod.
twisti [Thu, 27 May 2004 16:27:04 +0000 (16:27 +0000)]
Replaced findmethod with codegen_findmethod.

20 years agoChanged xoomrefs to xexceptionrefs.
twisti [Thu, 27 May 2004 16:06:14 +0000 (16:06 +0000)]
Changed xoomrefs to xexceptionrefs.

20 years ago- changed ICMD_CHECKOOM to ICMD_CHECKEXCEPTION
twisti [Thu, 27 May 2004 16:01:29 +0000 (16:01 +0000)]
- changed ICMD_CHECKOOM to ICMD_CHECKEXCEPTION
- removed warnings

20 years agocacao system changes added.
twisti [Thu, 27 May 2004 15:58:34 +0000 (15:58 +0000)]
cacao system changes added.

20 years agoThis on is huge:
twisti [Thu, 27 May 2004 15:57:33 +0000 (15:57 +0000)]
This on is huge:
  - many loader exceptions
  - other exceptions
  - better logging
  - removed some unused stuff

20 years ago- many exception related changes
twisti [Thu, 27 May 2004 15:54:42 +0000 (15:54 +0000)]
- many exception related changes
- void analyse_stack() -> methodinfo *analyse_stack(methodinfo *m)
- removed logging messages

20 years ago- changed option statistics to opt_stat
twisti [Thu, 27 May 2004 15:52:27 +0000 (15:52 +0000)]
- changed option statistics to opt_stat
- many exception changes
- defined -eager (not yet supported)

20 years ago- many changes related to exceptions
twisti [Thu, 27 May 2004 15:49:43 +0000 (15:49 +0000)]
- many changes related to exceptions
- added static methodptr jit_compile_intern() (don't call it!)
- better logging
- changed CHECKOOM to CHECKEXCEPTION
- started to change header include paths

20 years ago- many changes related to exceptions
twisti [Thu, 27 May 2004 15:46:59 +0000 (15:46 +0000)]
- many changes related to exceptions
- changed ICMD_CHECKOOM to ICMD_CHECKEXCEPTION
- removed logging messages

20 years ago- changed ICMD_CHECKOOM to ICMD_CHECKEXCEPTION
twisti [Thu, 27 May 2004 15:44:54 +0000 (15:44 +0000)]
- changed ICMD_CHECKOOM to ICMD_CHECKEXCEPTION
- removed typecheck() prototype (typecheck now has its own header)

20 years ago- #include "native.h"
twisti [Thu, 27 May 2004 15:43:11 +0000 (15:43 +0000)]
- #include "native.h"
- typecheck() returns methodinfo *
- removed logging messages

20 years ago- more exception strings defined
twisti [Thu, 27 May 2004 15:41:37 +0000 (15:41 +0000)]
- more exception strings defined
- class_java_lang_Throwable defined
- added init_system_exceptions() and compile_all_class_methods() for
  compiler exceptions
- better oom handling
- throw_cacao_exception_exit() if we cannot create an exception

20 years ago- removed unused class_java_lang_Throwable
twisti [Wed, 26 May 2004 21:32:34 +0000 (21:32 +0000)]
- removed unused class_java_lang_Throwable
- changed class_link return type to classinfo *

20 years ago- added utf_fprint_classname
twisti [Wed, 26 May 2004 21:27:03 +0000 (21:27 +0000)]
- added utf_fprint_classname
- first try to support eager loading
- check for opt_stat in STATISTICS

20 years agoAdded log_message_class and log_message_method
twisti [Wed, 26 May 2004 21:22:05 +0000 (21:22 +0000)]
Added log_message_class and log_message_method

20 years agoCheck class_{load,link,init} for exceptions.
twisti [Wed, 26 May 2004 18:52:37 +0000 (18:52 +0000)]
Check class_{load,link,init} for exceptions.

20 years agoNext version, even more complete.
twisti [Wed, 26 May 2004 18:40:36 +0000 (18:40 +0000)]
Next version, even more complete.

20 years agoUsed from extest.
twisti [Wed, 26 May 2004 18:40:15 +0000 (18:40 +0000)]
Used from extest.

20 years agothe cleaner part of the code for stub created exceptions, the rest will follow soon
jowenn [Wed, 26 May 2004 15:04:54 +0000 (15:04 +0000)]
the cleaner part of the code for stub created exceptions, the rest will follow soon

20 years agoa few stub exception test files
jowenn [Wed, 26 May 2004 15:01:32 +0000 (15:01 +0000)]
a few stub exception test files

20 years agoCatch jit_compiler exceptions.
twisti [Wed, 26 May 2004 13:29:18 +0000 (13:29 +0000)]
Catch jit_compiler exceptions.

20 years agoOnly a header file...
twisti [Wed, 26 May 2004 09:41:33 +0000 (09:41 +0000)]
Only a header file...

20 years agosmall testcases
jowenn [Tue, 25 May 2004 16:12:31 +0000 (16:12 +0000)]
small testcases

20 years agoWrong exception call, we need to use new_exception instead of
twisti [Thu, 20 May 2004 18:06:55 +0000 (18:06 +0000)]
Wrong exception call, we need to use new_exception instead of
new_exception_message.

20 years agoMore exceptions...
twisti [Thu, 20 May 2004 17:18:54 +0000 (17:18 +0000)]
More exceptions...

20 years ago- missing header file\VMClassLoader.c
twisti [Thu, 20 May 2004 16:58:49 +0000 (16:58 +0000)]
- missing header file\VMClassLoader.c
- small typo

20 years agosmall fix
stefan [Thu, 20 May 2004 07:15:54 +0000 (07:15 +0000)]
small fix

20 years agoMacOSX threads working (somewhat)
stefan [Wed, 19 May 2004 23:21:15 +0000 (23:21 +0000)]
MacOSX threads working (somewhat)

20 years agocast_lock removed (using asm_getclassvalues_atomic now)
stefan [Wed, 19 May 2004 17:20:12 +0000 (17:20 +0000)]
cast_lock removed (using asm_getclassvalues_atomic now)

20 years agocast_lock removed (using asm_getclassvalues_atomic now)
stefan [Wed, 19 May 2004 16:32:18 +0000 (16:32 +0000)]
cast_lock removed (using asm_getclassvalues_atomic now)

20 years agoMore exceptions, other output.
twisti [Wed, 19 May 2004 15:42:54 +0000 (15:42 +0000)]
More exceptions, other output.

20 years agoRenamed loging to logging
stefan [Tue, 18 May 2004 10:25:51 +0000 (10:25 +0000)]
Renamed loging to logging

20 years agocompileverbose merge from i386
stefan [Sun, 16 May 2004 17:08:11 +0000 (17:08 +0000)]
compileverbose merge from i386

20 years ago- ExceptionInInitializerError stuff
twisti [Sun, 16 May 2004 15:36:57 +0000 (15:36 +0000)]
- ExceptionInInitializerError stuff
- removed unused functions

20 years ago- OutOfMemoryError stuff
twisti [Sun, 16 May 2004 15:36:36 +0000 (15:36 +0000)]
- OutOfMemoryError stuff
- ExceptionInInitializerError stuff
- removed LOOP_DEBUG stuff
- install signal handler in posix style

20 years agoRemoved unused function declaration.
twisti [Sun, 16 May 2004 13:48:43 +0000 (13:48 +0000)]
Removed unused function declaration.

20 years ago- fixed branch addresses
twisti [Sun, 16 May 2004 13:47:03 +0000 (13:47 +0000)]
- fixed branch addresses

20 years ago- ExceptionInInitializerError stuff
twisti [Sun, 16 May 2004 13:45:15 +0000 (13:45 +0000)]
- ExceptionInInitializerError stuff
- OutOfMemory stuff
- native stub: check_clinit, calculate stubsize

20 years ago- ExceptionInInitializerError stuff
twisti [Sun, 16 May 2004 13:44:31 +0000 (13:44 +0000)]
- ExceptionInInitializerError stuff
- removed unused functions

20 years ago- OutOfMemory stuff
twisti [Sun, 16 May 2004 13:16:15 +0000 (13:16 +0000)]
- OutOfMemory stuff
- ExceptionInInitializerError stuff

20 years agoOnly show initialized message if it's really called.
twisti [Sun, 16 May 2004 13:14:41 +0000 (13:14 +0000)]
Only show initialized message if it's really called.

20 years agobugfix
stefan [Thu, 6 May 2004 17:25:57 +0000 (17:25 +0000)]
bugfix

20 years agoCleaner thread startup
stefan [Thu, 6 May 2004 15:52:21 +0000 (15:52 +0000)]
Cleaner thread startup

20 years agoChanged return type of compare_and_exchange
stefan [Wed, 5 May 2004 21:09:36 +0000 (21:09 +0000)]
Changed return type of compare_and_exchange

20 years agoThreads on Alpha Linux
stefan [Wed, 5 May 2004 21:08:55 +0000 (21:08 +0000)]
Threads on Alpha Linux

20 years agonative threads
stefan [Wed, 5 May 2004 12:27:04 +0000 (12:27 +0000)]
native threads

20 years agocompile fix
stefan [Wed, 5 May 2004 12:26:36 +0000 (12:26 +0000)]
compile fix

20 years agonative threads - there was something missing
stefan [Wed, 5 May 2004 12:24:34 +0000 (12:24 +0000)]
native threads - there was something missing

20 years agonative threads - checkcast fixes
stefan [Wed, 5 May 2004 12:14:58 +0000 (12:14 +0000)]
native threads - checkcast fixes

20 years agonative threads - checkcast fixes
stefan [Wed, 5 May 2004 11:43:11 +0000 (11:43 +0000)]
native threads - checkcast fixes

20 years agonative threads - critical section (cast) change
stefan [Mon, 3 May 2004 18:53:19 +0000 (18:53 +0000)]
native threads - critical section (cast) change

20 years agouse siginfo
stefan [Fri, 30 Apr 2004 11:53:22 +0000 (11:53 +0000)]
use siginfo

20 years agocompile fix
stefan [Tue, 27 Apr 2004 11:57:03 +0000 (11:57 +0000)]
compile fix

20 years agogcc-2.x fix, sorry...
twisti [Mon, 26 Apr 2004 19:17:27 +0000 (19:17 +0000)]
gcc-2.x fix, sorry...

20 years agoSOME lazy loading/linking fixes!!! This is NOT finished yet!
twisti [Mon, 26 Apr 2004 17:30:38 +0000 (17:30 +0000)]
SOME lazy loading/linking fixes!!! This is NOT finished yet!

20 years agolazy loading/linking
twisti [Mon, 26 Apr 2004 17:20:06 +0000 (17:20 +0000)]
lazy loading/linking

20 years ago- exception stuff
twisti [Mon, 26 Apr 2004 17:12:47 +0000 (17:12 +0000)]
- exception stuff
- lazy loading/linking (may some stuff is still left!!!)

20 years agoRemoved unused fpu stuff (this should be implemented completely new).
twisti [Mon, 26 Apr 2004 17:11:08 +0000 (17:11 +0000)]
Removed unused fpu stuff (this should be implemented completely new).

20 years ago- dynamic nullpointer exception
twisti [Mon, 26 Apr 2004 17:09:52 +0000 (17:09 +0000)]
- dynamic nullpointer exception
- compileverbose message
- some bugfixes
- implemented oom

20 years ago- removed unused stuff
twisti [Mon, 26 Apr 2004 16:50:00 +0000 (16:50 +0000)]
- removed unused stuff
- lazy loading/linking
- handle ExceptionInInitializerError in asm_check_clinit
- code indent, sorry...

20 years ago- implemented ICMD_CHECKOOM
twisti [Mon, 26 Apr 2004 16:41:30 +0000 (16:41 +0000)]
- implemented ICMD_CHECKOOM
- lazy loading/linking
- compileverbose messages for compiler passes

20 years agoAdded oom stuff.
twisti [Mon, 26 Apr 2004 16:36:48 +0000 (16:36 +0000)]
Added oom stuff.

20 years ago- moved structs into header file (we need them somewhere else)
twisti [Mon, 26 Apr 2004 16:32:49 +0000 (16:32 +0000)]
- moved structs into header file (we need them somewhere else)
- removed warnings

20 years agolazy loading/linking
twisti [Mon, 26 Apr 2004 16:26:35 +0000 (16:26 +0000)]
lazy loading/linking

20 years agolazy loading/linking stuff
twisti [Mon, 26 Apr 2004 16:20:33 +0000 (16:20 +0000)]
lazy loading/linking stuff

20 years ago- lazy loading/linking stuff
twisti [Mon, 26 Apr 2004 16:18:56 +0000 (16:18 +0000)]
- lazy loading/linking stuff
- removed: systemclassloader_addclass
           systemclassloader_addlibrary
           systemclassloader_addlibname

20 years ago- init stuff
twisti [Mon, 26 Apr 2004 16:09:10 +0000 (16:09 +0000)]
- init stuff
- exception handling
- -all and -m rewrite (not finished yet)

20 years ago- major loading rewrite to support lazy laoding/linking
twisti [Mon, 26 Apr 2004 16:06:03 +0000 (16:06 +0000)]
- major loading rewrite to support lazy laoding/linking
- suck_* stuff can be used recursive

20 years ago- removed OutOfMemoryError exceptions
twisti [Mon, 26 Apr 2004 16:03:01 +0000 (16:03 +0000)]
- removed OutOfMemoryError exceptions
- replaced native_new_and_init w/ new_exception
- lazy loading/linking DefineClass changes

20 years ago- lazy loading/linking stuff
twisti [Mon, 26 Apr 2004 15:56:34 +0000 (15:56 +0000)]
- lazy loading/linking stuff
- gc_init stuff

20 years ago- removed some unused extern's
twisti [Mon, 26 Apr 2004 15:55:41 +0000 (15:55 +0000)]
- removed some unused extern's
- moved some to better places

20 years ago- lazy loading/linking stuff
twisti [Mon, 26 Apr 2004 15:53:01 +0000 (15:53 +0000)]
- lazy loading/linking stuff
- builtin_asm_get_exceptionptrptr
- print classnames with utf_sprint_classname