aboutsummaryrefslogtreecommitdiff
path: root/libjava
AgeCommit message (Collapse)AuthorFilesLines
2006-02-09Class.h (_Jv_IDispatchTable): Make it a struct.Bryce McKinlay4-53/+57
2006-02-09 Bryce McKinlay <mckinlay@redhat.com> * java/lang/Class.h (_Jv_IDispatchTable): Make it a struct. Put 'itable' inline, instead of as a pointer. (java::lang::Class): Put 'idt' in anonymous union with 'ioffsets'. * link.cc (null_idt): Update definition. (_Jv_Linker::prepare_constant_time_tables): Allocate klass->idt as a single struct. Use _Jv_AllocBytes, not _Jv_AllocRawObj. (_Jv_Linker::generate_itable): Update to use 'ioffsets'. (_Jv_Linker::find_iindex): Likewise. Update comment. * java/lang/natClass.cc (_Jv_LookupInterfaceMethodIdx): Update for _Jv_IDispatchTable change. (_Jv_IsAssignableFrom): Likewise. From-SVN: r110818
2006-02-09re PR libgcj/25187 (dereferencing type-punned pointer warnings while ↵Bryce McKinlay12-29/+65
building libgcj) 2006-02-08 Bryce McKinlay <mckinlay@redhat.com> PR libgcj/25187: * gnu/gcj/io/natSimpleSHSStream.cc (gnu::gcj::io::SimpleSHSStream::shsFinal): Remove bogus cast. * interpret.cc (_Jv_InterpMethod::run): Simplify arguments to _Jv_InterpFrame(). * boehm.cc: #undef some autoconf macros before including gc-config.h. (_Jv_MarkObject): Don't mark the class, it is reachable via the vtable. (_Jv_MarkArray): Likewise. * java/lang/ref/natReference.cc (java::lang::ref::Reference::create): Simplify _Jv_GCRegisterDisappearingLink() call. * java/lang/Class.h (getComponentType): Use element_type. (element_type): New field declaration, as a union with "methods". * java/lang/natClassLoader.cc (_Jv_NewArrayClass): Use "element_type". * java/net/natVMNetworkInterfacePosix.cc (java::net::VMNetworkInterface::getInterfaces): Add "int" cast to avoid sign comparison warning. * include/java-interp.h (_Jv_InterpFrame): Take thread as second argument, not parent call frame. * include/x86_64-signal.h (MAKE_THROW_FRAME): Use "gregs" directly, without a cast. (restore_rt): Declare with hidden visibility, not "static". * posix.cc (_Jv_platform_initProperties): Make "tmpdir" a string constant. * jni.cc (_Jv_JNI_DestroyJavaVM): Use a union to avoid strict alias warning From-SVN: r110783
2006-02-08Add PR libgcj/26113 to last entry.Bryce McKinlay1-0/+1
From-SVN: r110774
2006-02-08link.cc (_Jv_Linker::print_class_loaded): Declare string constants as "const ↵Bryce McKinlay10-31/+48
char *". 2006-02-08 Bryce McKinlay <mckinlay@redhat.com> * link.cc (_Jv_Linker::print_class_loaded): Declare string constants as "const char *". * verify.cc (verify_fail): Likewise. * gnu/classpath/natSystemProperties.cc (file_encoding): Likewise. * interpret.cc (throw_internal_error, throw_class_format_error): Likewise. * gcj/javaprims.h (_Jv_hashUtf8String, _Jv_Utf8Const::space_needed, _Jv_Utf8Const::init, _Jv_makeUtf8Const): Likewise. * java/lang/Class.h (_Jv_InitPrimClass): Likewise. * include/jvm.h (_Jv_strLengthUtf8, _Jv_makeUtf8Const): Likewise. * defineclass.cc (throw_internal_error, throw_no_class_def_found_error, is_attribute_name): Likewise. * prims.cc (_Jv_strLengthUtf8, _Jv_hashUtf8String, _Jv_Utf8Const::init, _Jv_makeUtf8Const, _Jv_InitPrimClass): Likewise. From-SVN: r110767
2006-02-08PR libgcj/26063, PR libgcj/17978, PR libgcj/10598:Tom Tromey7-261/+157
* defineclass.cc (parse): Use _Jv_AllocRawObj. (read_constpool): Likewise. (read_one_code_attribute): Use internal function name. (handleConstantPool): Use _Jv_AllocRawObj. (handleInterfacesBegin): Likewise. (handleFieldsBegin): Likewise. (handleMethodsBegin): Likewise. (handleCodeAttribute): Likewise. (handleMethodsEnd): Likewise. * include/jvm.h (new_vtable): Use _Jv_AllocRawObj. * interpret.cc (do_allocate_static_fields): Use _Jv_AllocRawObj. Allocate reference fields separately. * link.cc (prepare_constant_time_tables): Use _Jv_AllocRawObj. (add_miranda_methods): Likewise. (generate_itable): Use _Jv_AllocBytes. (find_iindex): Likewise. (struct method_closure): New structure. (create_error_method): Use struct method_closure; allocate with _Jv_AllocBytes. (ensure_fields_laid_out): Separate reference fields from non-reference fields. * boehm.cc (_Jv_MarkObj): Mark vtable. Only mark direct fields of Class. (_Jv_MarkArray): Mark vtable. (_Jv_AllocRawObj): Don't allocate objects of size 0. * include/execution.h (_Jv_ExecutionEngine::allocate_static_fields): Added 'int' parameter. (struct _Jv_CompiledEngine): Updated. (class _Jv_InterpreterEngine): Updated. From-SVN: r110763
2006-02-08re PR java/22578 (should inline floatToIntBits et al)Tom Tromey10-1114/+257
gcc/java PR java/22578: * check-init.c (check_init): Handle VIEW_CONVERT_EXPR. * builtins.c (convert_real): New function. (java_builtins): Handle Float.intBitsToFloat, Float.floatToRawIntBits, Double.longBitsToDouble, Double.doubleToRawLongBits. libjava PR java/22578: * gcj/javaprims.h: Updated. * sources.am, Makefile.in: Rebuilt. * java/lang/natDouble.cc (doubleToLongBits): Moved to VMDouble. (doubleToRawLongBits): Likewise. (longBitsToDouble): Likewise. (toString): Likewise. (parseDouble): Likewise. * java/lang/natFloat.cc (floatToIntBits): Moved to VMFloat. (floatToRawIntBits): Likewise. (intBitsToFloat): Likewise. * java/lang/VMDouble.java: New file. * java/lang/VMFloat.java: New file. * java/lang/Float.java, java/lang/Double.java: Removed. From-SVN: r110759
2006-02-07gij.cc (version): Use 2006.Tom Tromey5-8/+15
* gij.cc (version): Use 2006. * gnu/java/rmi/rmic/RMIC.java (parseOptions): Use 2006. * gnu/gcj/convert/Convert.java (version): Use 2006. * gnu/gcj/tools/gcj_dbtool/Main.java (main): Use 2006. From-SVN: r110681
2006-02-04re PR java/25676 (Use of MIN_EXPR/MAX_EXPR is wrong for java)Tom Tromey3-0/+20
gcc/java PR java/25676: * builtins.c (max_builtin): Skip floating point 'max'. (min_builtin): Skip floating point 'min'. (check_for_builtin): Never return NULL_TREE. libjava PR java/25676: * testsuite/libjava.lang/pr25676.out: New file. * testsuite/libjava.lang/pr25676.java: New file. From-SVN: r110599
2006-02-04Resolve classpath ChangeLog merge conflict.Mark Wielaard1-6316/+0
From-SVN: r110591
2006-02-03Makefile.am (src.zip): Update src.zip file search to look in classpath ↵Thomas Fitzsimmons3-6/+51
directory. 2006-02-03 Thomas Fitzsimmons <fitzsim@redhat.com> * Makefile.am (src.zip): Update src.zip file search to look in classpath directory. * Makefile.in: Regenerate. From-SVN: r110570
2006-02-032006-02-03 Robert Schuster <robertschuster@fsfe.org>Robert Schuster2-1/+6
* link.cc: (_Jv_Linker::create_error_method): Added missing (void *) cast. From-SVN: r110544
2006-02-03re PR libgcj/26073 (libjava fails to compile)Robert Schuster3-45/+63
Fixes PR #26073. 2006-02-03 Robert Schuster <robertschuster@fsfe.org> * include/jvm.h: (_Jv_Linker::create_error_method): New method declaration. * link.cc: (_Jv_Linker::create_error_method): New method. (_Jv_Linker::link_symbol_table): Use new method above. From-SVN: r110543
2006-02-012006-02-01 Robert Schuster <robertschuster@fsfe.org>Robert Schuster9-48/+493
* link.cc: (_Jv_Linker::find_field_helper): Added checks. (_Jv_Linker::find_field): Use exception swallowing class resolution and added early return. (_Jv_ThrowNoClassDefFoundErrorTrampoline): New function. (_Jv_Linker::link_symbol_table): Use exception swallowing class resolution, added ffi_closure installation routine, use _Jv_ThrowNoClassDefFoundError for missing static method. (_Jv_Linker::ensure_class_linked): Added string check which does not trigger class resolution. * java/lang/natClassLoader.cc: (_Jv_FindClassNoException): New method. * java/lang/Class.h: (_Jv_FindClassNoException): New method declaration. * include/jvm.h: (_Jv_FindClassNoException): New method declaration. (_Jv_FindClassFromSignatureNoException): New method declaration. * prims.cc: (_Jv_FindClassFromSignatureNoException): New method. * gcj/javaprims.h: (_Jv_equalsUtf8Classname): New method declaration. (_Jv_isPrimitiveOrDerived): Dito. * prims.cc: (_Jv_equalsUtf8Classnames): New method. (_Jv_isPrimitiveOrDerived): New method. * verify.cc: (ref_intersection::equals): Use new classname comparison method. (type::compatible): Use new classname comparison method. Added check whether LHS' type is java.lang.Object . (type::resolve): Added new optional debug message and simplified if-expression. (type::to_array): Added codepath that generates an array type without resolving the element type. From-SVN: r110474
2006-01-31* NEWS: Add 4.1 updates.Mark Wielaard2-0/+295
From-SVN: r110437
2006-01-30java-interp.h (insn_index): New declaration.Keith Seitz3-0/+99
* include/java-interp.h (insn_index): New declaration. (num_insn_slots): New private variable. (get_line_table): New declaration. * interpret.cc (insn_index): New function. (get_line_table): New function. From-SVN: r110411
2006-01-24prims.cc (next_property_value): Never return NULL.Archit Shah2-7/+14
* prims.cc (next_property_value): Never return NULL. (process_gcj_properties): Copy 'props' before using it. Co-Authored-By: Tom Tromey <tromey@redhat.com> From-SVN: r110177
2006-01-23Class.h (_Jv_FindInterpreterMethod): Add new declaration.Keith Seitz3-5/+47
* java/lang/Class.h (_Jv_FindInterpreterMethod): Add new declaration. * java/lang/natClass.cc (_Jv_FindInterpreterMethod): New function. From-SVN: r110142
2006-01-23Fixed Changelog from last commit. to be:David Daney1-0/+1
* configure.host (disable_dladdr): Remove variable and its documentation. * configure.ac: Do not test for disable_dladdr. * configure: Regenerate. * include/config.h.in: Regenerate. From-SVN: r110139
2006-01-23configure.host (disable_dladdr): Remove variable and its documentation.David Daney5-20/+10
* configure.host (disable_dladdr): Remove variable and its documentation. * configure.ac: Do not test for disable_dladdr. * configure: Regenerate. From-SVN: r110137
2006-01-19jni.cc (_Jv_JNI_AttachCurrentThread): Return environment if it already exists.Tom Tromey2-4/+13
* jni.cc (_Jv_JNI_AttachCurrentThread): Return environment if it already exists. From-SVN: r109936
2006-01-18java-interp.h (_Jv_CompileMethod): Add declaration.Keith Seitz3-15/+45
* include/java-interp.h (_Jv_CompileMethod): Add declaration. (class _Jv_InterpMethod): Add _Jv_CompileMethod as a friend. * interpret.cc (_Jv_CompileMethod): New function. (run): Massage code to allow for NULL args. Update comments to explain NULL args. Return if compiling the method and args is NULL. From-SVN: r109918
2006-01-18re PR libgcj/25840 (libjava is broken on Linux/x86-64)H.J. Lu2-0/+6
2006-01-18 H.J. Lu <hongjiu.lu@intel.com> PR libgcj/25840 * include/x86_64-signal.h (RESTORE2): Add ".text\n". From-SVN: r109909
2006-01-17re PR classpath/20198 (java.security.CodeSource.getLocation output is ↵Tom Tromey2-8/+47
different than expected) PR classpath/20198: * java/net/URLClassLoader.java (FileURLLoader): Added argument. (JarURLLoader): Likewise. (addURLImpl): Canonicalize file URLs. From-SVN: r109844
2006-01-17Imported GNU Classpath 0.20Mark Wielaard444-30580/+75627
Imported GNU Classpath 0.20 * Makefile.am (AM_CPPFLAGS): Add classpath/include. * java/nio/charset/spi/CharsetProvider.java: New override file. * java/security/Security.java: Likewise. * sources.am: Regenerated. * Makefile.in: Likewise. From-SVN: r109831
2006-01-17configure.ac (dbexecdir): New substituted var.Jakub Jelinek5-4/+26
* configure.ac (dbexecdir): New substituted var. * configure: Rebuilt. * Makefile.am (dbexecdir): Remove. * Makefile.in: Rebuilt. From-SVN: r109814
2006-01-15Update copyright year for last patch.Anthony Green1-1/+1
From-SVN: r109721
2006-01-15ServerSocket.java (accept): Remove bogus security check.Anthony Green2-5/+9
2006-01-14 Anthony Green <green@redhat.com> * java/net/ServerSocket.java (accept): Remove bogus security check. (implAccept): Add FIXME comment. From-SVN: r109719
2006-01-13MessagesBundle_fr.properties: Removed.Tom Tromey3-44/+5
* gnu/regexp/MessagesBundle_fr.properties: Removed. * gnu/regexp/MessagesBundle.properties: Removed. From-SVN: r109678
2006-01-13classpath.security: Removed.Tom Tromey4-3/+9
* java/security/classpath.security: Removed. * Makefile.in: Rebuilt. * Makefile.am (install-data-local): Don't install classpath.security. From-SVN: r109675
2006-01-09Character.java (toChars,toCodePoint): Correct these methods to use ↵Chris Burdess2-5/+11
algorithms from Unicode specification. 2006-01-08 Chris Burdess <dog@gnu.org> * java/lang/Character.java (toChars,toCodePoint): Correct these methods to use algorithms from Unicode specification. From-SVN: r109516
2006-01-09StringBuilder.java (appendCodePoint): New method.Tom Tromey6-31/+391
* java/lang/StringBuilder.java (appendCodePoint): New method. (insert): New overloads. * java/lang/StringBuffer.java (StringBuffer): New constructor. (charAt): Remerged javadoc. (codePointAt, codePointBefore): New methods. (appendCodePoint): New method. (append): New overloads. (insert): Likewise. (trimToSize, codePointCount, offsetByCodePoints): New methods. * java/lang/Float.java (SIZE): New field. (valueOf): New method. * java/lang/natDouble.cc (initIDs): Removed. * java/lang/Double.java (static initializer): Removed. (SIZE): New field. (valueOf): New method. (initIDs): Removed. From-SVN: r109497
2006-01-07re PR libgcj/24940 (libjava/configure uses $SED without defining it)Jakub Jelinek3-20/+26
PR libgcj/24940 * shlibpath.m4: Replace $SED with sed. * configure: Rebuilt. From-SVN: r109452
2006-01-07Character.java (SIZE, [...]): New fields from Classpath.Tom Tromey4-8/+426
* java/lang/Character.java (SIZE, MAX_CACHE, charCache, MIN_SURROGATE, MAX_SURROGATE): New fields from Classpath. (MIN_HIGH_SURROGATE, MAX_HIGH_SURROGATE, MIN_LOW_SURROGATE, MAX_LOW_SURROGATE): Javadoc fixes. (valueOf, reverseBytes, isHighSurrogate, isLowSurrogate, isSurrogatePair, toCodePoint, codePointAt, codePointBefore): New methods from Classpath. * java/lang/String.java (codePointAt, codePointBefore, codePointCount, contains, replace): New methods from Classpath. (contentEquals): Declare. * java/lang/natString.cc (contentEquals): New method. From-SVN: r109445
2006-01-06re PR libgcj/23499 (libgcj/classpath create empty directory ↵Tom Tromey3-40/+18
$PREFIX/share/classpath/api/) PR libgcj/23499: * lib/Makefile.in: Rebuilt. * lib/Makefile.am (glibj_DATA): Commented out. From-SVN: r109426
2006-01-06[multiple changes]Tom Tromey3-5/+18
2005-12-26 Anthony Green <green@redhat.com> * gnu/java/nio/SocketChannelImpl.java (read): Compute the right amount of data to read (dst.remaining()). * gnu/java/nio/DatagramChannelImpl.java (receive): Ditto. 2005-11-11 Mark Wielaard <mark@klomp.org> Reported by john.zigman@anu.edu.au as bug #24608. * gnu/java/nio/SocketChannelImpl.java (read): Put readBytes in destination ByteBuffer when it doesn't have an array instead of len bytes. From-SVN: r109422
2006-01-06natThread.cc (finish_): Don't clear 'group'.Tom Tromey10-96/+122
* java/lang/natThread.cc (finish_): Don't clear 'group'. * sources.am, Makefile.in: Rebuilt. * java/lang/Runtime.java (exit): Merged with Classpath. (runShutdownHooks): New method from Classpath. * java/io/File.java (deleteOnExit): Use DeleteFileHelper, not FileDeleter. * gnu/gcj/runtime/FileDeleter.java: Removed. * java/lang/natRuntime.cc (runFinalizationForExit): New method. (exitInternal): Don't run finalizers or delete files. From-SVN: r109400
2006-01-05* java/lang/natPosixProcess.cc (reap): Ignore unknown children.Tom Tromey2-6/+7
From-SVN: r109383
2006-01-04posix-threads.cc (_Jv_InitThreads): #ifdef PTHREAD_STACK_MINKrister Walfridsson2-0/+6
2006-01-04 Krister Walfridsson <cato@df.lth.se> * posix-threads.cc (_Jv_InitThreads): #ifdef PTHREAD_STACK_MIN From-SVN: r109350
2006-01-04Class.h (_Jv_CopyClassesToSystemLoader): Updated.Tom Tromey4-7/+49
* java/lang/Class.h (_Jv_CopyClassesToSystemLoader): Updated. * java/lang/natClassLoader.cc (_Jv_CopyClassesToSystemLoader): Changed argument type. Use SystemClassLoader.addClass. * gnu/gcj/runtime/SystemClassLoader.java (addClass): New method. From-SVN: r109340
2006-01-03PR libgcj/9715, PR libgcj/19132:David Daney12-186/+420
* java/nio/charset/Charset.java (charsetForName): Try default provider first. (availableCharsets): Re-merged. (providers2): Likewise. (defaultCharset): Likewise. * sources.am, Makefile.in: Rebuilt. * gnu/java/nio/charset/Provider.java: Removed. * java/io/OutputStreamWriter.java (OutputStreamWriter(OutputStream,Charset)): New constructor. (OutputStreamWriter(OutputStream,CharsetEncoder)): Likewise. * java/io/InputStreamReader.java (InputStreamReader(InputStream,CharsetDecoder)): New constructor. (InputStreamReader(InputStream,Charset)): Likewise. * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try a BytesToCharsetAdaptor. * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try a CharsetToBytesAdaptor. * gnu/gcj/convert/CharsetToBytesAdaptor.java: New file. * gnu/gcj/convert/BytesToCharsetAdaptor.java: New file. * mauve-libgcj: Remove getEncoding exclusion. Co-Authored-By: Tom Tromey <tromey@redhat.com> From-SVN: r109294
2005-12-28natPlainSocketImplWin32.cc (connect): Same as previous patch, but for win32.Anthony Green2-3/+14
2005-12-28 Anthony Green <green@redhat.com> * gnu/java/net/natPlainSocketImplWin32.cc (connect): Same as previous patch, but for win32. From-SVN: r109119
2005-12-28natPlainSocketImplPosix.cc (connect): Record address and port before ↵Anthony Green2-3/+14
attempting anything. 2005-12-28 Anthony Green <green@redhat.com> * gnu/java/net/natPlainSocketImplPosix.cc (connect): Record address and port before attempting anything. From-SVN: r109116
2005-12-28[multiple changes]Anthony Green5-34/+32
2005-12-27 Tom Tromey <tromey@redhat.com> * gnu/java/nio/SelectorImpl.java: Added import. 2005-12-26 Anthony Green <green@redhat.com> * java/net/Socket.java (connect): Don't close the socket on exceptions. * gnu/java/nio/SocketChannelImpl.java (read): Compute the right amount of data to read (dst.remaining()). * gnu/java/nio/DatagramChannelImpl.java (receive): Ditto. * gnu/java/nio/SelectorImpl.java (select): Handle OP_CONNECT properly. From-SVN: r109114
2005-12-28locks.h (compare_and_swap): Add ldcw semaphore to make operation atomic.John David Anglin2-15/+52
* sysdep/pa/locks.h (compare_and_swap): Add ldcw semaphore to make operation atomic. From-SVN: r109110
2005-12-22re PR java/25535 (gcj broken on 64-bit big-endian systems)Andrew Haley3-0/+11
2005-12-22 Andrew Haley <aph@redhat.com> PR java/25535 * testsuite/libjava.lang/PR25535.java: New test. From-SVN: r108961
2005-12-22natClassLoader.cc (_Jv_NewArrayClass): Don't reference NUM_OBJECT_METHODS.Tom Tromey3-6/+6
* java/lang/natClassLoader.cc (_Jv_NewArrayClass): Don't reference NUM_OBJECT_METHODS. * include/jvm.h (NUM_OBJECT_METHODS): Removed. From-SVN: r108956
2005-12-19natPlainDatagramSocketImplPosix.cc (getLocalAddress): New helper function.Anthony Green2-49/+47
2005-12-18 Anthony Green <green@redhat.com> * gnu/java/net/natPlainDatagramSocketImplPosix.cc (getLocalAddress): New helper function. (setOption): Use getLocalAddress. Don't downcast value to InetAddress. (getOption): Use getLocalAddress. From-SVN: r108779
2005-12-16Class.java (getPackage): Get package from VMClassLoader if needed.Tom Tromey2-3/+8
* java/lang/Class.java (getPackage): Get package from VMClassLoader if needed. From-SVN: r108685
2005-12-16* testsuite/libjava.jacks/jacks.xfailTom Tromey2-1/+5
(8.5.2-accessible-static-member-usage-3): Removed. From-SVN: r108656
2005-12-16re PR java/25429 (can't see private static final int CREATE = 1)Tom Tromey3-0/+31
gcc/java: PR java/25429 * parse.y (resolve_expression_name): Don't generate accessor methods for constant fields. libjava: * testsuite/libjava.compile/rh175833.java: New file. * testsuite/libjava.compile/pr25429.java: New file. Co-Authored-By: Andrew Haley <aph@redhat.com> From-SVN: r108608