gcc/libjava
Alexandre Oliva 18fa3240db ffi.h.in (ffi_closure_alloc, [...]): New.
libffi/ChangeLog:
* include/ffi.h.in (ffi_closure_alloc, ffi_closure_free): New.
(ffi_prep_closure_loc): New.
(ffi_prep_raw_closure_loc): New.
(ffi_prep_java_raw_closure_loc): New.
* src/closures.c: New file.
* src/dlmalloc.c [FFI_MMAP_EXEC_WRIT] (struct malloc_segment):
Replace sflags with exec_offset.
[FFI_MMAP_EXEC_WRIT] (mmap_exec_offset, add_segment_exec_offset,
sub_segment_exec_offset): New macros.
(get_segment_flags, set_segment_flags, check_segment_merge): New
macros.
(is_mmapped_segment, is_extern_segment): Use get_segment_flags.
(add_segment, sys_alloc, create_mspace, create_mspace_with_base,
destroy_mspace): Use new macros.
(sys_alloc): Silence warning.
* Makefile.am (libffi_la_SOURCES): Add src/closures.c.
* Makefile.in: Rebuilt.
* src/prep_cif [FFI_CLOSURES] (ffi_prep_closure): Implement in
terms of ffi_prep_closure_loc.
* src/raw_api.c (ffi_prep_raw_closure_loc): Renamed and adjusted
from...
(ffi_prep_raw_closure): ... this.  Re-implement in terms of the
renamed version.
* src/java_raw_api (ffi_prep_java_raw_closure_loc): Renamed and
adjusted from...
(ffi_prep_java_raw_closure): ... this.  Re-implement in terms of
the renamed version.
* src/alpha/ffi.c (ffi_prep_closure_loc): Renamed from
(ffi_prep_closure): ... this.
* src/pa/ffi.c: Likewise.
* src/cris/ffi.c: Likewise.  Adjust.
* src/frv/ffi.c: Likewise.
* src/ia64/ffi.c: Likewise.
* src/mips/ffi.c: Likewise.
* src/powerpc/ffi_darwin.c: Likewise.
* src/s390/ffi.c: Likewise.
* src/sh/ffi.c: Likewise.
* src/sh64/ffi.c: Likewise.
* src/sparc/ffi.c: Likewise.
* src/x86/ffi64.c: Likewise.
* src/x86/ffi.c: Likewise.
(FFI_INIT_TRAMPOLINE): Adjust.
(ffi_prep_raw_closure_loc): Renamed and adjusted from...
(ffi_prep_raw_closure): ... this.
* src/powerpc/ffi.c (ffi_prep_closure_loc): Renamed from
(ffi_prep_closure): ... this.
(flush_icache): Adjust.
boehm-gc/ChangeLog:
* include/gc.h (GC_REGISTER_FINALIZER_UNREACHABLE): New.
(GC_register_finalizer_unreachable): Declare.
(GC_debug_register_finalizer_unreachable): Declare.
* finalize.c (GC_unreachable_finalize_mark_proc): New.
(GC_register_finalizer_unreachable): New.
(GC_finalize): Handle it.
* dbg_mlc.c (GC_debug_register_finalizer_unreachable): New.
(GC_debug_register_finalizer_no_order): Fix whitespace.
libjava/ChangeLog:
* include/jvm.h (_Jv_ClosureListFinalizer): New.
(_Jv_Linker::create_error_method): Adjust.
* boehm.cc (_Jv_ClosureListFinalizer): New.
* nogc.cc (_Jv_ClosureListFinalizer): New.
* java/lang/Class.h (class _Jv_ClosureList): New.
(class java::lang::Class): Declare it as friend.
* java/lang/natClass.cc (_Jv_ClosureList::releaseClosures): New.
(_Jv_ClosureList::registerClousure): New.
* include/execution.h (_Jv_ExecutionEngine): Add get_closure_list.
(_Jv_CompiledEngine::do_get_closure_list): New.
(_Jv_CompiledEngine::_Jv_CompiledEngine): Use it.
(_Jv_IndirectCompiledClass): Add closures.
(_Jv_IndirectCompiledEngine::get_aux_info): New.
(_Jv_IndirectCompiledEngine::do_allocate_field_initializers): Use
it.
(_Jv_IndirectCompiledEngine::do_get_closure_list): New.
(_Jv_IndirectCompiledEngine::_Jv_IndirectCompiledEngine): Use it.
(_Jv_InterpreterEngine::do_get_closure_list): Declare.
(_Jv_InterpreterEngine::_Jv_InterpreterEngine): Use it.
* interpret.cc (FFI_PREP_RAW_CLOSURE): Use _loc variants.
(node_closure): Add closure list.
(_Jv_InterpMethod::ncode): Add jclass argument.  Use
ffi_closure_alloc and the separate code pointer.  Register the
closure for finalization.
(_Jv_JNIMethod::ncode): Likewise.
(_Jv_InterpreterEngine::do_create_ncode): Pass klass to ncode.
(_Jv_InterpreterEngine::do_get_closure_list): New.
* include/java-interp.h (_Jv_InterpMethod::ncode): Adjust.
(_Jv_InterpClass): Add closures field.
(_Jv_JNIMethod::ncode): Adjust.
* defineclass.cc (_Jv_ClassReader::handleCodeAttribute): Adjust.
(_Jv_ClassReader::handleMethodsEnd): Likewise.
* link.cc (struct method_closure): Add closure list.
(_Jv_Linker::create_error_method): Add jclass argument.  Use
ffi_closure_alloc and the separate code pointer.  Register the
closure for finalization.
(_Jv_Linker::link_symbol_table): Remove outdated comment about
sharing of otable and atable.  Adjust.
* java/lang/reflect/natVMProxy.cc (ncode_closure): Add closure
list.
(ncode): Add jclass argument.  Use ffi_closure_alloc and the
separate code pointer.  Register the closure for finalization.
(java::lang::reflect::VMProxy::generateProxyClass): Adjust.
* testsuite/libjava.jar/TestClosureGC.java: New.
* testsuite/libjava.jar/TestClosureGC.out: New.
* testsuite/libjava.jar/TestClosureGC.xfail: New.
* testsuite/libjava.jar/TestClosureGC.jar: New.

From-SVN: r122652
2007-03-07 07:27:25 +00:00
..
classpath AbsentInformationException.java: New file. 2007-03-06 21:09:22 +00:00
gcj sources.am, [...]: Rebuilt. 2007-03-05 15:57:13 +00:00
gnu AbsentInformationException.java: New file. 2007-03-06 21:09:22 +00:00
include ffi.h.in (ffi_closure_alloc, [...]): New. 2007-03-07 07:27:25 +00:00
java ffi.h.in (ffi_closure_alloc, [...]): New. 2007-03-07 07:27:25 +00:00
javax Updating header files. Earlier change here seems to have been in error. 2007-03-05 14:29:47 +00:00
libltdl aclocal.m4: Regenerate to use multi.m4. 2007-01-17 19:48:52 +00:00
org Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
scripts sources.am, [...]: Rebuilt. 2007-03-05 15:57:13 +00:00
sun AnnotationInvocationHandler.java: Generify in a few places. 2007-03-02 19:05:57 +00:00
sysdep * sysdep/alpha/locks.h (read_barrier): New. 2007-02-09 12:40:56 -08:00
testsuite ffi.h.in (ffi_closure_alloc, [...]): New. 2007-03-07 07:27:25 +00:00
COPYING COPYING: Update to current ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes... 2000-12-18 09:12:19 +00:00
ChangeLog ffi.h.in (ffi_closure_alloc, [...]): New. 2007-03-07 07:27:25 +00:00
ChangeLog-1998 Shuffle ChangeLog entries into new files ChangeLog-1998, 2005-05-04 18:29:28 +00:00
ChangeLog-1999 Shuffle ChangeLog entries into new files ChangeLog-1998, 2005-05-04 18:29:28 +00:00
ChangeLog-2000 Shuffle ChangeLog entries into new files ChangeLog-1998, 2005-05-04 18:29:28 +00:00
ChangeLog-2001 Shuffle ChangeLog entries into new files ChangeLog-1998, 2005-05-04 18:29:28 +00:00
ChangeLog-2002 Shuffle ChangeLog entries into new files ChangeLog-1998, 2005-05-04 18:29:28 +00:00
ChangeLog-2003 Shuffle ChangeLog entries into new files ChangeLog-1998, 2005-05-04 18:29:28 +00:00
ChangeLog-2004 Shuffle ChangeLog entries into new files ChangeLog-1998, 2005-05-04 18:29:28 +00:00
ChangeLog-2005 ChangeLog rotation 2007-01-17 20:18:15 +00:00
ChangeLog-2006 ChangeLog rotation 2007-01-17 20:18:15 +00:00
HACKING * HACKING: Various updates. 2007-01-10 23:44:46 +00:00
LIBGCJ_LICENSE Update FSF address 2005-06-30 03:22:09 +00:00
Makefile.am Makefile.in: Rebuilt. 2007-03-06 18:50:14 +00:00
Makefile.in AbsentInformationException.java: New file. 2007-03-06 21:09:22 +00:00
NEWS * NEWS: Add 4.1 updates. 2006-01-31 13:32:29 +00:00
README README: Remove obsolete info. 2004-07-29 03:13:04 +01:00
THANKS README: Remove obsolete info. 2004-07-29 03:13:04 +01:00
aclocal.m4 aclocal.m4: Regenerate to use multi.m4. 2007-01-17 19:48:52 +00:00
addr2name.awk Jumbo patch: 2000-05-19 17:55:34 +00:00
boehm.cc ffi.h.in (ffi_closure_alloc, [...]): New. 2007-03-07 07:27:25 +00:00
configure Make-lang.in (JAVA_MANFILES): Add doc/gc-analyze.1. 2007-02-15 17:25:24 +00:00
configure.ac Make-lang.in (JAVA_MANFILES): Add doc/gc-analyze.1. 2007-02-15 17:25:24 +00:00
configure.host re PR libgcj/30513 (Bootstrap failure with libgcj on sparc-sun-solaris2.10) 2007-01-27 22:46:15 +01:00
darwin.cc Index: gcc/gcc/ChangeLog 2004-10-26 06:09:05 +00:00
defineclass.cc ffi.h.in (ffi_closure_alloc, [...]): New. 2007-03-07 07:27:25 +00:00
exception.cc unwind-dw2-fde.c (get_cie_encoding): Replaced _Unwind_Word with _uleb128_t and _Unwind_SWord with _sleb128_t. 2007-01-24 14:46:47 +00:00
gij.cc makemake.tcl (emit_bc_rule): Do not skip gnu-java-awt-peer-qt.lo. 2006-06-07 21:46:24 +00:00
headers.txt natVMProxy.cc (ncode_closure.meth): Delete. 2007-03-05 16:06:27 +00:00
interpret-run.cc interpret.cc: Add extra DEBUG_LOCALS_INSN calls for multi-slot variables to maintain type info. 2007-02-16 18:32:07 +00:00
interpret.cc ffi.h.in (ffi_closure_alloc, [...]): New. 2007-03-07 07:27:25 +00:00
jni-libjvm.cc Makefile.am (AM_CXXFLAGS): Define GCJ_VERSIONED_LIBDIR to "$(dbexecdir)". 2006-06-20 19:25:32 +00:00
jni.cc Character.java: Re-merged with Classpath. 2007-03-05 17:27:44 +00:00
jvmti.cc jvmti.cc (_Jv_JVMTI_GetLocalVariableTable): Fix _Jv_Malloc parameters. 2007-03-06 18:22:28 +00:00
libgcj-test.spec.in * libgcj.spec.in, libgcj-test.spec.in: Revert for now. 2002-03-31 18:24:59 +00:00
libgcj.pc.in 2003-07-09 Michael Koch <konqueror@gmx.de> 2003-07-09 07:11:13 +00:00
libgcj.spec.in jvspec.c (lang_specific_driver): Add -s-bc-abi when needed. 2006-08-17 01:03:21 +00:00
libgcj.ver configure.ac (libjava_cv_anon_version_script): New test. 2007-02-02 13:29:31 +01:00
libgcj_bc.c re PR libgcj/28698 ([gcj] libgcj-bc only used when building shared libs, not executables) 2006-08-31 17:23:57 +00:00
libtool-version * libtool-version: Bump current to 9. 2007-01-22 17:41:36 +00:00
link.cc ffi.h.in (ffi_closure_alloc, [...]): New. 2007-03-07 07:27:25 +00:00
mauve-libgcj PR libgcj/9715, PR libgcj/19132: 2006-01-03 22:58:31 +00:00
mingwld.m4 Makefile.am (ACLOCAL_AMFLAGS): Also include "..". 2005-08-22 22:36:35 +00:00
no-threads.cc natFinalizerThread.cc: New file. 2001-10-10 22:25:43 +00:00
nogc.cc ffi.h.in (ffi_closure_alloc, [...]): New. 2007-03-07 07:27:25 +00:00
pkg.m4 configure.in: Use pkg-config to check for GTK 2.2 and libart 2.1. 2004-01-30 22:01:11 +00:00
posix-threads.cc Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
posix.cc re PR libgcj/17002 (java.util.TimeZone.getDefault() is broken) 2007-02-22 17:04:55 +01:00
prims.cc prims.cc (_Jv_Abort): fflush (stderr). 2007-01-31 19:04:35 +00:00
shlibpath.m4 configure: Rebuilt. 2006-09-18 18:34:56 +00:00
sources.am AbsentInformationException.java: New file. 2007-03-06 21:09:22 +00:00
stacktrace.cc java-interp.h: Added _Jv_Frame class and its two subclasses _Jv_InterpFrame and _Jv_NativeFrame. 2007-01-29 22:05:56 +00:00
standard.omit.in Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
verify.cc java-insns.h (enum java_code): Add op_breakpoint. 2006-10-14 20:11:12 +00:00
win32-threads.cc Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
win32.cc libgcj.spec.in: Use THREADSTARTFILESPEC to affect the spec for startfile. 2006-07-05 02:15:51 +00:00

README

This is libgcj: the runtime library for gcj, the GNU Compiler for Java. 
libgcj provides a partial implementation of the Java Class Libraries.

libgcj is free software.  See the file LIBGCJ_LICENSE for copying permission.


DOCUMENTATION
=============

All documentation, including detailed installation and usage instructions,
can be found on the gcj web pages at this URL:

		http://gcc.gnu.org/java/

BUGS
====

Please submit bug reports via this URL:

	http://gcc.gnu.org/bugzilla