OSDN Git Service

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