cacao.git
18 years ago* NEWS: Added JNI method resolution fix.
edwin [Mon, 13 Feb 2006 23:16:14 +0000 (23:16 +0000)]
* NEWS: Added JNI method resolution fix.

18 years ago* src/vm/method.c (assert.h): Added.
twisti [Mon, 13 Feb 2006 18:55:55 +0000 (18:55 +0000)]
* src/vm/method.c (assert.h): Added.
(vm/linker.h): Likewise.
(vm/jit/methodheader.h): Likewise.
(method_vftbl_lookup): New method.

* src/vm/method.h (vm/linker.h): Added.
(method_vftbl_lookup): New method.

Fixes bug #17 and #18.
* src/native/jni.c: Complete rewrite of Call*Method code.

18 years ago* src/vm/utf8.c (utf_display): Some reformatting.
twisti [Mon, 13 Feb 2006 10:53:49 +0000 (10:53 +0000)]
* src/vm/utf8.c (utf_display): Some reformatting.
(utf_display_classname): Likewise.

18 years ago* src/vm/jit/mips/codegen.c (createcompilerstub): Store the methodinfo
twisti [Mon, 13 Feb 2006 00:12:24 +0000 (00:12 +0000)]
* src/vm/jit/mips/codegen.c (createcompilerstub): Store the methodinfo
pointer in the same place as in the methodheader for compiled methods.

18 years ago* src/vm/jit/alpha/md.c (md_assembler_get_patch_address): New method.
twisti [Sun, 12 Feb 2006 23:43:09 +0000 (23:43 +0000)]
* src/vm/jit/alpha/md.c (md_assembler_get_patch_address): New method.
(md_codegen_findmethod): Use assert's directly.

* src/vm/jit/mips/md.c (md_assembler_get_patch_address): Likewise.
(md_codegen_findmethod): Likewise.

* src/vm/jit/alpha/codegen.c (createcompilerstub): Store the
methodinfo pointer in the same place as in the methodheader for
compiled methods and pass the pointer in REG_ITMP1.

* src/vm/jit/alpha/md-asm.h (mptr): Defined.

* src/vm/jit/powerpc/asmpart.S (asm_call_jit_compiler): methodinfo
pointer is passed via itmp1.  Use md_assembler_get_patch_address to
get the patch address.
(asm_calljavafunction, asm_calljavafunction2): Pass methodinfo pointer
via itmp1.

18 years ago* src/vm/jit/powerpc/codegen.c (createcompilerstub): Store the
twisti [Sun, 12 Feb 2006 23:22:36 +0000 (23:22 +0000)]
* src/vm/jit/powerpc/codegen.c (createcompilerstub): Store the
methodinfo pointer in the same place as in the methodheader for
compiled methods.

* src/vm/jit/powerpc/asmpart.S (asm_call_jit_compiler): methodinfo
pointer is passed via itmp1.
(asm_calljavafunction, asm_calljavafunction2): Pass methodinfo pointer
via itmp1.

18 years ago* src/threads/native/threads.c (threads_dump): Removed unused variable 'ee'.
edwin [Sun, 12 Feb 2006 22:08:13 +0000 (22:08 +0000)]
* src/threads/native/threads.c (threads_dump): Removed unused variable 'ee'.

18 years ago* src/native/vm/VMClass.c (Java_java_lang_VMClass_getDeclaredMethods):
edwin [Sun, 12 Feb 2006 21:57:46 +0000 (21:57 +0000)]
* src/native/vm/VMClass.c (Java_java_lang_VMClass_getDeclaredMethods):
Cast to java_lang_Class in order to avoid compiler warning.

* src/native/vm/VMClass.c (Changes): Added my name.

* src/native/vm/VMClass.c (vim biolerplate): Added.

18 years ago* src/threads/native/threads.c (allocLockRecordSimple): Fixed declaration
edwin [Sun, 12 Feb 2006 21:47:10 +0000 (21:47 +0000)]
* src/threads/native/threads.c (allocLockRecordSimple): Fixed declaration
after code error.

18 years ago* src/vm/jit/i386/codegen.c (createcompilerstub): Store the
twisti [Sun, 12 Feb 2006 16:28:35 +0000 (16:28 +0000)]
* src/vm/jit/i386/codegen.c (createcompilerstub): Store the
methodinfo* in the same place as in the methodheader for compiled
methods.

18 years ago* NEWS: Added directory check bugfix.
edwin [Sun, 12 Feb 2006 16:24:50 +0000 (16:24 +0000)]
* NEWS: Added directory check bugfix.

18 years ago* NEWS: Added two bugfixes.
edwin [Sun, 12 Feb 2006 16:10:29 +0000 (16:10 +0000)]
* NEWS: Added two bugfixes.

18 years ago* src/vm/loader.c, src/vm/loader.h (vim boilerplate): Added.
edwin [Sun, 12 Feb 2006 16:02:43 +0000 (16:02 +0000)]
* src/vm/loader.c, src/vm/loader.h (vim boilerplate): Added.

18 years ago* src/vm/zip.c (zip_open): Don't add directories to the zipfile
twisti [Sun, 12 Feb 2006 13:11:06 +0000 (13:11 +0000)]
* src/vm/zip.c (zip_open): Don't add directories to the zipfile
hashtable.  We use the trailing `/' to identify a directory (i hope
that's correct).

18 years ago* src/vm/jit/x86_64/md-abi.c (md_param_alloc): Regard use of A0 for returning float...
christian [Sun, 12 Feb 2006 12:59:52 +0000 (12:59 +0000)]
* src/vm/jit/x86_64/md-abi.c (md_param_alloc): Regard use of A0 for returning float values.

18 years ago* src/native/vm/VMClassLoader.c (vim boilerplate): Added.
edwin [Sun, 12 Feb 2006 02:18:20 +0000 (02:18 +0000)]
* src/native/vm/VMClassLoader.c (vim boilerplate): Added.

18 years ago* src/vm/classcache.c (classcache_store): Made classcache_store idempotent.
edwin [Sun, 12 Feb 2006 02:17:10 +0000 (02:17 +0000)]
* src/vm/classcache.c (classcache_store): Made classcache_store idempotent.

* src/native/vm/VMClassLoader.c (Java_java_lang_VMClassLoader_defineClass):
Store defined class with classcache_store instead of just with
classcache_store_defined, so it an initiating loader is recorded for the
class. This should solve problems with classes that are defined outside
of a loadClass context (e.g. by java.lang.reflect.Proxy).

18 years ago* src/native/vm/VMClass.c (getDeclaredMethods): Set the method's class
twisti [Sun, 12 Feb 2006 00:30:13 +0000 (00:30 +0000)]
* src/native/vm/VMClass.c (getDeclaredMethods): Set the method's class
in java.lang.reflect.Method.

* src/native/vm/Method.c (toolbox/logging.h, vm/jit/stacktrace.h):
Removed.

* src/native/vm/VMSystem.c (identityHashCode): Use casts.

18 years ago* src/vm/exceptions.c, src/vm/exceptions.h
twisti [Sun, 12 Feb 2006 00:25:12 +0000 (00:25 +0000)]
* src/vm/exceptions.c, src/vm/exceptions.h
(exceptions_throw_nosuchmethoderror): New method.

18 years ago* src/vm/jit/stack.h (COPY) All copied stackslots set to TEMPVAR. This prevents confl...
christian [Sat, 11 Feb 2006 21:25:45 +0000 (21:25 +0000)]
* src/vm/jit/stack.h (COPY) All copied stackslots set to TEMPVAR. This prevents conflicts with LOCALVAR
and
(DUP) Likewise.
STACKVARS.

18 years ago* src/vm/jit/stack.h (TYPE_VERIFYERROR): Converted most of body to a function.
edwin [Tue, 7 Feb 2006 23:18:23 +0000 (23:18 +0000)]
* src/vm/jit/stack.h (TYPE_VERIFYERROR): Converted most of body to a function.

* src/vm/exceptions.c, src/vm/exceptions.h
(exceptions_throw_verifyerror_for_stack): Added.

* src/vm/exceptions.c, src/vm/exceptions.h (vim boilerplate): Added.

18 years ago* src/vm/jit/stack.h (vim boilerplate): Fixed.
edwin [Tue, 7 Feb 2006 21:27:58 +0000 (21:27 +0000)]
* src/vm/jit/stack.h (vim boilerplate): Fixed.

18 years ago* NEWS: Added some stuff.
twisti [Tue, 7 Feb 2006 21:15:11 +0000 (21:15 +0000)]
* NEWS: Added some stuff.

18 years ago* src/vm/jit/intrp/codegen.c (createcalljavafunction):
edwin [Tue, 7 Feb 2006 17:28:05 +0000 (17:28 +0000)]
* src/vm/jit/intrp/codegen.c (createcalljavafunction):
Removed t_inlining_globals.

18 years ago* src/vm/jit/codegen-common.c, src/vm/jit/codegen-common.h (codegen_setup):
edwin [Tue, 7 Feb 2006 17:22:13 +0000 (17:22 +0000)]
* src/vm/jit/codegen-common.c, src/vm/jit/codegen-common.h (codegen_setup):
Removed t_inlining_globals argument.

* src/vm/jit/codegen-common.c (codegen_finish): Prepared for inlined line
number tables. References with line number <-3 will not be relocated.

* src/vm/jit/codegen-common.c (codegen_createnativestub):
Removed t_inlining_globals and inlining_setup.

* src/vm/jit/codegen-common.h (Changes): Added my name to 'Changes'.

* src/vm/jit/inline/inline.c, src/vm/jit/inline/inline.h: Ripped out old
inliner.

* src/vm/jit/jit.c: Removed inlining headers.

* src/vm/jit/jit.c (INLINE_GOTO): Added instruction name to table.

* src/vm/jit/jit.c (jit_compile_intern): Removed t_inlining_globals argument.

* src/vm/jit/codegen-common.c, src/vm/jit/codegen-common.h,
src/vm/jit/inline/inline.c, src/vm/jit/inline/inline.h (vim boilerplate):
Added.

18 years ago* src/vm/jit/i386/codegen.c (codegen): Prepared for inlining. The icmds
edwin [Tue, 7 Feb 2006 16:52:17 +0000 (16:52 +0000)]
* src/vm/jit/i386/codegen.c (codegen): Prepared for inlining. The icmds
ICMD_INLINE_START, ICMD_INLINE_END, ICMD_INLINE_GOTO were implemented, and
at the start of exception handlers the indepth is no longer assumed to be 1.

18 years ago* src/vm/jit/jit.h (Changes): Fixed tabs.
edwin [Tue, 7 Feb 2006 16:47:44 +0000 (16:47 +0000)]
* src/vm/jit/jit.h (Changes): Fixed tabs.

18 years ago* src/threads/native/threads.c, src/threads/native/threads.h
twisti [Mon, 6 Feb 2006 21:06:12 +0000 (21:06 +0000)]
* src/threads/native/threads.c, src/threads/native/threads.h
(sleepThread): Renamed to thread_sleep.

18 years ago* src/cacao/cacao.c (vm/jit/profile.h): Changed to
twisti [Mon, 6 Feb 2006 21:01:54 +0000 (21:01 +0000)]
* src/cacao/cacao.c (vm/jit/profile.h): Changed to
vm/jit/profile/profile.h.
(main): profile_init and profile_start_thread calls added.

18 years ago* configure.ac (AC_CONFIG_FILES): Added src/vm/jit/profile/Makefile.
twisti [Mon, 6 Feb 2006 18:50:24 +0000 (18:50 +0000)]
* configure.ac (AC_CONFIG_FILES): Added src/vm/jit/profile/Makefile.

18 years ago* src/vm/jit/Makefile.am (DIST_SUBDIRS): Added profile.
twisti [Mon, 6 Feb 2006 18:49:53 +0000 (18:49 +0000)]
* src/vm/jit/Makefile.am (DIST_SUBDIRS): Added profile.
(PROFILE_LIB): Added.
(PROFILE_SOURCES): Removed.

18 years ago* src/vm/jit/profile/profile.c (profile_init): New method.
twisti [Mon, 6 Feb 2006 18:48:50 +0000 (18:48 +0000)]
* src/vm/jit/profile/profile.c (profile_init): New method.
(profile_thread): Likewise.
(profile_start_thread): Likewise.
* src/vm/jit/profile/profile.h (profile_init): Added.
(profile_start_thread): Likewise.
* src/vm/jit/profile/Makefile.am: New file.
* src/vm/jit/profile/.cvsignore: Likewise.

18 years ago* src/vm/jit/profile.h: Moved to src/vm/jit/profile/.
twisti [Mon, 6 Feb 2006 18:34:55 +0000 (18:34 +0000)]
* src/vm/jit/profile.h: Moved to src/vm/jit/profile/.

--HG--
rename : src/vm/jit/profile.h => src/vm/jit/profile/profile.h

18 years ago* src/vm/jit/profile.c: Moved to src/vm/jit/profile/.
twisti [Mon, 6 Feb 2006 18:33:40 +0000 (18:33 +0000)]
* src/vm/jit/profile.c: Moved to src/vm/jit/profile/.

--HG--
rename : src/vm/jit/profile.c => src/vm/jit/profile/profile.c

18 years ago* src/vm/jit/profile: Ooops.
twisti [Mon, 6 Feb 2006 18:32:49 +0000 (18:32 +0000)]
* src/vm/jit/profile: Ooops.

--HG--
rename : src/vm/jit/profile => src/vm/jit/profile.c

18 years ago* src/vm/jit/profile.c: Moved to src/vm/jit/profile/.
twisti [Mon, 6 Feb 2006 18:31:49 +0000 (18:31 +0000)]
* src/vm/jit/profile.c: Moved to src/vm/jit/profile/.

--HG--
rename : src/vm/jit/profile.c => src/vm/jit/profile

18 years ago* src/vm/jit/allocator/Makefile.am: Use tabs instead of space.
twisti [Mon, 6 Feb 2006 18:14:56 +0000 (18:14 +0000)]
* src/vm/jit/allocator/Makefile.am: Use tabs instead of space.
(INCLUDE): Renamed to AM_CPPFLAGS.

18 years ago* doc/Makefile.am (EXTRA_DIST): Added inlining_stacktrace.txt and
edwin [Mon, 6 Feb 2006 08:22:14 +0000 (08:22 +0000)]
* doc/Makefile.am (EXTRA_DIST): Added inlining_stacktrace.txt and
native_threads.txt.

18 years ago* src/threads/native/threads.c: Minor cleanup.
edwin [Mon, 6 Feb 2006 06:49:04 +0000 (06:49 +0000)]
* src/threads/native/threads.c: Minor cleanup.

18 years ago* src/threads/native/threads.c: Uncuddled `else`s and other cleanup.
edwin [Mon, 6 Feb 2006 06:46:35 +0000 (06:46 +0000)]
* src/threads/native/threads.c: Uncuddled `else`s and other cleanup.

18 years ago* doc/inlining_stacktrace.txt: Clarified, added entry after the inlined body
edwin [Mon, 6 Feb 2006 06:16:34 +0000 (06:16 +0000)]
* doc/inlining_stacktrace.txt: Clarified, added entry after the inlined body
for the rest of the line after the call.

18 years ago* src/vm/jit/i386/machine-instr.h (compare_and_swap): Commented.
edwin [Mon, 6 Feb 2006 05:00:12 +0000 (05:00 +0000)]
* src/vm/jit/i386/machine-instr.h (compare_and_swap): Commented.

18 years ago* doc/native_threads.txt: Added.
edwin [Mon, 6 Feb 2006 04:50:38 +0000 (04:50 +0000)]
* doc/native_threads.txt: Added.

18 years ago* src/threads/native/threads.c (allocLockRecordPool): Relink the free list
edwin [Mon, 6 Feb 2006 04:46:39 +0000 (04:46 +0000)]
* src/threads/native/threads.c (allocLockRecordPool): Relink the free list
of lock records when reusing a pool from the global_pool. This avoids
cross-linking of lock record owned by different threads, and hopefully
fixes our long-standing deadlock problem.

* src/threads/native/threads.c (allocLockRecordSimple, recycleLockRecord)
(initObjectLock): Temporarily added assertions to shake out possible
further bugs in the free list handling.

* src/threads/native/threads.c (monitorEnter, monitorExit): Commented.

* src/threads/native/threads.c (Changes): Added my name to 'Changes'.

* src/threads/native/threads.c (vim boilerplate): Added.

18 years ago* src/vm/jit/stacktrace.c (stacktrace_add_method_intern): Added.
edwin [Mon, 6 Feb 2006 01:28:07 +0000 (01:28 +0000)]
* src/vm/jit/stacktrace.c (stacktrace_add_method_intern): Added.
(stacktrace_add_method): Documented. Now uses stacktrace_add_method_intern.
(stacktrace_getCurrentClassLoader): Documented.
(stacktrace_dump_trace): Removed unused variable.
(Changes): Added my name to 'Changes'.

18 years ago* src/vm/jit/verify/typecheck.c (verify_basic_block): Teach the verifier
edwin [Mon, 6 Feb 2006 01:08:37 +0000 (01:08 +0000)]
* src/vm/jit/verify/typecheck.c (verify_basic_block): Teach the verifier
about the new inline instructions ICMD_INLINE_START, ICMD_INLINE_END,
and ICMD_INLINE_GOTO.

18 years ago* src/vm/jit/stack.c (analyse_stack): Set bptr->stack for each visited
edwin [Mon, 6 Feb 2006 01:02:59 +0000 (01:02 +0000)]
* src/vm/jit/stack.c (analyse_stack): Set bptr->stack for each visited
block.
(show_icmd): Implemented printing of new inline instructions.

18 years ago* src/vm/jit/allocator/simplereg.c (ICMD_INLINE_GOTO): Added.
edwin [Mon, 6 Feb 2006 00:02:50 +0000 (00:02 +0000)]
* src/vm/jit/allocator/simplereg.c (ICMD_INLINE_GOTO): Added.
(Changes): Added my name to 'Changes'.
(vim boilerplate): Added.

18 years ago* src/vm/jit/allocator/lsra.c, src/vm/jit/allocator/lsra.h (lsra, lsra_init):
edwin [Sun, 5 Feb 2006 23:34:07 +0000 (23:34 +0000)]
* src/vm/jit/allocator/lsra.c, src/vm/jit/allocator/lsra.h (lsra, lsra_init):
Removed t_inlining_globals argument.
(Changes): Added my name to 'Changes'.
(vim boilerplate): Added.

* src/vm/jit/jit.c (lsra): Removed t_inlining_globals argument.

18 years ago* src/vm/jit/jit.c (reg_setup): Removed t_inlining_globals argument.
edwin [Sun, 5 Feb 2006 23:24:34 +0000 (23:24 +0000)]
* src/vm/jit/jit.c (reg_setup): Removed t_inlining_globals argument.

* src/vm/jit/codegen-common.c (reg_setup): Removed t_inlining_globals
argument.

* src/vm/jit/reg.c, src/vm/jit/reg.h (reg_setup): Removed t_inlining_globals
argument.
(Changes): Added my name to 'Changes'.
(vim boilerplate): Added.

18 years ago* src/vm/jit/jit.h (Changes): Added my name to 'Changes'.
edwin [Sun, 5 Feb 2006 23:09:23 +0000 (23:09 +0000)]
* src/vm/jit/jit.h (Changes): Added my name to 'Changes'.

18 years ago* src/vm/jit/jit.h (ICMD_INLINE_GOTO): Added. Not used, yet.
edwin [Sun, 5 Feb 2006 23:07:39 +0000 (23:07 +0000)]
* src/vm/jit/jit.h (ICMD_INLINE_GOTO): Added. Not used, yet.

* src/vm/jit/jit.h (basicblock): Added 'stack' field. Not used, yet.

* src/vm/jit/jit.h, src/vm/jit/jit.c (vim boilerplate): Added.

18 years ago* src/vm/jit/parse.c (parseRT.h, parseXTA.h, inline.h, parseRTprint.h):
edwin [Sun, 5 Feb 2006 23:02:05 +0000 (23:02 +0000)]
* src/vm/jit/parse.c (parseRT.h, parseXTA.h, inline.h, parseRTprint.h):
No longer included.
(parse): Removed t_inlining_globals * from arguments.

* src/vm/jit/jit.c (parse): Removed t_inlining_globals * from arguments.

18 years ago* src/vm/jit/parse.c, src/vm/jit/parse.h (inline_env): Removed most occurences.
edwin [Sun, 5 Feb 2006 22:47:24 +0000 (22:47 +0000)]
* src/vm/jit/parse.c, src/vm/jit/parse.h (inline_env): Removed most occurences.
(bound_check1): Renamed to bound_check_exclusive.

18 years ago* src/vm/jit/parse.c (useinlining): Removed.
edwin [Sun, 5 Feb 2006 22:22:05 +0000 (22:22 +0000)]
* src/vm/jit/parse.c (useinlining): Removed.

18 years ago* doc/inlining_stacktrace.txt: Added warning about signedness.
edwin [Sun, 5 Feb 2006 17:36:59 +0000 (17:36 +0000)]
* doc/inlining_stacktrace.txt: Added warning about signedness.
Fixed copy&paste errors.

18 years ago* doc/inlining_stacktrace.txt: Added.
edwin [Sun, 5 Feb 2006 15:26:34 +0000 (15:26 +0000)]
* doc/inlining_stacktrace.txt: Added.

* src/vm/jit/dseg.c (dseg_addlinenumber_inline_start): Added.
(dseg_addlinenumber_inline_end): Added.
(dseg_addlinenumber): Commented.
(vim boilerplate): Added.

* src/vm/jit/dseg.h (linenumberref): Changed for inlining stacktraces.
Made targetmpc a ptrint, made linenumber s4, reordered fields.
(dseg_addlinenumber_inline_start): Added.
(dseg_addlinenumber_inline_end): Added.
(vim boilerplate): Added.

18 years ago* src/threads/native/threads.h: waiting is correctly typed now (previous checkin...
stefan [Sun, 5 Feb 2006 13:52:26 +0000 (13:52 +0000)]
* src/threads/native/threads.h: waiting is correctly typed now (previous checkin was wrong).

18 years ago* src/threads/native/threads.c: Let's see if this improves the dead lock situation...
stefan [Sun, 5 Feb 2006 13:39:34 +0000 (13:39 +0000)]
* src/threads/native/threads.c: Let's see if this improves the dead lock situation (waiter handling changed slightly).

18 years ago* tests/regression/native/.cvsignore (*.h, *.so): Added.
twisti [Sun, 5 Feb 2006 12:22:13 +0000 (12:22 +0000)]
* tests/regression/native/.cvsignore (*.h, *.so): Added.

18 years ago* tests/regression/native/Makefile.am,
twisti [Sun, 5 Feb 2006 12:20:26 +0000 (12:20 +0000)]
* tests/regression/native/Makefile.am,
tests/regression/codepatching/Makefile.am,
tests/regression/Makefile.am (JAVAFLAGS): Use VM_ZIP_STRING and
GLIBJ_ZIP_STRING.

18 years ago* src/vm/jit/powerpc/asmpart.S, src/vm/jit/alpha/asmpart.S,
twisti [Sun, 5 Feb 2006 12:03:43 +0000 (12:03 +0000)]
* src/vm/jit/powerpc/asmpart.S, src/vm/jit/alpha/asmpart.S,
src/vm/jit/mips/asmpart.S, src/vm/jit/i386/asmpart.S,
src/vm/jit/x86_64/asmpart.S, src/vm/jit/arm/asmpart.S: Disable
executable stacks, this is required for Gentoo and we actually don't
need them.

18 years ago* src/vm/jit/stacktrace.c (stacktrace_create): Get the value of
twisti [Sun, 5 Feb 2006 00:40:53 +0000 (00:40 +0000)]
* src/vm/jit/stacktrace.c (stacktrace_create): Get the value of
_no_threads_stackframeinfo, since it's a pointer, not a structure.
(stacktrace_print_trace): Check for NULL value and return.
* src/vm/exceptions.c (exceptions_handle_exception): Compiler warning
fixed.
(exceptions_print_exception): Check for NULL value, print it and
return.

18 years ago* src/mm/memory.h (string.h): Moved after config.h.
twisti [Sun, 5 Feb 2006 00:16:54 +0000 (00:16 +0000)]
* src/mm/memory.h (string.h): Moved after config.h.
(OFFSET): Use internal datatypes.
(NEW, MNEW): Use the proper GC macro when Gc is disabled.

18 years ago* src/mm/nogc.c (config.h): Moved in front of system headers.
twisti [Sun, 5 Feb 2006 00:13:21 +0000 (00:13 +0000)]
* src/mm/nogc.c (config.h): Moved in front of system headers.
(heap_allocate): Call exceptions_throw_outofmemory_exit.
(nogc_init): Likewise.

18 years ago* src/threads/none/: New.
twisti [Sun, 5 Feb 2006 00:01:23 +0000 (00:01 +0000)]
* src/threads/none/: New.
* src/threads/none/threads.h: New file. We need this one for
e.g. stacktrace.c where we use thread stuff in the code.

18 years ago* src/vm/access.c (assert.h): Move after config.h.
twisti [Sat, 4 Feb 2006 23:59:54 +0000 (23:59 +0000)]
* src/vm/access.c (assert.h): Move after config.h.
* src/vm/properties.c (mm/memory.h): Added.
* src/vm/jit/stacktrace.c (mm/memory.h): Likewise.
(threads.h): Added.
(stacktrace_create): Handle stackframeinfo when threads disabled
properly.

18 years ago* src/vm/jit/allocator/simplereg.c (allocate_scratch_registers):
twisti [Sat, 4 Feb 2006 23:56:24 +0000 (23:56 +0000)]
* src/vm/jit/allocator/simplereg.c (allocate_scratch_registers):
Generate an exception instead of exiting.
* src/vm/jit/allocator/lsra.c (lsra_scan_registers_canditates):
Likewise.

18 years ago* src/vm/jit/stacktrace.h (stacktrace_getCallingClassLoader): Renamed
twisti [Sat, 4 Feb 2006 20:15:23 +0000 (20:15 +0000)]
* src/vm/jit/stacktrace.h (stacktrace_getCallingClassLoader): Renamed
to stacktrace_getCurrentClassLoader.

* src/cacaoh/headers.c (nativelyoverloaded): Fixed compiler warning.

18 years ago* src/native/native.c (native_resolve_function): Print failed is the
twisti [Sat, 4 Feb 2006 19:09:16 +0000 (19:09 +0000)]
* src/native/native.c (native_resolve_function): Print failed is the
symbol was not found.

18 years ago* src/vm/jit/stacktrace.h (STACKTRACE_CAPACITY_DEFAULT)
twisti [Sat, 4 Feb 2006 19:08:24 +0000 (19:08 +0000)]
* src/vm/jit/stacktrace.h (STACKTRACE_CAPACITY_DEFAULT)
(STACKTRACE_CAPACITY_INCREMENT): Changed default from 40 to 80, seems
this is what eclipse and tomcat want.
(stacktracebuffer): Changed entries from an array to a pointer.

18 years ago* src/vm/jit/stacktrace.c (stacktrace_add_entry): Reallocate to
twisti [Sat, 4 Feb 2006 19:04:31 +0000 (19:04 +0000)]
* src/vm/jit/stacktrace.c (stacktrace_add_entry): Reallocate to
stb->entries.
(stacktrace_create): Do two dump and heap allocs, does not affect
performance.
(stacktrace_getCallingClassLoader): Renamed to
stacktrace_getCurrentClassLoader.

* src/native/jni.c (FindClass): Renamed
stacktrace_getCallingClassLoader to stacktrace_getCurrentClassLoader.

* src/native/vm/VMStackWalker.c (getCallingClassLoader): Revert to old
implementation.

18 years ago* doc/stack.txt: Typos fixed.
edwin [Sat, 4 Feb 2006 17:39:08 +0000 (17:39 +0000)]
* doc/stack.txt: Typos fixed.

18 years ago* doc/stack.txt: Expanded tabs.
edwin [Sat, 4 Feb 2006 17:31:54 +0000 (17:31 +0000)]
* doc/stack.txt: Expanded tabs.

18 years ago* doc/Makefile.am (stack.txt): Added EXTRA_DIST entry for stack.txt.
edwin [Sat, 4 Feb 2006 17:31:27 +0000 (17:31 +0000)]
* doc/Makefile.am (stack.txt): Added EXTRA_DIST entry for stack.txt.

18 years ago* doc/stack.txt: Added. This file describes some details about the
edwin [Sat, 4 Feb 2006 17:25:57 +0000 (17:25 +0000)]
* doc/stack.txt: Added. This file describes some details about the
stack representation.

18 years ago* src/native/Makefile.am (CLEANFILES): Always clean nativetable.inc.
twisti [Sat, 4 Feb 2006 00:43:15 +0000 (00:43 +0000)]
* src/native/Makefile.am (CLEANFILES): Always clean nativetable.inc.
($(srcdir)/native.c): Moved inside if ENABLE_STATICVM where it
belongs! Dammit!

18 years ago* src/native/Makefile.am: Accidentally moved the library into if
twisti [Sat, 4 Feb 2006 00:33:39 +0000 (00:33 +0000)]
* src/native/Makefile.am: Accidentally moved the library into if
ENABLE_STATICVM.
* src/native/include/Makefile.am: Enable accidentally removed
dependencies.

18 years ago* src/vm/jit/verify/typecheck.c (logging): Adapted to new logging API.
edwin [Sat, 4 Feb 2006 00:13:48 +0000 (00:13 +0000)]
* src/vm/jit/verify/typecheck.c (logging): Adapted to new logging API.

18 years ago* src/vm/jit/stack.h (MARKREACHED): Use BBREACHED for readability.
edwin [Sat, 4 Feb 2006 00:08:10 +0000 (00:08 +0000)]
* src/vm/jit/stack.h (MARKREACHED): Use BBREACHED for readability.
(vim boilerplate): Added.

18 years ago* src/vm/method.h (methodinfo): Fixed copy&paste error in comment.
edwin [Sat, 4 Feb 2006 00:04:41 +0000 (00:04 +0000)]
* src/vm/method.h (methodinfo): Fixed copy&paste error in comment.
(vim boilerplate): Added.

18 years ago* src/vm/jit/stacktrace.c (vim boilerplate): Added.
edwin [Sat, 4 Feb 2006 00:00:01 +0000 (00:00 +0000)]
* src/vm/jit/stacktrace.c (vim boilerplate): Added.

18 years ago* configure.ac (VM_ZIP_STRING): Added.
twisti [Fri, 3 Feb 2006 22:57:32 +0000 (22:57 +0000)]
* configure.ac (VM_ZIP_STRING): Added.
(GLIBJZ): Renamed to GLIBJ_ZIP_STRING.
* src/vm/global.h (CACAO_VM_ZIP_PATH): Use GLIBJ_ZIP_STRING.
* src/lib/Makefile.am (GLIBJ_ZIP): Likewise.
* src/native/include/Makefile.am, src/native/Makefile.am (VM_ZIP): Use
VM_ZIP_STRING.
(GLIBJ_ZIP): Use GLIBJ_ZIP_STRING.
* contrib/setenvinstalled.in, contrib/setenvsource.in: Likewise.

18 years ago* src/native/vm/VMRuntime.c (nativeLoad): #ifdef ENABLE_STATICVM
twisti [Fri, 3 Feb 2006 22:53:45 +0000 (22:53 +0000)]
* src/native/vm/VMRuntime.c (nativeLoad): #ifdef ENABLE_STATICVM
warning fix.

18 years ago* src/vm/global.h (CACAO_VM_ZIP_PATH): Removed accidentally commited
twisti [Fri, 3 Feb 2006 22:24:55 +0000 (22:24 +0000)]
* src/vm/global.h (CACAO_VM_ZIP_PATH): Removed accidentally commited
VM_ZIP_FILE.
* src/native/Makefile.am (VM_ZIP): Likewise.
* src/native/include/Makefile.am (VM_ZIP): Likewise.

18 years ago* src/vm/global.h (CACAO_VM_ZIP_PATH): Set correctly for ifndef
twisti [Fri, 3 Feb 2006 22:03:30 +0000 (22:03 +0000)]
* src/vm/global.h (CACAO_VM_ZIP_PATH): Set correctly for ifndef
ENABLE_ZLIB.
* src/lib/Makefile.am (JAVA_VM_FILES): Renamed to VM_JAVA_FILES.
(VM_CLASS_FILES): Added.
(pkgdata_DATA): Set to class files for ifndef ENABLE_ZLIB.
* src/native/include/Makefile.am (VM_ZIP): Set correctly for ifndef
ENABLE_ZLIB.
* src/native/Makefile.am (VM_ZIP): Likewise.

18 years ago* src/vm/suck.c (suck_add): Fixed compiler warning with #ifndef
twisti [Fri, 3 Feb 2006 21:58:44 +0000 (21:58 +0000)]
* src/vm/suck.c (suck_add): Fixed compiler warning with #ifndef
ENABLE_ZLIB.

18 years ago* src/native/tools/.cvsignore (TAGS): Added.
twisti [Fri, 3 Feb 2006 21:51:59 +0000 (21:51 +0000)]
* src/native/tools/.cvsignore (TAGS): Added.

18 years ago* src/native/Makefile.am (VM_ZIP, GLIBJ_ZIP, CLASSPATH): Added.
twisti [Fri, 3 Feb 2006 20:54:16 +0000 (20:54 +0000)]
* src/native/Makefile.am (VM_ZIP, GLIBJ_ZIP, CLASSPATH): Added.

18 years ago* src/native/tools/gennativetable.c (main): Don't free bootclasspath,
twisti [Fri, 3 Feb 2006 20:53:25 +0000 (20:53 +0000)]
* src/native/tools/gennativetable.c (main): Don't free bootclasspath,
do proper initalization of subsystems, don't link classes.

18 years ago* src/native/Makefile.am (nativetable.inc): Pass classpath on
twisti [Fri, 3 Feb 2006 19:44:10 +0000 (19:44 +0000)]
* src/native/Makefile.am (nativetable.inc): Pass classpath on
commandline, environment variable support was removed.

18 years ago* src/native/tools/gennativetable.c: Updated to work again.
twisti [Fri, 3 Feb 2006 19:42:45 +0000 (19:42 +0000)]
* src/native/tools/gennativetable.c: Updated to work again.

18 years ago* src/cacao/Makefile.am (INCLUDES): Renamed to AM_CPPFLAGS.
twisti [Fri, 3 Feb 2006 19:27:13 +0000 (19:27 +0000)]
* src/cacao/Makefile.am (INCLUDES): Renamed to AM_CPPFLAGS.
(CLASSPATH_PREFIX): Renamed to CLASSPATH_LIBDIR.

18 years ago* configure.ac (ENABLE_SOFTFLOAT): Added.
twisti [Fri, 3 Feb 2006 18:45:22 +0000 (18:45 +0000)]
* configure.ac (ENABLE_SOFTFLOAT): Added.
(NDEBUG): Bugfix for AM_CONDITIONAL.

18 years ago* src/vm/jit/stacktrace.c (stacktrace_entry): Wrong return value,
twisti [Fri, 3 Feb 2006 14:14:17 +0000 (14:14 +0000)]
* src/vm/jit/stacktrace.c (stacktrace_entry): Wrong return value,
added some checks.

18 years ago* src/vm/jit/stacktrace.c, src/vm/jit/stacktrace.h
twisti [Fri, 3 Feb 2006 13:19:36 +0000 (13:19 +0000)]
* src/vm/jit/stacktrace.c, src/vm/jit/stacktrace.h
(lineNumberTableEntry): Renamed to linenumbertable_entry.
(addEntry): Renamed to stacktrace_add_entry.
(stacktrace_fillInStackTrace_methodRecursive): Removed.
(stacktrace_fillInStackTrace_method): Renamed to
stacktrace_add_method.
(cacao_stacktrace_fillInStackTrace): Renamed to stacktrace_create.
(stackTraceCollector): Removed.
(cacao_stacktrace_NormalTrace): Renamed to stacktrace_fillInStackTrace.
(classContextCollector): Removed.
(cacao_createClassContextArray): Renamed to stacktrace_getClassContext.
(stacktrace_classLoaderCollector): Removed.
(cacao_currentClassLoader): Renamed to stacktrace_getCallingClassLoader.
(getStackCollector): Removed.
(cacao_getStackForVMAccessController): Renamed to stacktrace_getStack.

* src/native/jni.c (jni_init): Use new GCNEW.
(FindClass): Renamed cacao_currentClassLoader to
stacktrace_getCallingClassLoader.

* src/native/vm/VMAccessController.c (getStack): Renamed
cacao_getStackForVMAccessController to stacktrace_getStack.

* src/native/vm/VMStackWalker.c (getClassContext): Renamed
cacao_createClassContextArray to stacktrace_getClassContext.
(getCallingClass): Likewise.
(getCallingClassLoader): Call stacktrace_getCallingClassLoader.

* src/native/vm/Method.c (config.h): Added.
(invokeNative): Renamed cacao_createClassContextArray to
stacktrace_getClassContext.

* src/native/vm/Field.c (config.h): Added.
(cacao_get_field_address): Renamed cacao_createClassContextArray to
stacktrace_getClassContext. Check for CLASS_INITIALIZED.

* src/native/vm/VMThrowable.c
(native/include/gnu_classpath_Pointer.h): Added.
(fillInStackTrace): Call stacktrace_fillInStackTrace.
(getStackTrace): Adapted.

* src/mm/memory.h (GCNEW): Use only 1 parameter, like NEW.
(GCMNEW): Added.

18 years ago* src/threads/native/threads.h (THREADOBJECT): Don't cast to
twisti [Fri, 3 Feb 2006 12:46:22 +0000 (12:46 +0000)]
* src/threads/native/threads.h (THREADOBJECT): Don't cast to
java_lang_VMThread*, we don't need that.

18 years ago* src/vm/method.c (method_printflags, method_print): Check for NULL.
twisti [Fri, 3 Feb 2006 12:38:03 +0000 (12:38 +0000)]
* src/vm/method.c (method_printflags, method_print): Check for NULL.
* src/vm/field.c (field_printflags, field_print) Likewise.
(stdio.h): Added.
* src/vm/class.c (class_printflags, class_print): Likewise.

18 years ago* configure.ac (AC_PROG_JAR): Added.
twisti [Thu, 2 Feb 2006 09:16:42 +0000 (09:16 +0000)]
* configure.ac (AC_PROG_JAR): Added.
* m4/ac_prog_jar.m4: New file.
* src/lib/Makefile.am (VM_ZIP): Added.
(vm.zip): Check if $(JAR) is zip or jar type.

18 years ago* src/vm/loader.c (loader_load_all_classes): Added missing #ifde
twisti [Thu, 2 Feb 2006 08:51:32 +0000 (08:51 +0000)]
* src/vm/loader.c (loader_load_all_classes): Added missing #ifde
ENABLE_ZLIB.