aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/lang
AgeCommit message (Collapse)AuthorFilesLines
2004-04-21natClass.cc (_Jv_LayoutInterfaceMethods): New method.Bryce McKinlay2-0/+18
2004-04-21 Bryce McKinlay <mckinlay@redhat.com> * java/lang/natClass.cc (_Jv_LayoutInterfaceMethods): New method. Set method->index values for interface methods to their itable index. (initializeClass): Call _Jv_LayoutInterfaceMethods. From-SVN: r80978
2004-04-20Byte.java, [...]: Fixed javadocs, coding style and argument names all over.Michael Koch21-158/+182
2004-04-20 Michael Koch <konqueror@gmx.de> * java/lang/Byte.java, java/lang/CharSequence.java, java/lang/ClassLoader.java, java/lang/Compiler.java, java/lang/Double.java, java/lang/Float.java, java/lang/Integer.java, java/lang/Long.java, java/lang/Math.java, java/lang/Number.java, java/lang/Package.java, java/lang/Runtime.java, java/lang/RuntimePermission.java, java/lang/SecurityManager.java, java/lang/Short.java, java/lang/StringBuffer.java, java/lang/System.java, java/lang/ThreadGroup.java, java/lang/Throwable.java, java/lang/reflect/InvocationHandler.java, java/lang/reflect/Proxy.java: Fixed javadocs, coding style and argument names all over. From-SVN: r80899
2004-04-20class.c (make_class_data): Add new field aux_info.Bryce McKinlay6-7/+11
2004-04-19 Bryce McKinlay <mckinlay@redhat.com> * class.c (make_class_data): Add new field aux_info. * decl.c (java_init_decl_processing): Push type and decl for `aux_info'. 2004-04-19 Bryce McKinlay <mckinlay@redhat.com> * gcj/cni.h (JvAllocObject): Remove these obsolete, undocumented CNI calls. * include/java-interp.h (_Jv_InterpClass): No longer extends java.lang.Class. * java/lang/Class.h (Class): Add new field `aux_info'. * boehm.cc (_Jv_MarkObj): Update java.lang.Class marking. * defineclass.cc: Remove Class<->_Jv_InterpClass casts. Use Class->aux_info instead. * jni.cc (_Jv_JNI_AllocObject): Use _Jv_AllocObject. * resolve.cc: Remove Class<->_Jv_InterpClass casts. Use Class->aux_info instead. * java/io/natObjectInputStream.cc (allocateObject): Use _Jv_AllocObject. * java/lang/natClass.cc (newInstance): Likewise. * java/lang/natClassLoader.cc (_Jv_NewClass): Likewise. * java/lang/natObject.cc (clone): Likewise. * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Likewise. * java/lang/natVMClassLoader.cc (defineClass): Don't use JvAllocObject. Allocate klass->aux_info here for interpreted class. From-SVN: r80875
2004-04-16prims.cc (_Jv_AllocObject): Remove `size' argument.Bryce McKinlay2-25/+1
libjava: 2004-04-15 Bryce McKinlay <mckinlay@redhat.com> * prims.cc (_Jv_AllocObject): Remove `size' argument. (_Jv_AllocObjectNoFinalizer): Likewise. (_Jv_AllocObjectNoInitNoFinalizer): Likewise. (_Jv_AllocPtrFreeObject): Likewise. (_Jv_AllocString): Moved from natString.cc. Call collector interface directly even in the JVMPI case. * gcj/cni.h (JvAllocObject): Remove `size' argument from _Jv_AllocObject calls. * gcj/javaprims.h: Update prototypes. * gnu/gcj/natCore.cc (_Jv_create_core): Use `new', not _Jv_AllocObject. * java/lang/Class.h: Update _Jv_AllocObject friend prototype. * java/lang/natString.cc (_Jv_AllocString): Move to prims.cc. gcc/cp: 2004-04-15 Bryce McKinlay <mckinlay@redhat.com> * init.c (build_new_1): Don't use type size argument for Java _Jv_AllocObject call. gcc/java: 2004-04-15 Bryce McKinlay <mckinlay@redhat.com> * expr.c (expand_java_NEW): Don't use size argument for _Jv_AllocObject calls. * parse.y (patch_invoke): Likewise. From-SVN: r80754
2004-04-14[multiple changes]Bryce McKinlay1-7/+15
2004-04-14 Andrew Haley <aph@redhat.com> Bryce McKinlay <mckinlay@redhat.com> * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Use _Jv_LookupInterfaceMethodIdx for calls to interfaces. * include/jvm.h (_Jv_CallAnyMethodA): Add new face' arg. * testsuite/libjava.lang/InvokeInterface.java: New file. * testsuite/libjava.lang/InvokeInterface.out: New file. 2004-04-14 Bryce McKinlay <mckinlay@redhat.com> * class.c (get_interface_method_index): New function. Return dispatch index for interface method. (make_method_value): For interface methods, set index field to iface dispatch index, not DECL_VINDEX. * expr.c (build_invokeinterface): Use get_interface_method_index. From-SVN: r80684
2004-04-09VMThrowable.java (getStackTrace): Pass trace as-is to modified lookup().Ranjit Mathew1-3/+2
* java/lang/VMThrowable.java (getStackTrace): Pass trace as-is to modified lookup(). * gnu/gcj/runtime/NameFinder.java (lookup): Change to take in a StackTraceElement directly. (newElement): New native helper method to create StackTraceElement bypassing Java access control. (createStackTraceElement): Use newElement() instead of directly calling StackTraceElement's constructor. * gnu/gcj/runtime/natNameFinder.cc (newElement): New method. From-SVN: r80541
2004-04-012004-04-01 Michael Koch <konqueror@gmx.de>Michael Koch1-2/+1
* java/lang/SecurityManager.java (checkAwtEventQueueAccess): Implemented. From-SVN: r80314
2004-03-23natClass.cc (getClassLoader): Circumvent infinite recursion when searching ↵Anthony Green1-2/+3
for the system ClassLoader. 2004-03-21 Anthony Green <green@redhat.com> * java/lang/natClass.cc (getClassLoader): Circumvent infinite recursion when searching for the system ClassLoader. From-SVN: r79871
2004-03-19ThreadGroup.java (list): Changed print to println.Jeroen Frijters1-1/+1
2004-03-19 Jeroen Frijters <jeroen@frijters.net> * java/lang/ThreadGroup.java (list): Changed print to println. From-SVN: r79707
2004-03-092004-03-09 Michael Koch <konqueror@gmx.de>Michael Koch2-79/+77
* java/lang/Thread.java (runnable): Moved around. (daemon): Renamed from daemon_flag. (contextClassLoader): Renamed from context_class_loader. (Thread): Reordered constructors. (activeCount): Use group directly. (destroy): Make it a java method. Throw NoSuchMethodError like Sun does. (holdsLock): Reworked javadoc. (setDaemon): Reworked. * java/lang/natThread.cc (destroy): Removed. From-SVN: r79200
2004-03-01* java/lang/natPosixProcess.cc (startProcess): Fix thinko.Per Bothner1-1/+1
From-SVN: r78725
2004-02-29natPosixProcess.cc (startProcess): Implement standard streams using ↵Per Bothner2-9/+18
FileChannelImpl, not FileDescriptor. * java/lang/natPosixProcess.cc (startProcess): Implement standard streams using FileChannelImpl, not FileDescriptor. * java/lang/natWin32Process.cc (startProcess): Likewise. From-SVN: r78664
2004-02-26re PR libgcj/14296 (3.4 regression: Method.Invoke)Andrew Haley1-1/+10
2004-02-25 Andrew Haley <aph@redhat.com> PR java/14296: * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Make sure we have a valid method index. From-SVN: r78504
2004-02-25de-pessimizationAnthony Green1-4/+21
From-SVN: r78447
2004-02-052004-02-05 Michael Koch <konqueror@gmx.de>Michael Koch1-264/+260
* java/lang/Thread.java (Thread): Reordered. (setContextClassLoader): Fixed javadoc comment. (setPriority): Reordered. (yield): Reordered. (initialize_native): Reordered. (gen_name): Reordered. From-SVN: r77327
2004-02-05Thread.java: Reordered fields...Michael Koch1-86/+101
2004-02-05 Michael Koch <konqueror@gmx.de> * java/lang/Thread.java: Reordered fields, reformated much code, no functional changes, some variables renamed, javadoc comments merged. From-SVN: r77322
2004-02-04natPosixProcess.cc (startProcess): Handle case where PATH or LD_LIBRARY_PATH ↵Tom Tromey1-3/+3
is not set in parent environment. * java/lang/natPosixProcess.cc (startProcess): Handle case where PATH or LD_LIBRARY_PATH is not set in parent environment. From-SVN: r77203
2004-01-272004-01-27 Michael Koch <konqueror@gmx.de>Michael Koch1-14/+11
* java/lang/Class.java (getConstructor): Removed SecurityException from throws clause. (_getConstructors): Likewise. (getConstructors): Likewise. (getDeclaredConstructor): Likewise. (getDeclaredClasses): Likewise. (getDeclaredConstructors): Likewise. (getDeclaredField): Likewise. (getDeclaredMethod): Likewise. (getDeclaredMethods): Likewise. (getField): Likewise. (getMethod): Likewise. (getMethods): Likewise. From-SVN: r76747
2004-01-25Class.java: Imports reworked, reformated.Michael Koch1-93/+542
2004-01-25 Michael Koch <konqueror@gmx.de> * java/lang/Class.java: Imports reworked, reformated. (Class): Javadoc added. (forName): Likewise. (getClasses): Likewise. (getClassLoader): Likewise. (getComponentType): Likewise. (getConstructor): Likewise. (getConstructors): Likewise. (getDeclaredConstructor): Likewise. (getDeclaredClasses): Likewise. (getDeclaredConstructors): Likewise. (getDeclaredField): Likewise. (getDeclaredMethod): Likewise. (getDeclaredMethods): Likewise. (getDeclaringClass): Likewise. (getField): Likewise. (getInterfaces): Likewise. (getMethod): Likewise. (getMethods): Likewise. (getModifiers): Likewise. (getName): Likewise. (getResource): Likewise. (getResourceAsStream): Likewise. (getSigners): Likewise. (setSigners): Likewise. (getSuperclass): Likewise. (isArray): Likewise. (isAssignableFrom): Likewise. (isInstance): Likewise. (isInterface): Likewise. (isPrimitive): Likewise. (newInstance): Likewise. (getProtectionDomain): Likewise. (toString): Likewise. (Class): Moved. (initializeClass): Likewise. (finalize): Likewise. From-SVN: r76554
2004-01-23VMClassLoader.java: Reworked imports.Michael Koch1-9/+7
2004-01-23 Michael Koch <konqueror@gmx.de> * java/lang/VMClassLoader.java: Reworked imports. From-SVN: r76426
2004-01-23Class.java, [...]: Merged copyright with classpath.Michael Koch3-26/+112
2004-01-23 Michael Koch <konqueror@gmx.de> * java/lang/Class.java, java/lang/Object.java, java/lang/Thread.java: Merged copyright with classpath. From-SVN: r76409
2004-01-16natClassLoader.cc: Moved VMClassLoader methods...Tom Tromey2-107/+134
* java/lang/natClassLoader.cc: Moved VMClassLoader methods... * java/lang/natVMClassLoader.cc: ...here. New file. * Makefile.in: Rebuilt. * Makefile.am (nat_source_files): Added natVMClassLoader.cc. From-SVN: r76003
2004-01-09natClassLoader.cc (_Jv_PrepareCompiledClass): Resolve a Utf8Const field ↵Andrew Haley1-0/+1
before looking at its class. 2004-01-09 Andrew Haley <aph@redhat.com> * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Resolve a Utf8Const field before looking at its class. From-SVN: r75591
2004-01-07Array.java: Merged documentation with classpath.Michael Koch1-34/+414
2004-01-07 Michael Koch <konqueror@gmx.de> * java/lang/reflect/Array.java: Merged documentation with classpath. From-SVN: r75512
2004-01-062004-01-06 Michael Koch <konqueror@gmx.de>Michael Koch2-11/+16
* java/lang/Package.java (getPackage): Get the current class loader directly. * java/lang/SecurityManager.java (currentLoadedClass): Dont iterate over class contexts. (classLoaderDepth): Don't check class loaders if everything is allowed. From-SVN: r75465
2003-12-16re PR libgcj/13056 (import new libltdl)Michael Koch1-2/+2
2003-12-16 Michael Koch <konqueror@gmx.de> Fix for PR libgcj/13056. * libltdl/configure.in, libltdl/config.h.in: Removed. * libltdl/configure.ac, libltdl/config-h.in, libltdl/install-sh, libltdl/config.guess, libltdl/config.sub, libltdl/missing, libltdl/mkinstalldirs, libltdl/ltmain.sh: New files. * libltdl/Makefile.am, libltdl/acinclude.m4, libltdl/aclocal.m4, libltdl/ltdl.c, libltdl/ltdl.h, libltdl/README: Update to versions from libtool 1.5. libltdl/configure, * libltdl/Makefile.in: Regenerated. * java/lang/natRuntime.cc (find_symbol): Use type 'lt_ptr' instead of 'lt_ptr_t'. From-SVN: r74711
2003-12-03Class.h (hack_signers): Renamed signers to hack_signers.Michael Koch2-3/+3
2003-12-03 Michael Koch <konqueror@gmx.de> * java/lang/Class.h (hack_signers): Renamed signers to hack_signers. * java/lang/natClass.cc (getSigners): Likewise. (setSigners): Likewise. From-SVN: r74247
2003-12-02configure.in: Added new MinGW-specific configure flag --with-win32-nlsapi.Mohan Embar1-21/+27
* configure.in: Added new MinGW-specific configure flag --with-win32-nlsapi. Added new AC_DEFINE MINGW_LIBGCJ_UNICODE. Add -lunicows to MinGW SYSTEMSPEC if --with-win32-nlsapi is set to unicows. * configure: Rebuilt. * include/config.h.in: Rebuilt. * win32.cc (_Jv_Win32NewString): Implemented. (nativeToUnicode): New helper function defined only for non-UNICODE builds. (unicodeToNative): Likewise. (_Jv_Win32TempString): Implemented. (lots): Refactored using tchar.h macros. (WSAEventWrapper): Use _Jv_Win32NewString. (_Jv_platform_initialize): Use GetModuleFileNameA instead of GetModuleFileName. (_Jv_platform_initProperties): Use _Jv_Win32NewString. Use temporary stack buffer instead of a heap buffer. * include/win32.h Added defines for UNICODE and _UNICODE if MINGW_LIBGCJ_UNICODE is defined; added tchar.h include. (_Jv_Win32TempString): Declared new helper class. (JV_TEMP_STRING_WIN32): New helper macro. (_Jv_Win32NewString): Declared new helper method. * java/io/natFileDescriptorWin32.cc (open): Use JV_TEMP_STRING_WIN32 instead of JV_TEMP_UTF_STRING. (write): Reformatted slightly. * java/io/natFileWin32.cc (lots): Use tchar.h macros; use JV_TEMP_STRING_WIN32 instead of JV_TEMP_UTF_STRING. (getCanonicalPath): Use _Jv_Win32NewString instead of JvNewStringUTF. (performList): Likewise. * java/lang/natWin32Process.cc (ChildProcessPipe): Use tchar.h macros. (startProcess): Use tchar.h macros, JV_TEMP_STRING_WIN32, and UNICODE environment flag for CreateProcess. * java/net/natNetworkInterfaceWin32.cc (winsock2GetRealNetworkInterfaces): Use tchar.h macros and _Jv_Win32NewString. From-SVN: r74201
2003-11-26natDouble.cc (parseDouble): Reverted patch of 2003-11-13.Tom Tromey1-1/+1
* java/lang/natDouble.cc (parseDouble): Reverted patch of 2003-11-13. From-SVN: r73956
2003-11-21* java/lang/Float.java (static): Removed.Mark Wielaard1-14/+1
From-SVN: r73805
2003-11-14jni.cc (_Jv_JNI_GetStringUTFChars): Pass length of string to ↵Tom Tromey4-7/+7
JvGetStringUTFRegion. * jni.cc (_Jv_JNI_GetStringUTFChars): Pass length of string to JvGetStringUTFRegion. * java/lang/natPosixProcess.cc (new_string): Pass length of string to JvGetStringUTFRegion. * java/lang/natDouble.cc (parseDouble): Pass length of string to JvGetStringUTFRegion. * java/lang/natWin32Process.cc (startProcess): Pass length of string to JvGetStringUTFRegion. * java/lang/natClass.cc (forName): Pass length of string to JvGetStringUTFRegion. * gnu/gcj/runtime/natNameFinder.cc (getExternalLabel): Pass length of string to JvGetStringUTFRegion. * gnu/gcj/convert/natIconv.cc (init): Pass length of string to JvGetStringUTFRegion. * gnu/awt/gtk/natGtkLabelPeer.cc (setText): Pass length of string to JvGetStringUTFRegion. * gnu/awt/gtk/natGtkButtonPeer.cc (setLabel): Pass length of string to JvGetStringUTFRegion. From-SVN: r73571
2003-11-07re PR libgcj/12231 ([win32] Console applications spawned via Runtime.exec( ) ↵Mohan Embar2-74/+117
in a GUI application flash console window) PR libgcj/12231 * java/lang/Win32Process.java (hasExited) Changed from public to private. (startProcess): Likewise. (cleanup): Likewise. * java/lang/natWin32Process.cc (cleanup) Don't close input, output and error streams. (ChildProcessPipe): New helper class. (startProcess): Refactored to use ChildProcessPipe. Use CREATE_NO_WINDOW when launching child process. From-SVN: r73326
2003-11-04natClass.cc (newInstance): Throw InstantiationException if class has no ↵Bryce McKinlay1-1/+1
null-argument constructor. * java/lang/natClass.cc (newInstance): Throw InstantiationException if class has no null-argument constructor. From-SVN: r73244
2003-10-30natMethod.cc (_Jv_CallAnyMethodA): Don't use vtable dispatch for final methods.Bryce McKinlay1-2/+4
* java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Don't use vtable dispatch for final methods. From-SVN: r73101
2003-10-28natClass.cc (_Jv_LayoutVTableMethods): Always assign a vtable slot for final ↵Bryce McKinlay1-2/+7
methods. * java/lang/natClass.cc (_Jv_LayoutVTableMethods): Always assign a vtable slot for final methods. Add FIXME comment. From-SVN: r73023
2003-10-26AccessibleObject.java (secureSetAccessible): Don't check for AccessibleObject.Bryce McKinlay1-33/+12
* java/lang/reflect/AccessibleObject.java (secureSetAccessible): Don't check for AccessibleObject. Update javadocs. From-SVN: r72943
2003-10-26Constructor.java (toString): Avoid extra whitespace on constructor with no ↵Bryce McKinlay4-45/+54
modifiers. 2003-10-26 Bryce McKinlay <bryce@mckinlay.net.nz> * java/lang/reflect/Constructor.java (toString): Avoid extra whitespace on constructor with no modifiers. * java/lang/reflect/natConstructor.java (newInstance): Look up caller and perform accessibility check only if constructor is non-public and accessible flag is not set. 2003-10-26 Bryce McKinlay <bryce@mckinlay.net.nz> * jni.cc (_Jv_JNI_CallAnyMethodV, _Jv_JNI_CallAnyMethodA, _Jv_JNI_CallAnyVoidMethodV, _Jv_JNI_CallAnyVoidMethodA): Don't use _Jv_LookupDeclaredMethod(). Call _Jv_CallAnyMethodA with is_virtual_call argument. * include/jvm.h (_Jv_isVirtualMethod): Moved and renamed from natClass.cc. * java/lang/natClass.cc (_Jv_LayoutVTableMethods): Use _Jv_isVirtualMethod. * java/lang/reflect/natMethod.cc (invoke): Don't use _Jv_LookupDeclaredMethod. (_Jv_CallAnyMethodA): New is_virtual_call argument. If specified, look up method in target object's vtable. From-SVN: r72942
2003-10-25Method.java (toString): Avoid extra whitespace on method with no modifiers.Bryce McKinlay1-2/+6
* java/lang/reflect/Method.java (toString): Avoid extra whitespace on method with no modifiers. From-SVN: r72919
2003-10-25re PR libgcj/11780 (Method.invoke() is slow)Bryce McKinlay2-36/+49
PR libgcj/11780: * java/lang/reflect/natMethod.cc (invoke): Look up caller and perform accessibility check only if target is non-public and accessible flag is not set. * java/lang/reflect/natField.cc (getAddr): Likewise. From-SVN: r72918
2003-10-24Obvious fix for systems with no interpreter.Anthony Green1-0/+2
From-SVN: r72903
2003-10-24lang.c (LANG_HOOKS_GET_CALLEE_FNDECL): New.Andrew Haley2-5/+70
2003-10-22 Andrew Haley <aph@redhat.com> * lang.c (LANG_HOOKS_GET_CALLEE_FNDECL): New. (java_get_callee_fndecl): New. * jcf-parse.c (java_parse_file): Call emit_catch_table(). * java-tree.h (ctable_decl): New. (catch_classes): New. (java_tree_index): Add JTI_CTABLE_DECL, JTI_CATCH_CLASSES. * decl.c (java_init_decl_processing): Add catch_class_type. Add ctable_decl. Add catch_classes field. * class.c (build_indirect_class_ref): Break out from build_class_ref. (make_field_value): Check flag_indirect_dispatch. (make_class_data): Ditto. Tidy uses of PUSH_FIELD_VALUE. Add field catch_classes. (make_catch_class_record): New. * java-tree.h (PUSH_FIELD_VALUE): Tidy. 2003-10-22 Andrew Haley <aph@redhat.com> * java/lang/natClass.cc (initializeClass): Call _Jv_linkExceptionClassTable. (_Jv_LinkSymbolTable): Call )_Jv_ThrowNoSuchMethodError. Call _Jv_Defer_Resolution on a method whose ncode is NULL. (_Jv_linkExceptionClassTable): New function. (_Jv_LayoutVTableMethods): If superclass looks like a constant pool entry, look it up. * java/lang/Class.h (struct _Jv_CatchClass): New. (_Jv_linkExceptionClassTable): New friend. (_Jv_Defer_Resolution): New friend. (class Class.catch_classes): New field. * include/java-interp.h (Jv_Defer_Resolution): New method. (_Jv_PrepareClass): Make a friend of _Jv_MethodBase. (_Jv_MethodBase.deferred): New field. (_Jv_Defer_Resolution): New function. * resolve.cc (_Jv_PrepareClass): Resolve deferred handlers. * exception.cc (get_ttype_entry): Change return type to void**. (PERSONALITY_FUNCTION): Remove all code related to using a Utf8Const* for a match type. Change match type to be a pointer to a pointer, rather than a pointer to a Class. * defineclass.cc (handleCodeAttribute): Initialize method->deferred. (handleMethodsEnd): Likewise. From-SVN: r72886
2003-10-23natObject.cc (_Jv_ObjectCheckMonitor): Use _Jv_MutexCheckMonitor instead of ↵Rainer Orth1-1/+1
accessing mutex.owner directly. * java/lang/natObject.cc (_Jv_ObjectCheckMonitor): Use _Jv_MutexCheckMonitor instead of accessing mutex.owner directly. From-SVN: r72872
2003-10-22re PR libgcj/12416 (java.lang.Class.getFields returns duplicate entries.)Tom Tromey3-62/+77
PR libgcj/12416: * java/lang/Class.h: Updated. * java/lang/natClass.cc (_getFields): Removed. (getFields): Likewise. (getDeclaredFields): Added `public_only' parameter. * java/lang/Class.java (getFields): Now implemented in java; from Classpath. (getDeclaredFields): Likewise. (getDeclaredFields(boolean)): Declare. (_getFields): Removed. (internalGetFields): New method, from Classpath. From-SVN: r72818
2003-10-21posix-threads.cc (_Jv_CondNotify,_Jv_CondNotifyAll): Rename ↵Jerry Quinn4-0/+65
_Jv_PthreadCheckMonitor to _Jv_MutexCheckMonitor. 2003-10-21 Jerry Quinn <jlquinn@optonline.net> * posix-threads.cc (_Jv_CondNotify,_Jv_CondNotifyAll): Rename _Jv_PthreadCheckMonitor to _Jv_MutexCheckMonitor. * include/no-threads.h (_Jv_MutexCheckMonitor): New. * include/posix-threads.h (_Jv_MutexCheckMonitor): Rename from _Jv_PthreadCheckMonitor. Simplify code. (_Jv_MutexUnlock): Use _Jv_MutexCheckMonitor. * include/win32-threads.h (_Jv_MutexCheckMonitor): New. * java/lang/Object.h (_Jv_ObjectCheckMonitor): Declare. * java/lang/Thread.java (holdsLock): New. * java/lang/natObject.cc (_Jv_ObjectCheckMonitor): New, with and without JV_HASH_SYNCHRONIZATION. * java/lang/natThread.cc (java::lang::Thread::holdsLock): New. From-SVN: r72741
2003-10-16StringBuffer.java (getChars): Fix array index checks.Ralph Loader1-5/+6
* java/lang/StringBuffer.java (getChars): Fix array index checks. (append, substring, insert): Likewise. * testsuite/libjava.lang/StringBuffer_overflow.java: New file. * testsuite/libjava.lang/StringBuffer_overflow.out: New file. From-SVN: r72579
2003-10-16natString.cc (getChars): Fix validation of array indexes.Ralph Loader1-10/+16
* java/lang/natString.cc (getChars): Fix validation of array indexes. (getBytes, regionMatches, startsWith, valueOf): Likewise. * testsuite/libjava.lang/String_overflow.java: New file. * testsuite/libjava.lang/String_overflow.out: New file. From-SVN: r72578
2003-10-13natClassLoader.cc (_Jv_InitNewClassFields): Removed.Tom Tromey1-37/+0
* java/lang/natClassLoader.cc (_Jv_InitNewClassFields): Removed. (defineClass): Updated. (_Jv_NewClass): Likewise. * prims.cc (_Jv_InitPrimClass): Don't call _Jv_InitNewClassFields. From-SVN: r72444
2003-10-09ClassLoader.java (setSigners): Implemented.Tom Tromey5-6/+22
* java/lang/ClassLoader.java (setSigners): Implemented. * boehm.cc (_Jv_MarkObj): Mark `signers' field. * java/lang/natClassLoader.cc (_Jv_InitNewClassFields): Initialize new fields. * java/lang/Class.java (getSigners): Now native. (setSigners): Declare. * java/lang/natClass.cc (getSigners): New method. (getSigners): Likewise. * java/lang/Class.h (Class::signers): New field. (Class::setSigners): New method. From-SVN: r72271
2003-10-08StrictMath.java (toDegrees): Multiply before dividing.Tom Tromey2-4/+10
* java/lang/StrictMath.java (toDegrees): Multiply before dividing. (toRadians): Likewise. 2003-10-08 C. Brian Jones <cbj@gnu.org> * java/lang/Math.java (toRadians): multiply before dividing to reduce decimal error (toDegrees): ditto From-SVN: r72238
2003-10-02VMClassLoader.java (loadClass): Now native.Tom Tromey2-8/+13
* java/lang/VMClassLoader.java (loadClass): Now native. * java/lang/natClassLoader.cc (loadClass): Implement. * prims.cc (_Jv_RunMain): Initialize ClassLoader. From-SVN: r72038