cacao.git
17 years ago* src/vm/jit/optimizing/profile.c: Added.
twisti [Tue, 31 Oct 2006 20:11:28 +0000 (20:11 +0000)]
* src/vm/jit/optimizing/profile.c: Added.
* src/vm/jit/optimizing/profile.h: Likewise.
* src/vm/jit/optimizing/recompile.c: Likewise.
* src/vm/jit/optimizing/recompile.h: Likewise.

* src/vm/jit/optimizing/Makefile.am (INCLUDES): Added OS_DIR.
(PROFILE_SOURCES): Added.
(RECOMPILE_SOURCES): Added.
(SSA_SOURCES): Added.

* src/vm/jit/recompile.c: Removed.
* src/vm/jit/recompile.h: Likewise.
* src/vm/jit/profile: Likewise.

* src/vm/jit/Makefile.am (SUBDIRS): Added optimizing.
(PROFILE_LIB): Removed.
(RECOMPILE_SOURCES): Likewise.

* src/cacao/Makefile.am (GC_LIB): Removed.

* src/mm/Makefile.am (DIST_DUBDIRS): Added boehm-gc.
(GC_LIB): Added.

* src/Makefile.am (DIST_SUBDIRS): Removed boehm-gc.
(SUBDIRS): Likewise.
(BOEHM): Removed.

* src/threads/native/threads.c (boehm-gc/include/gc.h): Changed to
mm/boehm-gc/include/gc.h.

* src/cacaoh/Makefile.am (GC_LIB): Removed.

* configure.ac (AC_CONFIG_FILES): Removed src/vm/jit/profile/Makefile.
(AC_CONFIG_SUBDIRS): Changed src/boehm-gc to src/mm/boehm-gc.
* autogen.sh: Changed path to boehm-gc.

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

17 years ago* src/vm/exceptions.c (exceptions_handle_exception): Made identation
twisti [Tue, 31 Oct 2006 20:00:10 +0000 (20:00 +0000)]
* src/vm/exceptions.c (exceptions_handle_exception): Made identation
correct.

17 years ago* src/mm/boehm-gc/.cvsignore: Added some files.
twisti [Tue, 31 Oct 2006 19:58:14 +0000 (19:58 +0000)]
* src/mm/boehm-gc/.cvsignore: Added some files.

17 years ago* Moved boehm-gc from src/ to src/mm/.
twisti [Tue, 31 Oct 2006 15:42:42 +0000 (15:42 +0000)]
* Moved boehm-gc from src/ to src/mm/.

--HG--
rename : src/boehm-gc/.cvsignore => src/mm/boehm-gc/.cvsignore
rename : src/boehm-gc/AmigaOS.c => src/mm/boehm-gc/AmigaOS.c
rename : src/boehm-gc/BCC_MAKEFILE => src/mm/boehm-gc/BCC_MAKEFILE
rename : src/boehm-gc/EMX_MAKEFILE => src/mm/boehm-gc/EMX_MAKEFILE
rename : src/boehm-gc/MacOS.c => src/mm/boehm-gc/MacOS.c
rename : src/boehm-gc/MacProjects.sit.hqx => src/mm/boehm-gc/MacProjects.sit.hqx
rename : src/boehm-gc/Mac_files/MacOS_Test_config.h => src/mm/boehm-gc/Mac_files/MacOS_Test_config.h
rename : src/boehm-gc/Mac_files/MacOS_config.h => src/mm/boehm-gc/Mac_files/MacOS_config.h
rename : src/boehm-gc/Mac_files/dataend.c => src/mm/boehm-gc/Mac_files/dataend.c
rename : src/boehm-gc/Mac_files/datastart.c => src/mm/boehm-gc/Mac_files/datastart.c
rename : src/boehm-gc/Makefile.DLLs => src/mm/boehm-gc/Makefile.DLLs
rename : src/boehm-gc/Makefile.am => src/mm/boehm-gc/Makefile.am
rename : src/boehm-gc/Makefile.direct => src/mm/boehm-gc/Makefile.direct
rename : src/boehm-gc/Makefile.dj => src/mm/boehm-gc/Makefile.dj
rename : src/boehm-gc/NT_MAKEFILE => src/mm/boehm-gc/NT_MAKEFILE
rename : src/boehm-gc/NT_THREADS_MAKEFILE => src/mm/boehm-gc/NT_THREADS_MAKEFILE
rename : src/boehm-gc/OS2_MAKEFILE => src/mm/boehm-gc/OS2_MAKEFILE
rename : src/boehm-gc/PCR-Makefile => src/mm/boehm-gc/PCR-Makefile
rename : src/boehm-gc/README.QUICK => src/mm/boehm-gc/README.QUICK
rename : src/boehm-gc/SMakefile.amiga => src/mm/boehm-gc/SMakefile.amiga
rename : src/boehm-gc/WCC_MAKEFILE => src/mm/boehm-gc/WCC_MAKEFILE
rename : src/boehm-gc/acinclude.m4 => src/mm/boehm-gc/acinclude.m4
rename : src/boehm-gc/add_gc_prefix.c => src/mm/boehm-gc/add_gc_prefix.c
rename : src/boehm-gc/allchblk.c => src/mm/boehm-gc/allchblk.c
rename : src/boehm-gc/alloc.c => src/mm/boehm-gc/alloc.c
rename : src/boehm-gc/alpha_mach_dep.S => src/mm/boehm-gc/alpha_mach_dep.S
rename : src/boehm-gc/autogen.sh => src/mm/boehm-gc/autogen.sh
rename : src/boehm-gc/backgraph.c => src/mm/boehm-gc/backgraph.c
rename : src/boehm-gc/blacklst.c => src/mm/boehm-gc/blacklst.c
rename : src/boehm-gc/callprocs => src/mm/boehm-gc/callprocs
rename : src/boehm-gc/checksums.c => src/mm/boehm-gc/checksums.c
rename : src/boehm-gc/configure.host => src/mm/boehm-gc/configure.host
rename : src/boehm-gc/configure.in => src/mm/boehm-gc/configure.in
rename : src/boehm-gc/cord/cordbscs.c => src/mm/boehm-gc/cord/cordbscs.c
rename : src/boehm-gc/cord/cordprnt.c => src/mm/boehm-gc/cord/cordprnt.c
rename : src/boehm-gc/cord/cordtest.c => src/mm/boehm-gc/cord/cordtest.c
rename : src/boehm-gc/cord/cordxtra.c => src/mm/boehm-gc/cord/cordxtra.c
rename : src/boehm-gc/cord/de.c => src/mm/boehm-gc/cord/de.c
rename : src/boehm-gc/cord/de_cmds.h => src/mm/boehm-gc/cord/de_cmds.h
rename : src/boehm-gc/cord/de_win.ICO => src/mm/boehm-gc/cord/de_win.ICO
rename : src/boehm-gc/cord/de_win.RC => src/mm/boehm-gc/cord/de_win.RC
rename : src/boehm-gc/cord/de_win.c => src/mm/boehm-gc/cord/de_win.c
rename : src/boehm-gc/cord/de_win.h => src/mm/boehm-gc/cord/de_win.h
rename : src/boehm-gc/darwin_stop_world.c => src/mm/boehm-gc/darwin_stop_world.c
rename : src/boehm-gc/dbg_mlc.c => src/mm/boehm-gc/dbg_mlc.c
rename : src/boehm-gc/digimars.mak => src/mm/boehm-gc/digimars.mak
rename : src/boehm-gc/doc/.cvsignore => src/mm/boehm-gc/doc/.cvsignore
rename : src/boehm-gc/doc/Makefile.am => src/mm/boehm-gc/doc/Makefile.am
rename : src/boehm-gc/doc/README => src/mm/boehm-gc/doc/README
rename : src/boehm-gc/doc/README.DGUX386 => src/mm/boehm-gc/doc/README.DGUX386
rename : src/boehm-gc/doc/README.Mac => src/mm/boehm-gc/doc/README.Mac
rename : src/boehm-gc/doc/README.MacOSX => src/mm/boehm-gc/doc/README.MacOSX
rename : src/boehm-gc/doc/README.OS2 => src/mm/boehm-gc/doc/README.OS2
rename : src/boehm-gc/doc/README.amiga => src/mm/boehm-gc/doc/README.amiga
rename : src/boehm-gc/doc/README.arm.cross => src/mm/boehm-gc/doc/README.arm.cross
rename : src/boehm-gc/doc/README.autoconf => src/mm/boehm-gc/doc/README.autoconf
rename : src/boehm-gc/doc/README.changes => src/mm/boehm-gc/doc/README.changes
rename : src/boehm-gc/doc/README.contributors => src/mm/boehm-gc/doc/README.contributors
rename : src/boehm-gc/doc/README.cords => src/mm/boehm-gc/doc/README.cords
rename : src/boehm-gc/doc/README.darwin => src/mm/boehm-gc/doc/README.darwin
rename : src/boehm-gc/doc/README.dj => src/mm/boehm-gc/doc/README.dj
rename : src/boehm-gc/doc/README.environment => src/mm/boehm-gc/doc/README.environment
rename : src/boehm-gc/doc/README.ews4800 => src/mm/boehm-gc/doc/README.ews4800
rename : src/boehm-gc/doc/README.hp => src/mm/boehm-gc/doc/README.hp
rename : src/boehm-gc/doc/README.linux => src/mm/boehm-gc/doc/README.linux
rename : src/boehm-gc/doc/README.macros => src/mm/boehm-gc/doc/README.macros
rename : src/boehm-gc/doc/README.rs6000 => src/mm/boehm-gc/doc/README.rs6000
rename : src/boehm-gc/doc/README.sgi => src/mm/boehm-gc/doc/README.sgi
rename : src/boehm-gc/doc/README.solaris2 => src/mm/boehm-gc/doc/README.solaris2
rename : src/boehm-gc/doc/README.uts => src/mm/boehm-gc/doc/README.uts
rename : src/boehm-gc/doc/README.win32 => src/mm/boehm-gc/doc/README.win32
rename : src/boehm-gc/doc/barrett_diagram => src/mm/boehm-gc/doc/barrett_diagram
rename : src/boehm-gc/doc/debugging.html => src/mm/boehm-gc/doc/debugging.html
rename : src/boehm-gc/doc/gc.man => src/mm/boehm-gc/doc/gc.man
rename : src/boehm-gc/doc/gcdescr.html => src/mm/boehm-gc/doc/gcdescr.html
rename : src/boehm-gc/doc/gcinterface.html => src/mm/boehm-gc/doc/gcinterface.html
rename : src/boehm-gc/doc/leak.html => src/mm/boehm-gc/doc/leak.html
rename : src/boehm-gc/doc/scale.html => src/mm/boehm-gc/doc/scale.html
rename : src/boehm-gc/doc/simple_example.html => src/mm/boehm-gc/doc/simple_example.html
rename : src/boehm-gc/doc/tree.html => src/mm/boehm-gc/doc/tree.html
rename : src/boehm-gc/dyn_load.c => src/mm/boehm-gc/dyn_load.c
rename : src/boehm-gc/finalize.c => src/mm/boehm-gc/finalize.c
rename : src/boehm-gc/gc.mak => src/mm/boehm-gc/gc.mak
rename : src/boehm-gc/gc_cpp.cc => src/mm/boehm-gc/gc_cpp.cc
rename : src/boehm-gc/gc_cpp.cpp => src/mm/boehm-gc/gc_cpp.cpp
rename : src/boehm-gc/gc_dlopen.c => src/mm/boehm-gc/gc_dlopen.c
rename : src/boehm-gc/gcc_support.c => src/mm/boehm-gc/gcc_support.c
rename : src/boehm-gc/gcj_mlc.c => src/mm/boehm-gc/gcj_mlc.c
rename : src/boehm-gc/gcname.c => src/mm/boehm-gc/gcname.c
rename : src/boehm-gc/headers.c => src/mm/boehm-gc/headers.c
rename : src/boehm-gc/hpux_test_and_clear.s => src/mm/boehm-gc/hpux_test_and_clear.s
rename : src/boehm-gc/ia64_save_regs_in_stack.s => src/mm/boehm-gc/ia64_save_regs_in_stack.s
rename : src/boehm-gc/if_mach.c => src/mm/boehm-gc/if_mach.c
rename : src/boehm-gc/if_not_there.c => src/mm/boehm-gc/if_not_there.c
rename : src/boehm-gc/include/.cvsignore => src/mm/boehm-gc/include/.cvsignore
rename : src/boehm-gc/include/Makefile.am => src/mm/boehm-gc/include/Makefile.am
rename : src/boehm-gc/include/cord.h => src/mm/boehm-gc/include/cord.h
rename : src/boehm-gc/include/ec.h => src/mm/boehm-gc/include/ec.h
rename : src/boehm-gc/include/gc.h => src/mm/boehm-gc/include/gc.h
rename : src/boehm-gc/include/gc_alloc.h => src/mm/boehm-gc/include/gc_alloc.h
rename : src/boehm-gc/include/gc_allocator.h => src/mm/boehm-gc/include/gc_allocator.h
rename : src/boehm-gc/include/gc_amiga_redirects.h => src/mm/boehm-gc/include/gc_amiga_redirects.h
rename : src/boehm-gc/include/gc_backptr.h => src/mm/boehm-gc/include/gc_backptr.h
rename : src/boehm-gc/include/gc_config_macros.h => src/mm/boehm-gc/include/gc_config_macros.h
rename : src/boehm-gc/include/gc_cpp.h => src/mm/boehm-gc/include/gc_cpp.h
rename : src/boehm-gc/include/gc_gcj.h => src/mm/boehm-gc/include/gc_gcj.h
rename : src/boehm-gc/include/gc_inl.h => src/mm/boehm-gc/include/gc_inl.h
rename : src/boehm-gc/include/gc_inline.h => src/mm/boehm-gc/include/gc_inline.h
rename : src/boehm-gc/include/gc_local_alloc.h => src/mm/boehm-gc/include/gc_local_alloc.h
rename : src/boehm-gc/include/gc_mark.h => src/mm/boehm-gc/include/gc_mark.h
rename : src/boehm-gc/include/gc_pthread_redirects.h => src/mm/boehm-gc/include/gc_pthread_redirects.h
rename : src/boehm-gc/include/gc_typed.h => src/mm/boehm-gc/include/gc_typed.h
rename : src/boehm-gc/include/javaxfc.h => src/mm/boehm-gc/include/javaxfc.h
rename : src/boehm-gc/include/leak_detector.h => src/mm/boehm-gc/include/leak_detector.h
rename : src/boehm-gc/include/new_gc_alloc.h => src/mm/boehm-gc/include/new_gc_alloc.h
rename : src/boehm-gc/include/private/cord_pos.h => src/mm/boehm-gc/include/private/cord_pos.h
rename : src/boehm-gc/include/private/darwin_semaphore.h => src/mm/boehm-gc/include/private/darwin_semaphore.h
rename : src/boehm-gc/include/private/darwin_stop_world.h => src/mm/boehm-gc/include/private/darwin_stop_world.h
rename : src/boehm-gc/include/private/dbg_mlc.h => src/mm/boehm-gc/include/private/dbg_mlc.h
rename : src/boehm-gc/include/private/gc_hdrs.h => src/mm/boehm-gc/include/private/gc_hdrs.h
rename : src/boehm-gc/include/private/gc_locks.h => src/mm/boehm-gc/include/private/gc_locks.h
rename : src/boehm-gc/include/private/gc_pmark.h => src/mm/boehm-gc/include/private/gc_pmark.h
rename : src/boehm-gc/include/private/gc_priv.h => src/mm/boehm-gc/include/private/gc_priv.h
rename : src/boehm-gc/include/private/gcconfig.h => src/mm/boehm-gc/include/private/gcconfig.h
rename : src/boehm-gc/include/private/pthread_stop_world.h => src/mm/boehm-gc/include/private/pthread_stop_world.h
rename : src/boehm-gc/include/private/pthread_support.h => src/mm/boehm-gc/include/private/pthread_support.h
rename : src/boehm-gc/include/private/solaris_threads.h => src/mm/boehm-gc/include/private/solaris_threads.h
rename : src/boehm-gc/include/private/specific.h => src/mm/boehm-gc/include/private/specific.h
rename : src/boehm-gc/include/weakpointer.h => src/mm/boehm-gc/include/weakpointer.h
rename : src/boehm-gc/libtool.m4 => src/mm/boehm-gc/libtool.m4
rename : src/boehm-gc/ltconfig => src/mm/boehm-gc/ltconfig
rename : src/boehm-gc/mach_dep.c => src/mm/boehm-gc/mach_dep.c
rename : src/boehm-gc/malloc.c => src/mm/boehm-gc/malloc.c
rename : src/boehm-gc/mallocx.c => src/mm/boehm-gc/mallocx.c
rename : src/boehm-gc/mark.c => src/mm/boehm-gc/mark.c
rename : src/boehm-gc/mark_rts.c => src/mm/boehm-gc/mark_rts.c
rename : src/boehm-gc/mips_sgi_mach_dep.s => src/mm/boehm-gc/mips_sgi_mach_dep.s
rename : src/boehm-gc/mips_ultrix_mach_dep.s => src/mm/boehm-gc/mips_ultrix_mach_dep.s
rename : src/boehm-gc/misc.c => src/mm/boehm-gc/misc.c
rename : src/boehm-gc/new_hblk.c => src/mm/boehm-gc/new_hblk.c
rename : src/boehm-gc/obj_map.c => src/mm/boehm-gc/obj_map.c
rename : src/boehm-gc/os_dep.c => src/mm/boehm-gc/os_dep.c
rename : src/boehm-gc/pc_excludes => src/mm/boehm-gc/pc_excludes
rename : src/boehm-gc/pcr_interface.c => src/mm/boehm-gc/pcr_interface.c
rename : src/boehm-gc/powerpc_darwin_mach_dep.s => src/mm/boehm-gc/powerpc_darwin_mach_dep.s
rename : src/boehm-gc/pthread_stop_world.c => src/mm/boehm-gc/pthread_stop_world.c
rename : src/boehm-gc/pthread_support.c => src/mm/boehm-gc/pthread_support.c
rename : src/boehm-gc/ptr_chck.c => src/mm/boehm-gc/ptr_chck.c
rename : src/boehm-gc/real_malloc.c => src/mm/boehm-gc/real_malloc.c
rename : src/boehm-gc/reclaim.c => src/mm/boehm-gc/reclaim.c
rename : src/boehm-gc/rs6000_mach_dep.s => src/mm/boehm-gc/rs6000_mach_dep.s
rename : src/boehm-gc/setjmp_t.c => src/mm/boehm-gc/setjmp_t.c
rename : src/boehm-gc/solaris_pthreads.c => src/mm/boehm-gc/solaris_pthreads.c
rename : src/boehm-gc/solaris_threads.c => src/mm/boehm-gc/solaris_threads.c
rename : src/boehm-gc/sparc_mach_dep.S => src/mm/boehm-gc/sparc_mach_dep.S
rename : src/boehm-gc/sparc_netbsd_mach_dep.s => src/mm/boehm-gc/sparc_netbsd_mach_dep.s
rename : src/boehm-gc/sparc_sunos4_mach_dep.s => src/mm/boehm-gc/sparc_sunos4_mach_dep.s
rename : src/boehm-gc/specific.c => src/mm/boehm-gc/specific.c
rename : src/boehm-gc/stubborn.c => src/mm/boehm-gc/stubborn.c
rename : src/boehm-gc/tests/leak_test.c => src/mm/boehm-gc/tests/leak_test.c
rename : src/boehm-gc/tests/test.c => src/mm/boehm-gc/tests/test.c
rename : src/boehm-gc/tests/test_cpp.cc => src/mm/boehm-gc/tests/test_cpp.cc
rename : src/boehm-gc/tests/thread_leak_test.c => src/mm/boehm-gc/tests/thread_leak_test.c
rename : src/boehm-gc/tests/trace_test.c => src/mm/boehm-gc/tests/trace_test.c
rename : src/boehm-gc/threadlibs.c => src/mm/boehm-gc/threadlibs.c
rename : src/boehm-gc/typd_mlc.c => src/mm/boehm-gc/typd_mlc.c
rename : src/boehm-gc/version.h => src/mm/boehm-gc/version.h
rename : src/boehm-gc/win32_threads.c => src/mm/boehm-gc/win32_threads.c

17 years ago* src/vm/jit/powerpc64/codegen.c (codegen):
tbfg [Tue, 31 Oct 2006 13:40:55 +0000 (13:40 +0000)]
* src/vm/jit/powerpc64/codegen.c (codegen):
 Fixed parameter passing.
 Various fixes for many ICMD_*.

* src/vm/jit/powerpc64/patcher.c (patcher_get_putfield):
 Fixed for longs.

* src/vm/jit/powerpc64/asmpart.S (asm_vm_call_method):
 Fixed methodheader, exception handling now works.

* src/vm/exceptions.c (exceptions_handle_exception):
 Indenting.

17 years ago* configure.ac (AC_INIT): Changed version to 0.97+svn.
twisti [Tue, 31 Oct 2006 10:16:04 +0000 (10:16 +0000)]
* configure.ac (AC_INIT): Changed version to 0.97+svn.
(OPT_CFLAGS): Changed to -O0.

17 years ago* NEWS: Forgot to commit the date for 0.97, grrrr.
twisti [Tue, 31 Oct 2006 10:15:01 +0000 (10:15 +0000)]
* NEWS: Forgot to commit the date for 0.97, grrrr.

17 years ago* ChangeLog: Updated for release 0.97.
twisti [Tue, 31 Oct 2006 00:07:07 +0000 (00:07 +0000)]
* ChangeLog: Updated for release 0.97.

17 years ago* configure.ac (AC_INIT): Changed version to 0.97.
twisti [Mon, 30 Oct 2006 23:52:12 +0000 (23:52 +0000)]
* configure.ac (AC_INIT): Changed version to 0.97.
(--enable-threads): Removed green from help string.

17 years ago* src/vm/jit/show.c (show_method): Removed debug output.
twisti [Mon, 30 Oct 2006 13:03:08 +0000 (13:03 +0000)]
* src/vm/jit/show.c (show_method): Removed debug output.
(SHOW_INT_CONST): Removed long cast and print hex value additionally.
(SHOW_LNG_CONST): Removed long long cast and print hex value
additionally. Also added version for SIZEOF_VOID_P == 4.
(SHOW_ADR_CONST): Added.
(SHOW_FLT_CONST): Print hex value additionally.
(SHOW_DBL_CONST): Likewise. Also added version for SIZEOF_VOID_P == 4.
(show_icmd): Smaller changes.

17 years ago* src/threads/native/threads.h (MUTEXSIM): Removed.
twisti [Mon, 30 Oct 2006 12:27:59 +0000 (12:27 +0000)]
* src/threads/native/threads.h (MUTEXSIM): Removed.
(pthread_mutex_rec_t): Likewise.
(pthread_mutex_init_rec): Likewise.
(pthread_mutex_destroy_rec): Likewise.
(pthread_mutex_lock_rec): Likewise.
(pthread_mutex_unlock_rec): Likewise.
* src/threads/native/threads.c (pthread_mutex_init_rec): Removed.
(pthread_mutex_destroy_rec): Likewise.
(pthread_mutex_lock_rec): Likewise.
(pthread_mutex_unlock_rec): Likewise.
(compiler_lock): Use pthread functions.
(compiler_unlock): Likewise.
(threads_cast_darwinstop): Warning fixes and use vm_abort.
(threads_cast_darwinresume): Use vm_abort.
(threads_cast_stopworld): Warning fixes.
(pthreads_preinit) [!MUTEXSIM]: Removed code.

17 years ago* src/vm/jit/intrp/intrp.h (Cell): Moved the typedef upward, so we can
edwin [Mon, 30 Oct 2006 11:52:09 +0000 (11:52 +0000)]
* src/vm/jit/intrp/intrp.h (Cell): Moved the typedef upward, so we can
use it in other headers.
(global_sp): Does not need the complex casts anymore.

* src/threads/native/threads.h (threadobject): Made _global_sp a Cell*.
* src/threads/native/threads.c: Likewise.

17 years ago* src/mm/memory.h (ALIGN): Renamed to MEMORY_ALIGN.
edwin [Mon, 30 Oct 2006 11:21:36 +0000 (11:21 +0000)]
* src/mm/memory.h (ALIGN): Renamed to MEMORY_ALIGN.
* src/mm/memory.c: Likewise.
* src/vm/jit/dseg.c: Likewise.
* src/vm/jit/parse.c: Likewise.
* src/vm/jit/codegen-common.c: Likewise.
* src/vm/linker.c: Likewise.
* src/mm/nogc.c: Likewise.
* src/cacaoh/headers.c: Likewise.

17 years ago* src/threads/native/threads.c (threads_dump): Cast pthread_t to long
edwin [Mon, 30 Oct 2006 11:04:47 +0000 (11:04 +0000)]
* src/threads/native/threads.c (threads_dump): Cast pthread_t to long
for printing it.

17 years ago* src/vm/jit/cfg.c (cfg_build): Removed set-but-not-used variable (m).
edwin [Mon, 30 Oct 2006 11:00:56 +0000 (11:00 +0000)]
* src/vm/jit/cfg.c (cfg_build): Removed set-but-not-used variable (m).
* src/vm/jit/ifconv/ifconv.c (check): Likewise (cd).
* src/vm/jit/stack.c (stack_reanalyse_block): Likewise (maythrow).
(stack_analyse): Likewise (code, b_index).
* src/vm/jit/show.c (show_basicblock): Likewise (m).
* src/vm/jit/mips/emit.c (emit_copy): Likewise (rd).
* src/vm/jit/parse.c (parse): Likewise (code).
* src/vm/exceptions.c (exceptions_handle_exception): Likewise
(framesize).

17 years ago* src/vm/jit/verify/typecheck-common.c (typecheck_init_flags): Removed
edwin [Mon, 30 Oct 2006 10:32:39 +0000 (10:32 +0000)]
* src/vm/jit/verify/typecheck-common.c (typecheck_init_flags): Removed
set-but-not-used variable `i`.

17 years ago* src/vm/jit/verify/typecheck-builtins.inc: Removed set-but-not-used
edwin [Mon, 30 Oct 2006 10:31:00 +0000 (10:31 +0000)]
* src/vm/jit/verify/typecheck-builtins.inc: Removed set-but-not-used
variable `cls`.

17 years ago* src/vm/jit/alpha/codegen.c (codegen): Zero `uf` to avoid warning.
edwin [Mon, 30 Oct 2006 10:15:28 +0000 (10:15 +0000)]
* src/vm/jit/alpha/codegen.c (codegen): Zero `uf` to avoid warning.

17 years ago* src/vm/builtin.c (builtin_print_argument): Made logtextlen an in/out
edwin [Mon, 30 Oct 2006 00:45:30 +0000 (00:45 +0000)]
* src/vm/builtin.c (builtin_print_argument): Made logtextlen an in/out
argument. Correctly reallocate logtext, increase logtextlen.
(builtin_trace_args): Pass &logtextlen to builtin_print_argument.
(builtin_displaymethodstop): Likewise.

17 years ago* src/vm/jit/jit.h (stackelement): Removed the obsolete fields
edwin [Sun, 29 Oct 2006 23:43:26 +0000 (23:43 +0000)]
* src/vm/jit/jit.h (stackelement): Removed the obsolete fields
`typeinfo` and `regoff`.

17 years ago* src/vm/jit/stack.c (stack_grow_variable_array): Zero the additional
edwin [Sun, 29 Oct 2006 23:37:20 +0000 (23:37 +0000)]
* src/vm/jit/stack.c (stack_grow_variable_array): Zero the additional
space when reallocating the jd->var array.

* src/vm/jit/parse.c (parse_realloc_instructions): Zero the
additional space when reallocating the instructions array.

17 years ago* src/vm/jit/parse.c (parse): Fix in ICMD_TABLESWITCH: Put table into
edwin [Sun, 29 Oct 2006 23:33:30 +0000 (23:33 +0000)]
* src/vm/jit/parse.c (parse): Fix in ICMD_TABLESWITCH: Put table into
dump memory.

17 years ago* NEWS: Typo fixed.
edwin [Sun, 29 Oct 2006 23:23:19 +0000 (23:23 +0000)]
* NEWS: Typo fixed.

17 years ago* src/vm/suck.c (stdlib.h): Include to avoid warning about `free`.
edwin [Sun, 29 Oct 2006 16:21:38 +0000 (16:21 +0000)]
* src/vm/suck.c (stdlib.h): Include to avoid warning about `free`.

17 years ago* src/vm/suck.c (suck_add_from_property): Use `free` to free memory
edwin [Sun, 29 Oct 2006 16:14:27 +0000 (16:14 +0000)]
* src/vm/suck.c (suck_add_from_property): Use `free` to free memory
coming out of the C library - it has not been allocated with M?NEW,
so M?FREE is wrong here.

17 years ago* src/vm/builtin.c (builtin_print_argument): Print float/double values
twisti [Sun, 29 Oct 2006 14:49:10 +0000 (14:49 +0000)]
* src/vm/builtin.c (builtin_print_argument): Print float/double values
with %g and addresses as hex.
(builtin_trace_args): Fixed message length calclation.
(builtin_displaymethodstop): Fixed bug: we only passed the long value.

17 years ago* src/cacaoh/headers.c (vm_abort): Print the error message before
edwin [Sun, 29 Oct 2006 11:15:36 +0000 (11:15 +0000)]
* src/cacaoh/headers.c (vm_abort): Print the error message before
aborting.

17 years ago* NEWS: New news.
twisti [Sat, 28 Oct 2006 19:40:58 +0000 (19:40 +0000)]
* NEWS: New news.

17 years ago* src/vm/jit/dseg.c (dseg_find_float): Compare hex value.
twisti [Sat, 28 Oct 2006 19:26:51 +0000 (19:26 +0000)]
* src/vm/jit/dseg.c (dseg_find_float): Compare hex value.
(dseg_find_double): Likewise.

17 years ago* NEWS: Added some stuff.
twisti [Sat, 28 Oct 2006 17:45:05 +0000 (17:45 +0000)]
* NEWS: Added some stuff.

17 years ago* NEWS: Added news for CACAO 0.97.
edwin [Sat, 28 Oct 2006 17:15:22 +0000 (17:15 +0000)]
* NEWS: Added news for CACAO 0.97.

17 years ago* src/vm/jit/jit.c (stackreq): Fixed for DUP/SWAP instructions. The
edwin [Sat, 28 Oct 2006 16:55:29 +0000 (16:55 +0000)]
* src/vm/jit/jit.c (stackreq): Fixed for DUP/SWAP instructions. The
numbers for DUP2_X1 and DUP2_X2 were also wrong before the new IR
had been introduced. The new IR in addition needs extra temps in some
cases, thus the numbers before the 'plus' operators.

17 years ago* src/vm/jit/stack.c (stack_analyse): Store vartop in jitdata.
edwin [Sat, 28 Oct 2006 16:51:12 +0000 (16:51 +0000)]
* src/vm/jit/stack.c (stack_analyse): Store vartop in jitdata.

* src/vm/jit/show.c (show_method): Show number of variables.

* tests/regression/jasmin/test_many_dup2_x2.j: New test.
* tests/regression/jasmin/test_many_dup.j: Likewise.
* tests/regression/jasmin/test_many_dup_x2.j: Likewise.
* tests/regression/jasmin/test_many_swap.j: Likewise.
* tests/regression/jasmin/test_many_dup2.j: Likewise.
* tests/regression/jasmin/test_many_dup2_x1.j: Likewise.
* tests/regression/jasmin/test_many_dup_x1.j: Likewise.

* tests/regression/jasmin/Makefile.am: Added new tests.

17 years ago* src/vm/jit/stack.c (stackdata_t): Added field varsallocated.
edwin [Sat, 28 Oct 2006 15:21:45 +0000 (15:21 +0000)]
* src/vm/jit/stack.c (stackdata_t): Added field varsallocated.
(stack_grow_variable_array): Smarted memory allocation.
(stack_analyse): Initialize sd.varsallocated.

17 years ago* src/vm/access.c (ACCESS_ASSERT): Replaced with assert. Because of
edwin [Sat, 28 Oct 2006 13:02:19 +0000 (13:02 +0000)]
* src/vm/access.c (ACCESS_ASSERT): Replaced with assert. Because of
a mistake in the definition of ACCESS_DEBUG, ACCESS_ASSERT always
was a NOP!
(access_is_accessible_member): Fixed assertion.

17 years ago* src/vm/loader.c (LOADER_ASSERT): Replaced with assert.
edwin [Sat, 28 Oct 2006 12:53:24 +0000 (12:53 +0000)]
* src/vm/loader.c (LOADER_ASSERT): Replaced with assert.

17 years ago* src/vm/class.c (CLASS_ASSERT): Replaced by assert.
edwin [Sat, 28 Oct 2006 12:49:29 +0000 (12:49 +0000)]
* src/vm/class.c (CLASS_ASSERT): Replaced by assert.

17 years ago* src/vm/class.c (class_array_of): Release dump memory.
edwin [Sat, 28 Oct 2006 12:47:45 +0000 (12:47 +0000)]
* src/vm/class.c (class_array_of): Release dump memory.
(class_multiarray_of): Likewise.
(class_get_classref_multiarray_of): Likewise.

17 years ago* src/vm/vm.c: Renamed -Xglibj to -Xbootclasspath/c to match jamvm's
twisti [Fri, 27 Oct 2006 10:41:02 +0000 (10:41 +0000)]
* src/vm/vm.c: Renamed -Xglibj to -Xbootclasspath/c to match jamvm's
option (Robert, Mark and I decided that once).
(vm_create): Removed unnecessary k. #ifdef'd the profiling stuff.
(vm_run): Removed commented code.
* src/vm/options.c, src/vm/options.h [ENABLE_PROFILING] (opt_prof)
(opt_prof_bb): Added.
* src/vm/jit/jit.c (jit_compile) [ENABLE_PROFILING]: Added for
opt_prof stuff.
[ENABLE_VERIFIER]: Added for flag setting.
* src/vm/jit/codegen-common.c (codegen_createnativestub)
[ENABLE_PROFILING]: Added for opt_prof stuff.

17 years ago* src/vm/jit/alpha/codegen.c (codegen): Declare variables at the start
edwin [Thu, 26 Oct 2006 16:41:07 +0000 (16:41 +0000)]
* src/vm/jit/alpha/codegen.c (codegen): Declare variables at the start
of codegen (uf, fi).

17 years ago* src/vm/jit/powerpc/codegen.c (codegen): Made fieldinfo and
twisti [Thu, 26 Oct 2006 12:05:33 +0000 (12:05 +0000)]
* src/vm/jit/powerpc/codegen.c (codegen): Made fieldinfo and
unresolved_field fucntion variables, fieldtype was uninitialized for
PUTFIELD.

17 years ago* src/vm/jit/x86_64/codegen.c (codegen): Made fieldinfo and
twisti [Thu, 26 Oct 2006 11:57:16 +0000 (11:57 +0000)]
* src/vm/jit/x86_64/codegen.c (codegen): Made fieldinfo and
unresolved_field function variables (it makes the code more readable).

17 years ago* src/vm/jit/alpha/codegen.c (codegen): Fixed ICMD_PUTFIELD: Set
edwin [Thu, 26 Oct 2006 11:47:43 +0000 (11:47 +0000)]
* src/vm/jit/alpha/codegen.c (codegen): Fixed ICMD_PUTFIELD: Set
fieldtype before it is used. Fixed warnings.

* src/vm/jit/mips/codegen.c (codegen): Prevent warnings.

17 years ago* NEWS: Added some 0.97 news.
twisti [Thu, 26 Oct 2006 11:35:04 +0000 (11:35 +0000)]
* NEWS: Added some 0.97 news.

17 years ago* src/vm/exceptions.c (exceptions_print_exception): Removed [!NDEBUG]
twisti [Thu, 26 Oct 2006 11:30:02 +0000 (11:30 +0000)]
* src/vm/exceptions.c (exceptions_print_exception): Removed [!NDEBUG]
condition, as we may need this function in the VM (e.g. recompile).
* src/vm/jit/recompile.c (vm/exceptions.h): Added.
(recompile_thread): Call exceptions_print_exception in exception case.

17 years ago* src/vm/jit/intrp/codegen.c (codegen): Initialize uf to NULL for
edwin [Thu, 26 Oct 2006 11:29:42 +0000 (11:29 +0000)]
* src/vm/jit/intrp/codegen.c (codegen): Initialize uf to NULL for
resolved fields, to avoid warnings.

* src/vm/jit/intrp/engine.c (engine): Initialize
classcastexception_object and arrayindexoutofbounds_index to avoid
warnings.

17 years ago* src/vm/jit/dseg.c (dseg_addlinenumber_inline_start): Read inline
edwin [Thu, 26 Oct 2006 11:23:00 +0000 (11:23 +0000)]
* src/vm/jit/dseg.c (dseg_addlinenumber_inline_start): Read inline
info from instruction, ported to new instruction format.
(dseg_addlinenumber_inline_end): Likewise.

17 years ago* src/vm/jit/show.c (show_icmd): Fixed warning fix.
edwin [Thu, 26 Oct 2006 11:19:54 +0000 (11:19 +0000)]
* src/vm/jit/show.c (show_icmd): Fixed warning fix.

17 years ago* src/threads/native/threads.c (threads_table_dump): Fix warning (the
edwin [Thu, 26 Oct 2006 11:18:08 +0000 (11:18 +0000)]
* src/threads/native/threads.c (threads_table_dump): Fix warning (the
function is currently unused, but may become handy again.)

17 years ago* src/vm/jit/show.c (show_method): Fixed warning.
edwin [Thu, 26 Oct 2006 11:15:09 +0000 (11:15 +0000)]
* src/vm/jit/show.c (show_method): Fixed warning.
(show_basicblock): Likewise.
(show_icmd): Likewise.

17 years ago* src/vm/jit/x86_64/md.h: Removed.
twisti [Thu, 26 Oct 2006 11:04:31 +0000 (11:04 +0000)]
* src/vm/jit/x86_64/md.h: Removed.
* src/vm/jit/x86_64/Makefile.am (libarch_la_SOURCES): Removed md.h.
* src/vm/jit/x86_64/codegen.c (md.h): Removed.
(codegen): Warning fix.

17 years ago* src/vm/jit/mips/md-abi.h: Fixed MIPS64 compilation and backported
twisti [Thu, 26 Oct 2006 10:34:17 +0000 (10:34 +0000)]
* src/vm/jit/mips/md-abi.h: Fixed MIPS64 compilation and backported
some MIPS32 stuff.

17 years ago* src/vm/descriptor.h (paramdesc): We need a type for MIPS32, as the
twisti [Thu, 26 Oct 2006 10:09:11 +0000 (10:09 +0000)]
* src/vm/descriptor.h (paramdesc): We need a type for MIPS32, as the
type in the allocated argument register may be different to the actual
register (e.g. passing a float in an integer register).

17 years ago* src/vm/jit/mips/codegen.c (codegen): More comment and brace changes.
twisti [Thu, 26 Oct 2006 09:55:52 +0000 (09:55 +0000)]
* src/vm/jit/mips/codegen.c (codegen): More comment and brace changes.

17 years ago* src/vm/jit/mips/codegen.c (codegen): Comment and brace changes.
twisti [Thu, 26 Oct 2006 09:44:07 +0000 (09:44 +0000)]
* src/vm/jit/mips/codegen.c (codegen): Comment and brace changes.

17 years ago* src/vm/jit/mips/md-asm.h: Renamed t8 to t4 and removed t9, as it's
twisti [Thu, 26 Oct 2006 09:29:23 +0000 (09:29 +0000)]
* src/vm/jit/mips/md-asm.h: Renamed t8 to t4 and removed t9, as it's
actually itmp3.
* src/vm/jit/mips/asmpart.S: Likewise.

17 years ago* src/vm/jit/powerpc64/linux/md-abi.c (_ALIGN): Renamed to
tbfg [Wed, 25 Oct 2006 14:26:08 +0000 (14:26 +0000)]
* src/vm/jit/powerpc64/linux/md-abi.c (_ALIGN): Renamed to
 CACAO_ALIGN because of name clash with /usr/include/asm-ppc64/page.h.

* src/vm/jit/powerpc64/emit.c (emit_lconst): Added.
 (emit_iconst): Reformatted.

* src/vm/jit/powerpc64/codegen.c (codegen):
 Replaced all stackframesize with cd->stackframesize.
 Implemented ICMD_IF_LLT, ICMD_IF_LLE, ICMD_IF_LGE, ICMD_IF_LGT.

* src/vm/jit/powerpc64/asmpart.S:
 Partially fixed exception path.
 (asm_cacheflush): Fixed.

* src/vm/jit/powerpc64/codegen.h (LCONST): Implemented.

* tests/if_tests.java: Added simple testcase for if and compare.

17 years ago* src/vm/utf8.h, src/vm/utf8.c (utf8_safe_number_of_u2s): Modified to
edwin [Tue, 24 Oct 2006 23:24:19 +0000 (23:24 +0000)]
* src/vm/utf8.h, src/vm/utf8.c (utf8_safe_number_of_u2s): Modified to
completely emulate the behaviour of the RI in case of truncated UTF-8
characters. This requires an extra strlen(text) beforehand. We still
require zero-termination. We could drop that with a few extra changes,
should we find other uses for these functions.
(utf8_safe_convert_to_u2s): Likewise.

* src/vm/string.c (javastring_safe_new_from_utf8): Pass number of
bytes to the decoding functions.

17 years ago* src/vm/utf8.c (utf8_safe_number_of_u2s): Skip only bytes beginning
edwin [Tue, 24 Oct 2006 17:51:42 +0000 (17:51 +0000)]
* src/vm/utf8.c (utf8_safe_number_of_u2s): Skip only bytes beginning
with high bits 10 in invalid sequences.
(utf8_safe_convert_to_u2s): Likewise.

17 years ago* src/vm/utf8.h, src/vm/utf8.c (utf8_safe_number_of_u2s): New function.
edwin [Tue, 24 Oct 2006 16:41:54 +0000 (16:41 +0000)]
* src/vm/utf8.h, src/vm/utf8.c (utf8_safe_number_of_u2s): New function.
(utf8_safe_convert_to_u2s): Likewise.

* src/vm/stringlocal.h, src/vm/string.c
(javastring_safe_new_from_utf8): New function.

* src/native/jni.c (_Jv_JNI_NewStringUTF): Use the new functions for
safe UTF-8 decoding.

17 years ago* src/vm/jit/dseg.c (dseg_display): Rewritten.
twisti [Tue, 24 Oct 2006 11:17:30 +0000 (11:17 +0000)]
* src/vm/jit/dseg.c (dseg_display): Rewritten.

17 years ago* src/vm/jit/sparc64/codegen.h: fixed M_SAVE.
ajordan [Sun, 22 Oct 2006 04:28:47 +0000 (04:28 +0000)]
* src/vm/jit/sparc64/codegen.h: fixed M_SAVE.

* src/vm/jit/sparc64/disass.c: configuring disass for big-endian.

17 years ago* src/vm/jit/sparc64/emit.c: Implemented trace enter/exit functions.
ajordan [Sun, 22 Oct 2006 02:49:53 +0000 (02:49 +0000)]
* src/vm/jit/sparc64/emit.c: Implemented trace enter/exit functions.
* src/vm/jit/sparc64/codegen.c: Likewise.

* src/vm/jit/sparc64/md.c: Implemented md_get_method_patch_address.

* src/vm/jit/sparc64/asmpart.S(asm_call_jit_compiler): Fixed window handling

* src/vm/jit/sparc64/disass.c: Fixed disassembly printing.

* src/vm/jit/sparc64/md-abi.h: Minor changes/fixes.
* src/vm/jit/sparc64/codegen.h: Likewise.
* src/vm/jit/sparc64/md-asm.h: Likewise.

17 years ago* src/vm/jit/jit.c (jit_asm_compile): Fixed xpc for extern
edwin [Sun, 22 Oct 2006 00:38:21 +0000 (00:38 +0000)]
* src/vm/jit/jit.c (jit_asm_compile): Fixed xpc for extern
stackframeinfo by subtracting 1 from the return address.
This fixes stacktraces when exceptions are thrown out of
the compiler.

* tests/regression/extest.2output: Changed line numbers to
the values same the RI returns, which are correct upon inspection
of the Java code.

17 years ago* src/vm/jit/parse.c (parse): Bugfix for -noverify: Do not make the
edwin [Sat, 21 Oct 2006 15:06:07 +0000 (15:06 +0000)]
* src/vm/jit/parse.c (parse): Bugfix for -noverify: Do not make the
variable array dependant on jd->flags, as this breaks stack_analyse.

17 years ago* src/vm/jit/mips/codegen.c (md.h): Removed.
twisti [Fri, 20 Oct 2006 18:35:32 +0000 (18:35 +0000)]
* src/vm/jit/mips/codegen.c (md.h): Removed.
* src/vm/jit/mips/md.h: Removed.
* src/vm/jit/mips/Makefile.am (libarch_la_SOURCES): Removed md.h.

17 years ago* src/vm/jit/jit.c (jit_init) [ENABLE_JIT]: Call stack_init only for
twisti [Fri, 20 Oct 2006 14:53:27 +0000 (14:53 +0000)]
* src/vm/jit/jit.c (jit_init) [ENABLE_JIT]: Call stack_init only for
JIT.
[ENABLE_JIT] (jit_asm_compile): Only for JIT.

* src/vm/jit/Makefile.am (SUBDIRS) [ENABLE_JIT]: Add allocator only
for JIT.
(libjit_la_SOURCES) [ENABLE_JIT]: Compile reg.[ch], replace.[ch] and
stack.[ch] only for JIT.

* src/cacaoh/headers.c [ENABLE_INTRP] (intrp_asm_abstractmethoderror):
Added.

17 years ago* src/vm/linker.c (link_class_intern): Handle AbstractMethodError for
twisti [Fri, 20 Oct 2006 14:26:50 +0000 (14:26 +0000)]
* src/vm/linker.c (link_class_intern): Handle AbstractMethodError for
interpreter (missed this one in the last commit).

17 years ago* src/vm/jit/intrp/asmpart.c (intrp_asm_abstractmethoderror): Added.
twisti [Fri, 20 Oct 2006 14:22:23 +0000 (14:22 +0000)]
* src/vm/jit/intrp/asmpart.c (intrp_asm_abstractmethoderror): Added.
* src/vm/jit/asmpart.h [ENABLE_INTRP] (intrp_asm_abstractmethoderror):
Likewise.
* src/vm/linker.c (linker_addinterface): Handle AbstractMethodError
for interpreter.

17 years ago* src/native/vm/gnu_classpath_VMSystemProperties.c (preInit): Removed
twisti [Fri, 20 Oct 2006 13:58:30 +0000 (13:58 +0000)]
* src/native/vm/gnu_classpath_VMSystemProperties.c (preInit): Removed
unused ld_library_path.

17 years ago* src/vm/suck.c (vm/vm.h): Added.
twisti [Fri, 20 Oct 2006 13:54:54 +0000 (13:54 +0000)]
* src/vm/suck.c (vm/vm.h): Added.
(bootclasspath, classpath): Removed.
(suck_add_from_property): Prefix bootclasspath with _Jv_.
* src/vm/suck.h (bootclasspath, classpath): Removed.

* src/vm/vm.c (_Jv_bootclasspath, _Jv_classpath)
(_Jv_java_library_path): Added.
(version): Prefix bootclasspath with _Jv_.
(vm_create): Likewise, set _Jv_java_library_path to LD_LIBRARY_PATH
before handling commandline options.
* src/vm/vm.h (_Jv_bootclasspath, _Jv_classpath)
(_Jv_java_library_path): Added.

* src/native/vm/gnu_classpath_VMSystemProperties.c (preInit): Prefix
bootclasspath and classpath with _Jv_, use _Jv_java_library_path for
setting java.library.path.

* src/cacao/cacao.c (main): First let dlopen try to open libjvm at
it's default locations.
* src/native/native.c (native_init): Likewise.

* src/cacaoh/headers.c (_Jv_bootclasspath): Added.

* contrib/setenvinstalled.in: Set LD_LIBRARY_PATH again.
* contrib/setenvsource.in: Likewise.

* tests/regression/native/Makefile.am (JAVAFLAGS): Removed
-Djava.library.path=.
(check): Set LD_LIBRARY_PATH.
* tests/regression/codepatching/Makefile.am (check): Likewise.
* tests/regression/Makefile.am: Likewise.

17 years ago* src/vm/signal.c (signal_init): Added dummy allocation to install
twisti [Fri, 20 Oct 2006 13:09:54 +0000 (13:09 +0000)]
* src/vm/signal.c (signal_init): Added dummy allocation to install
Boehm's signal handlers.
* src/threads/native/threads.c (threads_preinit): Removed dummy
allocation.

* src/vm/vm.c (vm_create): Call threads_preinit before gc_init.
* src/cacaoh/cacaoh.c (main): Likewise.

17 years ago* src/vm/exceptions.c [ENABLE_JIT] (exceptions_handle_exception): Only
twisti [Fri, 20 Oct 2006 12:00:18 +0000 (12:00 +0000)]
* src/vm/exceptions.c [ENABLE_JIT] (exceptions_handle_exception): Only
required for JIT.

17 years ago* src/mm/memory.c: fixed typo in _no_threads_dumpinfo definition
ajordan [Fri, 20 Oct 2006 00:37:37 +0000 (00:37 +0000)]
* src/mm/memory.c: fixed typo in _no_threads_dumpinfo definition

17 years ago* src/threads/native/threads.c (threads_interrupt_thread): Renamed to
twisti [Thu, 19 Oct 2006 10:10:23 +0000 (10:10 +0000)]
* src/threads/native/threads.c (threads_interrupt_thread): Renamed to
threads_thread_interrupt, send thread a SIGHUP singal to interrupt
blocking system calls (thanks to Robert Schuster).
(threads_dump): Removed threads_sleep call.

* src/threads/native/threads.h (threads_interrupt_thread): Renamed to
threads_thread_interrupt.
* src/native/vm/java_lang_VMThread.c (interrupt): Likewise.
* src/native/jvmti/jvmti.c (InterruptThread): Likewise.

* src/vm/signal.c (signal_init): Register SIGHUP.
(signal_handler_sighup): Added.

17 years ago* src/vm/jit/stacktrace.c (stacktrace_dump_trace): Changed signature.
twisti [Thu, 19 Oct 2006 09:32:29 +0000 (09:32 +0000)]
* src/vm/jit/stacktrace.c (stacktrace_dump_trace): Changed signature.
* src/vm/jit/stacktrace.h: Likewise.

* src/vm/jit/codegen-common.c (codegen_get_pv_from_pc): Pass
threadobject to stacktrace_dump_trace.

* src/vm/signal.c (signal_init): Don't register SIGUSR1.
(signal_handler_sigusr1): Removed.

* src/native/jni.h: Include GNU Classpath JNI header before we define
our header.
(localref_table): Forward typedef.

* src/threads/native/threads.c (threads_dump): Pass threadobject to
stacktrace_dump_trace.

* src/cacaoh/headers.c (stacktrace_dump_trace): Added.

17 years ago* src/threads/native/threads.h (threadobject, threads_table_entry_t)
twisti [Thu, 19 Oct 2006 09:27:24 +0000 (09:27 +0000)]
* src/threads/native/threads.h (threadobject, threads_table_entry_t)
(threads_table_t): Forward typedef.
(threadobject): Changed dumpinfo to dumpinfo_t.

17 years ago* src/mm/memory.h (dumpblock): Postfixed with _t and moved before
twisti [Thu, 19 Oct 2006 09:25:41 +0000 (09:25 +0000)]
* src/mm/memory.h (dumpblock): Postfixed with _t and moved before
internal includes, as we have some problems with threadobject.
(dumpinfo): Likewise.
* src/mm/memory.c: Postfixed dumpblock and dumpinfo with _t.

17 years ago* src/vm/jit/powerpc/codegen.c (codegen): Warning fixes.
twisti [Thu, 19 Oct 2006 09:23:26 +0000 (09:23 +0000)]
* src/vm/jit/powerpc/codegen.c (codegen): Warning fixes.

17 years ago* src/vm/jit/codegen-common.c (codegen_createnativestub): Initialize
edwin [Wed, 18 Oct 2006 16:55:43 +0000 (16:55 +0000)]
* src/vm/jit/codegen-common.c (codegen_createnativestub): Initialize
jd->flags to zero.

17 years ago* tests/regression/jasmin/runtest: Removed debugging `tee TEST`.
edwin [Wed, 18 Oct 2006 16:27:41 +0000 (16:27 +0000)]
* tests/regression/jasmin/runtest: Removed debugging `tee TEST`.
* tests/regression/jasmin/Makefile.am (CLEANFILES): Added file TESTSIA.

17 years ago* tests/regression/jasmin/Makefile.am (SOURCE_FILES): Use EXTRA_DIST, instead.
edwin [Wed, 18 Oct 2006 16:19:21 +0000 (16:19 +0000)]
* tests/regression/jasmin/Makefile.am (SOURCE_FILES): Use EXTRA_DIST, instead.

17 years ago* src/vm/jit/i386/linux/Makefile.am (noinst_HEADERS): Added md-asm.h.
edwin [Wed, 18 Oct 2006 15:57:10 +0000 (15:57 +0000)]
* src/vm/jit/i386/linux/Makefile.am (noinst_HEADERS): Added md-asm.h.
* src/vm/jit/i386/freebsd/Makefile.am (noinst_HEADERS): Likewise.

17 years ago* src/vm/jit/Makefile.am (DIST_SUBDIRS): Added powerpc64.
twisti [Wed, 18 Oct 2006 15:27:42 +0000 (15:27 +0000)]
* src/vm/jit/Makefile.am (DIST_SUBDIRS): Added powerpc64.

17 years ago* src/vm/jit/Makefile.am (DIST_SUBDIRS): Added optimizing.
twisti [Wed, 18 Oct 2006 15:19:39 +0000 (15:19 +0000)]
* src/vm/jit/Makefile.am (DIST_SUBDIRS): Added optimizing.

17 years ago* src/vm/jit/sparc64/Makefile.am (libarch_la_SOURCES): Removed md.h.
twisti [Wed, 18 Oct 2006 15:14:11 +0000 (15:14 +0000)]
* src/vm/jit/sparc64/Makefile.am (libarch_la_SOURCES): Removed md.h.

17 years ago* src/vm/jit/i386/Makefile.am (libarch_la_SOURCES): Renamed md-emit.h
twisti [Wed, 18 Oct 2006 15:09:56 +0000 (15:09 +0000)]
* src/vm/jit/i386/Makefile.am (libarch_la_SOURCES): Renamed md-emit.h
to emit.h.

17 years ago* configure.ac (AC_INIT): Changed to version 0.97rc.
twisti [Wed, 18 Oct 2006 15:04:27 +0000 (15:04 +0000)]
* configure.ac (AC_INIT): Changed to version 0.97rc.
(CFLAGS): Changed to -O2.

17 years ago* tests/regression/jasmin/Makefile.am: Temporarily disable failing
edwin [Wed, 18 Oct 2006 14:53:43 +0000 (14:53 +0000)]
* tests/regression/jasmin/Makefile.am: Temporarily disable failing
tests for the release.

17 years ago* src/vm/jit/stack.c (stack_analyse): Check field type when creating
edwin [Wed, 18 Oct 2006 14:53:05 +0000 (14:53 +0000)]
* src/vm/jit/stack.c (stack_analyse): Check field type when creating
a PUTFIELDCONST/PUTSTATICCONST instruction.

17 years ago* src/vm/jit/parse.c (parse_resolve_exception_table): Do not use
edwin [Mon, 16 Oct 2006 09:59:52 +0000 (09:59 +0000)]
* src/vm/jit/parse.c (parse_resolve_exception_table): Do not use
codegendata.
(parse): Likewise.

* src/vm/jit/stack.c (stack_analyse): Likewise.

17 years ago* src/vm/jit/allocator/simplereg.c [ENABLE_STATISTICS]
twisti [Mon, 16 Oct 2006 09:02:40 +0000 (09:02 +0000)]
* src/vm/jit/allocator/simplereg.c [ENABLE_STATISTICS]
(simplereg_make_statistics): Don't print this INREGISTER stuff.

17 years ago* src/vm/jit/jit.c (jit_compile_intern) [ENABLE_STATISTICS]:
twisti [Mon, 16 Oct 2006 08:53:13 +0000 (08:53 +0000)]
* src/vm/jit/jit.c (jit_compile_intern) [ENABLE_STATISTICS]:
exceptiontablelength is now in jitdata.

17 years ago* src/vm/jit/sparc64/codegen.c: Ported to unified variables.
ajordan [Mon, 16 Oct 2006 00:05:25 +0000 (00:05 +0000)]
* src/vm/jit/sparc64/codegen.c: Ported to unified variables.
* src/vm/jit/sparc64/emit.c: Likewise.

* src/vm/jit/sparc64/md.c: Implemented md_codegen_get_pv_from_pc.

* src/vm/jit/sparc64/codegen.h: Some fixes.
* src/vm/jit/sparc64/asmpart.S: Likewise.

17 years ago* src/vm/linker.c (link_class_intern): Removed unused variable.
edwin [Sun, 15 Oct 2006 22:44:56 +0000 (22:44 +0000)]
* src/vm/linker.c (link_class_intern): Removed unused variable.

17 years ago* src/vm/jit/jit.h (exception_entry): New struct.
edwin [Sun, 15 Oct 2006 22:25:54 +0000 (22:25 +0000)]
* src/vm/jit/jit.h (exception_entry): New struct.
(jitdata): Added exceptiontable fields. Cleaned up.

* src/vm/exceptions.h (exceptionentry): Removed.

* src/vm/jit/dseg.h (dseg_exception_entry): New struct.

* src/vm/jit/stack.h (BLOCK_OF): Moved to parse.h.
* src/vm/jit/parse.h (BLOCK_OF): Added.

* src/vm/jit/codegen-common.h (codegendata): Removed exceptiontable
and exceptiontablelength.

* src/vm/loader.c (load_method): Renamed m->exceptiontable* to
m->rawexceptiontable*.
(load_class_from_classbuffer): Likewise.
* src/vm/method.c (method_free): Likewise.

* src/vm/method.h (methodinfo): Renamed m->exceptiontable* to
m->rawexceptiontable*.
(exceptiontable): Renamed to raw_exception_entry. Removed fields that
are only used in jd->exceptiontable.

* src/vm/jit/powerpc/codegen.c (codegen): Moved exceptiontable to jd,
renamed struct exceptiontable to exception_entry.
* src/vm/jit/sparc64/codegen.c (codegen): Likewise.
* src/vm/jit/alpha/codegen.c (codegen): Likewise.
* src/vm/jit/stack.c (stackdata_t): Likewise.
(stack_analyse): Likewise.
(stack_reanalyse_block): Likewise.
* src/vm/jit/optimizing/graph.c (graph_add_exceptions): Likewise.
* src/vm/jit/show.c (show_method): Likewise.
* src/vm/jit/verify/typecheck-common.h (verifier_state): Likewise.
* src/vm/jit/verify/typecheck.c (verify_basic_block): Likewise.
* src/vm/jit/verify/typecheck-stackbased.c (typecheck_stackbased):
Likewise.
* src/vm/jit/mips/codegen.c (codegen):
* src/vm/jit/loop/loop.h (LoopContainer): Likewise.
* src/vm/jit/loop/analyze.c (analyze_nested): Likewise.
(analyze_or_exceptions): Likewise.
(update_internal_exceptions): Likewise.
(create_static_checks): Likewise.
(optimize_loops): Likewise.
* src/vm/jit/inline/inline.c (test_inlining): Likewise.
* src/vm/jit/allocator/lsra.c (lsra_add_exceptions): Likewise.
* src/vm/jit/i386/codegen.c (codegen): Likewise.
* src/vm/jit/powerpc64/codegen.c (codegen): Likewise.
* src/vm/jit/intrp/codegen.c (codegen): Likewise.
* src/vm/jit/schedule/schedule.h (M_SCHEDULE_SET_EXCEPTION_POINT):
Likewise.
* src/vm/jit/x86_64/codegen.c (codegen): Likewise.
* src/vm/jit/jit.c (jit_compile_intern): Likewise.
(jit_jitdata_new): Initialize exceptiontable fields.

* src/vm/jit/codegen-common.c (codegen_setup): Removed exceptiontable
fields.

* src/vm/jit/parse.c (parse_mark_exception_boundaries): New function.
(parse_resolve_exception_table): New function.
(fillextable): Removed.
(parse): Use parse_mark_exception_boundaries and
parse_resolve_exception_table. Write the basicblockindex for the end
marker block.

* src/vm/jit/intrp/asmpart.c (exceptionentry): Renamed to
dseg_exception_entry.
* src/vm/exceptions.c (exceptions_handle_exception): Likewise.

* src/vm/linker.c (link_class_intern): Do not resolve exception
classes here. This is now done in parse.c.

17 years ago* src/vm/jit/jit.h: Indentation cleanup.
edwin [Sun, 15 Oct 2006 13:52:06 +0000 (13:52 +0000)]
* src/vm/jit/jit.h: Indentation cleanup.

17 years ago* src/vm/jit/jit.h (flags_operand_t): Removed `fields` struct. It was
edwin [Sun, 15 Oct 2006 13:37:46 +0000 (13:37 +0000)]
* src/vm/jit/jit.h (flags_operand_t): Removed `fields` struct. It was
not safe to use, as defined.

17 years ago* src/vm/jit/jit.h (flags_operand_t): Removed unused argcount.
edwin [Sun, 15 Oct 2006 13:19:41 +0000 (13:19 +0000)]
* src/vm/jit/jit.h (flags_operand_t): Removed unused argcount.
(ACONST_LOAD): Removed.
(ACONST_BUILTIN): Removed.

17 years ago* src/vm/method.h (methodinfo): Removed c_block_nr.
edwin [Sun, 15 Oct 2006 12:59:04 +0000 (12:59 +0000)]
* src/vm/method.h (methodinfo): Removed c_block_nr.
* src/vm/jit/jit.h (jitdata): Removed c_block_nr.
(BASICBLOCK_INIT): Do not set bptr->nr here.

* src/vm/jit/jit.c (jit_compile_intern): Renumber basic blocks after
transformations.
(jit_check_basicblock_numbers): Made stricter.

* src/vm/jit/stack.c (stack_append_block): Set basic block numbers
correctly.
(stack_clone_block): Do not set bptr->nr here.

* src/vm/jit/verify/typecheck.c (typestate_reach): Use the correct
check for setting the repeat flag.
(typecheck): Check basic block numbers.

* src/vm/jit/verify/typecheck-stackbased.c (typecheck_stackbased):
Check basic block numbers.

* src/vm/jit/loop/analyze.c (copy_handler): Do not use c_block_nr.
(create_static_checks): Likewise.
* src/vm/jit/inline/inline.c (create_block): Likewise.
* src/vm/jit/parse.c (parse): Likewise.