aboutsummaryrefslogtreecommitdiff
path: root/libjava
AgeCommit message (Collapse)AuthorFilesLines
2007-01-282007-01-28 Michele Sandri <gpointorama@gmail.com>Michele Sandri2-7/+47
* gnu/java/nio/channels/natFileChannelWin32.cc (lock): Implemented. (unlock): Implemented. From-SVN: r121265
2007-01-27re PR libgcj/30513 (Bootstrap failure with libgcj on sparc-sun-solaris2.10)Andreas Tobler3-8/+43
2007-01-27 Andreas Tobler <a.tobler@schweiz.org> PR libgcj/30513 * configure.host: Add forgottten sysdep_dir to sparc. Add a flag to libgcj_flags to undefine 'sun' at compile time. * sysdep/sparc/locks.h (read_barrier): New functions for 32 and 64 bit Sparc. (write_barrier): Likewise. From-SVN: r121239
2007-01-27* gnu/classpath/jdwp/natVMVirtualMachine.ccKeith Seitz2-14/+110
(getAllClassMethods): Move error handling to ... (throw_jvmti_error): ... here. (jdwpClassPrepareCB): New function. (jdwpThreadEndCB): New function. (jdwpThreadStartCB): New function. (jdwpVMDeathCB): New function. (jdwpVMInitCB): Define and enable callbacks for ClassPrepare, ThreadEnd, ThreadStart, and VMDeath. From-SVN: r121233
2007-01-27Makefile.am (generic_header_files): Add $(inner_nat_headers).Jakub Jelinek5-15/+150
* Makefile.am (generic_header_files): Add $(inner_nat_headers). * testsuite/Makefile.am (check-dejaGNU): Depend on compile-tests. (MYGCJH): New variable. (compile-tests): New goal. * Makefile.in: Rebuilt. * testsuite/Makefile.in: Rebuilt. From-SVN: r121217
2007-01-26libjavaTom Tromey41-69/+78
* Updated headers. libjava/classpath * tools/gnu/classpath/tools/javah/FieldHelper.java (print): Print 'volatile' after field type. From-SVN: r121215
2007-01-26re PR libgcj/29594 (jv-convert with no args NPE)Tom Tromey3-9/+13
PR libgcj/29594: * gnu/gcj/convert/Convert.java (main): Correctly handle missing input or output encodings. Removed unused local variables. From-SVN: r121197
2007-01-25jvmti-int.h (_Jv_GetJDWP_JVMTIEnv): Declare.Keith Seitz4-7/+43
* include/jvmti-int.h (_Jv_GetJDWP_JVMTIEnv): Declare. * gnu/classpath/jdwp/natVMVirtualMachine.cc (_Jv_GetJDWP_JVMTIEnv): New function. * gnu/classpath/jdwp/natVMMethod.cc (getName): Implement. (getSignature): Implement. (getModifiers): Implement. From-SVN: r121185
2007-01-25configure, [...]: Rebuilt.Andrew Haley10-110/+49
2007-01-25 Andrew Haley <aph@redhat.com> * configure, Makefile.in, include/config.h.in: Rebuilt. * Makefile.am (libgcj_la_LIBADD): Removed $(LIBMAGIC). * configure.ac: Don't check for libmagic. * java/net/natVMURLConnection.cc (p_magic_open, p_magic_load, p_magic_close, p_magic_buffer): New globals. (init): Look up 'magic' functions. (guessContentTypeFromBuffer): Updated. From-SVN: r121183
2007-01-25jvmti.cc (_Jv_JVMTI_GetMethodName): New function.Keith Seitz5-1/+236
* jvmti.cc (_Jv_JVMTI_GetMethodName): New function. (_Jv_JVMTI_Interface): Define GetMethodName. * testsuite/libjava.jvmti/getmethodname.java: New file. * testsuite/libjava.jvmti/natgetmethodname.cc: New file. * testsuite/libjava.jvmti/getmethodname.out: New file. From-SVN: r121179
2007-01-25libjava.exp (exec_gij): Change [ to { in if statement.Kyle Galloway1-4/+6
2007-01-25 Kyle Galloway <kgallowa@redhat.com> * testsuite/libjava.jvmti/lib/libjava.exp (exec_gij): Change [ to { in if statement. From-SVN: r121174
2007-01-25Kyle Galloway 2007-01-25 <kgallowa@redhat.com>Kyle Galloway1-0/+6
* ChangeLog: Add ChangeLog entry that didn't apply. From-SVN: r121173
2007-01-25jvmti-interp.exp: New file.Kyle Galloway2-0/+202
2007-01-25 Kyle Galloway <kgallowa@redhat.com> * libjava/testsuite/libjava.jvmti/jvmti-interp.exp: New file. * libjava/testsuite/libjava.jvmti/interp: New folder. * libjava/testsuite/lib/libjava.exp (exec_gij): New Method. From-SVN: r121172
2007-01-25link.cc (_Jv_Linker::wait_for_state): Add JVMTI CLASS_PREPARE notification.Keith Seitz2-63/+82
* link.cc (_Jv_Linker::wait_for_state): Add JVMTI CLASS_PREPARE notification. From-SVN: r121157
2007-01-25interpret.cc: Include gnu/gcj/jvmti/Breakpoint.h...Keith Seitz3-3/+39
* interpret.cc: Include gnu/gcj/jvmti/Breakpoint.h, gnu/gcj/jvmti/BreakpointManager.h, jvmti.h, and jvmti-int.h * interpret-run.cc: Implement insn_breakpoint. From-SVN: r121155
2007-01-24prims.cc (_Jv_RunMain): Send JVMTI event notifications for VM_INIT and ↵Keith Seitz2-11/+16
VM_DEATH instead of the JDWP... * prims.cc (_Jv_RunMain): Send JVMTI event notifications for VM_INIT and VM_DEATH instead of the JDWP notifications. From-SVN: r121143
2007-01-24* gnu/classpath/jdwp/natVMVirtualMachine.ccKeith Seitz2-2/+37
(getAllClassMethods): Implement. From-SVN: r121142
2007-01-24natVMStackWalker.cc: Call InitClass everywhere.Andrew Haley4-37/+59
2007-01-24 Andrew Haley <aph@redhat.com> * gnu/classpath/natVMStackWalker.cc: Call InitClass everywhere. (getClassContext) Add a barrier to prevent GetStackWalkerStack() from being sibcalled. 2007-01-24 Andrew Haley <aph@redhat.com> * scripts/makemake.tcl (emit_bc_rule): Set the source filename. * sources.am: Rebuild. From-SVN: r121119
2007-01-24unwind-dw2-fde.c (get_cie_encoding): Replaced _Unwind_Word with _uleb128_t ↵Andreas Krebbel2-4/+9
and _Unwind_SWord with _sleb128_t. 2007-01-24 Andreas Krebbel <krebbel1@de.ibm.com> * unwind-dw2-fde.c (get_cie_encoding): Replaced _Unwind_Word with _uleb128_t and _Unwind_SWord with _sleb128_t. * unwind-dw2.c (extract_cie_info, execute_stack_op, execute_cfa_program, uw_frame_state_for, uw_update_context_1): Likewise. * unwind-c.c (parse_lsda_header, PERSONALITY_FUNCTION): Likewise. * unwind-pe.h (read_uleb128, read_sleb128, read_encoded_value_with_base): Likewise. * unwind-generic.h: Define _sleb128_t and _uleb128_t types. 2007-01-24 Andreas Krebbel <krebbel1@de.ibm.com> * libsupc++/eh_personality.cc (parse_lsda_header, check_exception_spec, get_ttype_entry, empty_exception_spec, PERSONALITY_FUNCTION): Replaced _Unwind_Word with _uleb128_t and _Unwind_SWord with _sleb128_t. 2007-01-24 Andreas Krebbel <krebbel1@de.ibm.com> * exception.cc (parse_lsda_header, PERSONALITY_FUNCTION): Replaced _Unwind_Word with _uleb128_t and _Unwind_SWord with _sleb128_t. From-SVN: r121116
2007-01-23Arrays.java (binarySearch): Change comparison order.Marco Trudel4-3/+10
2007-01-23 Marco Trudel <mtrudel@gmx.ch> * java/util/Arrays.java (binarySearch): Change comparison order. From-SVN: r121091
2007-01-23re PR libgcj/30550 (Missing dependencies for ecjx target)H.J. Lu3-3/+14
2007-01-23 H.J. Lu <hongjiu.lu@intel.com> PR libgcj/30550 * Makefile.am (ecjx_DEPENDENCIES): Add libgcj_bc.la if needed. * Makefile.in: Regenerated. From-SVN: r121086
2007-01-23* gnu/classpath/jdwp/natVMVirtualMachine.ccKeith Seitz2-2/+13
(getClassMethod): Implement. From-SVN: r121078
2007-01-23Class.h (_Jv_GetClassStatus): Declare.Keith Seitz4-3/+49
* java/lang/Class.h (_Jv_GetClassStatus): Declare. * java/lang/natClass.cc (_Jv_GetClassStatus): New function. * jvmti.cc (_Jv_JVMTI_GetClassStatus): New function. (_Jv_JVMTI_Interface): Define GetClassStatus. From-SVN: r121074
2007-01-23configure: Rebuilt.Tom Tromey3-2/+7
* configure: Rebuilt. * configure.ac (GCJ): Reverted patch of 2006-12-20. From-SVN: r121073
2007-01-22re PR java/29812 (env->klass value is not updated during the native calls)Tom Tromey15-54/+255
PR java/29812: * testsuite/libjava.jni/pr29812.java: New file. * testsuite/libjava.jni/pr29812_injar.java: New file. * testsuite/libjava.jni/pr29812_injar.jar: New file. * testsuite/libjava.jni/pr29812.out: New file. * testsuite/libjava.jni/pr29812_injar.c: New file. * testsuite/libjava.jni/pr29812_injar.h: New file. * testsuite/libjava.jni/pr29812.jar: New file. * testsuite/libjava.jni/pr29812.c: New file. * testsuite/libjava.jni/pr29812.h: New file. * testsuite/libjava.jni/jni.exp (gcj_jni_get_cxxflags_invocation): New proc. (gcj_jni_invocation_test_one): Use it. (gcj_jni_pr29812): New proc. (gcj_jni_run): Use it. * java/lang/natRuntime.cc (_load): Push a new system frame before calling JNI_OnLoad. * include/jvm.h (_Jv_JNI_PopSystemFrame): Declare. (_Jv_GetJNIEnvNewFrameWithLoader): Likewise. * jni.cc (struct _Jv_JNI_LocalFrame) <marker>: Now unsigned char. <allocated_p>: Now bool. <loader>: New field. (_Jv_JNI_EnsureLocalCapacity): Updated. (_Jv_JNI_NewLocalRef): Likewise. (_Jv_JNI_NewLocalRef): Likewise. (_Jv_JNI_PopLocalFrame): Likewise. (_Jv_JNI_FindClass): Likewise. (_Jv_GetJNIEnvNewFrame): Likewise. (_Jv_JNI_AttachCurrentThread): Likewise. (_Jv_GetJNIEnvNewFrameWithLoader): New function. (_Jv_GetJNIEnvNewFrame): Use it. * include/jni_md.h (_CLASSPATH_JNIENV_CONTENTS): Removed 'klass'. From-SVN: r121064
2007-01-22* libtool-version: Bump current to 9.Tom Tromey2-1/+5
From-SVN: r121058
2007-01-22locks.h (write_barrier): New.Andrew Haley2-0/+12
2007-01-22 Andrew Haley <aph@redhat.com> * sysdep/alpha/locks.h (write_barrier): New. From-SVN: r121053
2007-01-21Makefile.am (install-exec-hook): Use transformed name.Matthias Klose3-4/+9
2007-01-21 Matthias Klose <doko@debian.org> * Makefile.am (install-exec-hook): Use transformed name. * Makefile.in: Regenerate. From-SVN: r121025
2007-01-20Makefile.am, [...]: Install into nativeexeclibdir instead of gcjversionedlibdir.Matthias Klose5-78/+70
2007-01-20 Matthias Klose <doko@debian.org> * native/jni/gtk-peer/Makefile.am, native/jawt/Makefile.am: Install into nativeexeclibdir instead of gcjversionedlibdir. * native/jni/gtk-peer/Makefile.in, native/jawt/Makefile.in: Regenerate. From-SVN: r121008
2007-01-19natVMFrame.cc: Mark unused parameters with MAYBE_UNUSED.Keith Seitz2-3/+8
* gnu/classpath/jdwp/natVMFrame.cc: Mark unused parameters with MAYBE_UNUSED. From-SVN: r120972
2007-01-19natVMVirtualMachine.cc: Mark unused parameters in methods and reformat.Keith Seitz2-23/+34
* gnu/classpath/jdwp/natVMVirtualMachine.cc: Mark unused parameters in methods and reformat. From-SVN: r120971
2007-01-19From Macro Trudel <mtrudel@gmx.ch>:Keith Seitz2-2/+8
* gnu/classpath/jdwp/natVMVirtualMachine.cc (jdwpVMInitCB): Use JNICALL. From-SVN: r120946
2007-01-18jni.cc (_Jv_JNI_FindClass): Initialize class.Marco Trudel7-1/+64
2007-01-18 Marco Trudel <mtrudel@gmx.ch> * jni.cc (_Jv_JNI_FindClass): Initialize class. * testsuite/libjava.jni/findclass2.jar: New file. * testsuite/libjava.jni/findclass2.h: New file. * testsuite/libjava.jni/findclass2.java: New file * testsuite/libjava.jni/findclass2.c: New file. * testsuite/libjava.jni/findclass2.out: New file. From-SVN: r120930
2007-01-18configure: Rebuilt.Tom Tromey3-4/+9
* configure: Rebuilt. * configure.ac: Use multi_basedir instead of libgcj_basedir. From-SVN: r120901
2007-01-18natVMPipeEcos.cc: Renamed from gnu/java/nio/natPipeImplEcos.cc.Gary Benson14-64/+93
2007-01-18 Gary Benson <gbenson@redhat.com> * gnu/java/nio/natVMPipeEcos.cc: Renamed from gnu/java/nio/natPipeImplEcos.cc. * gnu/java/nio/natVMPipePosix.cc: Renamed from gnu/java/nio/natPipeImplPosix.cc. * gnu/java/nio/natVMPipeWin32.cc: Renamed from gnu/java/nio/natPipeImplWin32.cc. * gnu/java/nio/natVMSelectorEcos.cc: Renamed from gnu/java/nio/natSelectorImplEcos.cc. * gnu/java/nio/natVMSelectorPosix.cc: Renamed from gnu/java/nio/natSelectorImplPosix.cc. * gnu/java/nio/natVMSelectorWin32.cc: Renamed from gnu/java/nio/natSelectorImplWin32.cc. * java/io/natVMObjectInputStream.cc: Renamed from java/io/natObjectInputStream.cc. * java/lang/natVMDouble.cc: Renamed from java/lang/natDouble.cc. * java/lang/natVMFloat.cc: Renamed from java/lang/natFloat.cc. * Makefile.am, configure.ac: Reflect the above. * Makefile.in, configure: Rebuilt. From-SVN: r120895
2007-01-17* tools/gnu/classpath/tools/javah/PathOptionGroup.javaTom Tromey7-1/+11
(PathOptionGroup): Set default boot class path. From-SVN: r120882
2007-01-17Makefile.in: Rebuilt.Andrew Haley3-2/+7
2007-01-17 Andrew Haley <aph@redhat.com> * Makefile.in: Rebuilt. * Makefile.am (ecjx_LDFLAGS): Pass -fbootclasspath. From-SVN: r120881
2007-01-17natThread.cc (finish_): Add JVMTI ThreadEnd notification.Keith Seitz2-0/+16
* java/lang/natThread.cc (finish_): Add JVMTI ThreadEnd notification. (_Jv_NotifyThreadStart): Add JVMTI ThreadStart notification. From-SVN: r120877
2007-01-17ChangeLog rotationTom Tromey3-13264/+13264
From-SVN: r120875
2007-01-17aclocal.m4: Regenerate to use multi.m4.Jack Howarth50-208/+472
2007-01-17 Jack Howarth <howarth@bromo.med.uc.edu> boehm-gc/ * aclocal.m4: Regenerate to use multi.m4. * configure: Regenerate. * Makefile.in: Regenerate. zlib/ * Makefile.am: Add ACLOCAL_AMFLAGS to use multi.m4. * aclocal.m4: Regenerate. * configure: Regenerate. * Makefile.in: Regenerate. libffi/ * Makefile.am: Add ACLOCAL_AMFLAGS to use multi.m4. * aclocal.m4: Regenerate. * configure: Regenerate. * Makefile.in: Regenerate. libjava/ * configure.ac: Use multi.m4 from aclocal rather than custom code. Use multi_basedir instead libgcj_basedir. Test for /proc/self/exe when not cross-compiling. * aclocal.m4: Regenerate. * configure: Regenerate. * Makefile.in: Regenerate. libjava/classpath/ * configure.ac: Use multi.m4 from aclocal rather than custom code. Use multi_basedir instead libgcj_basedir. * aclocal.m4: Regenerate. * configure: Regenerate. * Makefile.in: Regenerate. libjava/libltdl/ * Makefile.am: Add ACLOCAL_AMFLAGS to use multi.m4. * configure.ac: Use multi.m4 from aclocal rather than custom code. * aclocal.m4: Regenerate. * configure: Regenerate. * Makefile.in: Regenerate. From-SVN: r120870
2007-01-17natVMDirectByteBufferImpl.cc: Renamed from java/nio/natDirectByteBufferImpl.cc.Gary Benson4-8/+15
2007-01-17 Gary Benson <gbenson@redhat.com> * java/nio/natVMDirectByteBufferImpl.cc: Renamed from java/nio/natDirectByteBufferImpl.cc. * Makefile.am: Reflect the above. * Makefile.in: Rebuilt. From-SVN: r120859
2007-01-17MappedByteBuffer.java: Removed.Gary Benson1-1/+2
2007-01-15 Gary Benson <gbenson@redhat.com> * java/nio/MappedByteBuffer.java: Removed. * sources.am, Makefile.in: Rebuilt. From-SVN: r120858
2007-01-17jvmti.cc (_Jv_JVMTI_GetAllThreads): Now static.Marco Trudel2-7/+10
2007-01-17 Marco Trudel <mtrudel@gmx.ch> * jvmti.cc (_Jv_JVMTI_GetAllThreads): Now static. Use JNICALL. Fixed indentation. Removed unused variable. From-SVN: r120854
2007-01-17natThread.cc (finalize_native): Remove cast.Tom Tromey3-4/+11
* java/lang/natThread.cc (finalize_native): Remove cast. (_Jv_GetCurrentJNIEnv): Likewise. * include/jvm.h (struct natThread) <jni_env>: Declare as _Jv_JNIEnv*. From-SVN: r120844
2007-01-16natevents.cc (FieldModificationCB): Use %#llx instead of %d for new_value.Keith Seitz4-2/+9
* testsuite/libjava.jvmti/natevents.cc (FieldModificationCB): Use %#llx instead of %d for new_value. * testsuite/libjava.jvmti/events.out: Update expected output. * testsuite/libjava.jvmti/events.jar: Regenerate. From-SVN: r120834
2007-01-16natVMVirtualMachine.cc (DEFINE_CALLBACK): New macro.Keith Seitz2-0/+33
* gnu/classpath/jdwp/natVMVirtualMachine.cc (DEFINE_CALLBACK): New macro. (ENABLE_EVENT): New macro. (initialize): Define and enable JVMTI VM_INIT callback. (jdwpVMInitCB): New function. From-SVN: r120833
2007-01-16jvmti.cc (_Jv_JVMTI_GetAllThreads): New function.Kyle Galloway7-1/+250
2007-01-16 Kyle Galloway <kgallowa@redhat.com> * jvmti.cc (_Jv_JVMTI_GetAllThreads): New function. * testsuite/libjava.jvmti/getallthreads.java: New test. * testsuite/libjava.jvmti/natgetallthreads.cc: Ditto. * testsuite/libjava.jvmti/getallthreads.out: Ditto. * testsuite/libjava.jvmti/getallthreads.h: Ditto. * testsuite/libjava.jvmti/getallthreads.jar: Ditto. From-SVN: r120827
2007-01-15natVMVirtualMachine.cc (suspendThread): Use java.lang.StringBuilder instead ↵Keith Seitz2-10/+14
of java.lang.StringBuffer. * gnu/classpath/jdwp/natVMVirtualMachine.cc (suspendThread): Use java.lang.StringBuilder instead of java.lang.StringBuffer. (resumeThread): Likewise. From-SVN: r120805
2007-01-15MappedByteBuffer.java: Removed.Gary Benson5-91/+7
2007-01-15 Gary Benson <gbenson@redhat.com> * java/nio/MappedByteBuffer.java: Removed. * sources.am, Makefile.in: Rebuilt. From-SVN: r120793
2007-01-15URLClassLoader.java: Removed.Gary Benson28-1459/+224
2007-01-15 Gary Benson <gbenson@redhat.com> * java/net/URLClassLoader.java: Removed. * gnu/java/net/loader/Load_gcjlib.java: New file. * gnu/gcj/runtime/BootClassLoader.java: Ensure core URL handler is present in static executables. * sources.am, Makefile.in: Rebuilt. From-SVN: r120791
2007-01-14ld-symbolic.m4: New.H.J. Lu9-17/+111
config/ 2007-01-14 H.J. Lu <hongjiu.lu@intel.com> * ld-symbolic.m4: New. libjava/ 2007-01-14 H.J. Lu <hongjiu.lu@intel.com> * Makefile.am (libgcj_la_LDFLAGS): Add $(LIBGCJ_LD_SYMBOLIC_FUNCTIONS). (libgcj_tools_la_LDFLAGS): Likewise. (libgcj_bc_la_LDFLAGS): Likewise. * Makefile.in: Regenerated. * configure.ac: Use ACX_PROG_LD_GNU_SYMBOLIC. Set LIBGCJ_LD_SYMBOLIC_FUNCTIONS to $SYMBOLIC_LDFLAGS. Set libgcj_ld_symbolic to $SYMBOLIC_LDFLAGS if it isn't set. Substitute LIBGCJ_LD_SYMBOLIC_FUNCTIONS. * configure: Regenerated. * aclocal.m4: Likewise. * gcj/Makefile.in: Likewise. * include/Makefile.in: Likewise. * testsuite/Makefile.in: Likewise. From-SVN: r120773