Jakub Jelinek
b3502aa8d4
re PR libgcj/17002 (java.util.TimeZone.getDefault() is broken)
...
libjava/
PR libgcj/17002
PR classpath/28550
* java/util/VMTimeZone.java (getDefaultTimeZoneId): To read
/etc/localtime, use ZoneInfo.readTZFile instead of
VMTimeZone.readtzFile. Get better timezone name for /etc/localtime,
either if it is a symlink or through /etc/sysconfig/clock.
(readSysconfigClockFile): New static method.
(readtzFile): Removed.
* java/lang/System.java: Add gnu.java.util.zoneinfo.dir to comments.
* posix.cc (_Jv_platform_initProperties): Set
gnu.java.util.zoneinfo.dir.
* sources.am (gnu_java_util_source_files): Add
classpath/gnu/java/util/ZoneInfo.java.
* Makefile.in: Regenerated.
* java/util/VMTimeZone.h: Regenerated.
* java/util/TimeZone.h: Regenerated.
* gnu/java/util/ZoneInfo.h: Generated.
libjava/classpath/
* java/util/Date.java (parse): Properly parse 09:01:02 as
hours/minutes/seconds, not as hours/minutes/year.
* java/util/SimpleTimeZone.java (SimpleTimeZone): Simplify
{start,end}TimeMode constructor by calling shorter constructor,
set {start,end}TimeMode fields after it returns.
(setStartRule): Don't adjust startTime into WALL_TIME. Set
startTimeMode to WALL_TIME.
(endStartRule): Similarly.
(getOffset): Handle properly millis + dstOffset overflowing into the
next day. Adjust startTime resp. endTime based on startTimeMode
resp. endTimeMode.
* java/util/TimeZone.java (zoneinfo_dir, availableIDs, aliases0): New
static fields.
(timezones): Remove synchronized keyword. Set zoneinfo_dir.
If non-null, set up aliases0 and don't put anything into
timezones0.
(defaultZone): Call getTimeZone instead of timezones().get.
(getDefaultTimeZone): Fix parsing of EST5 or EST5EDT6. Use
getTimeZoneInternal instead of timezones().get.
(parseTime): Parse correctly hour:minute.
(getTimeZoneInternal): New private method.
(getTimeZone): Do the custom ID checking first, canonicalize
ID for custom IDs as required by documentation. Call
getTimeZoneInternal to handle the rest.
(getAvailableIDs(int)): Add locking. Handle zoneinfo_dir != null.
(getAvailableIDs(File,String,ArrayList)): New private method.
(getAvailableIDs()): Add locking. Handle zoneinfo_dir != null.
* gnu/java/util/ZoneInfo.java: New file.
From-SVN: r122229
2007-02-22 17:04:55 +01:00
Keith Seitz
cc0c8dbc93
* gnu/classpath/jdwp/natVMVirtualMachine.cc
...
(jdwpClassPrepareCB): Move class status stuff to ...
(getClassStatus): ... here.
From-SVN: r122164
2007-02-20 14:08:49 +00:00
Gary Benson
d9f646e4b9
XEventLoop.h: Regenerated.
...
2007-02-20 Gary Benson <gbenson@redhat.com>
* gnu/awt/xlib/XEventLoop.h: Regenerated.
* gnu/java/awt/peer/gtk/GThreadMutex.h: Likewise.
* gnu/java/rmi/server/ConnectionRunnerPool$ConnectionRunner.h:
Likewise.
* gnu/java/rmi/server/UnicastConnectionManager.h: Likewise.
* java/lang/SecurityManager.h: Likewise.
* java/lang/Thread.h: Likewise.
* java/security/VMSecureRandom$Spinner.h: Likewise.
* java/util/concurrent/atomic/AtomicBoolean.h: Likewise.
* java/util/concurrent/atomic/AtomicInteger.h: Likewise.
* java/util/concurrent/atomic/AtomicLong.h: Likewise.
* java/util/concurrent/atomic/AtomicReference.h: Likewise.
* java/util/concurrent/ConcurrentHashMap$HashEntry.h: Likewise.
* java/util/concurrent/ConcurrentHashMap$Segment.h: Likewise.
* java/util/concurrent/ConcurrentLinkedQueue.h: Likewise.
* java/util/concurrent/ConcurrentLinkedQueue$Node.h: Likewise.
* java/util/concurrent/ConcurrentSkipListMap.h: Likewise.
* java/util/concurrent/ConcurrentSkipListMap$Index.h: Likewise.
* java/util/concurrent/ConcurrentSkipListMap$Node.h: Likewise.
* java/util/concurrent/Exchanger.h: Likewise.
* java/util/concurrent/Exchanger$Node.h: Likewise.
* java/util/concurrent/FutureTask$Sync.h: Likewise.
* java/util/concurrent/LinkedBlockingQueue$Node.h: Likewise.
* java/util/concurrent/locks/AbstractQueuedLongSynchronizer.h:
Likewise.
* java/util/concurrent/locks/AbstractQueuedLongSynchronizer$Node.h:
Likewise.
* java/util/concurrent/locks/AbstractQueuedSynchronizer.h: Likewise.
* java/util/concurrent/locks/AbstractQueuedSynchronizer$Node.h:
Likewise.
* java/util/concurrent/ScheduledThreadPoolExecutor.h: Likewise.
* java/util/concurrent/SynchronousQueue.h: Likewise.
* java/util/concurrent/SynchronousQueue$TransferQueue.h: Likewise.
* java/util/concurrent/SynchronousQueue$TransferQueue$QNode.h:
Likewise.
* java/util/concurrent/SynchronousQueue$TransferStack.h: Likewise.
* java/util/concurrent/SynchronousQueue$TransferStack$SNode.h:
Likewise.
* java/util/concurrent/ThreadPoolExecutor.h: Likewise.
* java/util/concurrent/ThreadPoolExecutor$Worker.h: Likewise.
* java/util/logging/ErrorManager.h: Likewise.
* javax/swing/plaf/basic/BasicSpinnerUI$2.h: Likewise.
* javax/swing/plaf/basic/BasicSpinnerUI$4.h: Likewise.
From-SVN: r122161
2007-02-20 13:06:37 +00:00
Keith Seitz
8e53f957a1
* gnu/classpath/jdwp/natVMVirtualMachine.cc
...
(get_line_table): New function.
(handle_single_step): New function.
(jdwpSingleStepCB): New function.
(jdwpVMInitCB): Define a JVMTI single step
callback, but don't enable it until needed.
From-SVN: r122065
2007-02-17 01:21:28 +00:00
Gary Benson
2c39a2b1e9
2007-02-16 Gary Benson <gbenson@redhat.com>
...
* gnu/gcj/tools/gcj_dbtool/Main.java
(bytesToString): Don't lose zeros from within the digest.
From-SVN: r122045
2007-02-16 14:54:25 +00:00
Andrew Haley
24d8ce15e2
[multiple changes]
...
2007-02-15 Andrew Haley <aph@redhat.com>
* Makefile.am (nat_source_files): Remove
java/lang/management/natVMManagementFactory.cc.
* java/lang/Thread.java (getStackTrace): Use reflection to call
the ManagementFactory.
* java/lang/management/VMManagementFactory.java: Remove native
methods.
* java/lang/management/natVMManagementFactory.cc: Deleted.
* sources.am: Regnerate.
* scripts/makemake.tcl: Add new "bcheaders" type.
Move java/lang/management and gnu/classpath/management to "bc".
Move gnu/java/lang/management to "bcheaders".
2007-02-16 Andrew Haley <aph@redhat.com>
* gnu/java/lang/management/MemoryMXBeanImpl.java,
javax/management/MBeanServerDelegate.java: Use
gnu.javax.management.ListenerData rather than
gnu.classpath.ListenerData.
* gnu/javax/management/ListenerData.java: Move here from
gnu/classpath/ListenerData.java.
From-SVN: r122041
2007-02-16 13:51:04 +00:00
Kyle Galloway
7a1bf87c6e
interpret.cc (_Jv_InterpMethod::check_handler): New method.
...
2007-02-15 Kyle Galloway <kgallowa@redhat.com>
* interpret.cc (_Jv_InterpMethod::check_handler): New method.
* interpret-run.cc: Change the catch section to report exception
events and to use the new check_handler method.
* include/java-interp.h (_Jv_InterpMethod): Add check_handler.
* gnu/gcj/jvmti/ExceptionEvent.java: New file.
* gnu/gcj/jvmti/ExceptionEvent.h: New file.
* gnu/gcj/jvmti/natExceptionEvent.cc: New file.
* libjava/classpath/lib/gnu/gcj/jvmti/ExceptionEvent.class: New
file.
* sources.am: Added ExceptionEvent.java.
* Makefile.am: Added natExceptionEvent.cc
* Makefile.in: Regenerated.
* include/Makefile.in: Regenerated.
* gcj/Makefile.in: Regenerated.
From-SVN: r122019
2007-02-16 00:05:39 +00:00
David Daney
7f40378f06
Make-lang.in (JAVA_MANFILES): Add doc/gc-analyze.1.
...
gcc/java:
2007-02-15 David Daney <ddaney@avtrex.com>
* Make-lang.in (JAVA_MANFILES): Add doc/gc-analyze.1.
(java.maintainer-clean):Add gc-analyze.1.
(.INTERMEDIATE): Add gc-analyze.pod.
(gc-analyze.pod): New rule.
(java.install-man): Install gc-analyze.1
* gcj.texi: Add new section for the gc-analyze program.
libjava:
2007-02-15 Johannes Schmidt <jschmidt@avtrex.com>
David Daney <ddaney@avtrex.com>
* configure.ac: Create vm-tools-packages file. Add
gnu/gcj/tools/gc_analyze to standard.omit and vm-tools-packages.
Check for /proc/self/maps.
* Makefile.am (bin_PROGRAMS): Added gc-analyze.
(gc_analyze_SOURCES): New.
(gc_analyze_LDFLAGS): New.
(gc_analyze_LINK): New.
(gc_analyze_LDADD): New.
(gc_analyze_DEPENDENCIES): New.
(nat_source_files): Add gnu/gcj/util/natGCInfo.cc.
* Makefile.in: Regenerated.
* configure: Regenerated.
* include/config.h.in: Regenerated.
* sources.am: Regenerated.
* scripts/makemake.tcl: Don't include gc-analyze classes in libgcj.
* gnu/gcj/tools/gc_analyze/SymbolLookup.java: New.
* gnu/gcj/tools/gc_analyze/ObjectMap.java: New.
* gnu/gcj/tools/gc_analyze/MemoryMap.java: New.
* gnu/gcj/tools/gc_analyze/SymbolTable.java: New.
* gnu/gcj/tools/gc_analyze/BlockMap.java: New.
* gnu/gcj/tools/gc_analyze/BytePtr.java: New.
* gnu/gcj/tools/gc_analyze/ItemList.java: New.
* gnu/gcj/tools/gc_analyze/ToolPrefix.java: New.
* gnu/gcj/tools/gc_analyze/MemoryAnalyze.java: New.
* gnu/gcj/util/GCInfo.java: New.
* gnu/gcj/util/GCInfo.h: New.
* gnu/gcj/util/natGCInfo.cc: New.
* gnu/gcj/util/UtilPermission.java: New.
* gnu/gcj/util/UtilPermission.h: New.
* classpath/tools/gnu/gcj/tools/gc_analyze/SymbolTable.class: New.
* classpath/tools/gnu/gcj/tools/gc_analyze/ObjectMap$ObjectItem.class: New.
* classpath/tools/gnu/gcj/tools/gc_analyze/MemoryMap$RangeComparator.class: New.
* classpath/tools/gnu/gcj/tools/gc_analyze/BlockMap$PtrMarks.class: New.
* classpath/tools/gnu/gcj/tools/gc_analyze/MemoryMap$Range.class: New.
* classpath/tools/gnu/gcj/tools/gc_analyze/BlockMap.class: New.
* classpath/tools/gnu/gcj/tools/gc_analyze/BytePtr.class: New.
* classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$SubstringComparator.class: New.
* classpath/tools/gnu/gcj/tools/gc_analyze/ItemList.class: New.
* classpath/tools/gnu/gcj/tools/gc_analyze/ToolPrefix.class: New.
* classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze.class: New.
* classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$1$Info.class: New.
* classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$1.class: New.
* classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$2.class: New.
* classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$3.class: New.
* classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$4.class: New.
* classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$OptionParser.class: New.
* classpath/tools/gnu/gcj/tools/gc_analyze/BlockMap$SizeKind.class: New.
* classpath/tools/gnu/gcj/tools/gc_analyze/SymbolLookup.class: New.
* classpath/tools/gnu/gcj/tools/gc_analyze/ObjectMap.class: New.
* classpath/tools/gnu/gcj/tools/gc_analyze/MemoryMap.class: New.
* classpath/lib/gnu/gcj/util/GCInfo.class: New.
* classpath/lib/gnu/gcj/util/UtilPermission.class: New.
libjava/classpath:
2007-02-15 David Daney <ddaney@avtrex.com>
* tools/Makefile.am (TOOLS_ZIP): Add classes from vm-tools-packages.
* tools/Makefile.in: Regenerated.
From-SVN: r122007
2007-02-15 17:25:24 +00:00
David Daney
31429fbc3c
PlainSocketImpl.h: Regenerate.
...
* gnu/java/net/PlainSocketImpl.h: Regenerate.
* gnu/classpath/jdwp/VMVirtualMachine.h: Same.
* gnu/classpath/jdwp/VMFrame.h: Same.
* java/net/Socket.h: Same.
* java/util/Collections$UnmodifiableMap$UnmodifiableEntrySet.h: Same.
From-SVN: r122006
2007-02-15 17:03:49 +00:00
Kyle Galloway
fc01261a60
natVMVirtualMachine (getFrames): Implement.
...
2007-02-15 Kyle Galloway <kgallowa@redhat.com>
* gnu/classpath/jdwp/natVMVirtualMachine (getFrames): Implement.
From-SVN: r121997
2007-02-15 14:49:50 +00:00
Keith Seitz
a13c5b70a4
* gnu/classpath/jdwp/natVMVirtualMachine.cc
...
(jdwpBreakpointCB): New function.
(jdwpVMInitCB): Define and enable the breakpoint
callback.
From-SVN: r121889
2007-02-13 18:57:01 +00:00
Tom Tromey
40b86e5f2c
Collections.java (UnmodifiableMap.toArray): Imported changes from Classpath.
...
libjava/classpath
* java/util/Collections.java (UnmodifiableMap.toArray): Imported
changes from Classpath.
libjava
* sources.am, Makefile.in: Rebuilt.
* java/lang/Socket.java: Removed override.
* java/lang/DatagramSocket.java: Removed override.
* gnu/java/net/PlainSocketImpl.java (localSocketAddress): New
field.
(getLocalAddress): New method.
* gnu/java/net/PlainDatagramSocketImpl.java
(PlainDatagramSocketImpl): Throws IOException.
* gnu/java/net/natPlainSocketImplPosix.cc (write): Remove
'sizeof'.
(read): Likewise.
From-SVN: r121866
2007-02-12 23:52:39 +00:00
Andrew Haley
ba9652fcb4
re PR libgcj/30742 (ResourceBundle regression)
...
2007-02-10 Andrew Haley <aph@redhat.com>
PR java/30742
* gnu/classpath/natVMStackWalker.cc (GET_CALLING_CLASS): New.
(getCallingClass): Call GET_CALLING_CLASS.
(getCallingClassLoader): Likewise.
From-SVN: r121798
2007-02-10 14:22:54 +00:00
Keith Seitz
410b0a2c94
* gnu/classpath/jdwp/VMVirtualMachine.java
...
(_stepping_threads): New member.
* classpath/lib/gnu/classpath/jdwp/VMVirtualMachine.class:
Regenerated.
* gnu/classpath/jdwp/VMVirtualMachine.h:
Regenerated.
* gnu/claspath/jdwp/natVMVirtualMachine.cc
(get_request_step_filter): New function.
(DISABLE_EVENT): New macro.
(initialize): Initialize _stepping_threads.
(registerEvent): Implement EVENT_SINGLE_STEP.
(unregisterEvent): Likewise.
From-SVN: r121769
2007-02-09 18:43:21 +00:00
Kyle Galloway
0588f8c8db
StackFrameCommandSet.java (executeGetValues): Pass jlong instead of ByteBuffer.
...
2007-02-08 Kyle Galloway <kgallowa@redhat.com>
* classpath/gnu/classpath/jdwp/processor/
StackFrameCommandSet.java (executeGetValues): Pass jlong instead
of ByteBuffer.
(executeSetValues): Ditto.
(executeThisObject): Ditto.
* classpath/gnu/classpath/jdwp/processor/
StackFrameCommandSet.class: Rebuilt.
* classpath/lib/gnu/classpath/jdwp/VMVirtualMachine.class:
Rebuilt.
* classpath/lib/gnu/classpath/jdwp/VMFrame.class: Rebuilt.
* classpath/lib/gnu/classpath/jdwp/exception/
InvalidFrameException.java: New file.
* gnu/classpath/jdwp/VMFrame.java: Added field for thread of
frame.
(Constructor): New method.
* gnu/classpath/jdwp/VMFrame.h: Regenerated.
* gnu/classpath/jdwp/VMVirtualMachine.java
(getFrame): Changed ByteBuffer to jlong.
* gnu/classpath/jdwp/natVMVirtualMachine.cc
(getFrame): Implement.
* gnu/classpath/jdwp/VMVirtualMachine.h: Regenerated.
From-SVN: r121719
2007-02-08 18:21:00 +00:00
Chris Burdess
08452f4553
re PR classpath/30718 (TransformerException in XSLURIResolver)
...
2007-02-07 Chris Burdess <dog@gnu.org>
Fixes PR 30718.
* gnu/xml/dom/ls/SAXEventSink.java: Add public accessor/mutators.
* gnu/xml/transform/XSLURIResolver.java: Add support for custom
SAXSources without a backing URL or stream.
Fixes PR 27710.
* gnu/xml/dom/DomDocumentBuilderFactory.java: Fall back to synchronous
LSParser if implementation does not support asynchronous.
* gnu/xml/stream/XMLParser.java,
gnu/xml/stream/XIncludeFilter.java: Use custom code instead of
java.net.URL to resolve to an an absolute URI, to avoid nonexistent
protocol handler problems.
From-SVN: r121694
2007-02-07 18:22:26 +00:00
Keith Seitz
072d019dfc
* gnu/classpath/jdwp/natVMVirtualMachine.cc
...
(registerEvent): Implement EVENT_BREAKPOINT.
(unregisterEvent): Likewise.
(get_request_location): New function.
From-SVN: r121608
2007-02-05 20:56:47 +00:00
Kyle Galloway
c9d607421c
natVMVirtualMachine.cc (getFrameCount): Implement.
...
2007-02-02 Kyle Galloway <kgallowa@redhat.com>
* gnu/classpath/jdwp/natVMVirtualMachine.cc (getFrameCount): Implement.
From-SVN: r121504
2007-02-02 15:23:20 +00:00
Kaloian Doganov
2828987879
re PR libgcj/30600 (gnu.gcj.convert.BytesToCharsetAdaptor calculates bad argument for java.nio.Buffer.limit(int))
...
2007-01-29 Kaloian Doganov <kaloian@doganov.org>
PR libgcj/30600:
* gnu/gcj/convert/BytesToCharsetAdaptor.java (read): Fix call to
'limit'.
From-SVN: r121329
2007-01-30 02:46:54 +00:00
Keith Seitz
68254f23e8
jvmti_md.h (_CLASSPATH_VM_JVMTI_TYPES_DEFINED): Define.
...
* include/jvmti_md.h (_CLASSPATH_VM_JVMTI_TYPES_DEFINED):
Define.
[__GCJ_JNI_IMPL__]: Define our own JVMTI types when building
gcj. All jvmti object types now are defined to be their
corresponding java classes.
* jvmti.cc (_Jv_JVMTI_SuspendThread): Remove casting from
jthread to Thread*.
(_Jv_JVMTI_ResumeThread): Likewise.
(_Jv_JVMTI_InterruptThread): Likewise.
(_Jv_JVMTI_SetEventNotificationMode): Likewise.
* gnu/classpath/jdwp/natVMVirtualMachine.cc
(jdwpClassPrepareCB): Likewise.
(jdwpThreadEndCB): Likewise.
(jdwpThreadStartCB): Likewise.
(jdwpVMInitCB): Likewise.
From-SVN: r121296
2007-01-29 17:43:34 +00:00
Michele Sandri
94468b1ceb
2007-01-28 Michele Sandri <gpointorama@gmail.com>
...
* gnu/java/nio/channels/natFileChannelWin32.cc
(lock): Implemented.
(unlock): Implemented.
From-SVN: r121265
2007-01-28 18:55:36 +00:00
Keith Seitz
ea6244280b
* gnu/classpath/jdwp/natVMVirtualMachine.cc
...
(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-27 16:34:32 +00:00
Tom Tromey
7969a3791e
libjava
...
* Updated headers.
libjava/classpath
* tools/gnu/classpath/tools/javah/FieldHelper.java (print): Print
'volatile' after field type.
From-SVN: r121215
2007-01-26 23:07:08 +00:00
Tom Tromey
e858910352
re PR libgcj/29594 (jv-convert with no args NPE)
...
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-26 01:05:13 +00:00
Keith Seitz
161a649cb9
jvmti-int.h (_Jv_GetJDWP_JVMTIEnv): Declare.
...
* 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-25 21:05:18 +00:00
Keith Seitz
c65110e44c
* gnu/classpath/jdwp/natVMVirtualMachine.cc
...
(getAllClassMethods): Implement.
From-SVN: r121142
2007-01-24 22:35:43 +00:00
Andrew Haley
8cda32ad56
natVMStackWalker.cc: Call InitClass everywhere.
...
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-24 17:13:50 +00:00
Keith Seitz
c56b658bde
* gnu/classpath/jdwp/natVMVirtualMachine.cc
...
(getClassMethod): Implement.
From-SVN: r121078
2007-01-23 06:40:49 +00:00
Keith Seitz
6c798f4fc1
natVMFrame.cc: Mark unused parameters with MAYBE_UNUSED.
...
* gnu/classpath/jdwp/natVMFrame.cc: Mark unused parameters with
MAYBE_UNUSED.
From-SVN: r120972
2007-01-19 17:46:57 +00:00
Keith Seitz
80e9603862
natVMVirtualMachine.cc: Mark unused parameters in methods and reformat.
...
* gnu/classpath/jdwp/natVMVirtualMachine.cc: Mark unused parameters
in methods and reformat.
From-SVN: r120971
2007-01-19 17:20:21 +00:00
Keith Seitz
640f891823
From Macro Trudel <mtrudel@gmx.ch>:
...
* gnu/classpath/jdwp/natVMVirtualMachine.cc (jdwpVMInitCB):
Use JNICALL.
From-SVN: r120946
2007-01-19 01:19:04 +00:00
Gary Benson
463c03f1bc
natVMPipeEcos.cc: Renamed from gnu/java/nio/natPipeImplEcos.cc.
...
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-18 11:32:40 +00:00
Keith Seitz
f031b5d726
natVMVirtualMachine.cc (DEFINE_CALLBACK): New macro.
...
* 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-16 19:54:16 +00:00
Keith Seitz
e9d59899de
natVMVirtualMachine.cc (suspendThread): Use java.lang.StringBuilder instead 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-15 23:38:35 +00:00
Gary Benson
a5c0f6fe87
URLClassLoader.java: Removed.
...
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-15 10:25:38 +00:00
Tom Tromey
a6ec93973c
*.h: New files.
...
* gnu/gcj/xlib/*.h: New files.
* gnu/awt/xlib/*.h: Likewise.
* classpath/lib/gnu/gcj/xlib: New class files.
* classpath/lib/gnu/awt/xlib: Likewise.
From-SVN: r120655
2007-01-11 00:15:27 +00:00
Tom Tromey
ea517ca550
natDouble.cc (toString): Added parens.
...
* java/lang/natDouble.cc (toString): Added parens.
* gnu/gcj/io/shs.h (PROTO): Define.
* link.cc (resolve_pool_entry): Added missing braces.
From-SVN: r120652
2007-01-10 22:56:20 +00:00
Tom Tromey
97b8365caf
Merged gcj-eclipse branch to trunk.
...
From-SVN: r120621
2007-01-09 19:58:05 +00:00
Gary Benson
adefdaca2d
InetAddress.java: Removed.
...
2006-11-03 Gary Benson <gbenson@redhat.com>
* java/net/InetAddress.java: Removed.
* java/net/natInetAddressNoNet.cc: Likewise.
* java/net/natInetAddressPosix.cc: Likewise.
* java/net/natInetAddressWin32.cc: Likewise.
* java/net/VMInetAddress.java (getLocalHostname,
lookupInaddrAny, getHostByAddr, getHostByName,
aton): Replace glue methods with native ones.
* java/net/natVMInetAddressNoNet.cc: New file.
* java/net/natVMInetAddressPosix.cc: Likewise.
* java/net/natVMInetAddressWin32.cc: Likewise.
* Makefile.am, configure.ac: Reflect the above.
* sources.am, Makefile.in, configure: Rebuilt.
* java/net/natVMNetworkInterfaceWin32.cc
(winsock2GetRealNetworkInterfaces): Create InetAddress
objects using InetAddress.getByAddress.
* gnu/java/net/natPlainSocketImplWin32.cc
(accept, getOption): Likewise.
* gnu/java/net/natPlainDatagramSocketImplWin32.cc
(peekData, receive, getOption): Likewise.
From-SVN: r118451
2006-11-03 10:16:04 +00:00
Keith Seitz
4cb1c1c396
* gnu/classpath/jdwp/natVMMethod.cc (getLineTable): Implement.
...
From-SVN: r118420
2006-11-02 17:01:01 +00:00
Keith Seitz
444dd946c8
Location.java: New file.
...
* gnu/gcj/jvmti/Location.java: New file.
* gnu/gcj/jvmti/BreakpointManager.java: New file.
* jvmti.cc (_Jv_JVMTI_SetBreakpoint): New function.
(_Jv_JVMTI_ClearBreakpoint): New function.
(_Jv_JVMTI_Interface): Define SetBreakpoint and ClearBreakpoint.
* sources.am: Regenerated.
* Makefile.in: Regenerated.
From-SVN: r118391
2006-11-01 18:20:19 +00:00
Keith Seitz
67ce74926a
Makefile.am (nat_source_files): Add natBreakpoint.cc.
...
* Makefile.am (nat_source_files): Add natBreakpoint.cc.
* sources.am: Regenerated.
* Makefile.in: Regenerated.
* gnu/gcj/jvmti/Breakpoint.java: New file.
* gnu/gcj/jvmti/natBreakpoint.java: New file.
From-SVN: r118108
2006-10-28 18:36:16 +00:00
Tom Tromey
13869d712f
natSystemProperties.cc (insertSystemProperties): Removed obsolete comment.
...
* gnu/classpath/natSystemProperties.cc (insertSystemProperties):
Removed obsolete comment.
From-SVN: r117626
2006-10-11 03:05:32 +00:00
Keith Seitz
291ad36e62
* gnu/classpath/jdwp/VMVirtualMachine.java
...
(_jdwp_suspend_counts): New private variable.
* gnu/classpath/jdwp/natVMVirtualMachine.cc
(initialize): Initialize _jdwp_suspend_counts.
(suspendThread): Implement.
(resumeThread): Implement.
(getSuspendCount): Implement.
From-SVN: r117196
2006-09-25 17:08:05 +00:00
Gary Benson
aac8697859
InetAddress.java: Mostly merged with Classpath.
...
2006-09-20 Gary Benson <gbenson@redhat.com>
* java/net/InetAddress.java: Mostly merged with Classpath.
* java/net/VMInetAddress.java: New file.
* sources.am, Makefile.in: Rebuilt.
* java/net/natVMNetworkInterfacePosix.cc
(getInterfaces): Create InetAddress objects using
InetAddress.getByAddress.
* gnu/java/net/natPlainSocketImplPosix.cc
(accept, getOption): Likewise.
* gnu/java/net/natPlainDatagramSocketImplPosix.cc
(peekData, receive, getLocalAddress): Likewise.
From-SVN: r117075
2006-09-20 07:55:26 +00:00
Keith Seitz
a4d0390b44
* gnu/classpath/jdwp/VMVirtualMachine.java
...
(initialize): Declare.
* gnu/classpath/jdwp/natVMVirtualMachine.cc
(initialize): Get and save JVMTI environment.
From-SVN: r116357
2006-08-23 22:18:08 +00:00
Thomas Fitzsimmons
df3e8c70fd
re PR libgcj/27890 (lib/logging.properties pollutes common namespace)
...
2006-08-22 Thomas Fitzsimmons <fitzsim@redhat.com>
PR libgcj/27890
* gnu/classpath/natSystemProperties.cc (insertSystemProperties):
Set gnu.classpath.home.url to TOOLEXECLIBDIR.
* configure.ac: Do not add --with-native-libdir to
ac_configure_args.
* java/security/libgcj.security: Remove file.
* java/util/logging/logging.properties: Likewise.
* classpath/m4/acinclude.m4 (CLASSPATH_TOOLEXECLIBDIR): New macro.
* classpath/resource/Makefile.am (loggingdir): Define to
toolexeclibdir.
(securitydir): Likewise.
* classpath/configure.ac: Call CLASSPATH_TOOLEXECLIBDIR.
Set default nativeexeclibdir using toolexeclibdir.
* HACKING: Fix classpath aclocal arguments.
* Makefile.am (secdir): Remove variable.
(propdir): Likewise.
(AM_CXXFLAGS): Replace LIBDIR definition with TOOLEXECLIBDIR
definition.
(all_property_files): Remove variable.
(install-data-local): Do not install libgcj.security or
logging.properties.
* configure, Makefile.in, classpath/configure,
classpath/Makefile.in, classpath/native/jni/java-lang/Makefile.in,
classpath/native/jni/midi-alsa/Makefile.in,
classpath/native/jni/classpath/Makefile.in,
classpath/native/jni/midi-dssi/Makefile.in,
classpath/native/jni/Makefile.in,
classpath/native/jni/java-nio/Makefile.in,
classpath/native/jni/java-net/Makefile.in,
classpath/native/jni/gconf-peer/Makefile.in,
classpath/native/jni/java-io/Makefile.in,
classpath/native/jni/xmlj/Makefile.in,
classpath/native/jni/java-util/Makefile.in,
classpath/native/jni/qt-peer/Makefile.in,
classpath/native/jni/gtk-peer/Makefile.in,
classpath/native/Makefile.in, classpath/native/jawt/Makefile.in,
classpath/native/target/Linux/Makefile.in,
classpath/native/target/Makefile.in,
classpath/native/target/generic/Makefile.in,
classpath/native/fdlibm/Makefile.in,
classpath/native/plugin/Makefile.in,
classpath/resource/Makefile.in, classpath/scripts/Makefile.in,
classpath/tools/Makefile.in, classpath/doc/Makefile.in,
classpath/doc/api/Makefile.in, classpath/lib/Makefile.in,
classpath/external/Makefile.in,
classpath/external/sax/Makefile.in,
classpath/external/w3c_dom/Makefile.in,
classpath/external/relaxngDatatype/Makefile.in,
classpath/include/Makefile.in, classpath/aclocal.m4,
classpath/examples/Makefile.in, aclocal.m4: Regenerate.
From-SVN: r116332
2006-08-22 20:37:36 +00:00
Mark Wielaard
ac1ed908de
Imported GNU Classpath 0.92
...
2006-08-14 Mark Wielaard <mark@klomp.org>
Imported GNU Classpath 0.92
* HACKING: Add more importing hints. Update automake version
requirement.
* configure.ac (gconf-peer): New enable AC argument.
Add --disable-gconf-peer and --enable-default-preferences-peer
to classpath configure when gconf is disabled.
* scripts/makemake.tcl: Set gnu/java/util/prefs/gconf and
gnu/java/awt/dnd/peer/gtk to bc. Classify
gnu/java/security/Configuration.java as generated source file.
* gnu/java/lang/management/VMGarbageCollectorMXBeanImpl.java,
gnu/java/lang/management/VMMemoryPoolMXBeanImpl.java,
gnu/java/lang/management/VMClassLoadingMXBeanImpl.java,
gnu/java/lang/management/VMRuntimeMXBeanImpl.java,
gnu/java/lang/management/VMMemoryManagerMXBeanImpl.java,
gnu/java/lang/management/VMThreadMXBeanImpl.java,
gnu/java/lang/management/VMMemoryMXBeanImpl.java,
gnu/java/lang/management/VMCompilationMXBeanImpl.java: New VM stub
classes.
* java/lang/management/VMManagementFactory.java: Likewise.
* java/net/VMURLConnection.java: Likewise.
* gnu/java/nio/VMChannel.java: Likewise.
* java/lang/Thread.java (getState): Add stub implementation.
* java/lang/Class.java (isEnum): Likewise.
* java/lang/Class.h (isEnum): Likewise.
* gnu/awt/xlib/XToolkit.java (getClasspathTextLayoutPeer): Removed.
* javax/naming/spi/NamingManager.java: New override for StackWalker
functionality.
* configure, sources.am, Makefile.in, gcj/Makefile.in,
include/Makefile.in, testsuite/Makefile.in: Regenerated.
From-SVN: r116139
2006-08-14 23:12:35 +00:00
Tom Tromey
bc19f9eeda
re PR libgcj/28576 (PlainDatagramSocketImpl::connect: not implemented yet)
...
PR libgcj/28576:
* gnu/java/net/natPlainDatagramSocketImplPosix.cc (connect):
Implemented.
(disconnect): Likewise.
(send): Handle already-connected case.
From-SVN: r115976
2006-08-06 21:52:04 +00:00
Keith Seitz
27d8ff9b83
VMFrame.java: Update to Classpath 0.91.
...
* gnu/classpath/jdwp/VMFrame.java: Update to Classpath 0.91.
* gnu/classpath/jdwp/VMIdManager.java: Likewise.
* gnu/classpath/jdwp/VMMethod.java: Likewise.
* gnu/classpath/jdwp/VMVirtualMachine: Likewise.
* gnu/classpath/jdwp/natVMFrame.java: New file.
* gnu/classpath/jdwp/natVMMethod.java: New file.
* gnu/classpath/jdwp/natVMVirtualMachine.java: New file.
* Makefile.am (nat_source_files): Add new filles.
* Makefile.in: Regenerated.
From-SVN: r115934
2006-08-04 20:34:02 +00:00
Andreas Tobler
d2b815074b
natSystemProperties.cc: Add additional check for getpwuid_r on _POSIX_PTHREAD_SEMANTICS.
...
2006-08-01 Andreas Tobler <a.tobler@schweiz.ch>
* gnu/classpath/natSystemProperties.cc: Add additional check for
getpwuid_r on _POSIX_PTHREAD_SEMANTICS.
(SystemProperties::insertSystemProperties): Likewise.
* java/io/natFilePosix.cc (File::performList): Add
additional check for readdir_r on _POSIX_PTHREAD_SEMANTICS.
* java/util/natVMTimeZone.cc (VMTimeZone::getSystemTimeZoneId): Add
additional check for localtime_r on _POSIX_PTHREAD_SEMANTICS.
From-SVN: r115864
2006-08-01 22:59:24 +02:00
Andrew Haley
8f2cc5b59b
natSharedLibLoader.cc (init): Don't set curLoader to VMClassLoader::bootLoader.
...
2006-07-28 Andrew Haley <aph@redhat.com>
* gnu/gcj/runtime/natSharedLibLoader.cc (init): Don't set
curLoader to VMClassLoader::bootLoader.
From-SVN: r115797
2006-07-28 16:44:49 +00:00
Mohan Embar
105395ad98
natPlainSocketImplPosix.cc (bind): Clear SockAddr before using - needed for OS X/PPC.
...
2006-07-21 Mohan Embar <gnustuff@thisiscool.com>
* gnu/java/net/natPlainSocketImplPosix.cc (bind): Clear
SockAddr before using - needed for OS X/PPC.
From-SVN: r115669
2006-07-22 01:42:25 +00:00
Tom Tromey
9e01bff779
OutputStreamWriter.java (writeChars): Use a 'do' loop.
...
* java/io/OutputStreamWriter.java (writeChars): Use a 'do' loop.
Set 'out.count' earlier.
(close): Call setFinished on converter.
(flush): Always write work buffer.
* java/io/PrintStream.java (writeChars): Do 'do' loop.
(close): Call setFinished on converter. Write a 'flush' array.
* java/lang/natString.cc (getBytes): Call setFinished on
converter.
* gnu/gcj/convert/CharsetToBytesAdaptor.java (hasBytes): New
field.
(write): Set hasBytes. Changed 'finished' logic.
(havePendingBytes): Rewrote.
(setFinished): New method.
* gnu/gcj/convert/UnicodeToBytes.java (setFinished): New method.
* testsuite/libjava.lang/RH194522.java: New file.
* testsuite/libjava.lang/RH194522.out: New file.
From-SVN: r115039
2006-06-27 20:38:10 +00:00
Bryce McKinlay
463c5ee5f0
natSystemProperties.cc (insertSystemProperties): Bump "java.class.version" to 48.0.
...
2006-06-20 Bryce McKinlay <mckinlay@redhat.com>
* gnu/classpath/natSystemProperties.cc (insertSystemProperties):
Bump "java.class.version" to 48.0.
From-SVN: r114831
2006-06-20 22:28:30 +01:00
Tom Tromey
be9a52f844
gcj.texi (libgcj Runtime Properties): Document gnu.gcj.user.realname.
...
gcc/java
* gcj.texi (libgcj Runtime Properties): Document
gnu.gcj.user.realname.
libjava
* gnu/classpath/natSystemProperties.cc (insertSystemProperties):
Set gnu.gcj.user.realname.
From-SVN: r114500
2006-06-09 00:15:35 +00:00
David Daney
696dad4b6b
gcj.texi (libgcj Runtime Properties): Document gnu.gcj.runtime.NameFinder.show_raw and...
...
2006-06-05 David Daney <ddaney@avtrex.com>
* gcj.texi (libgcj Runtime Properties): Document
gnu.gcj.runtime.NameFinder.show_raw and
gnu.gcj.runtime.NameFinder.remove_unknown.
2006-06-05 David Daney <ddaney@avtrex.com>
* gnu/gcj/runtime/NameFinder.java (show_raw): New field.
(showRaw): New method.
* stacktrace.cc : Include gnu/gcj/runtime/StringBuffer.h.
(getLineNumberForFrame): Show IP offset in trace if line number
not available and show_raw true.
From-SVN: r114437
2006-06-06 17:00:16 +00:00
Bryce McKinlay
d5b0558fda
MainThread (run): Revert exception chaining change.
...
2006-06-01 Bryce McKinlay <mckinlay@redhat.com>
* gnu/java/lang/MainThread (run): Revert exception chaining change.
From-SVN: r114303
2006-06-01 12:53:54 +01:00
Bryce McKinlay
7d6d782d02
prims.cc (_Jv_RunMain): Use JvNewStringUTF for command-line class name, not Latin1.
...
2006-05-31 Bryce McKinlay <mckinlay@redhat.com>
* prims.cc (_Jv_RunMain): Use JvNewStringUTF for command-line class
name, not Latin1.
* gnu/java/lang/MainThread.java (run): Allow file separator char to
be used in place of '.' as class-name separator. Don't chain
ClassNotFoundException.
From-SVN: r114300
2006-06-01 08:45:55 +01:00
Thomas Fitzsimmons
8c0633b7cd
makemake.tcl (emit_bc_rule): Do not skip gnu-java-awt-peer-gtk.lo.
...
2006-05-30 Thomas Fitzsimmons <fitzsim@redhat.com>
* scripts/makemake.tcl (emit_bc_rule): Do not skip
gnu-java-awt-peer-gtk.lo.
Include gnu/java/awt/peer/gtk Java objects in libgcj.so. Use C++
ABI for gnu/java/awt/peer/gtk package.
* gnu/classpath/natSystemProperties.cc (PrependVersionedLibdir):
New function.
(insertSystemProperties): Only set java.ext.dirs if it is not
already defined. Prepend GCJ_VERSIONED_LIBDIR to module search
path where necessary.
* configure.ac (GTK_AWT): Remove automake conditional.
* include/jvm.h (_Jv_PrependVersionedLibdir): New function
declaration.
* gij.cc (main): Prepend LD_LIBRARY_PATH with GCJ_VERSIONED_LIBDIR
and re-exec self.
* Makefile.am (AM_CXXFLAGS): Define GCJ_VERSIONED_LIBDIR,
GIJ_EXECUTABLE and PATH_SEPARATOR macros.
Remove lib-gnu-java-awt-peer-gtk.la and libgcjawt.la build logic.
* prims.cc (_Jv_PrependVersionedLibdir): New function.
2006-05-30 Thomas Fitzsimmons <fitzsim@redhat.com>
* native/jni/gtk-peer/Makefile.am (gcc_version): New variable.
(gcjversionedlibdir): Likewise.
(libgtkpeer_la_LDFLAGS): Likewise.
Install libgtkpeer.so in GCJ versioned library directory.
* native/jawt/Makefile.am (gcc_version): New variable.
(gcjversionedlibdir): Likewise.
(libjawt_la_LDFLAGS): Likewise.
Rename libjawtgnu.so libjawt.so. Install libjawt.so in GCJ
versioned library directory.
* gnu/java/awt/peer/gtk/GdkFontPeer.java (static): Call
System.loadLibrary unconditionally.
* gnu/java/awt/peer/gtk/GdkPixbufDecoder.java: Likewise.
* gnu/java/awt/peer/gtk/GdkGraphics2D.java: Likewise.
* gnu/java/awt/peer/gtk/GdkGraphics.java: Likewise.
* gnu/java/awt/peer/gtk/GtkToolkit.java: Likewise.
* gnu/java/awt/peer/gtk/GdkTextLayout.java: Likewise.
From-SVN: r114247
2006-05-30 21:38:51 +00:00
Tom Tromey
91f8ce668b
re PR libgcj/27024 (Implement URLConnection.getFileNameMap)
...
PR libgcj/27024:
* sources.am, Makefile.in: Rebuilt.
* gnu/java/net/DefaultContentHandlerFactory.java: Removed.
* java/net/URLConnection.java: Removed.
From-SVN: r114056
2006-05-24 21:44:34 +00:00
Mark Wielaard
4f9533c772
Imported GNU Classpath 0.90
...
Imported GNU Classpath 0.90
* scripts/makemake.tcl: LocaleData.java moved to gnu/java/locale.
* sources.am: Regenerated.
* gcj/javaprims.h: Regenerated.
* Makefile.in: Regenerated.
* gcj/Makefile.in: Regenerated.
* include/Makefile.in: Regenerated.
* testsuite/Makefile.in: Regenerated.
* gnu/java/lang/VMInstrumentationImpl.java: New override.
* gnu/java/net/local/LocalSocketImpl.java: Likewise.
* gnu/classpath/jdwp/VMMethod.java: Likewise.
* gnu/classpath/jdwp/VMVirtualMachine.java: Update to latest
interface.
* java/lang/Thread.java: Add UncaughtExceptionHandler.
* java/lang/reflect/Method.java: Implements GenericDeclaration and
isSynthetic(),
* java/lang/reflect/Field.java: Likewise.
* java/lang/reflect/Constructor.java
* java/lang/Class.java: Implements Type, GenericDeclaration,
getSimpleName() and getEnclosing*() methods.
* java/lang/Class.h: Add new public methods.
* java/lang/Math.java: Add signum(), ulp() and log10().
* java/lang/natMath.cc (log10): New function.
* java/security/VMSecureRandom.java: New override.
* java/util/logging/Logger.java: Updated to latest classpath
version.
* java/util/logging/LogManager.java: New override.
From-SVN: r113887
2006-05-18 17:29:21 +00:00
Tom Tromey
8d288df0fe
sources.am, [...]: Rebuilt.
...
* sources.am, Makefile.in: Rebuilt.
* gnu/java/net/protocol/jar/Connection.java: Removed.
* java/net/JarURLConnection.java: Removed.
From-SVN: r113739
2006-05-13 17:58:50 +00:00
Tom Tromey
143145daa4
sources.am, [...]: Rebuilt.
...
* sources.am, Makefile.in: Rebuilt.
* java/util/logging/LogManager.java: Removed.
* java/util/logging/Logger.java (resetLogger): New method, from
Classpath.
* java/io/RandomAccessFile.java: Removed.
* gnu/java/nio/channels/FileChannelImpl.java (create): New
method.
(FileChannelImpl): Now private.
* java/io/FileInputStream.java: Removed.
* java/io/FileOutputStream.java: Removed.
* java/security/AccessControlContext.java: Removed.
* java/lang/ThreadLocal.java: Removed.
* java/lang/InheritableThreadLocal.java: Removed.
* java/lang/Thread.java (locals): New field.
(getThreadLocals): New method.
* java/lang/natThread.cc (finish_): Clear 'locals'.
From-SVN: r113735
2006-05-13 02:16:22 +00:00
Bryce McKinlay
c1ef8ca9ac
NameFinder.java (lookup): If exec'ing addr2line fails, don't try again.
...
2006-05-11 Bryce McKinlay <mckinlay@redhat.com>
* gnu/gcj/runtime/NameFinder.java (lookup): If exec'ing addr2line
fails, don't try again.
(use_addr2line): Field no longer final.
From-SVN: r113715
2006-05-11 23:20:07 +01:00
Bryce McKinlay
64c9036718
NameFinder.java (blacklist): New static field.
...
2006-05-11 Bryce McKinlay <mckinlay@redhat.com>
* gnu/gcj/runtime/NameFinder.java (blacklist): New static field.
(lookup): If addr2line fails to find an address, flag the binary as
having no debug info and avoid calling addr2line on it again.
From-SVN: r113711
2006-05-11 21:53:04 +01:00
Andrew Haley
c6c097b26c
natSharedLibLoader.cc (init): Remove debugging line.
...
2006-05-11 Andrew Haley <aph@redhat.com>
* gnu/gcj/runtime/natSharedLibLoader.cc (init): Remove debugging
line.
From-SVN: r113693
2006-05-11 09:57:53 +00:00
Andrew Haley
fdafd4613f
prims.cc (_Jv_soleIndirectCompiledEngine): New.
...
2006-05-09 Andrew Haley <aph@redhat.com>
* prims.cc (_Jv_soleIndirectCompiledEngine): New.
* include/execution.h (Jv_CompiledEngine::do_allocate_static_fields):
Remove body.
(_Jv_CompiledEngine::allocate_field_initializers): New.
(_Jv_CompiledEngine::_Jv_CompiledEngine): Initialize
allocate_field_initializers.
(class _Jv_IndirectCompiledClass): New.
(struct _Jv_IndirectCompiledEngine): New.
* java/lang/Class.h: (IndirectCompiledEngine): New.
* java/lang/natClassLoader.cc (_Jv_NewClassFromInitializer): Set
engine to _Jv_soleIndirectCompiledEngine
* link.cc (ensure_fields_laid_out): Call
engine->allocate_field_initializers().
From-SVN: r113674
2006-05-10 17:17:20 +00:00
Tom Tromey
b149e89e77
Class.h (JV_STATE_LOADING): Added comment.
...
* java/lang/Class.h (JV_STATE_LOADING): Added comment.
* Makefile.in: Rebuilt.
* Makefile.am (nat_source_files): Added natSystemClassLoader.cc.
* gnu/gcj/runtime/natSystemClassLoader.cc: New file.
* gnu/gcj/runtime/SystemClassLoader.java (nativeClasses):
New field.
(loadedClasses): Removed.
(findClass): Declare.
(addClass): Add to nativeClasses, not loadedClasses.
From-SVN: r113530
2006-05-04 15:29:22 +00:00
Tom Tromey
1f263074ea
natSharedLibLoader.cc: Include gc.h later.
...
* gnu/gcj/runtime/natSharedLibLoader.cc: Include gc.h later.
Include platform.h. Set GC_DEBUG before including gc.h, if
needed.
From-SVN: r113251
2006-04-25 15:20:33 +00:00
Bryce McKinlay
405827c59d
re PR libgcj/27170 (Deadlock in garbage collector)
...
PR libgcj/27170
* gnu/gcj/runtime/natSharedLibLoader.cc: Include gc.h to override
dlopen(). From Anthony Green.
From-SVN: r113123
2006-04-21 00:47:56 +01:00
Tom Tromey
45c792f50b
re PR libgcj/21941 (NPE in Socket.connect())
...
PR libgcj/21941:
* gnu/java/net/natPlainDatagramSocketImplPosix.cc (send): Throw
UnknownHostException if needed.
* gnu/java/net/natPlainSocketImplPosix.cc (connect): Throw
UnknownHostException if needed.
From-SVN: r113118
2006-04-20 15:46:40 +00:00
Tom Tromey
37e7dc121d
natFileChannelPosix.cc (write): Properly handle EINTR.
...
* gnu/java/nio/channels/natFileChannelPosix.cc (write): Properly
handle EINTR.
From-SVN: r113082
2006-04-19 17:01:53 +00:00
Tom Tromey
dff81d4f4c
re PR libgcj/27171 (UTF8 PrintWriter goes haywire)
...
PR libgcj/27171:
* testsuite/libjava.lang/pr27171.java: New file.
* testsuite/libjava.lang/pr27171.out: New file.
* gnu/gcj/convert/Output_UTF8.java (havePendingBytes): Return
true if we've seen a high surrogate.
(write): Handle high surrogates at the end of the stream.
Properly emit isolated low surrogates.
From-SVN: r113013
2006-04-17 21:41:47 +00:00
Bryce McKinlay
20cbfac4e9
SystemClassLoader.java (addClass): Get the value of package-private field "loadedClasses" using reflection.
...
* gnu/gcj/runtime/SystemClassLoader.java (addClass): Get the value
of package-private field "loadedClasses" using reflection.
* java/lang/VMCompiler.java (compileClass): Remove unreachable catch
block.
From-SVN: r112858
2006-04-11 17:23:00 +01:00
Archit Shah
917173f4d2
re PR libgcj/25414 (should update rmic)
...
2006-04-05 Archit Shah <ashah@redhat.com>
PR java/25414
* gnu/java/rmi/rmic/CompilerProcess.java (computeTypicalArguments):
Add classpath argument.
* gnu/java/rmi/rmic/Compile_gcj.java (computeArguments): Adjust
caller.
* gnu/java/rmi/rmic/Compile_jikes.java (computeArguments): Likewise.
* gnu/java/rmi/rmic/Compile_kjc.java (computeArguments): Likewise.
* gnu/java/rmi/rmic/Compiler.java (getClasspath, setClasspath): New.
* gnu/java/rmi/rmic/RMIC.java: Set classpath for compiler, call
mkdirs for destination directory, correct handling of superclasses
and interfaces of the remote class, correct handling of exceptions
declared by remote methods.
From-SVN: r112699
2006-04-05 09:53:08 +00:00
Tom Tromey
119afc377a
re PR classpath/26990 (SecurityManager.checkExit() problem)
...
PR libgcj/26990:
* prims.cc (_Jv_RunMain): Use exitNoChecksAccessor.
* gnu/java/lang/natMainThread.cc (call_main): Use
exitNoChecksAccessor.
* testsuite/libjava.lang/pr26990.out: New file.
* testsuite/libjava.lang/pr26990.java: New file.
* java/lang/Runtime.java (exitNoChecks): New method.
(exitNoChecksAccessor): Likewise.
(exit): Call exitNoChecks.
From-SVN: r112685
2006-04-04 23:25:09 +00:00
Mark Wielaard
8aa540d2f7
Imported GNU Classpath 0.90
...
Imported GNU Classpath 0.90
* scripts/makemake.tcl: Set gnu/java/awt/peer/swing to ignore.
* gnu/classpath/jdwp/VMFrame.java (SIZE): New constant.
* java/lang/VMCompiler.java: Use gnu.java.security.hash.MD5.
* java/lang/Math.java: New override file.
* java/lang/Character.java: Merged from Classpath.
(start, end): Now 'int's.
(canonicalName): New field.
(CANONICAL_NAME, NO_SPACES_NAME, CONSTANT_NAME): New constants.
(UnicodeBlock): Added argument.
(of): New overload.
(forName): New method.
Updated unicode blocks.
(sets): Updated.
* sources.am: Regenerated.
* Makefile.in: Likewise.
From-SVN: r111942
2006-03-10 21:46:48 +00:00
Scott Gilbertson
cbb5e20166
IntegerGraphicsState.java (getClip): Clone clip before returning, handle null clip.
...
2006-02-23 Scott Gilbertson <scottg@mantatest.com>
* gnu/awt/j2d/IntegerGraphicsState.java (getClip): Clone clip
before returning, handle null clip.
(getClipBounds): Handle null clip.
* gnu/awt/j2d/Graphics2DImpl.java (clipRect): Handle null clip.
* gnu/awt/xlib/XCanvasPeer.java ():
(getLocationOnScreen): Implement.
* classpath/gnu/java/awt/peer/GLightweightPeer.java
(repaint): Merged with Classpath.
* classpath/java/awt/Graphics.java (hitClip): Merged with
Classpath.
From-SVN: r111395
2006-02-23 20:50:49 +00:00
Andrew Haley
24ca2a963a
stacktrace.cc (GetStackTraceElements): Call gnu::gcj::runtime::NameFinder::removeUnknown() to determine if...
...
2006-02-16 Andrew Haley <aph@redhat.com>
* stacktrace.cc (GetStackTraceElements): Call
gnu::gcj::runtime::NameFinder::removeUnknown() to determine if
non-Java frames should be removed from a printed stack trace.
Pass methodName to getLineNumberForFrame().
(getLineNumberForFrame): Set method_name from info.dli_sname.
* gnu/gcj/runtime/NameFinder.java (removeUnknown): New method.
(remove_unknown): New variable.
* include/java-stack.h (_Jv_StackTrace::getLineNumberForFrame):
Add methodName arg.
From-SVN: r111181
2006-02-17 13:01:40 +00:00
Bryce McKinlay
1349c68851
re PR libgcj/25187 (dereferencing type-punned pointer warnings while 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-09 01:35:33 +00:00
Bryce McKinlay
2cf94e58cb
link.cc (_Jv_Linker::print_class_loaded): Declare string constants as "const 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-08 20:38:13 +00:00
Tom Tromey
003fe0b3e3
gij.cc (version): Use 2006.
...
* 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-07 00:59:27 +00:00
Tom Tromey
c460314601
MessagesBundle_fr.properties: Removed.
...
* gnu/regexp/MessagesBundle_fr.properties: Removed.
* gnu/regexp/MessagesBundle.properties: Removed.
From-SVN: r109678
2006-01-13 22:46:03 +00:00
Tom Tromey
8479d5f123
[multiple changes]
...
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-06 18:57:36 +00:00
Tom Tromey
1058a848dc
natThread.cc (finish_): Don't clear 'group'.
...
* 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-06 01:03:45 +00:00
Tom Tromey
2fb1388876
Class.h (_Jv_CopyClassesToSystemLoader): Updated.
...
* 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-04 17:59:40 +00:00
David Daney
8ceb88d4cd
PR libgcj/9715, PR libgcj/19132:
...
* 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
2006-01-03 22:58:31 +00:00
Anthony Green
b21606a6c0
natPlainSocketImplWin32.cc (connect): Same as previous patch, but for win32.
...
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-28 18:47:18 +00:00
Anthony Green
44fae9caae
natPlainSocketImplPosix.cc (connect): Record address and port before 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 18:29:10 +00:00
Anthony Green
57b3c68ec5
natPlainDatagramSocketImplPosix.cc (getLocalAddress): New helper function.
...
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-19 02:54:19 +00:00
Andrew Haley
4f9a6d459f
CompilerProcess.java: Use a new thread to handle stdout from the child process.
...
2005-12-14 Andrew Haley <aph@redhat.com>
* gnu/java/rmi/rmic/CompilerProcess.java: Use a new thread to
handle stdout from the child process.
From-SVN: r108536
2005-12-14 20:26:30 +00:00
Mark Wielaard
ec4b5d4827
standard.omit.in: Remove javax/rmi, org/omg, gnu/CORBA and gnu/javax/rmi.
...
* standard.omit.in: Remove javax/rmi, org/omg, gnu/CORBA and
gnu/javax/rmi.
* scripts/makemake.tcl: Set javax/rmi, org/omg, gnu/CORBA and
gnu/javax/rmi to bc.
* gnu/CORBA/ObjectCreator.java: New override file for missing
VMStackWalker issue.
* gnu/CORBA/DynAn/gnuDynValue.java: New override file for bug #24938
* gnu/CORBA/DynAn/RecordAny.java: Likewise
* sources.am: Regenerated.
* Makefile.in: Regenerated
From-SVN: r107522
2005-11-25 22:30:53 +00:00
Mark Wielaard
ca9e049bc1
Imported GNU Classpath gcj-import-20051117.
...
* gnu/java/net/protocol/file/Connection.java: Removed, fully merged.
* sources.am: Regenerated.
* Makefile.in: Likewise.
From-SVN: r107153
2005-11-18 00:59:33 +00:00
Mark Wielaard
f4e1433a02
[multiple changes]
...
2005-11-17 Mark Wielaard <mark@klomp.org>
* gnu/java/net/protocol/file/Handler.java: Removed, fully merged now.
* java/net/ServerSocket.java: Likewise.
* sources.am: Regenerated.
* Makefile.in: Regenerated.
2005-11-17 Mark Wielaard <mark@klomp.org>
Fixes bug #24006
* java/net/ServerSocket.java (implAccept): Set Socket.bound to true.
2005-11-17 Tom Tromey <tromey@redhat.com>
* java/net/ServerSocket.java (accept): Use correct security manager
call.
2005-11-17 Jeroen Frijters <jeroen@frijters.net>
* java/net/ServerSocket.java
(bound): Removed.
(local): New field.
(bind): Cache local socket address.
(getInetAddress, getLocalPort, getLocalSocketAddress, isBound):
Use cached local socket address.
(close): bound field was removed.
2005-11-17 Tom Tromey <tromey@redhat.com>
* java/net/URLConnection.java (setDoInput): Javadoc fix.
(setDoOutput): Likewise.
(setContentHandlerFactory): Likewise.
(setFileNameMap): Likewise.
2005-11-17 Mark Wielaard <mark@klomp.org>
* java/net/URLClassloader.java (addURLs): Add comment about jboss.
2005-11-17 Mark Wielaard <mark@klomp.org>
* java/net/URLClassLoader.java (addURLs): Don't call addURL(), but
call urls.add() and addURLImpl() directly on each URL.
2005-11-17 Tom Tromey <tromey@redhat.com>
* java/net/URLClassLoader.java (definePackage): Javadoc fixes.
2005-11-17 Jeroen Frijters <jeroen@frijters.net>
* java/net/URLClassLoader.java
(Resource.name): Removed field.
(JarURLResource.name): Added field.
(FileResource.getURL): Use File.toURL() instead of doing it in
a way that breaks on Windows.
2005-11-17 Roman Kennke <roman@kennke.org>
Reported by: Ingo Proetel <proetel@aicas.com>
* java/net/URLClassLoader.java
(findClass): Added null check to avoid NullPointerException.
2005-11-17 David Gilbert <david.gilbert@object-refinery.com>
* java/net/URLClassLoader.java: reordered some API doc comments to
suppress Eclipse warnings, and fixed API doc link.
2005-11-17 Tom Tromey <tromey@redhat.com>
* java/net/URLClassLoader.java (URLClassLoader): Removed
unused constructor.
2005-11-17 Jeroen Frijters <jeroen@frijters.net>
* java/net/URLClassLoader (findClass): Close InputStream after we're
done with it.
From-SVN: r107133
2005-11-17 20:38:40 +00:00
Scott Gilbertson
02e549bfaa
Index: libjava/ChangeLog
...
from Scott Gilbertson <scottg@mantatest.com>
* Makefile.in: Re-generated.
* gnu/awt/xlib/XGraphicsDevice.java: New file.
* gnu/awt/xlib/XToolkit.java
(getLocalGraphicsEnvironment): Implemented.
* gnu/awt/xlib/XGraphicsEnvironment.java: New file.
* sources.am: Re-generated.
From-SVN: r107045
2005-11-15 21:56:11 +00:00
David Daney
5e6ff6bda3
re PR libgcj/15430 (Cannot interrupt blocking I/O calls with close())
...
PR libgcj/15430
* gnu/java/net/natPlainSocketImplPosix.cc (throw_on_sock_closed): New
function.
(accept): Call it.
(close): Call shutdown before closing.
(read()): Call read_helper with proper parameters.
(read(buffer, int, int)): Likewise.
(read_helper): Pass pointer to the PlainSocketImpl, remove native_fd
and timeout parameters. Make prototype to match. Use
pointer to PlainSocketImpl to access members. Call throw_on_sock_closed
in two places.
From-SVN: r107036
2005-11-15 19:11:53 +00:00
Mohan Embar
99b8b611f5
natPlainSocketImplWin32.cc: Updated copyright.
...
* gnu/java/net/natPlainSocketImplWin32.cc: Updated copyright.
(read): Handle count == 0 case.
Co-Authored-By: David Daney <ddaney@avtrex.com>
From-SVN: r106894
2005-11-14 17:15:18 +00:00
Tom Tromey
246b053811
re PR libgcj/24587 (libgcj should set gnu.classpath.version system property)
...
PR libgcj/24587:
* gnu/classpath/SystemProperties.java: Set gnu.classpath.version.
From-SVN: r106659
2005-11-08 21:58:43 +00:00
Tom Tromey
1b38125a35
PR libgcj/14358, libgcj/24552:
...
* gnu/gcj/convert/IOConverter.java: Regenerate aliases. Add
aliases for 'euc_jp' and 'eucjp'.
* scripts/encodings.pl: Recognize 'none', not 'NONE'. Include
canonical names in output.
(%map): Added UnicodeLittle and UnicodeBig.
From-SVN: r106490
2005-11-04 15:08:18 +00:00