OSDN Git Service

2007-03-19 Andrew Haley <aph@redhat.com>
[pf3gnuchains/gcc-fork.git] / libjava / ChangeLog
1 2007-03-20  Andrew Haley  <aph@redhat.com>
2
3         * testsuite/libjava.lang/PR31264.java: New test.
4
5 2007-03-14  Jakub Jelinek  <jakub@redhat.com>
6
7         * Makefile.am (AM_MAKEFLAGS): Pass through mandir.
8         * Makefile.in: Rebuilt.
9
10 2007-03-13  Keith Seitz  <keiths@redhat.com>
11
12         * include/java-interp.h (_Jv_InterpClass): Declare
13         friend function _Jv_GetInterpClassSourceFile.
14         * java/lang/Class.h (Class): Likewise.
15         * java/lang/natClass.cc (_Jv_GetInterpClassSourceFile):
16         New function.
17         * gnu/classpath/jdwp/natVMVirtualMachine.cc
18         (getSourceFile): Implement.
19
20 2007-03-13  Thomas Fitzsimmons  <fitzsim@redhat.com>
21
22         * Makefile.am (AM_CXXFLAGS): Define ECJ_JAR_FILE.
23         * classpath/configure.ac: Add --with-ecj-jar configure option.
24         * classpath/gnu/classpath/Configuration.java.in (ECJ_JAR): New
25         field.
26         * classpath/INSTALL: Document --with-ecj-jar configure option and
27         ecj jar requirement for com.sun.tools.javac support.
28         * classpath/tools/Makefile.am: Build decendents of com and sun
29         directories.
30         * configure.ac: Substitute ECJ_JAR in stub Configuration.java.
31         * gnu/classpath/Configuration.java,
32         gnu/classpath/natConfiguration.cc (ecj): New method.
33         (ECJ_JAR): New field.
34         * scripts/makemake.tcl (scan_packages): Add com directory.
35         * sources.am (property_files): Add
36         classpath/resource/sun/rmi/rmic/messages.properties and
37         classpath/resource/com/sun/tools/javac/messages.properties.
38         * classpath/resource/com, classpath/resource/com/sun,
39         classpath/resource/com/sun/tools,
40         classpath/resource/com/sun/tools/javac, classpath/resource/sun,
41         classpath/resource/sun/rmi, classpath/resource/sun/rmi/rmic,
42         classpath/tools/classes/com, classpath/tools/classes/com/sun,
43         classpath/tools/classes/com/sun/javadoc,
44         classpath/tools/classes/com/sun/tools,
45         classpath/tools/classes/com/sun/tools/doclets,
46         classpath/tools/classes/sun, classpath/tools/classes/sun/rmi,
47         classpath/tools/classes/sun/rmi/rmic, classpath/tools/com,
48         classpath/tools/com/sun, classpath/tools/com/sun/javadoc,
49         classpath/tools/com/sun/tools,
50         classpath/tools/com/sun/tools/doclets,
51         classpath/tools/com/sun/tools/javac, classpath/tools/sun,
52         classpath/tools/sun/rmi, classpath/tools/sun/rmi/rmic: New
53         directories.
54         * classpath/resource/com/sun/tools/javac/messages.properties,
55         classpath/resource/sun/rmi/rmic/messages.properties,
56         classpath/tools/classes/com/sun/javadoc/ClassDoc.class,
57         classpath/tools/classes/com/sun/javadoc/ConstructorDoc.class,
58         classpath/tools/classes/com/sun/javadoc/Doc.class,
59         classpath/tools/classes/com/sun/javadoc/DocErrorReporter.class,
60         classpath/tools/classes/com/sun/javadoc/Doclet.class,
61         classpath/tools/classes/com/sun/javadoc/ExecutableMemberDoc.class,
62         classpath/tools/classes/com/sun/javadoc/FieldDoc.class,
63         classpath/tools/classes/com/sun/javadoc/MemberDoc.class,
64         classpath/tools/classes/com/sun/javadoc/MethodDoc.class,
65         classpath/tools/classes/com/sun/javadoc/PackageDoc.class,
66         classpath/tools/classes/com/sun/javadoc/ParamTag.class,
67         classpath/tools/classes/com/sun/javadoc/Parameter.class,
68         classpath/tools/classes/com/sun/javadoc/ProgramElementDoc.class,
69         classpath/tools/classes/com/sun/javadoc/RootDoc.class,
70         classpath/tools/classes/com/sun/javadoc/SeeTag.class,
71         classpath/tools/classes/com/sun/javadoc/SerialFieldTag.class,
72         classpath/tools/classes/com/sun/javadoc/SourcePosition.class,
73         classpath/tools/classes/com/sun/javadoc/Tag.class,
74         classpath/tools/classes/com/sun/javadoc/ThrowsTag.class,
75         classpath/tools/classes/com/sun/javadoc/Type.class,
76         classpath/tools/classes/com/sun/javadoc/TypeVariable.class,
77         classpath/tools/classes/com/sun/tools/doclets/Taglet.class,
78         classpath/tools/classes/sun/rmi/rmic/Main.class,
79         classpath/tools/classes/sun/rmi/rmic/Messages.class,
80         classpath/tools/com/sun/javadoc/ClassDoc.java,
81         classpath/tools/com/sun/javadoc/ConstructorDoc.java,
82         classpath/tools/com/sun/javadoc/Doc.java,
83         classpath/tools/com/sun/javadoc/DocErrorReporter.java,
84         classpath/tools/com/sun/javadoc/Doclet.java,
85         classpath/tools/com/sun/javadoc/ExecutableMemberDoc.java,
86         classpath/tools/com/sun/javadoc/FieldDoc.java,
87         classpath/tools/com/sun/javadoc/MemberDoc.java,
88         classpath/tools/com/sun/javadoc/MethodDoc.java,
89         classpath/tools/com/sun/javadoc/PackageDoc.java,
90         classpath/tools/com/sun/javadoc/ParamTag.java,
91         classpath/tools/com/sun/javadoc/Parameter.java,
92         classpath/tools/com/sun/javadoc/ProgramElementDoc.java,
93         classpath/tools/com/sun/javadoc/RootDoc.java,
94         classpath/tools/com/sun/javadoc/SeeTag.java,
95         classpath/tools/com/sun/javadoc/SerialFieldTag.java,
96         classpath/tools/com/sun/javadoc/SourcePosition.java,
97         classpath/tools/com/sun/javadoc/Tag.java,
98         classpath/tools/com/sun/javadoc/ThrowsTag.java,
99         classpath/tools/com/sun/javadoc/Type.java,
100         classpath/tools/com/sun/javadoc/TypeVariable.java,
101         classpath/tools/com/sun/tools/doclets/Taglet.java,
102         classpath/tools/com/sun/tools/javac/Main.java,
103         classpath/tools/com/sun/tools/javac/Messages.java,
104         classpath/tools/sun/rmi/rmic/Main.java,
105         classpath/tools/sun/rmi/rmic/Messages.java: New files.
106         * Makefile.in, classpath/Makefile.in, classpath/configure,
107         classpath/doc/Makefile.in, classpath/doc/api/Makefile.in,
108         classpath/examples/Makefile.in, classpath/external/Makefile.in,
109         classpath/external/jsr166/Makefile.in,
110         classpath/external/relaxngDatatype/Makefile.in,
111         classpath/external/sax/Makefile.in,
112         classpath/external/w3c_dom/Makefile.in,
113         classpath/include/Makefile.in, classpath/include/config.h.in,
114         classpath/lib/Makefile.in,
115         classpath/lib/gnu/classpath/Configuration.class,
116         classpath/native/Makefile.in, classpath/native/fdlibm/Makefile.in,
117         classpath/native/jawt/Makefile.in,
118         classpath/native/jni/Makefile.in,
119         classpath/native/jni/classpath/Makefile.in,
120         classpath/native/jni/gconf-peer/Makefile.in,
121         classpath/native/jni/gtk-peer/Makefile.in,
122         classpath/native/jni/java-io/Makefile.in,
123         classpath/native/jni/java-lang/Makefile.in,
124         classpath/native/jni/java-net/Makefile.in,
125         classpath/native/jni/java-nio/Makefile.in,
126         classpath/native/jni/java-util/Makefile.in,
127         classpath/native/jni/midi-alsa/Makefile.in,
128         classpath/native/jni/midi-dssi/Makefile.in,
129         classpath/native/jni/native-lib/Makefile.in,
130         classpath/native/jni/qt-peer/Makefile.in,
131         classpath/native/jni/xmlj/Makefile.in,
132         classpath/native/plugin/Makefile.in,
133         classpath/resource/Makefile.in, classpath/scripts/Makefile.in,
134         classpath/tools/Makefile.in, configure,
135         gnu/classpath/Configuration.h: Regenerate.
136
137 2007-03-12  Kyle Galloway  <kgallowa@redhat.com>
138
139         * jvmti.cc (_Jv_JVMTI_GetArgumentsSize): Make wide type arrays count
140         as a sigle slot.
141
142 2007-03-12  Marco Trudel  <mtrudel@gmx.ch>
143
144         * java/lang/natString.cc (getBytes (jstring enc)):
145         Fixed the loop for multiple cycles, Code cleanup
146
147 2007-03-09  Tom Tromey  <tromey@redhat.com>
148
149         * sources.am, Makefile.in: Rebuilt.
150         * scripts/makemake.tcl (scan_directory): Allow service files to be
151         omitted.
152         Omit all XML-related service files.
153
154 2007-03-07  Tom Tromey  <tromey@redhat.com>
155
156         * configure: Rebuilt.
157         * configure.ac: Clear vm-tools-packages.
158
159 2007-03-07  Mohan Embar  <gnustuff@thisiscool.com>
160
161         * java/lang/Win32Process.java: Added nested class EOFInputStream.
162         * java/lang/natWin32Process.cc (ChildProcessPipe): Added DUMMY
163         enum and implementation.
164         (startProcess): Use redirect flag.
165         * classpath/lib/java/lang/Win32Process.class: Regenerated.
166         * classpath/lib/java/lang/Win32Process$EOFInputStream.class: New.
167         * gcj/javaprims.h: Regenerated.
168         * java/lang/Win32Process$EOFInputStream.h: New.
169
170 2007-03-07  Andrew Haley  <aph@redhat.com>
171
172         * libgcj_bc.c (JvRunMainName): Declare.
173
174 2007-03-07  Gary Benson  <gbenson@redhat.com>
175
176         * sources.am, Makefile.in: Rebuilt.
177
178 2007-03-07  Mohan Embar  <gnustuff@thisiscool.com>
179
180         * gcj/javaprims.h: Regenerated.
181
182 2007-03-07  Alexandre Oliva  <aoliva@redhat.com>
183
184         * include/jvm.h (_Jv_ClosureListFinalizer): New.
185         (_Jv_Linker::create_error_method): Adjust.
186         * boehm.cc (_Jv_ClosureListFinalizer): New.
187         * nogc.cc (_Jv_ClosureListFinalizer): New.
188         * java/lang/Class.h (class _Jv_ClosureList): New.
189         (class java::lang::Class): Declare it as friend.
190         * java/lang/natClass.cc (_Jv_ClosureList::releaseClosures): New.
191         (_Jv_ClosureList::registerClousure): New.
192         * include/execution.h (_Jv_ExecutionEngine): Add get_closure_list.
193         (_Jv_CompiledEngine::do_get_closure_list): New.
194         (_Jv_CompiledEngine::_Jv_CompiledEngine): Use it.
195         (_Jv_IndirectCompiledClass): Add closures.
196         (_Jv_IndirectCompiledEngine::get_aux_info): New.
197         (_Jv_IndirectCompiledEngine::do_allocate_field_initializers): Use
198         it.
199         (_Jv_IndirectCompiledEngine::do_get_closure_list): New.
200         (_Jv_IndirectCompiledEngine::_Jv_IndirectCompiledEngine): Use it.
201         (_Jv_InterpreterEngine::do_get_closure_list): Declare.
202         (_Jv_InterpreterEngine::_Jv_InterpreterEngine): Use it.
203         * interpret.cc (FFI_PREP_RAW_CLOSURE): Use _loc variants.
204         (node_closure): Add closure list.
205         (_Jv_InterpMethod::ncode): Add jclass argument.  Use
206         ffi_closure_alloc and the separate code pointer.  Register the
207         closure for finalization.
208         (_Jv_JNIMethod::ncode): Likewise.
209         (_Jv_InterpreterEngine::do_create_ncode): Pass klass to ncode.
210         (_Jv_InterpreterEngine::do_get_closure_list): New.
211         * include/java-interp.h (_Jv_InterpMethod::ncode): Adjust.
212         (_Jv_InterpClass): Add closures field.
213         (_Jv_JNIMethod::ncode): Adjust.
214         * defineclass.cc (_Jv_ClassReader::handleCodeAttribute): Adjust.
215         (_Jv_ClassReader::handleMethodsEnd): Likewise.
216         * link.cc (struct method_closure): Add closure list.
217         (_Jv_Linker::create_error_method): Add jclass argument.  Use
218         ffi_closure_alloc and the separate code pointer.  Register the
219         closure for finalization.
220         (_Jv_Linker::link_symbol_table): Remove outdated comment about
221         sharing of otable and atable.  Adjust.
222         * java/lang/reflect/natVMProxy.cc (ncode_closure): Add closure
223         list.
224         (ncode): Add jclass argument.  Use ffi_closure_alloc and the
225         separate code pointer.  Register the closure for finalization.
226         (java::lang::reflect::VMProxy::generateProxyClass): Adjust.
227         * testsuite/libjava.jar/TestClosureGC.java: New.
228         * testsuite/libjava.jar/TestClosureGC.out: New.
229         * testsuite/libjava.jar/TestClosureGC.xfail: New.
230         * testsuite/libjava.jar/TestClosureGC.jar: New.
231
232 2007-03-06  Kyle Galloway  <kgallowa@redhat.com>
233
234         * classpath/gnu/classpath/jdwp/exception/AbsentInformationException.java: New file.
235         * classpath/lib/gnu/classpath/jdwp/exception/AbsentInformationException.class: Ditto.
236         * gnu/classpath/jdwp/exception/AbsentInformationException.h: Ditto.
237         * gnu/classpath/jdwp/natVMMethod.cc: Add CHECK_INTERP_CLASS macro.
238         (VMMethod::getLineTable): Use new macro.
239         (VMMethod::getVariableTable): Implement.
240         * sources.am: Regenerated.
241         * Makefile.in: Ditto.
242
243 2007-03-06  Tom Tromey  <tromey@redhat.com>
244
245         * Makefile.in: Rebuilt.
246         * Makefile.am (bin_PROGRAMS): Added gcjh.
247         (gcjh_SOURCES, gcjh_LDFLAGS, gcjh_LINK, gcjh_LDADD,
248         gcjh_DEPENDENCIES): New variables.
249
250 2007-03-06  Kyle Galloway  <kgallowa@redhat.com>
251
252         * jvmti.cc(_Jv_JVMTI_GetLocalVariableTable): Fix _Jv_Malloc parameters.
253         * testsuite/libjava.jvmti/interp/natgetlocalvartable.cc
254         (do_getlocalvartable_tests): Add Deallocate calls to free strings.
255
256 2007-03-05  Matthias Klose  <doko@debian.org>
257
258         * Makefile.am (gij_LDFLAGS): Use dbexecdir.
259         * Makefile.in: Regnerate.
260
261 2007-03-05  Mark Wielaard  <mark@klomp.org>
262
263         * java/lang/Character.java: Re-merged with Classpath.
264         * java/lang/natString.cc (nativeCompareTo): Renamed from
265         compareTo.
266         * java/lang/StringBuilder.java: Re-merged with Classpath.
267         * java/lang/String.java: Re-merged with Classpath.
268         (nativeCompareTo): Renamed from compareTo.
269         * java/lang/StringBuffer.java: Re-merged with Classpath.
270         * jni.cc (_Jv_JNI_GetAnyMethodID): Split calls to append.
271
272 2007-03-05  Andrew Haley  <aph@redhat.com>
273
274         * java/lang/reflect/natVMProxy.cc (ncode_closure.meth): Delete.
275         (generateProxyClass): Don't pass method to ncode.
276         (run_proxy): Call _Jv_GetReflectedMethod to find the proxy method.
277         * java/lang/reflect/Method.h: Rebuild.
278         * java/lang/reflect/Method.java (internalGetParameterTypes,
279         internalGetExceptionTypes): New methods.
280         * headers.txt (class java/lang/reflect/Method): Declare
281         _Jv_GetReflectedMethod.  Be its friend.
282         * java/lang/natClass.cc (_Jv_GetReflectedMethod): New method.
283         * java/lang/Class.h: Declare it.  Be its friend.
284
285 2007-03-05  Tom Tromey  <tromey@redhat.com>
286
287         * sources.am, Makefile.in: Rebuilt.
288         * scripts/makemake.tcl (emit_package_rule): Don't omit
289         VMProcess.java.
290         * Makefile.am (nat_source_files): Added natVMProcess.cc.
291         (inner_nat_headers): Added ImmediateEOFInputStream.h.
292         * gcj/javaprims.h: Regenerated.
293         * java/lang/System.java (EnvironmentMap): Now package-private.
294         (EnvironmentMap(Map)): New constructor.
295         (EnvironmentMap.put): New method.
296         * java/lang/natWin32Process.cc (startProcess): Update.
297         * java/lang/Win32Process.java (Win32Process): Added 'redirect'
298         argument.
299         (startProcess): Likewise.
300         * java/lang/EcosProcess.java (EcosProcess): Added 'redirect'
301         argument.
302         * java/lang/natPosixProcess.cc (nativeSpawn): Handle redirection.
303         * java/lang/PosixProcess.java (redirect): New field.
304         (PosixProcess): Added 'redirect' argument.
305         * java/lang/natRuntime.cc (execInternal): Added 'redirect'
306         argument to Process creation.
307         * java/lang/natVMProcess.cc: New file.
308         * java/lang/ProcessBuilder.java: Removed.
309         * java/lang/VMProcess.java: New file.
310
311 2007-03-03  Andrew Haley  <aph@redhat.com>
312
313         * java/lang/natClass.cc (parseAnnotationElement): Correct long
314         annotations to read JV_CONSTANT_Long, not JV_CONSTANT_Double.
315
316 2007-03-02  Andrew Haley  <aph@redhat.com>
317
318         * sun/reflect/annotation/AnnotationInvocationHandler.java:
319         Generify in a few places.
320         (equals): Rewrite to use invoke on local proxy.
321         (deepToString): Remove most of it.
322         (toString): Make nonstatic.
323         (arrayClone): Delete.
324         (coerce): New method.
325         (invoke): Rewrite to handle gcj's structures correctly.
326         * java/lang/natClass.cc (getDeclaredAnnotations): Fix test for
327         null loader.
328         * sources.am: Regenerate.
329         * Makefile.am: Likewise.        
330
331 2007-03-02  Andrew Haley  <aph@redhat.com>
332
333         * sun/reflect/annotation/AnnotationInvocationHandler.java:
334         Whitespace only changes.
335
336 2007-03-02  Andrew Haley  <aph@redhat.com>
337
338         * sun/reflect/annotation/AnnotationInvocationHandler.java: Moved
339         from Classpath to libgcj local.
340
341 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
342
343         * Makefile.am: Add dummy install-pdf target.
344         * Makefile.in: Regenerate
345         * include/Makefile.in: Regenerate
346         * testsuite/Makefile.in: Regenerate
347         * gcj/Makefile.in: Regenerate
348
349 2007-02-23  Gary Benson  <gbenson@redhat.com>
350
351         * gnu/gcj/tools/gcj_dbtool/Main.java: Updated copyright year.
352
353 2007-02-23  Gary Benson  <gbenson@redhat.com>
354
355         * java/lang/VMCompiler.java
356         (compileClass): Don't lose zeros from within the digest.
357
358 2007-02-22  Jakub Jelinek  <jakub@redhat.com>
359
360         PR libgcj/17002
361         PR classpath/28550
362         * java/util/VMTimeZone.java (getDefaultTimeZoneId): To read
363         /etc/localtime, use ZoneInfo.readTZFile instead of
364         VMTimeZone.readtzFile.  Get better timezone name for /etc/localtime,
365         either if it is a symlink or through /etc/sysconfig/clock.
366         (readSysconfigClockFile): New static method.
367         (readtzFile): Removed.
368         * java/lang/System.java: Add gnu.java.util.zoneinfo.dir to comments.
369         * posix.cc (_Jv_platform_initProperties): Set
370         gnu.java.util.zoneinfo.dir.
371         * sources.am (gnu_java_util_source_files): Add
372         classpath/gnu/java/util/ZoneInfo.java.
373         * Makefile.in: Regenerated.
374         * java/util/VMTimeZone.h: Regenerated.
375         * java/util/TimeZone.h: Regenerated.
376         * gnu/java/util/ZoneInfo.h: Generated.
377
378 2007-02-22  Mohan Embar  <gnustuff@thisiscool.com>
379
380         * include/win32-threads.h: Added #undef OUT.
381
382 2007-02-21  Kyle Galloway  <kgallowa@redhat.com>
383
384         * jvmti.cc (_Jv_JVMTI_GetArgumentsSize): New function.
385         * testsuite/libjava.jvmti/interp/getargssize.java: New test.
386         * testsuite/libjava.jvmti/interp/getargssize.h: Ditto.
387         * testsuite/libjava.jvmti/interp/getargssize.jar: Ditto.
388         * testsuite/libjava.jvmti/interp/getargssize.out: Ditto.
389         * testsuite/libjava.jvmti/interp/natgetargssize.cc: Ditto.
390
391 2007-02-21  Gary Benson  <gbenson@redhat.com>
392
393         * java/util/GregorianCalendar.java: Removed.
394         * sources.am, Makefile.in: Rebuilt.
395
396 2007-02-20  Keith Seitz  <keiths@redhat.com>
397
398         * gnu/classpath/jdwp/natVMVirtualMachine.cc
399         (jdwpClassPrepareCB): Move class status stuff to ...
400         (getClassStatus): ... here.
401
402 2007-02-20  Gary Benson  <gbenson@redhat.com>
403
404         * gnu/awt/xlib/XEventLoop.h: Regenerated.
405         * gnu/java/awt/peer/gtk/GThreadMutex.h: Likewise.
406         * gnu/java/rmi/server/ConnectionRunnerPool$ConnectionRunner.h:
407         Likewise.
408         * gnu/java/rmi/server/UnicastConnectionManager.h: Likewise.
409         * java/lang/SecurityManager.h: Likewise.
410         * java/lang/Thread.h: Likewise.
411         * java/security/VMSecureRandom$Spinner.h: Likewise.
412         * java/util/concurrent/atomic/AtomicBoolean.h: Likewise.
413         * java/util/concurrent/atomic/AtomicInteger.h: Likewise.
414         * java/util/concurrent/atomic/AtomicLong.h: Likewise.
415         * java/util/concurrent/atomic/AtomicReference.h: Likewise.
416         * java/util/concurrent/ConcurrentHashMap$HashEntry.h: Likewise.
417         * java/util/concurrent/ConcurrentHashMap$Segment.h: Likewise.
418         * java/util/concurrent/ConcurrentLinkedQueue.h: Likewise.
419         * java/util/concurrent/ConcurrentLinkedQueue$Node.h: Likewise.
420         * java/util/concurrent/ConcurrentSkipListMap.h: Likewise.
421         * java/util/concurrent/ConcurrentSkipListMap$Index.h: Likewise.
422         * java/util/concurrent/ConcurrentSkipListMap$Node.h: Likewise.
423         * java/util/concurrent/Exchanger.h: Likewise.
424         * java/util/concurrent/Exchanger$Node.h: Likewise.
425         * java/util/concurrent/FutureTask$Sync.h: Likewise.
426         * java/util/concurrent/LinkedBlockingQueue$Node.h: Likewise.
427         * java/util/concurrent/locks/AbstractQueuedLongSynchronizer.h:
428         Likewise.
429         * java/util/concurrent/locks/AbstractQueuedLongSynchronizer$Node.h: 
430         Likewise.
431         * java/util/concurrent/locks/AbstractQueuedSynchronizer.h: Likewise.
432         * java/util/concurrent/locks/AbstractQueuedSynchronizer$Node.h:
433         Likewise.
434         * java/util/concurrent/ScheduledThreadPoolExecutor.h: Likewise.
435         * java/util/concurrent/SynchronousQueue.h: Likewise.
436         * java/util/concurrent/SynchronousQueue$TransferQueue.h: Likewise.
437         * java/util/concurrent/SynchronousQueue$TransferQueue$QNode.h:
438         Likewise.
439         * java/util/concurrent/SynchronousQueue$TransferStack.h: Likewise.
440         * java/util/concurrent/SynchronousQueue$TransferStack$SNode.h:
441         Likewise.
442         * java/util/concurrent/ThreadPoolExecutor.h: Likewise.
443         * java/util/concurrent/ThreadPoolExecutor$Worker.h: Likewise.
444         * java/util/logging/ErrorManager.h: Likewise.
445         * javax/swing/plaf/basic/BasicSpinnerUI$2.h: Likewise.
446         * javax/swing/plaf/basic/BasicSpinnerUI$4.h: Likewise.
447
448 2007-02-16  Keith Seitz  <keiths@redhat.com>
449
450         * gnu/classpath/jdwp/natVMVirtualMachine.cc
451         (get_line_table): New function.
452         (handle_single_step): New function.
453         (jdwpSingleStepCB): New function.
454         (jdwpVMInitCB): Define a JVMTI single step
455         callback, but don't enable it until needed.
456
457 2007-02-16  David Daney  <ddaney@avtrex.com>
458
459         * java/lang/Thread.java (Thread(ThreadGroup, Runnable, String)): Pass
460         new parameter constructor.
461         (Thread(ThreadGroup, Runnable, String, long)): Same.
462         (Thread(String, boolean)): New constructor.
463         (Thread(Thread, ThreadGroup, Runnable, String): Add parameter
464         noInheritableThreadLocal, don't call
465         InheritableThreadLocal.newChildThread if set.
466         * java/lang/PosixProcess.java(ProcessManager()): Set
467         noInheritableThreadLocal in super.
468         * java/lang/natThread.cc (_Jv_AttachCurrentThread): Pass new
469         parameter to Thread constructor.
470         (_Jv_AttachCurrentThreadAsDaemon): Same.
471         * java/lang/Thread.h: Regenerate.
472         * classpath/lib/java/lang/Thread.class: Same.
473         * classpath/lib/java/lang/PosixProcess$EOFInputStream.class: Same.
474         * classpath/lib/java/lang/PosixProcess.class: Same.
475         * classpath/lib/java/lang/Thread$State.class: Same.
476         * classpath/lib/java/lang/PosixProcess$ProcessManager.class: Same.
477
478 2007-02-16  Kyle Galloway  <kgallowa@redhat.com>
479
480         * interpret.cc: Add extra DEBUG_LOCALS_INSN calls for multi-slot
481         variables to maintain type info.
482         * interpret-run.cc: Add local variable info to frame in the debug
483         interpreter.
484         * jvmti.cc (getLocalFrame): New method.
485         (_Jv_JVMTI_GetLocalObject): New method.
486         (_Jv_JVMTI_GetLocallInt): New method.
487         (_Jv_JVMTI_GetLocalFloat): New method.
488         (_Jv_JVMTI_GetLocalLong): New method.
489         (_Jv_JVMTI_GetLocalDouble): New method.
490         (_Jv_JVMTI_SetLocalObject): New method.
491         (_Jv_JVMTI_SetLocalInt): New method.
492         (_Jv_JVMTI_SetLocalFloat): New method.
493         (_Jv_JVMTI_SetLocalLong): New method.
494         (_Jv_JVMTI_SetLocalDouble): New method.
495
496 2007-02-16  Gary Benson  <gbenson@redhat.com>
497
498         * gnu/gcj/tools/gcj_dbtool/Main.java
499         (bytesToString): Don't lose zeros from within the digest.
500
501 2007-02-15  Andrew Haley  <aph@redhat.com>
502
503         * Makefile.am (nat_source_files): Remove
504         java/lang/management/natVMManagementFactory.cc.
505         * java/lang/Thread.java (getStackTrace): Use reflection to call
506         the ManagementFactory.
507         * java/lang/management/VMManagementFactory.java: Remove native
508         methods.
509         * java/lang/management/natVMManagementFactory.cc: Deleted.
510         * sources.am: Regnerate.
511         * scripts/makemake.tcl: Add new "bcheaders" type.
512         Move java/lang/management and gnu/classpath/management to "bc".
513         Move gnu/java/lang/management to "bcheaders".
514         
515 2007-02-15  Kyle Galloway  <kgallowa@redhat.com>
516         
517         * interpret.cc (_Jv_InterpMethod::check_handler): New method.
518         * interpret-run.cc: Change the catch section to report exception
519         events and to use the new check_handler method.
520         * include/java-interp.h (_Jv_InterpMethod): Add check_handler.
521         * gnu/gcj/jvmti/ExceptionEvent.java: New file.
522         * gnu/gcj/jvmti/ExceptionEvent.h: New file.
523         * gnu/gcj/jvmti/natExceptionEvent.cc: New file.
524         * libjava/classpath/lib/gnu/gcj/jvmti/ExceptionEvent.class: New
525         file.
526         * sources.am: Added ExceptionEvent.java.
527         * Makefile.am: Added natExceptionEvent.cc
528         * Makefile.in: Regenerated.
529         * include/Makefile.in: Regenerated.
530         * gcj/Makefile.in: Regenerated.
531
532 2007-02-15  Johannes Schmidt  <jschmidt@avtrex.com>
533         David Daney  <ddaney@avtrex.com>
534
535         * configure.ac: Create vm-tools-packages file.  Add 
536         gnu/gcj/tools/gc_analyze to standard.omit and vm-tools-packages.
537         Check for /proc/self/maps.
538         * Makefile.am (bin_PROGRAMS): Added gc-analyze.
539         (gc_analyze_SOURCES): New.
540         (gc_analyze_LDFLAGS): New.
541         (gc_analyze_LINK): New.
542         (gc_analyze_LDADD): New.
543         (gc_analyze_DEPENDENCIES): New.
544         (nat_source_files): Add gnu/gcj/util/natGCInfo.cc.
545         * Makefile.in: Regenerated.
546         * configure: Regenerated.
547         * include/config.h.in: Regenerated.
548         * sources.am: Regenerated.
549         * scripts/makemake.tcl: Don't include gc-analyze classes in libgcj.
550         * gnu/gcj/tools/gc_analyze/SymbolLookup.java: New.
551         * gnu/gcj/tools/gc_analyze/ObjectMap.java: New.
552         * gnu/gcj/tools/gc_analyze/MemoryMap.java: New.
553         * gnu/gcj/tools/gc_analyze/SymbolTable.java: New.
554         * gnu/gcj/tools/gc_analyze/BlockMap.java: New.
555         * gnu/gcj/tools/gc_analyze/BytePtr.java: New.
556         * gnu/gcj/tools/gc_analyze/ItemList.java: New.
557         * gnu/gcj/tools/gc_analyze/ToolPrefix.java: New.
558         * gnu/gcj/tools/gc_analyze/MemoryAnalyze.java: New.
559         * gnu/gcj/util/GCInfo.java: New.
560         * gnu/gcj/util/GCInfo.h: New.
561         * gnu/gcj/util/natGCInfo.cc: New.
562         * gnu/gcj/util/UtilPermission.java: New.
563         * gnu/gcj/util/UtilPermission.h: New.
564         * classpath/tools/gnu/gcj/tools/gc_analyze/SymbolTable.class: New.
565         * classpath/tools/gnu/gcj/tools/gc_analyze/ObjectMap$ObjectItem.class: New.
566         * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryMap$RangeComparator.class: New.
567         * classpath/tools/gnu/gcj/tools/gc_analyze/BlockMap$PtrMarks.class: New.
568         * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryMap$Range.class: New.
569         * classpath/tools/gnu/gcj/tools/gc_analyze/BlockMap.class: New.
570         * classpath/tools/gnu/gcj/tools/gc_analyze/BytePtr.class: New.
571         * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$SubstringComparator.class: New.
572         * classpath/tools/gnu/gcj/tools/gc_analyze/ItemList.class: New.
573         * classpath/tools/gnu/gcj/tools/gc_analyze/ToolPrefix.class: New.
574         * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze.class: New.
575         * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$1$Info.class: New.
576         * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$1.class: New.
577         * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$2.class: New.
578         * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$3.class: New.
579         * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$4.class: New.
580         * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$OptionParser.class: New.
581         * classpath/tools/gnu/gcj/tools/gc_analyze/BlockMap$SizeKind.class: New.
582         * classpath/tools/gnu/gcj/tools/gc_analyze/SymbolLookup.class: New.
583         * classpath/tools/gnu/gcj/tools/gc_analyze/ObjectMap.class: New.
584         * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryMap.class: New.
585         * classpath/lib/gnu/gcj/util/GCInfo.class: New.
586         * classpath/lib/gnu/gcj/util/UtilPermission.class: New.
587
588 2007-02-15  David Daney  <ddaney@avtrex.com>
589
590         * gnu/java/net/PlainSocketImpl.h: Regenerate.
591         * gnu/classpath/jdwp/VMVirtualMachine.h: Same.
592         * gnu/classpath/jdwp/VMFrame.h: Same.
593         * java/net/Socket.h: Same.
594         * java/util/Collections$UnmodifiableMap$UnmodifiableEntrySet.h: Same.
595
596 2007-02-15  Kyle Galloway  <kgallowa@redhat.com>
597
598         * defineclass.cc (_Jv_ClassReader::read_one_code_attribute):
599         Added LocalVariableTable attribute handling.
600         (_Jv_ClassReader::pool_Utf8_to_char_arr): New method.
601         * jvmti.cc (_Jv_JVMTI_GetLocalVariableTable): New method.
602         * include/java-interp.h: Added local_var_table and 
603         local_var_table_len fields to _Jv_InterpMethod.
604         (_Jv_InterpMethod::get_local_var_table): New method.
605         * testsuite/libjava.jvmti/interp/getlocalvartable.java: New test.
606         * testsuite/libjava.jvmti/interp/getlocalvartable.jar: New test.
607         * testsuite/libjava.jvmti/interp/getlocalvartable.out: Output
608         for new test.
609         * testsuite/libjava.jvmti/interp/getlocalvartable.h: New test.
610         * testsuite/libjava.jvmti/interp/natgetlocalvartable.cc: New test.
611
612 2007-02-15  Kyle Galloway  <kgallowa@redhat.com>
613
614         * gnu/classpath/jdwp/natVMVirtualMachine (getFrames): Implement.
615
616 2007-02-13  Keith Seitz  <keiths@redhat.com>
617
618         * gnu/classpath/jdwp/natVMVirtualMachine.cc
619         (jdwpBreakpointCB): New function.
620         (jdwpVMInitCB): Define and enable the breakpoint
621         callback.
622
623 2007-02-13  Andrew Haley  <aph@redhat.com>
624
625         * testsuite/libjava.lang/Divide_2.out
626         * testsuite/libjava.lang/Divide_2.java: New test.
627
628 2007-02-12  Keith Seitz  <keiths@redhat.com>
629
630         * jvmti.cc (_Jv_JVMTI_GetStackTrace): Remove cast
631         from jthread to Thread *; it is no longer needed.
632         (_Jv_JVMTI_GetFrameCount): Likewise.
633         Fix small formatting typo.
634
635 2007-02-12  Tom Tromey  <tromey@redhat.com>
636
637         * sources.am, Makefile.in: Rebuilt.
638         * java/lang/Socket.java: Removed override.
639         * java/lang/DatagramSocket.java: Removed override.
640         * gnu/java/net/PlainSocketImpl.java (localSocketAddress): New
641         field.
642         (getLocalAddress): New method.
643         * gnu/java/net/PlainDatagramSocketImpl.java
644         (PlainDatagramSocketImpl): Throws IOException.
645         * gnu/java/net/natPlainSocketImplPosix.cc (write): Remove
646         'sizeof'.
647         (read): Likewise.
648
649 2007-02-09  Jakub Jelinek  <jakub@redhat.com>
650
651         * java/util/VMTimeZone.java: Rewrite to handle both the old
652         'TZif\0' format and the new one.
653         
654 2007-02-10  Andrew Haley  <aph@redhat.com>
655
656         PR java/30742
657         * gnu/classpath/natVMStackWalker.cc (GET_CALLING_CLASS): New.
658         (getCallingClass): Call GET_CALLING_CLASS.
659         (getCallingClassLoader): Likewise.
660
661 2007-02-10  Mohan Embar  <gnustuff@thisiscool.com>
662
663         * configure: Rebuilt.
664         * configure.ac (GCJH): Reverted second part of patch of 2006-12-20.
665
666 2007-02-10  Mohan Embar  <gnustuff@thisiscool.com>
667
668         * Makefile.in: Rebuilt.
669         * Makefile.am (BUILD_ECJ1): Unify the command for renaming ecjx to
670         the host's ecj1 executable.
671
672 2007-02-09  Richard Henderson  <rth@redhat.com>
673
674         * sysdep/alpha/locks.h (read_barrier): New.
675
676 2007-02-09  Keith Seitz  <keiths@redhat.com>
677
678         * gnu/classpath/jdwp/VMVirtualMachine.java
679         (_stepping_threads): New member.
680         * classpath/lib/gnu/classpath/jdwp/VMVirtualMachine.class:
681         Regenerated.
682         * gnu/classpath/jdwp/VMVirtualMachine.h:
683         Regenerated.
684         * gnu/claspath/jdwp/natVMVirtualMachine.cc
685         (get_request_step_filter): New function.
686         (DISABLE_EVENT): New macro.
687         (initialize): Initialize _stepping_threads.
688         (registerEvent): Implement EVENT_SINGLE_STEP.
689         (unregisterEvent): Likewise.
690
691 2007-02-08  Keith Seitz  <keiths@redhat.com>
692
693         * sources.am: Regenerate.
694         * Makefile.in: Regenerate.
695         * testsuite/Makefile.in: Regenerate.
696         * gcj/Makefile.in: Regenerate.
697         * include/Makefile.in: Regenerate.
698
699         * classpath/lib/javax/management/MBeanServerFactory.class:
700         Regenerate.
701
702 2007-02-08  Kyle Galloway  <kgallowa@redhat.com>
703
704         * classpath/gnu/classpath/jdwp/processor/
705         StackFrameCommandSet.java (executeGetValues): Pass jlong instead
706         of ByteBuffer.
707         (executeSetValues): Ditto.
708         (executeThisObject): Ditto.
709         * classpath/gnu/classpath/jdwp/processor/
710         StackFrameCommandSet.class: Rebuilt.
711         * classpath/lib/gnu/classpath/jdwp/VMVirtualMachine.class:
712         Rebuilt.
713         * classpath/lib/gnu/classpath/jdwp/VMFrame.class: Rebuilt.
714         * classpath/lib/gnu/classpath/jdwp/exception/
715         InvalidFrameException.java: New file.
716         * gnu/classpath/jdwp/VMFrame.java: Added field for thread of
717         frame.
718         (Constructor): New method.
719         * gnu/classpath/jdwp/VMFrame.h: Regenerated.
720         * gnu/classpath/jdwp/VMVirtualMachine.java
721         (getFrame): Changed ByteBuffer to jlong.
722         * gnu/classpath/jdwp/natVMVirtualMachine.cc
723         (getFrame): Implement.
724         * gnu/classpath/jdwp/VMVirtualMachine.h: Regenerated.
725
726 2007-02-08  Kyle Galloway  <kgallowa@redhat.com>
727
728         * include/java-interp.h (_Jv_InterpFrame): obj_ptr field added
729         to hold "this" pointer for frame.
730         (_Jv_InterpFrame::get_this_ptr): New method.
731         * interpret-run.cc: Copy the "this" pointer into obj_ptr.
732
733 2007-02-07  Keith Seitz  <keiths@redhat.com>
734
735         * include/java-interp.h (_Jv_Frame::depth):
736         New function.
737         * jvmti.cc (_Jv_JVMTI_GetFrameCount): Use _Jv_Frame::depth.
738
739 2007-02-07  Kyle Galloway  <kgallowa@redhat.com>
740
741         * jvmti.cc (CHECK_FOR_NATIVE_METHOD): New macro.
742         (_Jv_JVMTI_GetMaxLocals): New method.
743         * include/java-interp.h
744         (_Jv_InterpMethod::get_max_locals): New method.
745
746 2007-02-01 Marco Trudel <mtrudel@gmx.ch>
747
748         * jni.cc (_Jv_JNI_DeleteWeakGlobalRef): Check for NULL objects.
749
750 2007-02-07  Tom Tromey  <tromey@redhat.com>
751
752         * testsuite/libjava.jni/init.c: New file.
753         * testsuite/libjava.jni/init.java: New file.
754         * testsuite/libjava.jni/init.out: New file.
755         * testsuite/libjava.jni/init.jar: New file.
756         * testsuite/libjava.jni/init.h: New file.
757         * testsuite/libjava.jni/init$NativeClass.h: New file.
758
759 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
760
761         PR libgomp/28468
762         * configure: Regenerate.
763
764 2007-02-06  Andrew Haley  <aph@redhat.com>
765
766         * scripts/makemake.tcl (emit_bc_rule): Set the source filename.
767         * sources.am: Rebuild.
768
769 2007-02-05  Keith Seitz  <keiths@redhat.com>
770
771         * jvmti.cc (_envListLock): Change type to
772         ReentrantReadWriteLock.
773         (_Jv_JVMTI_DisposeEnvironment): Switch to read/write
774         lock.
775         (check_enabled_event): Likewise.
776         (_Jv_GetJVMTIEnv): Likewise.
777         (_Jv_JVMTI_Init): Likewise.
778         (_Jv_JVMTI_PostEvent): Likewise. 
779
780 2007-02-05  Keith Seitz  <keiths@redhat.com>
781
782         * gnu/classpath/jdwp/natVMVirtualMachine.cc
783         (registerEvent): Implement EVENT_BREAKPOINT.
784         (unregisterEvent): Likewise.
785         (get_request_location): New function.
786
787 2007-02-05  Matthias Klose  <doko@debian.org>
788
789         testsuite/Makefile.am (compile-tests): Fix typo.
790         testsuite/Makefile.in: Regenerate.
791
792 2007-02-02  Kyle Galloway  <kgallowa@redhat.com>
793
794         * gnu/classpath/jdwp/natVMVirtualMachine.cc (getFrameCount):
795         Implment.
796
797 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
798
799         * configure.ac (libjava_cv_anon_version_script): New test.
800         (ANONVERSCRIPT): New AM_CONDITIONAL.
801         * configure: Rebuilt.
802         * Makefile.am (extra_ldflags_libjava): Link with -Wl,--version-script
803         if ANONVERSCRIPT.
804         * Makefile.in: Rebuilt.
805         (libgcj_la_DEPENDENCIES): Depend on libgcj.ver.
806         * libgcj.ver: New file.
807
808 2007-02-01  David Daney  <ddaney@avtrex.com>
809
810         * scripts/makemake.tcl: Replace gnu/xml build with build of all
811         its subpackages.
812         * sources.am: Regenerate.
813         * Makefile.in: Regenerate.
814
815 2007-02-01  Tom Tromey  <tromey@redhat.com>
816
817         * java/lang/ClassLoader.java (getResources): No longer final.
818
819 2007-02-01  Tom Tromey  <tromey@redhat.com>
820
821         * java/util/logging/LogManager.java (loggers): Genericized.
822         (addLogger): Merged.
823         (findAncestor): Likewise.
824         (getLogger): Likewise.
825         (getLoggerNames): Genericized.
826         (reset): Merged.
827         (getLevelProperty): Likewise.
828         * java/lang/reflect/Method.java (getDeclaringClass): Genericized.
829         * java/lang/reflect/Constructor.java (getParameterTypes):
830         Genericized.
831         (getExceptionTypes): Likewise.
832         (newInstance): Likewise.
833         * java/lang/reflect/Array.java (newInstance): Genericized.
834         * java/lang/Object.java (getClass): Genericized.
835         * java/nio/charset/spi/CharsetProvider.java (charsets):
836         Genericized.
837         * java/text/Collator.java: Implement Comparable<Object>.
838
839 2007-02-01  Tom Tromey  <tromey@redhat.com>
840
841         * java/util/Calendar.java: Implement Comparable<Calendar>.  Update
842         comments.
843         (clear): Call complete.
844         (setTimeZone): Call computeTime, computeFields.
845         (compareTo): New method.
846         * java/nio/charset/Charset.java: Implement Comparable<Charset>.
847         (availableCharsets): Genericized.
848         (aliases): Likewise.
849         (compareTo): Changed argument type.
850         * java/lang/ClassLoader.java (loadClass): Genericized.
851         (findClass): Likewise.
852         (defineClass): Likewise.
853         (resolveClass): Likewise.
854         (findSystemClass): Likewise.
855         (setSigners): Likewise.
856         (findLoadedClass): Likewise.
857         (getResources): Likewise.
858         (findResources): Likewise.
859         (getSystemResources): Likewise.
860         (checkInitialized): New method.
861         * java/lang/Class.java (getCanonicalName): New method.
862
863 2007-01-31  Keith Seitz  <keiths@redhat.com>
864
865         * include/jvmti-int.h (JVMTI): Declare member "enabled".
866         * jvmti.cc (JVMTI): Add member "enabled".
867         (_Jv_GetJVMTIEnv): Mark JVMTI enabled.
868         * interpret.cc (_Jv_InterpMethod::ncode): Use JVMTI::enabled
869         instead of gnu::classpath::jdwp::Jdwp::isDebugging.
870         (_Jv_CompileMethod): If JVMTI is enabled, use run_debug
871         instead of run to compile the method.
872
873         * interpret-run.cc [DEBUG] (NEXT_INSN): Add JVMTI single step
874         notification.
875
876 2007-01-31  Andreas Tobler  <a.tobler@schweiz.org>
877
878         * testsuite/libjava.jvmti/jvmti-interp.exp (gij_jvmti_test_one): Add
879         -shared-libgcc to the cxxflaglist for Darwin.
880
881 2007-01-31  Tom Tromey  <tromey@redhat.com>
882
883         * scripts.am, Makefile.in: Rebuilt.
884         * scripts/makemake.tcl (gnu/javax/swing/text/html/parser): Build
885         as 'ordinary'.
886         (emit_ordinary_rule): New proc.
887
888 2007-01-31  Keith Seitz  <keiths@redhat.com>
889
890         * testsuite/libjava.jvmti/getmethodname.h: New file.
891         * testsuite/libjava.jvmti/getmethodname.jar: New file.
892
893 2007-01-31  Andrew Haley  <aph@redhat.com>
894
895         * prims.cc (_Jv_Abort): fflush (stderr).
896         * java/lang/natClassLoader.cc (_Jv_CheckABIVersion): Abort.
897
898 2007-01-31  Tom Tromey  <tromey@redhat.com>
899
900         * configure, Makefile.in: Rebuilt.
901         * configure.ac (JAR): Check for -@ feature.
902         * Makefile.am (libgcj-$(gcc_version).jar): Use find -prune.
903
904 2007-01-31  Tom Tromey  <tromey@redhat.com>
905
906         PR libgcj/30606:
907         * configure, include/config.h.in: Rebuilt.
908         * configure.ac: Check for magic_t in magic.h.
909         * java/net/natVMURLConnection.cc: Use HAVE_MAGIC_T.
910
911 2007-01-30  Tom Tromey  <tromey@redhat.com>
912
913         * Makefile.in: Rebuilt.
914         * Makefile.am (libgcj-$(gcc_version).jar): Rewrote.
915
916 2007-01-30  Andreas Tobler  <a.tobler@schweiz.org>
917
918         * testsuite/libjava.jvmti/natevents.cc (FieldModificationCB): Use a
919         cast to print it right.
920
921 2007-01-29  Kaloian Doganov  <kaloian@doganov.org>
922
923         PR libgcj/30600:
924         * gnu/gcj/convert/BytesToCharsetAdaptor.java (read): Fix call to
925         'limit'.
926
927 2007-01-29  Kyle Galloway  <kgallowa@redhat.com>
928
929         * include/java-interp.h:  Added _Jv_Frame class and its two
930         subclasses _Jv_InterpFrame and _Jv_NativeFrame.  Also moved
931         _Jv_FrameType from java-stack.h.
932         * include/java-stack.h: Removed _Jv_FrameType.
933         * java/lang/Thread.java: Added frame member to hold new
934         composite frame stack.
935         * java/lang/Thread.h: Regenerated.
936         * java/lang/Thread.class: Rebuilt.
937         * jni.cc (_Jv_JNIMethod::call): Push a frame onto the stack when
938         calling a JNI method.
939         * jvmti.cc (_Jv_JVMTI_GetStackTrace): New Method.
940         (_Jv_JVMTI_GetFrameCount): New method.
941         * stacktrace.cc (UnwindTraceFn): Modified to use new _Jv_Frame
942         classes.
943         * testsuite/libjava.jvmti/interp/getstacktrace.jar: New test.
944         * testsuite/libjava.jvmti/interp/natgetstacktrace.cc: New test.
945         * testsuite/libjava.jvmti/interp/getstacktrace.h: New test.
946         * testsuite/libjava.jvmti/interp/getstacktrace.jar: New test.
947         * testsuite/libjava.jvmti/interp/getstacktrace.out: Output file
948         for test. 
949
950 2007-01-29  Tom Tromey  <tromey@redhat.com>
951
952         * interpret.cc (run_debug): Remove comment.
953         (STOREA): Reformat.
954         (STOREI): Likewise.
955         (STOREF): Likewise.
956         (STOREL): Likewise.
957         (STORED): Likewise.
958         (POKEI): Likewise.
959         (run_normal_debug): Likewise.
960         (run_synch_object_debug): Likewise.
961         (run_class_debug): Likewise.
962         (run_synch_class_debug): Likewise.
963         (get1s): Likewise.
964         (get1u): Likewise.
965         (get2u): Likewise.
966         (get4): Likewise.
967         (NULLARRAYCHECK): Likewise.
968         (ARRAYBOUNDSCHECK): Likewise.
969         * interpret-run.cc (insn_target) <breakpoint>: Tidy.
970
971 2007-01-29  Tom Tromey  <tromey@redhat.com>
972
973         * configure, Makefile.in: Rebuilt.
974         * Makefile.am (bin_SCRIPTS): Never install scripts/jar.
975         * configure.ac (BASH_JAR): Removed conditional.
976         (JAR): Prefer the jar found by AC_CHECK_PROGS.
977
978 2007-01-29  Tom Tromey  <tromey@redhat.com>
979
980         * Makefile.in: Rebuilt.
981         * Makefile.am (interpret.lo): New target.  Add -fwrap to
982         AM_CXXFLAGS.
983
984 2007-01-29  Keith Seitz  <keiths@redhat.com>
985
986         * include/jvmti_md.h (_CLASSPATH_VM_JVMTI_TYPES_DEFINED):
987         Define.
988         [__GCJ_JNI_IMPL__]: Define our own JVMTI types when building
989         gcj. All jvmti object types now are defined to be their
990         corresponding java classes.
991         * jvmti.cc (_Jv_JVMTI_SuspendThread): Remove casting from
992         jthread to Thread*.
993         (_Jv_JVMTI_ResumeThread): Likewise.
994         (_Jv_JVMTI_InterruptThread): Likewise.
995         (_Jv_JVMTI_SetEventNotificationMode): Likewise.
996         * gnu/classpath/jdwp/natVMVirtualMachine.cc
997         (jdwpClassPrepareCB): Likewise.
998         (jdwpThreadEndCB): Likewise.
999         (jdwpThreadStartCB): Likewise.
1000         (jdwpVMInitCB): Likewise.
1001  
1002 2007-01-28  Michele Sandri  <gpointorama@gmail.com>
1003
1004         * gnu/java/nio/channels/natFileChannelWin32.cc
1005         (lock): Implemented.
1006         (unlock): Implemented.
1007
1008 2007-01-27  Andreas Tobler  <a.tobler@schweiz.org>
1009
1010         PR libgcj/30513
1011         * configure.host: Add forgottten sysdep_dir to sparc. Add a flag to
1012         libgcj_flags to undefine 'sun' at compile time.
1013         * sysdep/sparc/locks.h (read_barrier): New functions for 32 and 64 bit
1014         Sparc.
1015         (write_barrier): Likewise.
1016
1017 2007-01-27  Keith Seitz  <keiths@redhat.com>
1018
1019         * gnu/classpath/jdwp/natVMVirtualMachine.cc
1020         (getAllClassMethods): Move error handling to ...
1021         (throw_jvmti_error): ... here.
1022         (jdwpClassPrepareCB): New function.
1023         (jdwpThreadEndCB): New function.
1024         (jdwpThreadStartCB): New function.
1025         (jdwpVMDeathCB): New function.
1026         (jdwpVMInitCB): Define and enable callbacks for
1027         ClassPrepare, ThreadEnd, ThreadStart, and VMDeath.
1028
1029 2007-01-27  Jakub Jelinek  <jakub@redhat.com>
1030
1031         * Makefile.am (generic_header_files): Add $(inner_nat_headers).
1032         * testsuite/Makefile.am (check-dejaGNU): Depend on compile-tests.
1033         (MYGCJH): New variable.
1034         (compile-tests): New goal.
1035         * Makefile.in: Rebuilt.
1036         * testsuite/Makefile.in: Rebuilt.
1037
1038 2007-01-26  Andrew Haley  <aph@redhat.com>
1039
1040         * java/lang/natClass.cc (initializeClass): Re-throw
1041         SecurityExceptions.
1042         * java/lang/natVMClassLoader.cc (loadClass): checkPackageAccess.
1043         * java/lang/ClassLoader.java: (loadClass): Likewise.
1044
1045 2007-01-26  Tom Tromey  <tromey@redhat.com>
1046
1047         * Updated headers.
1048
1049 2007-01-25  Tom Tromey  <tromey@redhat.com>
1050
1051         PR libgcj/29594:
1052         * gnu/gcj/convert/Convert.java (main): Correctly handle missing
1053         input or output encodings.  Removed unused local variables.
1054
1055 2007-01-25  Keith Seitz  <keiths@redhat.com>
1056
1057         * include/jvmti-int.h (_Jv_GetJDWP_JVMTIEnv): Declare.
1058         * gnu/classpath/jdwp/natVMVirtualMachine.cc
1059         (_Jv_GetJDWP_JVMTIEnv): New function.
1060         * gnu/classpath/jdwp/natVMMethod.cc (getName): Implement.
1061         (getSignature): Implement.
1062         (getModifiers): Implement.
1063
1064 2007-01-25  Andrew Haley  <aph@redhat.com>
1065
1066         * configure, Makefile.in, include/config.h.in: Rebuilt.
1067         * Makefile.am (libgcj_la_LIBADD): Removed $(LIBMAGIC).
1068         * configure.ac: Don't check for libmagic.
1069         * java/net/natVMURLConnection.cc (p_magic_open, p_magic_load,
1070         p_magic_close, p_magic_buffer): New globals.
1071         (init): Look up 'magic' functions.
1072         (guessContentTypeFromBuffer): Updated.
1073
1074 2007-01-25  Keith Seitz  <keiths@redhat.com>
1075
1076         * jvmti.cc (_Jv_JVMTI_GetMethodName): New function.
1077         (_Jv_JVMTI_Interface): Define GetMethodName.
1078         * testsuite/libjava.jvmti/getmethodname.java: New file.
1079         * testsuite/libjava.jvmti/natgetmethodname.cc: New file.
1080         * testsuite/libjava.jvmti/getmethodname.out: New file. 
1081
1082 2007-01-24  Kyle Galloway  <kgallowa@redhat.com>
1083
1084         * libjava/testsuite/libjava.jvmti/jvmti-interp.exp: New file.
1085         * libjava/testsuite/libjava.jvmti/interp: New folder.
1086         * libjava/testsuite/lib/libjava.exp (exec_gij): New Method.
1087
1088 2007-01-24  Keith Seitz  <keiths@redhat.com>
1089
1090         * link.cc (_Jv_Linker::wait_for_state): Add JVMTI
1091         CLASS_PREPARE notification.
1092
1093 2007-01-24  Keith Seitz  <keiths@redhat.com>
1094
1095         * interpret.cc: Include gnu/gcj/jvmti/Breakpoint.h,
1096         gnu/gcj/jvmti/BreakpointManager.h, jvmti.h, and jvmti-int.h
1097         * interpret-run.cc: Implement insn_breakpoint.
1098
1099 2007-01-24  Keith Seitz  <keiths@redhat.com>
1100
1101         * prims.cc (_Jv_RunMain): Send JVMTI event notifications
1102         for VM_INIT and VM_DEATH instead of the JDWP notifications.
1103
1104 2007-01-24  Keith Seitz  <keiths@redhat.com>
1105
1106         * gnu/classpath/jdwp/natVMVirtualMachine.cc
1107         (getAllClassMethods): Implement.
1108
1109 2007-01-24  Andrew Haley  <aph@redhat.com>
1110
1111         * gnu/classpath/natVMStackWalker.cc: Call InitClass everywhere.
1112         (getClassContext) Add a barrier to prevent GetStackWalkerStack()
1113         from being sibcalled.
1114
1115 2007-01-24  Andrew Haley  <aph@redhat.com>
1116
1117         * scripts/makemake.tcl (emit_bc_rule): Set the source filename.
1118         * sources.am: Rebuild.
1119
1120 2007-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
1121
1122         * exception.cc (parse_lsda_header, PERSONALITY_FUNCTION): Replaced
1123         _Unwind_Word with _uleb128_t and _Unwind_SWord with _sleb128_t.
1124
1125 2007-01-23  H.J. Lu  <hongjiu.lu@intel.com>
1126
1127         PR libgcj/30550
1128         * Makefile.am (ecjx_DEPENDENCIES): Add libgcj_bc.la if needed.
1129         * Makefile.in: Regenerated.
1130
1131 2007-01-22  Keith Seitz  <keiths@redhat.com>
1132
1133         * gnu/classpath/jdwp/natVMVirtualMachine.cc
1134         (getClassMethod): Implement.
1135
1136 2007-01-22  Keith  Seitz  <keiths@redhat.com>
1137
1138         * java/lang/Class.h (_Jv_GetClassStatus): Declare.
1139         * java/lang/natClass.cc (_Jv_GetClassStatus): New function.
1140         * jvmti.cc (_Jv_JVMTI_GetClassStatus): New function.
1141         (_Jv_JVMTI_Interface): Define GetClassStatus.
1142
1143 2007-01-22  Tom Tromey  <tromey@redhat.com>
1144
1145         * configure: Rebuilt.
1146         * configure.ac (GCJ): Reverted patch of 2006-12-20.
1147
1148 2007-01-22  Tom Tromey  <tromey@redhat.com>
1149
1150         PR java/29812:
1151         * testsuite/libjava.jni/pr29812.java: New file.
1152         * testsuite/libjava.jni/pr29812_injar.java: New file.
1153         * testsuite/libjava.jni/pr29812_injar.jar: New file.
1154         * testsuite/libjava.jni/pr29812.out: New file.
1155         * testsuite/libjava.jni/pr29812_injar.c: New file.
1156         * testsuite/libjava.jni/pr29812_injar.h: New file.
1157         * testsuite/libjava.jni/pr29812.jar: New file.
1158         * testsuite/libjava.jni/pr29812.c: New file.
1159         * testsuite/libjava.jni/pr29812.h: New file.
1160         * testsuite/libjava.jni/jni.exp (gcj_jni_get_cxxflags_invocation):
1161         New proc.
1162         (gcj_jni_invocation_test_one): Use it.
1163         (gcj_jni_pr29812): New proc.
1164         (gcj_jni_run): Use it.
1165         * java/lang/natRuntime.cc (_load): Push a new system frame before
1166         calling JNI_OnLoad.
1167         * include/jvm.h (_Jv_JNI_PopSystemFrame): Declare.
1168         (_Jv_GetJNIEnvNewFrameWithLoader): Likewise.
1169         * jni.cc (struct _Jv_JNI_LocalFrame) <marker>: Now unsigned char.
1170         <allocated_p>: Now bool.
1171         <loader>: New field.
1172         (_Jv_JNI_EnsureLocalCapacity): Updated.
1173         (_Jv_JNI_NewLocalRef): Likewise.
1174         (_Jv_JNI_NewLocalRef): Likewise.
1175         (_Jv_JNI_PopLocalFrame): Likewise.
1176         (_Jv_JNI_FindClass): Likewise.
1177         (_Jv_GetJNIEnvNewFrame): Likewise.
1178         (_Jv_JNI_AttachCurrentThread): Likewise.
1179         (_Jv_GetJNIEnvNewFrameWithLoader): New function.
1180         (_Jv_GetJNIEnvNewFrame): Use it.
1181         * include/jni_md.h (_CLASSPATH_JNIENV_CONTENTS): Removed 'klass'.
1182
1183 2007-01-22  Tom Tromey  <tromey@redhat.com>
1184
1185         * libtool-version: Bump current to 9.
1186
1187 2007-01-22  Andrew Haley  <aph@redhat.com>
1188
1189         * sysdep/alpha/locks.h (write_barrier): New.
1190
1191 2007-01-21  Matthias Klose  <doko@debian.org>
1192
1193         * Makefile.am (install-exec-hook): Use transformed name.
1194         * Makefile.in: Regenerate.
1195
1196 2007-01-19  Keith Seitz  <keiths@redhat.com>
1197
1198         * gnu/classpath/jdwp/natVMVirtualMachine.cc: Mark unused parameters
1199         in methods and reformat.
1200
1201         * gnu/classpath/jdwp/natVMFrame.cc: Mark unused parameters with
1202         MAYBE_UNUSED.
1203
1204 2007-01-18  Keith Seitz  <keiths@redhat.com>
1205
1206         From Macro Trudel <mtrudel@gmx.ch>:
1207         * gnu/classpath/jdwp/natVMVirtualMachine.cc (jdwpVMInitCB):
1208         Use JNICALL.
1209
1210 2007-01-18  Marco Trudel  <mtrudel@gmx.ch>
1211
1212         * jni.cc (_Jv_JNI_FindClass): Initialize class.
1213         * testsuite/libjava.jni/findclass2.jar: New file.
1214         * testsuite/libjava.jni/findclass2.h: New file.
1215         * testsuite/libjava.jni/findclass2.java: New file
1216         * testsuite/libjava.jni/findclass2.c: New file.
1217         * testsuite/libjava.jni/findclass2.out: New file.
1218
1219 2007-01-18  Tom Tromey  <tromey@redhat.com>
1220
1221         * configure: Rebuilt.
1222         * configure.ac: Use multi_basedir instead of libgcj_basedir.
1223
1224 2007-01-18  Gary Benson  <gbenson@redhat.com>
1225
1226         * gnu/java/nio/natVMPipeEcos.cc:
1227         Renamed from gnu/java/nio/natPipeImplEcos.cc.
1228         * gnu/java/nio/natVMPipePosix.cc:
1229         Renamed from gnu/java/nio/natPipeImplPosix.cc.
1230         * gnu/java/nio/natVMPipeWin32.cc:
1231         Renamed from gnu/java/nio/natPipeImplWin32.cc.
1232         * gnu/java/nio/natVMSelectorEcos.cc:
1233         Renamed from gnu/java/nio/natSelectorImplEcos.cc.
1234         * gnu/java/nio/natVMSelectorPosix.cc:
1235         Renamed from gnu/java/nio/natSelectorImplPosix.cc.
1236         * gnu/java/nio/natVMSelectorWin32.cc:
1237         Renamed from gnu/java/nio/natSelectorImplWin32.cc.
1238         * java/io/natVMObjectInputStream.cc:
1239         Renamed from java/io/natObjectInputStream.cc.
1240         * java/lang/natVMDouble.cc:
1241         Renamed from java/lang/natDouble.cc.
1242         * java/lang/natVMFloat.cc:
1243         Renamed from java/lang/natFloat.cc.     
1244         * Makefile.am, configure.ac: Reflect the above.
1245         * Makefile.in, configure: Rebuilt.
1246
1247 2007-01-17  Andrew Haley  <aph@redhat.com>
1248
1249         * Makefile.in: Rebuilt.
1250         * Makefile.am (ecjx_LDFLAGS): Pass -fbootclasspath.
1251
1252 2007-01-17  Keith Seitz  <keiths@redhat.com>
1253
1254         * java/lang/natThread.cc (finish_): Add JVMTI ThreadEnd notification.
1255         (_Jv_NotifyThreadStart): Add JVMTI ThreadStart notification.
1256
1257 2007-01-16  Jack Howarth  <howarth@bromo.med.uc.edu>
1258
1259         * configure.ac: Use multi.m4 from aclocal rather than custom
1260         code.  Use multi_basedir instead libgcj_basedir.  Test for
1261         /proc/self/exe when not cross-compiling.
1262         * aclocal.m4: Regenerate.
1263         * configure: Regenerate.
1264         * Makefile.in: Regenerate.
1265
1266 2007-01-17  Gary Benson  <gbenson@redhat.com>
1267
1268         * java/nio/natVMDirectByteBufferImpl.cc:
1269         Renamed from java/nio/natDirectByteBufferImpl.cc.
1270         * Makefile.am: Reflect the above.
1271         * Makefile.in: Rebuilt.
1272         
1273 2007-01-17  Marco Trudel  <mtrudel@gmx.ch>
1274
1275         * jvmti.cc (_Jv_JVMTI_GetAllThreads): Now static.  Use JNICALL.
1276         Fixed indentation.  Removed unused variable.
1277
1278 2007-01-16  Tom Tromey  <tromey@redhat.com>
1279
1280         * java/lang/natThread.cc (finalize_native): Remove cast.
1281         (_Jv_GetCurrentJNIEnv): Likewise.
1282         * include/jvm.h (struct natThread) <jni_env>: Declare as
1283         _Jv_JNIEnv*.
1284
1285 2007-01-16  Keith Seitz  <keiths@redhat.com>
1286
1287         * testsuite/libjava.jvmti/natevents.cc (FieldModificationCB): Use
1288         %#llx instead of %d for new_value.
1289         * testsuite/libjava.jvmti/events.out: Update expected output.
1290         * testsuite/libjava.jvmti/events.jar: Regenerate.
1291
1292 2007-01-16  Keith Seitz  <keiths@redhat.com>
1293
1294         * gnu/classpath/jdwp/natVMVirtualMachine.cc (DEFINE_CALLBACK):
1295         New macro.
1296         (ENABLE_EVENT): New macro.
1297         (initialize): Define and enable JVMTI VM_INIT callback.
1298         (jdwpVMInitCB): New function.
1299
1300 2007-01-16  Kyle Galloway  <kgallowa@redhat.com>
1301
1302         * jvmti.cc (_Jv_JVMTI_GetAllThreads): New function.
1303         * testsuite/libjava.jvmti/getallthreads.java: New test.
1304         * testsuite/libjava.jvmti/natgetallthreads.cc: Ditto.
1305         * testsuite/libjava.jvmti/getallthreads.out: Ditto.
1306         * testsuite/libjava.jvmti/getallthreads.h: Ditto.
1307         * testsuite/libjava.jvmti/getallthreads.jar: Ditto. 
1308
1309 2007-01-15  Keith Seitz  <keiths@redhat.com>
1310
1311         * gnu/classpath/jdwp/natVMVirtualMachine.cc (suspendThread): Use
1312         java.lang.StringBuilder instead of java.lang.StringBuffer.
1313         (resumeThread): Likewise.
1314
1315 2007-01-15  Gary Benson  <gbenson@redhat.com>
1316
1317         * java/nio/MappedByteBuffer.java: Removed.
1318         * sources.am, Makefile.in: Rebuilt.
1319
1320 2007-01-15  Gary Benson  <gbenson@redhat.com>
1321
1322         * java/net/URLClassLoader.java: Removed.
1323         * gnu/java/net/loader/Load_gcjlib.java: New file.
1324         * gnu/gcj/runtime/BootClassLoader.java: Ensure core
1325         URL handler is present in static executables.
1326         * sources.am, Makefile.in: Rebuilt.
1327
1328 2007-01-14  H.J. Lu  <hongjiu.lu@intel.com>
1329
1330         * Makefile.am (libgcj_la_LDFLAGS): Add
1331         $(LIBGCJ_LD_SYMBOLIC_FUNCTIONS).
1332         (libgcj_tools_la_LDFLAGS): Likewise.
1333         (libgcj_bc_la_LDFLAGS): Likewise.
1334         * Makefile.in: Regenerated.
1335
1336         * configure.ac: Use ACX_PROG_LD_GNU_SYMBOLIC.  Set
1337         LIBGCJ_LD_SYMBOLIC_FUNCTIONS to $SYMBOLIC_LDFLAGS.  Set
1338         libgcj_ld_symbolic to $SYMBOLIC_LDFLAGS if it isn't set.
1339         Substitute LIBGCJ_LD_SYMBOLIC_FUNCTIONS.
1340         * configure: Regenerated.
1341         * aclocal.m4: Likewise.
1342         * gcj/Makefile.in: Likewise.
1343         * include/Makefile.in: Likewise.
1344         * testsuite/Makefile.in: Likewise.
1345
1346 2007-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
1347
1348         * sysdep/sh/locks.h (read_barrier): New.
1349         (write_barrier): Likewise.
1350
1351 2007-01-12  Andrew Haley  <aph@redhat.com>
1352
1353         * include/i386-signal.h: Rewrite to use rt_sigaction.
1354
1355 2007-01-11  Andrew Haley  <aph@redhat.com>
1356
1357         * prims.cc (jdwpOptions) Fix deprecated cast from char[] constant
1358         to char*.
1359         * include/x86_64-signal.h (HANDLE_DIVIDE_OVERFLOW): Rewrite to fix
1360         aliasing violation.
1361
1362 2007-01-10  Tom Tromey  <tromey@redhat.com>
1363
1364         * gnu/gcj/xlib/*.h: New files.
1365         * gnu/awt/xlib/*.h: Likewise.
1366         * classpath/lib/gnu/gcj/xlib: New class files.
1367         * classpath/lib/gnu/awt/xlib: Likewise.
1368
1369 2007-01-10  Tom Tromey  <tromey@redhat.com>
1370
1371         * HACKING: Various updates.
1372
1373 2007-01-10  Tom Tromey  <tromey@redhat.com>
1374
1375         * java/lang/natDouble.cc (toString): Added parens.
1376         * gnu/gcj/io/shs.h (PROTO): Define.
1377         * link.cc (resolve_pool_entry): Added missing braces.
1378
1379 2007-01-10  H.J. Lu  <hongjiu.lu@intel.com>
1380
1381         PR libgcj/30424
1382         * sysdep/ia64/locks.h (read_barrier): New.
1383         (write_barrier): New.
1384
1385 2007-01-10  Gary Benson  <gbenson@redhat.com>
1386
1387         * java/net/URL.java: Removed.
1388         * sources.am, Makefile.in: Rebuilt.
1389
1390 2007-01-10  Matthias Klose  <doko@debian.org>
1391
1392         * Makefile.am (install-exec-hook): Support $(DESTDIR).
1393         * Makefile.in: Regenerated.
1394
1395 2007-01-05  Tom Tromey  <tromey@redhat.com>
1396
1397         * testsuite/libjava.loader/loader.exp (gcj_loader_run): Find
1398         dummy.class in srcdir.
1399
1400 2007-01-03  Tom Tromey  <tromey@redhat.com>
1401
1402         * testsuite/libjava.cni/cni.exp (gcj_cni_compile_cxx_to_o): Add -I
1403         for srcdir.
1404
1405 2007-01-03  Tom Tromey  <tromey@redhat.com>
1406
1407         * testsuite/*: Added many .jar and .h files.
1408         * testsuite/libjava.special/special.exp
1409         (gcj_special_try_compiler): New proc.
1410         * testsuite/libjava.loader/loader.exp (gcj_loader_run): Don't
1411         bytecompile source.  Search for .jar files.
1412         (gcj_loader_test_one): Don't look for MyLoader.java.
1413         * testsuite/libjava.jvmti/jvmti.exp (gcj_jvmti_test_one): Don't
1414         bytecompile sources or build headers.
1415         (gcj_jvmti_run): Look for .jar files.
1416         * testsuite/libjava.jni/jni.exp (gcj_jni_run): Compile .jar
1417         files.
1418         (gcj_jni_test_one): Don't bytecompile sources or build headers.
1419         Set classpath when invoking gij.
1420         (gcj_jni_invocation_test_one): Likewise.
1421         * testsuite/libjava.cni/cni.exp (gcj_cni_test_one): Don't build
1422         headers or bytecompile sources.
1423         (gcj_cni_run): Use .jar files, not .java files.
1424         * testsuite/libjava.lang/lang.exp: Compile .jar files.
1425
1426 2007-01-02  Tom Tromey  <tromey@redhat.com>
1427
1428         * configure: Rebuilt.
1429         * configure.ac: Check for gjar.
1430
1431 2007-01-02  Tom Tromey  <tromey@redhat.com>
1432
1433         * testsuite/libjava.jacks/jacks.exp: Removed.
1434         * testsuite/libjava.jacks/jacks.xfail: Removed.
1435