OSDN Git Service

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