OSDN Git Service

* shlibpath.m4: Add AIX 6 support.
[pf3gnuchains/gcc-fork.git] / libjava / ChangeLog
1 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
2
3         * shlibpath.m4: Add AIX 6 support.
4         * configure: Regenerate.
5
6 2008-01-18  Alexandre Oliva  <aoliva@redhat.com>
7
8         PR c++/33887
9         * link.cc (_Jv_Linker::prepare_constant_time_tables):
10         has_interfaces is boolean, treat it as such.
11
12 2008-01-04  Andrew Haley  <aph@redhat.com>
13
14         PR libgcj/34444
15         * java/lang/natClass.cc (Class::getEnclosingClass): Call
16         getDeclaringClass().
17
18 2007-12-22  David Daney  <ddaney@avtrex.com>
19
20         * scripts/makemake.tcl (emit_bc_rule): Use $(LIBGCJ_BC_FLAGS)
21         instead of -findirect-dispatch -fno-indirect-classes.
22         * configure.ac (libgcj-bc): New AC_ARG_ENABLE.
23         (SUPPRESS_LIBGCJ_BC): New AM_CONDITIONAL.
24         * Makefile.am (LIBGCJ_BC_FLAGS): New variable.
25         * Makefile.in: Regenerate.
26         * include/Makefile.in: Same.
27         * testsuite/Makefile.in: Same.
28         * configure: Same.
29         * gcj/Makefile.in: Same.
30         * sources.am: Same.
31         
32 2007-12-17  Jakub Jelinek  <jakub@redhat.com>
33
34         * testsuite/Makefile.am (compile-tests): Build
35         libjava.jvmti/interp/*.h with -jni rather than -cni.
36         * testsuite/Makefile.in: Rebuilt.
37
38 2007-12-08  Andreas Tobler  <a.tobler@schweiz.org>
39
40         * configure.host: Add bits for i?86-*-darwin9 and x86_64-*-darwin9.
41         * configure.ac: Add darwin-signal.h to x86_64-*-darwin9 and
42         i?86-*darwin9.
43         * configure.in: Regenerate.
44         * darwin.cc: Add definitions for Darwin specific functions for 64-bit.
45         (darwin_java_register_dyld_add_image_hook): Use this specific
46         functions.
47         * Makefile.am (gij_LDFLAGS): Add extra_gij_ldflags for Darwin9.
48         * Makefile.in: Regenerate.
49         * include/Makefile.in: Likewise.
50         * gcj/Makefile.in: Likewise.
51         * testsuite/Makefile.in: Likewise.
52         * testsuite/lib/libjava.exp (libjava_arguments): Add allow_stack_execute
53         for *-*-darwin9*.
54
55 2007-12-06  David Daney  <ddaney@avtrex.com>
56
57         * interpret.cc: Replace ffi_raw with INTERP_FFI_RAW_TYPE throughout.
58         (ncode_closure, ffi_closure_fun): Define versions for
59         non-FFI_NATIVE_RAW_API case.
60         * include/java-interp.h (INTERP_FFI_RAW_TYPE): Define and use to
61         replace ffi_raw throughout.
62         * jni.cc, interpret-run.cc: Replace ffi_raw with INTERP_FFI_RAW_TYPE
63         throughout.
64
65 2007-12-06  Andreas Tobler  <a.tobler@schweiz.org>
66
67         * testsuite/libjava.jni/jni.exp (gcj_jni_get_cxxflags_invocation): Make
68         the testsuite multilib aware for Darwin.
69
70 2007-12-05  Thomas Fitzsimmons  <fitzsim@redhat.com>
71
72         * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.h: Regenerate.
73         * gnu/java/awt/peer/gtk/GtkWindowPeer.h: Likewise.
74         * java/awt/Component.h: Likewise.
75         * java/awt/Container.h: Likewise.
76
77 2007-11-05  H.J. Lu  <hongjiu.lu@intel.com>
78
79         * configure.ac: Don't run config-ml.in directly.
80         (multilib_arg): New.
81         * configure: Regenerated.
82
83 2007-10-22  David Daney  <ddaney@avtrex.com>
84
85         * include/jvm.h (_Jv_SetGCFreeSpaceDivisor): Declare new function.
86         * boehm.cc (_Jv_SetGCFreeSpaceDivisor): Define it.
87
88 2007-10-18  David Daney  <ddaney@avtrex.com>
89
90         * classpath/lib/gnu/java/locale/LocaleData.class: Regenerate
91         * classpath/lib/gnu/javax/sound/sampled/gstreamer: Add generated
92         files.
93         * gnu/javax/sound/sampled/gstreamer: Add generated files.
94         
95 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
96
97         * configure: Regenerate following changes to ../config/tls.m4.
98
99 2007-09-17  Tom Tromey  <tromey@redhat.com>
100
101         * defineclass.cc (MAJOR_1_6): New define.
102         (MINOR_1_6): Likewise.
103         (_Jv_ClassReader::parse): Handle 1.6 bytecode.
104
105 2007-09-12  David Daney  <ddaney@avtrex.com>
106
107         * configure.host: Enable interpreter for mips64.  Enable hash
108         synchronization for all mips*-*-linux* targets.
109         * sysdep/mips/locks.h (compare_and_swap, compare_and_swap_release) Use
110         __sync_bool_compare_and_swap instead of in-line asm.
111         (release_set, read_barrier, write_barrier): Use __sync_synchronize
112         instead of in-line asm.
113
114 2007-09-09  Andreas Tobler  <a.tobler@schweiz.org>
115
116         PR libgcj/33326
117         * testsuite/lib/libjava.exp (libjava_arguments): Append the test spec
118         only for linux targets.
119
120 2007-09-09  Andrew Haley  <aph@redhat.com>
121
122         * interpret-run.cc (invokevirtual_resolved): Nullcheck object on
123         TOS.
124
125 2007-09-06  Tom Tromey  <tromey@redhat.com>
126
127         * testsuite/libjava.lang/StackTrace2.jar: Rebuilt.
128         * testsuite/libjava.lang/StackTrace2.java (checkLine): Print file
129         name.
130
131 2007-09-06  Roman Zippel  <zippel@linux-m68k.org>
132
133         * sysdep/m68k/locks.h: New file.
134         * configure.host: Set sysdeps_dir and libgcj_interpreter for m68k.
135         * configure.ac: Set SIGNAL_HANDLER for m68*-*-linux*.
136         * configure: Regenerate.
137
138 2007-09-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
139
140         * configure.host(gnu*): Set use_libgcj_bc to yes.
141
142 2007-09-04  Matthias Klose  <doko@ubuntu.com>
143
144         * configure.ac: Do not pass --with-native-libdir to classpath.
145         * configure: Regenerate.
146
147 2007-09-04  Matthias Klose  <doko@ubuntu.com>
148
149         PR libgcj/33278
150         * configure.ac: Robustify extraction of gcj version.
151         * configure: Regenerate.
152
153 2007-09-04  Andrew Haley  <aph@redhat.com>
154
155         PR java/27908
156         * testsuite/libjava.lang/PR27908.java
157         ({run1,run2,run3}.isRunning): New Method.
158         (main): Fix race condition.
159
160 2007-08-29  Andrew Haley  <aph@redhat.com>
161
162         * gnu/classpath/natVMStackWalker.cc (VMStackWalker::getCallingClass):
163         Make sure we're not sibcalled.
164         (GET_CALLING_CLASS): Define for ARM EABI.
165
166 2007-08-22  Andrew Haley  <aph@redhat.com>
167
168         * configure.host (BACKTRACESPEC): Add arm*-linux*.
169
170 2007-08-22  Andrew Haley  <aph@redhat.com>
171
172         * configure.ac (LIBSTDCXXSPEC): New.
173         * configure.host: Add arm*-linux* to pthread test.
174         * configure.ac (LIBGCJTESTSPEC): Add path to libstdc++ for ARM
175         EABI.
176         * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Use
177         -fexceptions for ARM EABI.
178         * testsuite/lib/libjava.exp (libjava_arguments): Add libgcj-test.spec.
179         (libjava_invoke): Log the invocation.
180
181 2007-08-15  Andrew Haley  <aph@redhat.com>
182
183         * configure.ac (extra_ldflags): Define.
184         * Makefile.am: Use extra_ldflags for all executables.
185
186 2007-08-14  Andrew Haley  <aph@redhat.com>
187
188         * sysdep/arm/backtrace.h: Remove stubs for _Unwind_GetIPInfo,
189         _Unwind_GetRegionStart, and _Unwind_Backtrace.
190
191 2007-07-27  Andrew Haley  <aph@redhat.com>
192
193         * gnu/classpath/natVMStackWalker.cc (GET_CALLING_CLASS): Stub for
194         ARM EABI.
195         * exception.cc (get_exception_header_from_ue): New.
196         (get_ttype_entry): ARM EABI version.
197         (PERSONALITY_FUNCTION): Add ARM EABI code.
198         * sysdep/arm/backtrace.h: New file.
199         * stacktrace.cc (_URC_NORMAL_STOP): New.
200         * configure.ac (extra_ldflags_libjava): Add libsupc++.la for ARM
201         EABI.
202         * configure.host (BACKTRACESPEC): Add arm/backtrace.h.
203
204 2007-08-31  Matthias Klose  <doko@ubuntu.com>
205
206         * classpath/lib/java/util/EnumSet*.class: Regenerate
207
208 2007-08-30  Andreas Tobler  <a.tobler@schweiz.org>
209
210         * gij.cc (version): Update Copyright year.
211
212 2007-08-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
213
214         * configure.host (gnu*): Set use_libgcj_bc to yes.
215
216 2007-08-15  Tom Tromey  <tromey@redhat.com>
217
218         * java/lang/Class.java (internalGetFields): Use LinkedHashSet.
219         * classpath/lib/java/lang/Class.class: Rebuilt.
220
221 2007-08-15  Samuel Thibault  <samuel.thibault@ens-lyon.org>
222
223         * java/lang/natPosixProcess.cc (sigchld_handler) [!SA_SIGINFO]: Remove
224         'si' and 'third' parameters.  Disable calling
225         pmi->old_sigaction.sa_sigaction.
226         (java::lang::PosixProcess*ProcessManager::init) [!SA_SIGINFO]: Set
227         sa.sa_handler instead of sa.sa_sigaction, don't set SA_SIGINFO flag.
228
229 2007-08-09  Andrew Haley  <aph@redhat.com>
230
231         * testsuite/lib/libjava.exp (libjava_invoke): Log the invocation.
232
233 2007-08-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
234
235         * java/net/natVMInetAddressPosix.cc
236         (java::net::VMInetAddress::getLocalHostname) [!MAXHOSTNAMELEN]:
237         Allocate buffer dynamically.
238
239 2007-08-04  Alfred M. Szmidt  <ams@gnu.org>
240
241         * java/io/natFilePosix.cc (init_native) [!MAXPATHLEN]: Define to 0.
242         * java/io/File.java (createTempFile): Don't truncate if the system
243         doesn't have a limit on the length of a file name.
244         * classpath/lib/java/io/File.class: Regenerate.
245
246 2007-08-04  Matthias Klose  <doko@ubuntu.com>
247
248         Import GNU Classpath (libgcj-import-20070727).
249
250         * Regenerate class and header files.
251         * Regenerate auto* files.
252
253         * include/jvm.h:
254         * jni-libjvm.cc (Jv_JNI_InvokeFunctions): Rename type.
255         * jni.cc (_Jv_JNIFunctions, _Jv_JNI_InvokeFunctions): Likewise.
256         * jni.cc (_Jv_JNI_CallAnyMethodA, _Jv_JNI_CallAnyVoidMethodA,
257         _Jv_JNI_CallMethodA, _Jv_JNI_CallVoidMethodA,
258         _Jv_JNI_CallStaticMethodA, _Jv_JNI_CallStaticVoidMethodA,
259         _Jv_JNI_NewObjectA, _Jv_JNI_SetPrimitiveArrayRegion): Constify
260         jvalue parameter.
261         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Likewise.
262
263         * java/lang/VMFloat.java (toString, parseFloat): New.
264
265         * gnu/awt/xlib/XToolkit.java (setAlwaysOnTop, isModalityTypeSupported,
266         isModalExclusionTypeSupported): New (stub only).
267         * gnu/awt/xlib/XCanvasPeer.java (requestFocus): Likewise.
268         * gnu/awt/xlib/XFramePeer.java (updateMinimumSize, updateIconImages,
269         updateFocusableWindowState, setModalBlocked, getBoundsPrivate,
270         setAlwaysOnTop): Likewise.
271         * gnu/awt/xlib/XFontPeer.java (canDisplay): Update signature.
272
273         * scripts/makemake.tcl: Ignore gnu/javax/sound/sampled/gstreamer,
274         ignore javax.sound.sampled.spi.MixerProvider, ignore .in files.
275
276         * HACKING: Mention --enable-gstreamer-peer, removal of generated files.
277
278 2007-07-31  David Daney  <ddaney@avtrex.com>
279
280         * HACKING: Document regenerating configure and aclocal.m4.
281
282 2007-07-31  David Daney  <ddaney@avtrex.com>
283
284         * configure.ac (INTERPRETER): New AM_CONDITIONAL.
285         * scripts/makemake.tcl (package_map): Mark jdwp and jvmti packages
286         as being for interpreter only.  Place interpreter related files in
287         'if INTERPRETER' block.
288         (interpreter_package_files): New list.
289         (interpreter_header_vars): Ditto.
290         (emit_package_rule_to_list): Renamed from emit_package_rule with
291         new target list parameter.
292         (emit_package_rule): Rewritten to call emit_package_rule_to_list.
293         (emit_interpreter_rule): New function.
294         (emit_source_var): Place interpreter related files in
295         interpreter_header_vars.
296         * Makefile.am (ACLOCAL_AMFLAGS): Add -I libltdl.
297         (libgcj_interpret_source_files): New variable.
298         (libgcj_la_SOURCES): Move jvmti.cc and  interpret.cc to
299         libgcj_interpret_source_files and include
300         libgcj_interpret_source_files.
301         (nat_jdwp_source_files): New variable.
302         (nat_jvmti_source_files): Ditto.
303         (nat_source_files): Move jdwp and jvmti related files to
304         nat_jdwp_source_files and nat_jvmti_source_files and include
305         nat_jdwp_source_files and nat_jvmti_source_files.
306         * Makefile.in: Regenerate.
307         * include/Makefile.in: Ditto.
308         * testsuite/Makefile.in: Ditto.
309         * gcj/Makefile.in: Ditto.
310         * sources.am: Ditto.
311         * configure: Ditto.
312         * include/config.h.in: Ditto.
313         * interpret.cc: Remove #ifdef INTERPRETER block.
314         * stacktrace.cc (UnwindTraceFn): Do not handle proxy frames if
315         interpreter disabled.
316         * include/java-interp.h (_Jv_FrameType): Move outside of
317         #ifdef INTERPRETER block.
318         * include/execution.h (_Jv_IndirectCompiledEngine::do_get_closure_list,
319         _Jv_InterpreterEngine, _Jv_soleInterpreterEngine): Place in
320         #ifdef INTERPRETER block.
321         * jni.cc (jvmti.h, jvmti-int.h):  Only include if INTERPRETER is
322         defined.
323         (_Jv_JNI_PopSystemFrame, _Jv_JNI_GetEnv): Only do jvmti processing
324         if INTERPRETER is defined.
325         * prims.cc (jvmti.h, jvmti-int.h, Jdwp.h, VMVirtualMachine.h):  Only
326         include if INTERPRETER is defined.
327         (defaultJdwpOptions, jdwpOptions, jvmti_agent_onload_func,
328         jvmti_agent_onunload_func, jvmti_agentonload, jvmti_agentonunload,
329         jvmti_agent_opts, load_jvmti_agent): Only define if INTERPRETER is
330         defined.
331         (parse_x_arg): Only process 'runjdwp:' if INTERPRETER is defined.
332         (parse_init_args): Only process jvmti related options if
333         INTERPRETER is defined.
334         (_Jv_CreateJavaVM): Only call _Jv_JVMTI_Init if INTERPRETER is
335         defined.
336         (_Jv_RunMain): Only do jvmti and jdwp processing if INTERPRETER is
337         defined.
338         * link.cc (jvmti.h, jvmti-int.h):  Only include if INTERPRETER is
339         defined.
340         (_Jv_ThrowNoClassDefFoundError, _Jv_Linker::create_error_method):
341         Define if if INTERPRETER is not defined.
342         (_Jv_Linker::wait_for_state): Only do jvmti proccessing if
343         INTERPRETER is defined.
344         * boehm.cc (closure_list_pointer, finalize_closure_list,
345         _Jv_ClosureListFinalizer): Only define if INTERPRETER is
346         defined.
347         * java/lang/natThread.cc (jvmti.h, jvmti-int.h):  Only include if
348         INTERPRETER is defined.
349         (finish_, _Jv_NotifyThreadStart): Only do jvmti proccessing if
350         INTERPRETER is defined.
351         * java/lang/Class.h (_Jv_InterpreterEngine): Move declaration
352         and friend declaration inside #ifdef INTERPRETER block.
353         * java/lang/natClass.cc (_Jv_ClosureList::releaseClosures,
354         _Jv_ClosureList::registerClosure, _Jv_GetInterpClassSourceFile):
355         Only define if INTERPRETER is defined.
356         * java/lang/reflect/natVMProxy.cc (UnsupportedOperationException.h):
357         Include.
358         (generateProxyClass): Throw UnsupportedOperationException unless
359         INTERPRETER is defined.
360
361 2007-07-29  Matthias Klose  <doko@ubuntu.com>
362
363         * HACKING: Document regenerating configure.
364
365 2007-07-29  H.J. Lu  <hongjiu.lu@intel.com>
366
367         PR libgcj/32929
368         * aclocal.m4: Regenerated.
369         * configure: Likewise.
370
371 2007-07-28  Matthias Klose  <doko@ubuntu.com>
372
373         * configure.ac: Encode the libgcj soversion in dbexecdir,
374         pass --with-native-libdir to classpath configure.
375         * configure: Regenerate.
376
377 2007-07-28  Matthias Klose  <doko@ubuntu.com>
378
379         * classpath/jvmti.h: Remove.
380
381 2007-07-27  Tom Tromey  <tromey@redhat.com>
382
383         * Rebuild .class files with new ecj.
384
385 2007-07-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
386
387         * configure.ac (mips-sgi-irix6*): Override SYSTEMSPEC.
388         * configure: Regenerate.
389
390 2007-07-16  Rask Ingemann Lambertsen  <rask@sygehus.dk>
391
392         PR target/32340
393         * configure.host (arm*-elf | strongarm*-elf | xscale*-elf): Use the
394         new sysdeps/arm directory.
395
396 2007-07-15  Tom Tromey  <tromey@redhat.com>
397
398         * java/io/File.java: Implement Comparable<File>.
399         (compareTo): Removed.
400         * java/io/File.h: Rebuilt.
401         * classpath/lib/java/io/File.class: Rebuilt.
402
403 2007-07-14  Tom Tromey  <tromey@redhat.com>
404
405         * Rebuilt .class files.
406
407 2007-07-15  Andrew Haley  <aph@redhat.com>
408
409         * configure.host: 
410         arm*-linux-gnu -> arm*-linux*.
411
412 2007-07-14  Krister Walfridsson  <cato@df.lth.se>
413
414         * gnu/gcj/util/natGCInfo.cc: Use HAVE_STRERROR_R.
415         * configure.ac: Remove check for strerror, add check for strerror_r.
416         * configure: Regenerate.
417         * include/config.h.in: Regenerate.
418
419 2007-07-13  Andrew Haley  <aph@redhat.com>
420
421         * libgcj.ver: Add __gcj_personality_sj0.
422
423         * testsuite/libjava.jvmti/jvmti-interp.exp: Likewise.
424         * testsuite/libjava.jni/jni.exp: Use -fdollars-in-identifiers.
425         * testsuite/libjava.jni/cni.exp: Use -fdollars-in-identifiers.
426         * testsuite/libjava.jvmti/jvmti.exp (gcj_jvmti_compile_cxx_to_o): Likewise.
427
428         * gnu/classpath/natVMStackWalker.cc (getCallingClassLoader): Check
429         klass is non-null.
430         * java/lang/reflect/natField.cc (getAddr): Call
431         _Jv_StackTrace::GetCallingClass only if CALLER is non-null.
432         * java/lang/reflect/natVMProxy.cc (run_proxy): Use
433         _Jv_getFieldInternal to get field proxyClass.m.
434         (_Jv_getFieldInternal): New function.
435
436 2007-07-11  Andrew Haley  <aph@redhat.com>
437
438         * configure.host (arm*-linux-gnu): New.
439         * sysdep/arm/locks.h: New.
440
441 2007-07-13  Roger Sayle  <roger@eyesopen.com>
442
443         * java/lang/natPosixProcess.cc: Include <sys/time.h> before
444         <sys/resource.h> to restore bootstrap on powerpc-apple-darwin7.9.0.
445
446 2007-07-12  Matthias Klose  <doko@ubuntu.com>
447
448         * gnu/classpath/jdwp/util/MethodResult.h,
449         gnu/classpath/jdwp/value/ObjectValue.h: Regenerate.
450
451 2007-07-11  Keith Seitz  <keiths@redhat.com>
452
453         * interpret.cc (get_local_var_table) [DIRECT_THREADED]: Make sure the
454         method is compiled.
455         * testsuite/libjava.jvmti/interp/getlocalvartable.out: Revise
456         for compiled methods.
457
458 2007-07-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
459
460         PR libgcj/32651
461         * configure.host (mips-sgi-irix6*): Set sysdeps_dir.
462         Disable interpreter.
463         
464 2007-07-05  Andreas Tobler  <a.tobler@schweiz.org>
465
466         * java/lang/natPosixProcess.cc: Reorder includes to fix compilation
467         on hppa2.0w-hp-hpux11.11.
468         Remove include of <gcj/cni.h>.
469
470 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
471
472         * aclocal.m4: Regenerated.
473
474 2007-07-03  Andreas Tobler  <a.tobler@schweiz.org>
475
476         * java/lang/Class.h: Remove redundant 'class java::*::* declarations.
477
478 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
479
480         PR libgcj/30513
481         * configure.host (i[3-6]86-*): Undef sun.
482
483 2007-06-28  H.J. Lu  <hongjiu.lu@intel.com>
484
485         * testsuite/libjava.jvmti/jvmti-interp.exp (gij_jvmti_test_one):
486         Fix a typo.
487
488 2007-06-28  Jan Nijtmans  <nijtmans@users.sourceforge.net>
489
490         PR libgcj/30999:
491         * jni_md.h: Add the possibility to compile jni code with.
492         -fvisibility=hidden. This causes all symbols to be hidden
493         except the JNI functions which need to be exported.
494
495 2007-06-28  Andreas Tobler  <a.tobler@schweiz.org>
496
497         * testsuite/libjava.jvmti/jvmti-interp.exp (gij_jvmti_test_one): Pass
498         the cxxldlibflags to exec_gij to have the right libstdc++ invoked.
499
500 2007-07-21  Keith Seitz  <keiths@redhat.com>
501
502         * gnu/classpath/jdwp/VMVirtualMachine.h: Regenerate.
503
504 2007-07-20  Keith Seitz  <keiths@redhat.com>
505
506         * classpath/lib/gnu/classpath/jdwp/value/StringValue.class:
507         Regenerate.
508
509 2007-07-20  Keith Seitz  <keiths@redhat.com>
510
511         * gnu/classpath/jdwp/VMVirtualMachine.java (executeMethod):
512         Update from reference implementation.
513         * gnu/classpath/jdwp/natVMVirtualMachine.cc (executeMethod):
514         Update parameter list to match new VMVirtualMachine interface.
515         * classpath/lib/gnu/classpath/jdwp/processor/ClassTypeCommandSet.class:
516         Regenerate.
517         * classpath/lib/gnu/classpath/jdwp/processor/
518         ObjectReferenceCommandSet.class: Regenerate.
519         * classpath/lib/gnu/classpath/jdwp/value/ObjectValue.class: Regenerate.
520         * classpath/lib/gnu/classpath/jdwp/VMVirtualMachine.class: Regenerate.
521         * classpath/lib/gnu/classpath/jdwp/util/MethodResult.class: Regenerate.
522
523 2007-06-18  Keith Seitz  <keiths@redhat.com>
524
525         * gnu/gcj/jvmti/Breakpoint.java: Make abstract.
526         (method): Change from private to protected.
527         (location): Likewise.
528         (Breakpoint): Change argument list to take only integer type.
529         Add default constructor.
530         (initialize_native): Renamed to ...
531         (_save_insn): ... this to make function more explicit.
532         (execute): New method.
533         * gnu/gcj/jvmti/Breakpoint.h: Regenerate.
534         * gnu/gcj/jvmti/natBreakpoint.cc (initialize_native): Rename to...
535         (_save_insn): ... this.
536         (install): Save the original instruction.
537         * gnu/gcj/jvmti/NormalBreakpoint.java: New file.
538         * gnu/gcj/jvmti/NormalBreakpoint.h: New file.
539         * gnu/gcj/jvmti/natNormalBreakpoint.cc: New file.
540         * gnu/gcj/jvmti/BreakpointManager.java (newBreakpoint):
541         Instantiate a NormalBreakpoint instead of Breakpoint.
542         * interpret-run.cc (insn_breakpoint): Remove breakpoint actions
543         and call Breakpoint.execute to do them.
544         * classpath/lib/gnu/gcj/jvmti/Breakpoint.class: Regenerate.
545         * classpath/lib/gnu/gcj/jvmti/BreakpointManager.class: Likewise.
546         * classpath/lib/gnu/gcj/jvmti/NormalBreakpoint.class: New file.
547         * sources.am: Regenerate.
548         * Makefile.am (nat_source_files): Add natNormalBreakpoint.cc.
549         * Makefile.in: Regenerated.
550
551 2007-06-14  Keith Seitz  <keiths@redhat.com>
552
553         * include/java-interp.h (_Jv_LocalVarTableEntry): Add union
554         for bytecode_pc and direct-threaded pc.
555         Add field descriptions inline.
556         * defineclass.cc (read_one_code_attribute): Change from
557         bytecode_start_pc to bytecode_pc.
558         Remove unused variable "len".
559         * interpret.cc (compile): Remap the variable table, too.
560         (get_local_var_table) [DIRECT_THREADED]: Use insn_index on the
561         start location to map from pc_t to code index.
562
563 2007-06-09  Keith Seitz  <keiths@redhat.com>
564
565         * testsuite/libjava.jvmti/dummyagent.c (Agent_OnLoad):
566         Add missing return value.
567
568 2007-06-03  Matthias Klose  <doko@ubuntu.com>
569
570         * java/io/natFileWin32.cc (setFilePermissions): New (stub only).
571         _access: Handle EXEC query, stub only.
572
573 2007-06-03  Matthias Klose  <doko@ubuntu.com>
574
575         Merged from classpath:
576         * gnu/java/nio/SelectorProviderImpl.java: Whitespace merge.
577         * java/lang/System.java(inheritedChannel): New.
578         * java/lang/Character.java: Remove stray`;'.
579         * java/net/MulticastSocket.java: Merged.
580         * java/text/DateFormatSymbols.java(getInstance): New, comment updates.
581         * java/text/Collator.java(getInstance): Merged.
582         * java/util/Calendar.java: New attributes ALL_STYLES, SHORT, LONG.
583         getDisplayName, getDisplayNames: New.
584         * java/util/logging/Logger.java: Merged.
585         * Regenerate .class and .h files.
586
587 2007-06-03  Matthias Klose  <doko@ubuntu.com>
588
589         * java/io/File.java: Merge with classpath-0.95, new method
590         setFilePermissions, new attribute EXEC.
591         * java/io/natFilePosix.cc (setFilePermissions): New.
592         _access: Handle EXEC query.
593         * classpath/lib/java/io/File.class, java/io/File.h: Regenerate.
594
595 2007-06-03  Matthias Klose  <doko@ubuntu.com>
596
597         Imported GNU Classpath 0.95.
598
599         * classpath/Makefile.in,
600         classpath/native/jni/midi-dssi/Makefile.in,
601         classpath/native/jni/classpath/Makefile.in,
602         classpath/native/jni/Makefile.in,
603         classpath/native/jni/gconf-peer/Makefile.in,
604         classpath/native/jni/java-io/Makefile.in,
605         classpath/native/jni/native-lib/Makefile.in,
606         classpath/native/jni/java-util/Makefile.in,
607         classpath/native/jni/midi-alsa/Makefile.in,
608         classpath/native/jni/java-lang/Makefile.in,
609         classpath/native/jni/java-nio/Makefile.in,
610         classpath/native/jni/java-net/Makefile.in,
611         classpath/native/jni/xmlj/Makefile.in,
612         classpath/native/jni/qt-peer/Makefile.in,
613         classpath/native/jni/gtk-peer/Makefile.in,
614         classpath/native/Makefile.in, classpath/native/jawt/Makefile.in,
615         classpath/native/fdlibm/Makefile.in,
616         classpath/native/plugin/Makefile.in,
617         classpath/resource/Makefile.in, classpath/scripts/Makefile.in,
618         classpath/tools/Makefile.in, classpath/doc/Makefile.in,
619         classpath/doc/api/Makefile.in, classpath/lib/Makefile.in,
620         classpath/external/Makefile.in, classpath/external/jsr166/Makefile.in,
621         classpath/external/sax/Makefile.in,
622         classpath/external/w3c_dom/Makefile.in,
623         classpath/external/relaxngDatatype/Makefile.in,
624         classpath/include/Makefile.in,
625         classpath/examples/Makefile.in: Regenerate.
626         * classpath/config.guess, classpath/config.sub,
627         classpath/ltmain.sh : Update.
628         * classpath/configure, classpath/depcomp, classpath/missing,
629         classpath/aclocal.m4, classpath/install-sh: Regenerate.
630
631         * gnu/classpath/Configuration.java (CLASSPATH_VERSION): Now 0.95.
632         * sources.am: Regenerate.
633         * Makefile.in: Regenerate.
634
635         * Update the .class files and generated CNI header files, add new
636         .class and generated CNI header files.
637         * Remove generated files for removed java source files:
638         classpath/gnu/java/net/BASE64.java,
639         classpath/gnu/java/security/util/Base64.java,
640         classpath/gnu/java/awt/peer/gtk/GThreadMutex.java,
641         classpath/gnu/java/awt/peer/gtk/GThreadNativeMethodRunner.java,
642         classpath/gnu/java/awt/font/autofit/Scaler.java,
643         classpath/gnu/classpath/jdwp/util/Value.java,
644         classpath/gnu/javax/net/ssl/Base64.java.
645         * Remove empty directories.
646
647         * Makefile.am(nat_source_files): Add natVMOperatingSystemMXBeanImpl.cc.
648         * java/lang/Class.java(setAccessible): Merge from classpath.
649         * java/util/Locale.java: Remove.
650         * gnu/java/lang/management/VMOperatingSystemMXBeanImpl.java,
651         gnu/java/lang/management/natVMOperatingSystemMXBeanImpl.cc: New.
652         * gcj/javaprims.h: Update class declarations.
653         * scripts/classes.pl: Update usage.
654         * HACKING: Mention to build all peers.
655
656 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
657
658         * configure: Regenerate.
659
660 2007-05-31  Andrew Haley  <aph@redhat.com>
661
662         * java/lang/natClassLoader.cc (_Jv_NewClassFromInitializer): Clear
663         INTERPRETED access modifier.
664
665 2007-05-31  Paolo Bonzini  <bonzini@gnu.org>
666
667         PR libjava/32098
668         * configure: Regenerated.
669         * aclocal.m4: Regenerated.
670
671 2007-05-30  H.J. Lu  <hongjiu.lu@intel.com>
672
673         PR libjava/32098
674         * configure: Regenerated.
675
676 2007-05-29  H.J. Lu  <hongjiu.lu@intel.com>
677
678         * configure.ac: Don't include ../config/confsubdir.m4.
679         * aclocal.m4: Regenerated.
680         * configure: Likewise.
681
682 2007-05-27  Paolo Bonzini  <bonzini@gnu.org>
683
684         PR bootstrap/32078
685         * configure.ac: Include confsubdir.m4.
686         * configure: Regenerate.
687
688 2007-05-24  Keith Seitz  <keiths@redhat.com>
689
690         * include/java-interp.h (_Jv_InterpFrame::get_pc): Only deduct
691         one when pc_ptr is non-NULL.
692
693         * prims.cc (parse_init_args): Enable JVMTI with agentlib
694         and agentpath options.
695
696         * testsuite/lib/libjava.exp (exec_gij): Add new addl_flags
697         parameter.
698         * testsuite/libjava.jvmti/jvmti-interp.exp (gij_jvmti_test_one):
699         Pass '-agentlib:dummyagent' when executing gij.
700         (gij_jvmti_run): Build dummy JVMTI agent before running tests,
701         and remove it when finished.
702         * testsuite/libjava.jvmti/dummyagent.c: New file.
703
704 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
705
706         * Makefile.in: Regenerate.
707         * configure: Regenerate.
708         * aclocal.m4: Regenerate.
709         * gcj/Makefile.in: Regenerate.
710         * include/Makefile.in: Regenerate.
711         * testsuite/Makefile.in: Regenerate.
712
713 2007-05-17  Kyle Galloway  <kgallowa@redhat.com>
714
715         * classpath/gnu/classpath/jdwp/processor/ReferenceTypeCommandSet.java
716         (executeMethods): Remove cast to ClassReferenceTypeId.
717         * classpath/lib/gnu/classpath/jdwp/processor/
718         ReferenceTypeCommandSet.class: Rebuilt.
719
720 2007-05-17  Kyle Galloway  <kgallowa@redhat.com>
721
722         * gnu/classpath/jdwp/natVMMethod.cc (getModifiers): Check for native
723         classes and mark methods as native appropriately.
724
725 2007-05-17  Kyle Galloway  <kgallowa@redhat.com>
726
727         * gnu/classpath/jdwp/VMFrame.java (<init>): Add parameter for "this"
728         pointer.
729         * gnu/classpath/jdwp/VMFrame.h: Regenerated.
730         * classpath/lib/gnu/classpath/jdwp/VMFrame.class: Rebuilt.
731         * gnu/classpath/jdwp/natVMVirtualMachine.cc (getFrame): Use new
732         VMFrame constructor.
733
734 2007-05-16  David Daney  <ddaney@avtrex.com>
735
736         * include/java-stack.h (_Jv_FrameInfo): Remove union definition.
737         (_Jv_StackFrame): Remove commented out code.
738         (_Jv_UnwindState): Remove superfluous 'typedef'.
739         * sun/misc/natUnsafe.cc (spinlock): Add white space to quiet
740         compiler warnings.
741         * gnu/java/lang/management/natVMMemoryPoolMXBeanImpl.cc
742         (getCollectionUsage): Don't declare unused parameter n.
743         (getMemoryManagerNames): Same.
744         * gnu/gcj/util/natGCInfo.cc (gc_debug_info): Remove superfluous
745         'typedef'.
746
747 2007-05-16  Keith Seitz  <keiths@redhat.com>
748
749         * include/java-interp.h (breakpoint_at): Declare.
750         * interpret.cc (breakpoint_at): New function.
751         * gnu/classpath/jdwp/VMVirtualMachine.java (_event_list):
752         New member.
753         * gnu/classpath/jdwp/natVMVirtualMachine.cc (initialize):
754         Initialize _event_list.
755         (handle_single_step): If there is a breakpoint at the
756         location at which we are stopping, do not send the notification.
757         Instead add the event to a list of events that occur at this
758         location.
759         (jdwpBreakpointCB): If the event list is not empty, send
760         whatever events are in it and the breakpoint event in a single
761         notification.
762         Mark parameter jni_env as MAYBE_UNUSED.
763         * classpath/lib/gnu/classpath/jdwp/VMVirtualMachine.class:
764         Regenerated.
765         * gnu/classpath/jdwp/VMVirtualMachine.h: Regenerated.
766
767 2007-05-15  David Daney  <ddaney@avtrex.com>
768
769         * classpath/lib/javax/swing/text/html/HTMLEditorKit.class: Regenerate
770         * gnu/java/awt/peer/gtk/ComponentGraphics.h: Same.
771
772 2007-05-15  Keith Seitz  <keiths@redhat.com>
773
774         * interpret.cc (STOREA): Rewrite using temporary variable to
775         avoid double-macro expansion side-effects.
776         (STOREI): Likewise.
777         (STOREF): Likewise.
778         (STOREL)[SIZEOF_VOID_P == 8]: Likewise.
779         (STORED)[SIZEOF_VOID_P == 8]: Likewise.
780         (STOREL)[SIZEOF_VOID_P != 8]: Likewise.
781         (STORED)[SIZEOF_VOID_P != 8]: Likewise.
782         (POKEI): Likewise.
783
784 2007-05-12  David Daney  <ddaney@avtrex.com>
785
786         PR libgcj/29324
787         * include/posix-threads.h (_Jv_BlockSigchld): Declare.
788         (_Jv_UnBlockSigchld): Same.
789         * posix-threads.cc: Include posix-threads.h.
790         (block_sigchld) Rename to...
791         (_Jv_BlockSigchld) ... this.
792         (_Jv_UnBlockSigchld): New function.
793         (_Jv_InitThreads): Call _Jv_BlockSigchld in place of block_sigchld.
794         (_Jv_ThreadStart): Same.
795         * java/lang/PosixProcess$ProcessManager.h: Regenerate.
796         * java/lang/PosixProcess.java: Clean up imports.
797         (ProcessManager): Make final.
798         (ProcessManager.queue): Genericise and make private.
799         (ProcessManager.pidToProcess): Remove.
800         (ProcessManager.liveProcesses): New field.
801         (ProcessManager.reaperPID): Remove.
802         (ProcessManager.nativeData): New field.
803         (ProcessManager.removeProcessFromMap): Remove.
804         (ProcessManager.addProcessToMap):Remove.
805         (ProcessManager.addToLiveProcesses): New method.
806         (ProcessManager.run): Rewritten.
807         (ProcessManager.reap): Change method signature,
808         (getErrorStream): Correct formatting.
809         (getInputStream): Same.
810         (spawn): Add process to liveProcesses list.
811         (pid): Make package private.
812         * java/lang/PosixProcess.h: Regenerate.
813         * java/lang/natPosixProcess.cc: Include posix.h and posix-threads.h.
814         Add useing namespace java::lang.
815         (ProcessManagerInternal): New struct.
816         (sigchld_handler): Rewritten.
817         (init): Rewritten.
818         (waitForSignal): Same.
819         (reap): Same.
820         (signalReaper): Same.
821         (nativeDestroy): Call kill as ::kill.
822         (nativeSpawn): Correct formatting.
823         * classpath/lib/java/lang/PosixProcess$EOFInputStream.class: Regenerate.
824         * classpath/lib/java/lang/PosixProcess.class: Same.
825         * classpath/lib/java/lang/PosixProcess$ProcessManager.class: Same.
826
827 2007-05-07  Ian Lance Taylor  <iant@google.com>
828
829         PR java/31842
830         * java/lang/natString.cc (_Jv_FormatInt): Avoid undefined signed
831         overflow.
832
833 2007-05-07  Keith Seitz  <keiths@redhat.com>
834
835         * classpath/lib/gnu/classpath/jdwp/Jdwp.class: Regenerate.
836         * classpath/lib/gnu/classpath/jdwp/Jdwp$1.class: Regenerate.
837         * classpath/lib/gnu/classpath/jdwp/event/Event.class:
838         Regenerate.
839         * classpath/lib/gnu/classpath/jdwp/transport/JdwpConnection.class:
840         Regenerate.
841         * gnu/classpath/jdwp/Jdwp.h: Regenerate.
842         * gnu/classpath/jdwp/event/Event.h: Regenerate.
843         * gnu/classpath/jdwp/transport/JdwpConnection.h: Regenerate.
844
845 2007-05-04  Kyle Galloway  <kgallowa@redhat.com>
846
847         * gnu/classpath/jdwp/natVMVirtualMachine.cc (getClassMethod): Change
848         to use JVMTI.
849
850 2007-05-03  Keith Seitz  <keiths@redhat.com>
851
852         * interpret.cc: Don't include ExceptionEvent.h.
853         * gnu/gcj/jvmti/natExceptionEvent.cc: Remove.
854         * Makefile.am (nat_source_files): Remove natExceptionEvent.cc.
855         * Makefile.in: Regenerated.
856
857 2007-05-03  Keith Seitz  <keiths@redhat.com>
858
859         * include/jvmti-int.h (_Jv_ReportJVMTIExceptionThrow):
860         Declare.
861         * interpret.cc (_Jv_ReportJVMTIExceptionThrow): New function.
862         (find_catch_location): New function.
863         (REPORT_EXCEPTION): New macro.
864         (throw_internal_error): Use REPORT_EXCEPTION.
865         (throw_incompatible_class_change_error): Likewise.
866         (throw_null_pointer_exception): Likewise.
867         (throw_class_format_error): Likewise.
868         * interpret-run.cc (INTERP_REPORT_EXCEPTION)[DEBUG]: Set
869         to REPORT_EXCEPTION.
870         (INTERP_REPORT_EXCEPTION)[!DEBUG]: Make nop.
871         (insn_new): Use INTERP_REPORT_EXCEPTION.
872         (insn_athrow): Likewise.
873         Remove previous JVMTI exception notifications.
874         Add JVMTI ExceptionCatch notificatin.
875         * jni.cc (_Jv_PopSystemFrame): Notify JVMTI clients of
876         exception throw.
877         * gnu/gcj/jvmti/ExceptionEvent.java: Removed.
878         * gnu/gcj/jvmti/ExceptionEvent.h: Removed. 
879         * classpath/lib/gnu/gcj/jvmti/ExceptionEvent.class: Removed.
880         * gnu/classpath/jdwp/natVMVirtualMachine.cc
881         (jdwpExceptionCB): New function.
882         (jdwpVMInitCB): Set Exception event handler and enable.
883         * sources.am: Regenerated.
884         * Makefile.in: Regenerated.
885
886 2007-05-03  Thomas Fitzsimmons  <fitzsim@redhat.com>
887
888         https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=237304
889         * Makefile.in: Regenerate.
890         * scripts/makemake.tcl (scan_directory): Treat default.css as a
891         property file.
892         * classpath/javax/swing/text/html/default.css: Move to...
893         * classpath/resource/javax/swing/text/html/default.css: New file.
894         * classpath/javax/swing/text/html/HTMLEditorKit.java
895         (getStyleSheet): Throw RuntimeException when style loading fails.
896         * sources.am (property_files): Add
897         classpath/resource/javax/swing/text/html/default.css.
898
899 2007-05-02  Tom Tromey  <tromey@redhat.com>
900
901         https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=238755
902         * java/lang/natCharacter.cc (Character::getType): Handle negative
903         code points.
904         (Character::toLowerCase): Likewise.
905         (Character::toUpperCase): Likewise.
906         (Character::digit): Likewise.
907         (Character::getNumericValue): Likewise.
908         (Character::getDirectionality): Likewise.
909         (Character::toTitleCase): Likewise.
910
911 2007-04-30  Keith Seitz  <keiths@redhat.com>
912
913         * interpret-run.cc (NEXT_INSN)[DEBUG]: Advance PC before
914         executing the instruction.
915         * include/java-interp.h (_Jv_InterpFrame::get_pc): Subtract
916         one insn from the frame's PC. _Jv_InterpMethod::run et al
917         will advance the PC before executing the instruction.
918
919 2007-04-27  Keith Seitz  <keiths@redhat.com>
920
921         * classpath/lib/gnu/classpath/jdwp/Jdwp.class: Regenerated.
922         * classpath/lib/gnu/classpath/jdwp/event/EventManager.class:
923         Regenerated.
924         * gnu/classpath/jdwp/event/EventManager.h: Regenerated.
925
926 2007-04-27  Keith Seitz  <keiths@redhat.com>
927
928         * classpath/lib/gnu/classpath/jdwp/event/filters/
929         LocationOnlyFilter.class: Regenerated;
930         * classpath/lib/gnu/classpath/jdwp/util/Location.class:
931         Regenerated.
932         * gnu/classpath/jdwp/VMMethod.java
933         * classpath/lib/gnu/classpath/jdwp/VMMethod.class:
934         Regenerated.
935         * gnu/classpath/jdwp/VMMethod.h: Regenerated.
936         * gnu/classpath/jdwp/util/Location.h: Regenerated.
937
938 2007-04-27  Thomas Fitzsimmons  <fitzsim@redhat.com>
939
940         * gnu/java/awt/peer/gtk/CairoGraphics2D.h: Regenerate.
941         * gnu/java/awt/peer/gtk/ComponentGraphics.h: Regenerate.
942
943 2007-04-25  Kyle Galloway  <kgallowa@redhat.com>
944
945         * gnu/classpath/jdwp/VMIdManager.java (getObjectId): Deal with null
946         objects.
947         (get): Deal with ObjectId of 0. 
948
949 2007-04-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
950
951         PR libgcj/31084
952         * java/lang/natVMProcess.cc: Include platform.h before jvm.h.
953
954 2007-04-24  Kyle Galloway  <kgallowa@redhat.com>
955
956         * gnu/classpath/jdwp/natVMVirtualMachine.java
957         (getThreadStatus): Implement.
958
959 2007-04-24  Keith Seitz  <keiths@redhat.com>
960
961         * headers.txt (gnu/gcj/jvmti/Breakpoint.h)[DIRECT_THREADED]:
962         Add _Jv_RewriteBreakpointInsn friend declaration.
963         * gnu/gcj/jvmti/natBreakpoint.cc (_Jv_RewriteBreakpointInsn)
964         [DIRECT_THREADED]: New function.
965         * gnu/gcj/jvmti/Breakpoint.h: Regenerate.
966         * interpret-run.cc: Define new REWRITE_INSN macro.
967         Changed all occurrences of insn rewriting to call REWRITE_INSN.
968
969 2007-04-23  Keith Seitz  <keiths@redhat.com>
970
971         * include/no-gc.h (_Jv_IsThreadSuspended): Declare.
972         * include/boehm-gc.h (_Jv_IsThreadSuspended): Likewise.
973         * boehm.cc (_Jv_IsThreadSuspended): New function.
974         * nogc.cc (_Jv_IsThreadSuspended): Likewise.
975         * jvmti.cc (_Jv_JVMTI_GetThreadState): New function.
976         (_Jv_JVMTI_Interface): Define GetThreadState.
977
978 2007-04-23  Kyle Galloway  <kgallowa@redhat.com>
979
980         * include/java-interp.h (_Jv_InterpFrame): Add pointer to the
981         interpreter PC.
982         (<init>): Add a pointer to the interpreter PC as a parameter with
983         default value NULL.
984         (get_pc): New method.
985         * interpret-run.cc: If debugging, pass a pointer to the PC when
986         creating the stack frame.
987         * jvmti.cc (_Jv_JVMTI_GetStackTrace): Call _Jv_InterpFrame::get_pc
988         to get the PC.
989
990 2007-04-23  Kyle Galloway  <kgallowa@redhat.com>
991
992         * gnu/classpath/jdwp/natVMVirtualMachine.cc (getSourceFile): Check
993         for null source file and throw an exception indicating this.
994
995 2007-04-20  Keith Seitz  <keiths@redhat.com>
996
997         * gnu/gcj/jvmti/BreakpointManager.java (newBreakpoint):
998         Install the new breakpoint into the bytecode.
999         (deleteBreakpoint): Remove the breakpoint from the bytecode.
1000         * classpath/lib/gnu/gcj/jvmti/BreakpointManager.class:
1001         Regenerate.
1002         * gnu/gcj/jvmti/natBreakpoint.cc (initialize_native):
1003         Don't install the breakpoint here.
1004
1005 2007-04-19  Keith Seitz  <keiths@redhat.com>
1006
1007         * interpret-run.cc [insn_breakpoint]: Save the original
1008         insn for the breakpoint before posting the JVMTI notification.
1009
1010 2007-04-19  Tom Tromey  <tromey@redhat.com>
1011
1012         * gnu/javax/net/ssl/provider/SSLSocketFactoryImpl.h: Rebuilt.
1013
1014 2007-04-18  Tom Tromey  <tromey@redhat.com>
1015
1016         * Regenerated headers with new gjavah.
1017
1018 2007-04-18  Andrew Haley  <aph@redhat.com>
1019
1020         * java/lang/reflect/natVMProxy.cc (ncode_closure): Add
1021         method_index.
1022         (generateProxyClass): Add field $Proxy0.m.  Store methods array in
1023         it.
1024         (run_proxy): Retrieve the method to invoke from in $Proxy0.m.
1025         * java/lang/Class.h: Remove _Jv_LookupProxyMethod.
1026         * java/lang/natClass.cc: Likewise.
1027         * headers.txt: Likewise.
1028         * java/lang/reflect/Method.h: Likewise.
1029
1030 2007-04-16  Andrew Haley  <aph@redhat.com>
1031
1032         * gnu/gcj/runtime/BootClassLoader.java (getBootURLLoader): New
1033         method.
1034         (bootGetResource): Use getBootURLLoader() to load resources.
1035         (bootGetResources): Likewise.
1036
1037         * java/lang/reflect/natMethod.cc (Method::invoke): In invoke also
1038         check that the method's declaring class is accessible.
1039
1040 2007-04-10  Keith Seitz  <keiths@redhat.com>
1041
1042         * sources.am: Regenerate.
1043         * Makefile.in: Likewise.
1044
1045 2007-04-09  Kyle Galloway  <kgallowa@redhat.com>
1046
1047         * interpret-run.cc: If debugging, check if args is NULL before
1048         getting the "this" pointer.
1049
1050 2007-04-09  Kyle Galloway  <kgallowa@redhat.com>
1051
1052         * classpath/gnu/classpath/jdwp/value/ArrayValue.java: New file.
1053         * classpath/lib/gnu/classpath/jdwp/value/ArrayValue.class: New file.
1054         * gnu/classpath/jdwp/ArrayValue.h: New file.
1055         * gnu/classpath/jdwp/natVMFrame.cc (getValue): Add array case.
1056         (setValue): Ditto. 
1057
1058 2007-04-09  David Daney  <ddaney@avtrex.com>
1059
1060         PR libgcj/23758
1061         * java/lang/natPosixProcess.cc (nativeSpawn): Move building of
1062         environment before the fork.
1063         * testsuite/libjava.lang/Process_7.java: New test.
1064         * testsuite/libjava.lang/Process_7.out: Its expected results.
1065         * testsuite/libjava.lang/Process_7.jar: Generated file.
1066
1067 2007-04-09  H.J. Lu  <hongjiu.lu@intel.com>
1068
1069         * prims.cc (load_jvmti_agent): Add the missing `,'.
1070
1071 2007-04-09  Kyle Galloway  <kgallowa@redhat.com>
1072
1073         * gij.cc (main): Accept -agentlib and -agentpath options.
1074         * prims.cc (parse_init_args): Deal with -agentlib and -agentpath.
1075         (load_jvmti_agent): New function.
1076
1077 2007-04-04  Tania Bento  <tbento@redhat.com>
1078
1079         * java/text/DecimalFormatSymbols.java: Added the year 2007 to
1080         Copyright information and introduced new variable, currency.
1081         (DecimalFormatSymbols(Locale)): Define currency and intlCurrencySymbol
1082         to "XXX", currencySymbol to "?" and localCurrency appropriately.
1083         (getCurrency): Fixed documentation and return the value of currency.
1084         (setCurrency): Fixed documentation and update the value of currency.
1085         (setInternationalCurrencySymbol): Fixed documentation and update the
1086         value of currency.
1087         * java/util/Currency.java: Introduced two new variables, properties
1088         and fractionDigits. In the static block, a properties object is
1089         created and the currency resource is loaded.
1090         (Currency(Locale)): fractionDigits is defined.
1091         (Currency(String)): New method.
1092         (getDefaultFractionDigits): Return the value of fractionDigits.
1093         (getInstance(String)): Check if String is equal to "XXX".
1094
1095 2007-04-04  Kyle Galloway  <kgallowa@redhat.com>
1096
1097         * classpath/gnu/classpath/jdwp/util/VariableTable.java: Change longs
1098         to ints for argCnt and slots.
1099         (write): Replace writeLong with writeInt for the above. 
1100
1101 2007-04-03  Andrew Haley  <aph@redhat.com>
1102
1103         * testsuite/libjava.lang/ProxyTest.java: New test.
1104
1105 2007-04-02  Tom Tromey  <tromey@redhat.com>
1106
1107         http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=205157
1108         * gnu/java/nio/channels/natFileChannelPosix.cc (mapImpl): Extend
1109         file, when writing, if it is too short.
1110
1111 2007-04-02  Tom Tromey  <tromey@redhat.com>
1112
1113         https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=233406
1114         * gnu/java/net/natPlainSocketImplPosix.cc (create): Return if
1115         already created.
1116         * gnu/java/net/PlainSocketImpl.java (getLocalAddress): Handle case
1117         where localport is -1.
1118         (create): Now public.
1119         * gnu/java/nio/SocketChannelImpl.java (SocketChannelImpl): Call
1120         'create' on the socket.
1121
1122 2007-04-02  Andrew Haley  <aph@redhat.com>
1123
1124         * java/lang/reflect/natVMProxy.cc (run_proxy): Use
1125         _Jv_LookupProxyMethod to find the Method.
1126         If parameter_types->length == 0, pass a null paramameter list,
1127         not a zero-length parameter list.
1128         * java/lang/natClass.cc (_Jv_LookupProxyMethod): New function.
1129         * java/lang/Class.h (_Jv_LookupProxyMethod): Declare.
1130
1131 2007-04-02  Kyle Galloway  <kgallowa@redhat.com>
1132
1133         * interpret-run.cc: Add code to properly set up variable slots
1134         when debugging.
1135         * gnu/classpath/jdwp/natVMFrame.cc (checkJVMTIError): New function.
1136         (getObjectJVMTI): New function.
1137         (setObjectJVMTI): New function.
1138         (getIntJVMTI): New function.
1139         (setIntJVMTI): New function.
1140         (getLongJVMTI): New function.
1141         (setLongJVMTI): New function.
1142         (getFloatJVMTI): New function.
1143         (setFloatJVMTI): New function.
1144         (getDoubleJVMTI): New function.
1145         (setDoubleJVMTI): New function.
1146         (getFrameDepth): New function.
1147         (getValue): Implement.
1148         (setValue): Implement. 
1149
1150 2007-04-02  Kyle Galloway  <kgallowa@redhat.com>
1151
1152         * classpath/gnu/classpath/jdwp/processor/ThreadReferenceCommandSet.java
1153         (executeResume): Call VMVirtualMachine.resumeThread.
1154
1155 2007-03-29  Tom Tromey  <tromey@redhat.com>
1156
1157         PR libgcj/29869:
1158         * java/util/logging/LogManager.java (readConfiguration): Handle
1159         comma-separated 'handlers'.  Don't try to add a non-existing
1160         handler.
1161
1162 2007-03-27  Tom Tromey  <tromey@redhat.com>
1163
1164         * sources.am, Makefile.in: Rebuilt.
1165         * scripts/mime.types: Removed.
1166         * scripts/MakeDefaultMimeTypes.java: Removed.
1167         * gnu/gcj/io/MimeTypes.java: Removed.
1168         * gnu/gcj/io/MimeTypes.h: Removed.
1169         * gnu/gcj/io/DefaultMimeTypes.java: Removed.
1170         * gnu/gcj/io/DefaultMimeTypes.h: Removed.
1171
1172 2007-03-27  Keith Seitz  <keiths@redhat.com>
1173
1174         * gnu/classpath/jdwp/VMFrame.java: Update from upstream
1175         classpath.
1176         * gnu/classpath/jdwp/natVMFrame.cc: Likewise.
1177         * gnu/classpath/jdwp/VMVirtualMachine.java: Likewise.
1178         * gnu/classpath/jdwp/natVMVirtualMachine.cc: Likewise.
1179         (initialize): Fix compiler type-punning warning.
1180         (getAllLoadedClasses): Return empty list instead of NULL.
1181         (getLoadRequests): Likewise.
1182         * gnu/classpath/jdwp/exception/InvalidTagException.h: New file.
1183         * gnu/classpath/jdwp/exception/InvalidSlotException.h: New file.
1184         * gnu/classpath/jdwp/exception/TypeMismatchException.h: New file.
1185         * gnu/classpath/jdwp/VMVirtualMachine.h: Rebuilt.
1186         * gnu/classpath/jdwp/value/CharValue.h: New file.
1187         * gnu/classpath/jdwp/value/LongValue.h: New file.
1188         * gnu/classpath/jdwp/value/ShortValue.h: New file.
1189         * gnu/classpath/jdwp/value/Value.h: New file.
1190         * gnu/classpath/jdwp/value/BooleanValue.h: New file.
1191         * gnu/classpath/jdwp/value/VoidValue.h: New file.
1192         * gnu/classpath/jdwp/value/ByteValue.h: New file.
1193         * gnu/classpath/jdwp/value/FloatValue.h: New file.
1194         * gnu/classpath/jdwp/value/ObjectValue.h: New file.
1195         * gnu/classpath/jdwp/value/StringValue.h: New file.
1196         * gnu/classpath/jdwp/value/ValueFactory.h: New file.
1197         * gnu/classpath/jdwp/value/IntValue.h: New file.
1198         * gnu/classpath/jdwp/value/DoubleValue.h: New file.
1199         * gnu/classpath/jdwp/VMFrame.h: Rebuilt.
1200         * gnu/classpath/jdwp/id/NullObjectId.h: New file.
1201         * gnu/classpath/jdwp/util/MethodResult.h: Rebuilt.
1202         * gnu/classpath/jdwp/util/NullObject.h: New file.
1203         * gnu/classpath/jdwp/util/MonitorInfo.h: New file.
1204         * Makefile.in: Rebuilt.
1205         * sources.am: Rebuilt.
1206
1207 2006-03-26  David Daney  <ddaney@avtrex.com>
1208
1209         * configure.ac: Remove checks for mktime, alloca, ioctl, gmtime_r,
1210         fork, execvp, execinfo.h, pthread_mutexattr_settype,
1211         pthread_mutexattr_setkind_np and sys/wait.h.
1212         * Makefile.in: Regenerate.
1213         * include/Makefile.in: Regenerate.
1214         * include/config.h.in: Regenerate.
1215         * testsuite/Makefile.in: Regenerate.
1216         * configure: Regenerate.
1217         * gcj/Makefile.in: Regenerate.
1218
1219 2007-03-23  Gary Benson  <gbenson@redhat.com>
1220
1221         * link.cc (_Jv_Linker::resolve_method_entry):
1222         Ensure that the argument types and the return type of the
1223         found method match those expected by the calling method.
1224
1225 2007-03-22  David Daney  <ddaney@avtrex.com>
1226
1227         PR libgcj/31228
1228         * configure.ac: Add checks for getrlimit and sys/resource.h.
1229         * include/posix.h (_Jv_platform_close_on_exec): Remove.
1230         * include/config.h.in: Regenerate.
1231         * configure: Regenerate.
1232         * gnu/java/nio/channels/natFileChannelPosix.cc (open): Remove call to
1233         _Jv_platform_close_on_exec;
1234         * gnu/java/net/natPlainSocketImplPosix.cc (create): Likewise.
1235         (accept): Likewise.
1236         * gnu/java/net/natPlainDatagramSocketImplPosix.cc (create):Likewise.
1237         * java/lang/natPosixProcess.cc: Include sys/resource.h.
1238         (nativeSpawn): Close all file descriptors.  Don't set FD_CLOEXEC on
1239         pipes.
1240
1241 2007-03-20  Andrew Haley  <aph@redhat.com>
1242
1243         * testsuite/libjava.lang/PR31264.java: New test.
1244
1245 2007-03-14  Jakub Jelinek  <jakub@redhat.com>
1246
1247         * Makefile.am (AM_MAKEFLAGS): Pass through mandir.
1248         * Makefile.in: Rebuilt.
1249
1250 2007-03-13  Keith Seitz  <keiths@redhat.com>
1251
1252         * include/java-interp.h (_Jv_InterpClass): Declare
1253         friend function _Jv_GetInterpClassSourceFile.
1254         * java/lang/Class.h (Class): Likewise.
1255         * java/lang/natClass.cc (_Jv_GetInterpClassSourceFile):
1256         New function.
1257         * gnu/classpath/jdwp/natVMVirtualMachine.cc
1258         (getSourceFile): Implement.
1259
1260 2007-03-13  Thomas Fitzsimmons  <fitzsim@redhat.com>
1261
1262         * Makefile.am (AM_CXXFLAGS): Define ECJ_JAR_FILE.
1263         * classpath/configure.ac: Add --with-ecj-jar configure option.
1264         * classpath/gnu/classpath/Configuration.java.in (ECJ_JAR): New
1265         field.
1266         * classpath/INSTALL: Document --with-ecj-jar configure option and
1267         ecj jar requirement for com.sun.tools.javac support.
1268         * classpath/tools/Makefile.am: Build decendents of com and sun
1269         directories.
1270         * configure.ac: Substitute ECJ_JAR in stub Configuration.java.
1271         * gnu/classpath/Configuration.java,
1272         gnu/classpath/natConfiguration.cc (ecj): New method.
1273         (ECJ_JAR): New field.
1274         * scripts/makemake.tcl (scan_packages): Add com directory.
1275         * sources.am (property_files): Add
1276         classpath/resource/sun/rmi/rmic/messages.properties and
1277         classpath/resource/com/sun/tools/javac/messages.properties.
1278         * classpath/resource/com, classpath/resource/com/sun,
1279         classpath/resource/com/sun/tools,
1280         classpath/resource/com/sun/tools/javac, classpath/resource/sun,
1281         classpath/resource/sun/rmi, classpath/resource/sun/rmi/rmic,
1282         classpath/tools/classes/com, classpath/tools/classes/com/sun,
1283         classpath/tools/classes/com/sun/javadoc,
1284         classpath/tools/classes/com/sun/tools,
1285         classpath/tools/classes/com/sun/tools/doclets,
1286         classpath/tools/classes/sun, classpath/tools/classes/sun/rmi,
1287         classpath/tools/classes/sun/rmi/rmic, classpath/tools/com,
1288         classpath/tools/com/sun, classpath/tools/com/sun/javadoc,
1289         classpath/tools/com/sun/tools,
1290         classpath/tools/com/sun/tools/doclets,
1291         classpath/tools/com/sun/tools/javac, classpath/tools/sun,
1292         classpath/tools/sun/rmi, classpath/tools/sun/rmi/rmic: New
1293         directories.
1294         * classpath/resource/com/sun/tools/javac/messages.properties,
1295         classpath/resource/sun/rmi/rmic/messages.properties,
1296         classpath/tools/classes/com/sun/javadoc/ClassDoc.class,
1297         classpath/tools/classes/com/sun/javadoc/ConstructorDoc.class,
1298         classpath/tools/classes/com/sun/javadoc/Doc.class,
1299         classpath/tools/classes/com/sun/javadoc/DocErrorReporter.class,
1300         classpath/tools/classes/com/sun/javadoc/Doclet.class,
1301         classpath/tools/classes/com/sun/javadoc/ExecutableMemberDoc.class,
1302         classpath/tools/classes/com/sun/javadoc/FieldDoc.class,
1303         classpath/tools/classes/com/sun/javadoc/MemberDoc.class,
1304         classpath/tools/classes/com/sun/javadoc/MethodDoc.class,
1305         classpath/tools/classes/com/sun/javadoc/PackageDoc.class,
1306         classpath/tools/classes/com/sun/javadoc/ParamTag.class,
1307         classpath/tools/classes/com/sun/javadoc/Parameter.class,
1308         classpath/tools/classes/com/sun/javadoc/ProgramElementDoc.class,
1309         classpath/tools/classes/com/sun/javadoc/RootDoc.class,
1310         classpath/tools/classes/com/sun/javadoc/SeeTag.class,
1311         classpath/tools/classes/com/sun/javadoc/SerialFieldTag.class,
1312         classpath/tools/classes/com/sun/javadoc/SourcePosition.class,
1313         classpath/tools/classes/com/sun/javadoc/Tag.class,
1314         classpath/tools/classes/com/sun/javadoc/ThrowsTag.class,
1315         classpath/tools/classes/com/sun/javadoc/Type.class,
1316         classpath/tools/classes/com/sun/javadoc/TypeVariable.class,
1317         classpath/tools/classes/com/sun/tools/doclets/Taglet.class,
1318         classpath/tools/classes/sun/rmi/rmic/Main.class,
1319         classpath/tools/classes/sun/rmi/rmic/Messages.class,
1320         classpath/tools/com/sun/javadoc/ClassDoc.java,
1321         classpath/tools/com/sun/javadoc/ConstructorDoc.java,
1322         classpath/tools/com/sun/javadoc/Doc.java,
1323         classpath/tools/com/sun/javadoc/DocErrorReporter.java,
1324         classpath/tools/com/sun/javadoc/Doclet.java,
1325         classpath/tools/com/sun/javadoc/ExecutableMemberDoc.java,
1326         classpath/tools/com/sun/javadoc/FieldDoc.java,
1327         classpath/tools/com/sun/javadoc/MemberDoc.java,
1328         classpath/tools/com/sun/javadoc/MethodDoc.java,
1329         classpath/tools/com/sun/javadoc/PackageDoc.java,
1330         classpath/tools/com/sun/javadoc/ParamTag.java,
1331         classpath/tools/com/sun/javadoc/Parameter.java,
1332         classpath/tools/com/sun/javadoc/ProgramElementDoc.java,
1333         classpath/tools/com/sun/javadoc/RootDoc.java,
1334         classpath/tools/com/sun/javadoc/SeeTag.java,
1335         classpath/tools/com/sun/javadoc/SerialFieldTag.java,
1336         classpath/tools/com/sun/javadoc/SourcePosition.java,
1337         classpath/tools/com/sun/javadoc/Tag.java,
1338         classpath/tools/com/sun/javadoc/ThrowsTag.java,
1339         classpath/tools/com/sun/javadoc/Type.java,
1340         classpath/tools/com/sun/javadoc/TypeVariable.java,
1341         classpath/tools/com/sun/tools/doclets/Taglet.java,
1342         classpath/tools/com/sun/tools/javac/Main.java,
1343         classpath/tools/com/sun/tools/javac/Messages.java,
1344         classpath/tools/sun/rmi/rmic/Main.java,
1345         classpath/tools/sun/rmi/rmic/Messages.java: New files.
1346         * Makefile.in, classpath/Makefile.in, classpath/configure,
1347         classpath/doc/Makefile.in, classpath/doc/api/Makefile.in,
1348         classpath/examples/Makefile.in, classpath/external/Makefile.in,
1349         classpath/external/jsr166/Makefile.in,
1350         classpath/external/relaxngDatatype/Makefile.in,
1351         classpath/external/sax/Makefile.in,
1352         classpath/external/w3c_dom/Makefile.in,
1353         classpath/include/Makefile.in, classpath/include/config.h.in,
1354         classpath/lib/Makefile.in,
1355         classpath/lib/gnu/classpath/Configuration.class,
1356         classpath/native/Makefile.in, classpath/native/fdlibm/Makefile.in,
1357         classpath/native/jawt/Makefile.in,
1358         classpath/native/jni/Makefile.in,
1359         classpath/native/jni/classpath/Makefile.in,
1360         classpath/native/jni/gconf-peer/Makefile.in,
1361         classpath/native/jni/gtk-peer/Makefile.in,
1362         classpath/native/jni/java-io/Makefile.in,
1363         classpath/native/jni/java-lang/Makefile.in,
1364         classpath/native/jni/java-net/Makefile.in,
1365         classpath/native/jni/java-nio/Makefile.in,
1366         classpath/native/jni/java-util/Makefile.in,
1367         classpath/native/jni/midi-alsa/Makefile.in,
1368         classpath/native/jni/midi-dssi/Makefile.in,
1369         classpath/native/jni/native-lib/Makefile.in,
1370         classpath/native/jni/qt-peer/Makefile.in,
1371         classpath/native/jni/xmlj/Makefile.in,
1372         classpath/native/plugin/Makefile.in,
1373         classpath/resource/Makefile.in, classpath/scripts/Makefile.in,
1374         classpath/tools/Makefile.in, configure,
1375         gnu/classpath/Configuration.h: Regenerate.
1376
1377 2007-03-12  Kyle Galloway  <kgallowa@redhat.com>
1378
1379         * jvmti.cc (_Jv_JVMTI_GetArgumentsSize): Make wide type arrays count
1380         as a sigle slot.
1381
1382 2007-03-12  Marco Trudel  <mtrudel@gmx.ch>
1383
1384         * java/lang/natString.cc (getBytes (jstring enc)):
1385         Fixed the loop for multiple cycles, Code cleanup
1386
1387 2007-03-09  Tom Tromey  <tromey@redhat.com>
1388
1389         * sources.am, Makefile.in: Rebuilt.
1390         * scripts/makemake.tcl (scan_directory): Allow service files to be
1391         omitted.
1392         Omit all XML-related service files.
1393
1394 2007-03-07  Tom Tromey  <tromey@redhat.com>
1395
1396         * configure: Rebuilt.
1397         * configure.ac: Clear vm-tools-packages.
1398
1399 2007-03-07  Mohan Embar  <gnustuff@thisiscool.com>
1400
1401         * java/lang/Win32Process.java: Added nested class EOFInputStream.
1402         * java/lang/natWin32Process.cc (ChildProcessPipe): Added DUMMY
1403         enum and implementation.
1404         (startProcess): Use redirect flag.
1405         * classpath/lib/java/lang/Win32Process.class: Regenerated.
1406         * classpath/lib/java/lang/Win32Process$EOFInputStream.class: New.
1407         * gcj/javaprims.h: Regenerated.
1408         * java/lang/Win32Process$EOFInputStream.h: New.
1409
1410 2007-03-07  Andrew Haley  <aph@redhat.com>
1411
1412         * libgcj_bc.c (JvRunMainName): Declare.
1413
1414 2007-03-07  Gary Benson  <gbenson@redhat.com>
1415
1416         * sources.am, Makefile.in: Rebuilt.
1417
1418 2007-03-07  Mohan Embar  <gnustuff@thisiscool.com>
1419
1420         * gcj/javaprims.h: Regenerated.
1421
1422 2007-03-07  Alexandre Oliva  <aoliva@redhat.com>
1423
1424         * include/jvm.h (_Jv_ClosureListFinalizer): New.
1425         (_Jv_Linker::create_error_method): Adjust.
1426         * boehm.cc (_Jv_ClosureListFinalizer): New.
1427         * nogc.cc (_Jv_ClosureListFinalizer): New.
1428         * java/lang/Class.h (class _Jv_ClosureList): New.
1429         (class java::lang::Class): Declare it as friend.
1430         * java/lang/natClass.cc (_Jv_ClosureList::releaseClosures): New.
1431         (_Jv_ClosureList::registerClousure): New.
1432         * include/execution.h (_Jv_ExecutionEngine): Add get_closure_list.
1433         (_Jv_CompiledEngine::do_get_closure_list): New.
1434         (_Jv_CompiledEngine::_Jv_CompiledEngine): Use it.
1435         (_Jv_IndirectCompiledClass): Add closures.
1436         (_Jv_IndirectCompiledEngine::get_aux_info): New.
1437         (_Jv_IndirectCompiledEngine::do_allocate_field_initializers): Use
1438         it.
1439         (_Jv_IndirectCompiledEngine::do_get_closure_list): New.
1440         (_Jv_IndirectCompiledEngine::_Jv_IndirectCompiledEngine): Use it.
1441         (_Jv_InterpreterEngine::do_get_closure_list): Declare.
1442         (_Jv_InterpreterEngine::_Jv_InterpreterEngine): Use it.
1443         * interpret.cc (FFI_PREP_RAW_CLOSURE): Use _loc variants.
1444         (node_closure): Add closure list.
1445         (_Jv_InterpMethod::ncode): Add jclass argument.  Use
1446         ffi_closure_alloc and the separate code pointer.  Register the
1447         closure for finalization.
1448         (_Jv_JNIMethod::ncode): Likewise.
1449         (_Jv_InterpreterEngine::do_create_ncode): Pass klass to ncode.
1450         (_Jv_InterpreterEngine::do_get_closure_list): New.
1451         * include/java-interp.h (_Jv_InterpMethod::ncode): Adjust.
1452         (_Jv_InterpClass): Add closures field.
1453         (_Jv_JNIMethod::ncode): Adjust.
1454         * defineclass.cc (_Jv_ClassReader::handleCodeAttribute): Adjust.
1455         (_Jv_ClassReader::handleMethodsEnd): Likewise.
1456         * link.cc (struct method_closure): Add closure list.
1457         (_Jv_Linker::create_error_method): Add jclass argument.  Use
1458         ffi_closure_alloc and the separate code pointer.  Register the
1459         closure for finalization.
1460         (_Jv_Linker::link_symbol_table): Remove outdated comment about
1461         sharing of otable and atable.  Adjust.
1462         * java/lang/reflect/natVMProxy.cc (ncode_closure): Add closure
1463         list.
1464         (ncode): Add jclass argument.  Use ffi_closure_alloc and the
1465         separate code pointer.  Register the closure for finalization.
1466         (java::lang::reflect::VMProxy::generateProxyClass): Adjust.
1467         * testsuite/libjava.jar/TestClosureGC.java: New.
1468         * testsuite/libjava.jar/TestClosureGC.out: New.
1469         * testsuite/libjava.jar/TestClosureGC.xfail: New.
1470         * testsuite/libjava.jar/TestClosureGC.jar: New.
1471
1472 2007-03-06  Kyle Galloway  <kgallowa@redhat.com>
1473
1474         * classpath/gnu/classpath/jdwp/exception/AbsentInformationException.java: New file.
1475         * classpath/lib/gnu/classpath/jdwp/exception/AbsentInformationException.class: Ditto.
1476         * gnu/classpath/jdwp/exception/AbsentInformationException.h: Ditto.
1477         * gnu/classpath/jdwp/natVMMethod.cc: Add CHECK_INTERP_CLASS macro.
1478         (VMMethod::getLineTable): Use new macro.
1479         (VMMethod::getVariableTable): Implement.
1480         * sources.am: Regenerated.
1481         * Makefile.in: Ditto.
1482
1483 2007-03-06  Tom Tromey  <tromey@redhat.com>
1484
1485         * Makefile.in: Rebuilt.
1486         * Makefile.am (bin_PROGRAMS): Added gcjh.
1487         (gcjh_SOURCES, gcjh_LDFLAGS, gcjh_LINK, gcjh_LDADD,
1488         gcjh_DEPENDENCIES): New variables.
1489
1490 2007-03-06  Kyle Galloway  <kgallowa@redhat.com>
1491
1492         * jvmti.cc(_Jv_JVMTI_GetLocalVariableTable): Fix _Jv_Malloc parameters.
1493         * testsuite/libjava.jvmti/interp/natgetlocalvartable.cc
1494         (do_getlocalvartable_tests): Add Deallocate calls to free strings.
1495
1496 2007-03-05  Matthias Klose  <doko@debian.org>
1497
1498         * Makefile.am (gij_LDFLAGS): Use dbexecdir.
1499         * Makefile.in: Regnerate.
1500
1501 2007-03-05  Mark Wielaard  <mark@klomp.org>
1502
1503         * java/lang/Character.java: Re-merged with Classpath.
1504         * java/lang/natString.cc (nativeCompareTo): Renamed from
1505         compareTo.
1506         * java/lang/StringBuilder.java: Re-merged with Classpath.
1507         * java/lang/String.java: Re-merged with Classpath.
1508         (nativeCompareTo): Renamed from compareTo.
1509         * java/lang/StringBuffer.java: Re-merged with Classpath.
1510         * jni.cc (_Jv_JNI_GetAnyMethodID): Split calls to append.
1511
1512 2007-03-05  Andrew Haley  <aph@redhat.com>
1513
1514         * java/lang/reflect/natVMProxy.cc (ncode_closure.meth): Delete.
1515         (generateProxyClass): Don't pass method to ncode.
1516         (run_proxy): Call _Jv_GetReflectedMethod to find the proxy method.
1517         * java/lang/reflect/Method.h: Rebuild.
1518         * java/lang/reflect/Method.java (internalGetParameterTypes,
1519         internalGetExceptionTypes): New methods.
1520         * headers.txt (class java/lang/reflect/Method): Declare
1521         _Jv_GetReflectedMethod.  Be its friend.
1522         * java/lang/natClass.cc (_Jv_GetReflectedMethod): New method.
1523         * java/lang/Class.h: Declare it.  Be its friend.
1524
1525 2007-03-05  Tom Tromey  <tromey@redhat.com>
1526
1527         * sources.am, Makefile.in: Rebuilt.
1528         * scripts/makemake.tcl (emit_package_rule): Don't omit
1529         VMProcess.java.
1530         * Makefile.am (nat_source_files): Added natVMProcess.cc.
1531         (inner_nat_headers): Added ImmediateEOFInputStream.h.
1532         * gcj/javaprims.h: Regenerated.
1533         * java/lang/System.java (EnvironmentMap): Now package-private.
1534         (EnvironmentMap(Map)): New constructor.
1535         (EnvironmentMap.put): New method.
1536         * java/lang/natWin32Process.cc (startProcess): Update.
1537         * java/lang/Win32Process.java (Win32Process): Added 'redirect'
1538         argument.
1539         (startProcess): Likewise.
1540         * java/lang/EcosProcess.java (EcosProcess): Added 'redirect'
1541         argument.
1542         * java/lang/natPosixProcess.cc (nativeSpawn): Handle redirection.
1543         * java/lang/PosixProcess.java (redirect): New field.
1544         (PosixProcess): Added 'redirect' argument.
1545         * java/lang/natRuntime.cc (execInternal): Added 'redirect'
1546         argument to Process creation.
1547         * java/lang/natVMProcess.cc: New file.
1548         * java/lang/ProcessBuilder.java: Removed.
1549         * java/lang/VMProcess.java: New file.
1550
1551 2007-03-03  Andrew Haley  <aph@redhat.com>
1552
1553         * java/lang/natClass.cc (parseAnnotationElement): Correct long
1554         annotations to read JV_CONSTANT_Long, not JV_CONSTANT_Double.
1555
1556 2007-03-02  Andrew Haley  <aph@redhat.com>
1557
1558         * sun/reflect/annotation/AnnotationInvocationHandler.java:
1559         Generify in a few places.
1560         (equals): Rewrite to use invoke on local proxy.
1561         (deepToString): Remove most of it.
1562         (toString): Make nonstatic.
1563         (arrayClone): Delete.
1564         (coerce): New method.
1565         (invoke): Rewrite to handle gcj's structures correctly.
1566         * java/lang/natClass.cc (getDeclaredAnnotations): Fix test for
1567         null loader.
1568         * sources.am: Regenerate.
1569         * Makefile.am: Likewise.        
1570
1571 2007-03-02  Andrew Haley  <aph@redhat.com>
1572
1573         * sun/reflect/annotation/AnnotationInvocationHandler.java:
1574         Whitespace only changes.
1575
1576 2007-03-02  Andrew Haley  <aph@redhat.com>
1577
1578         * sun/reflect/annotation/AnnotationInvocationHandler.java: Moved
1579         from Classpath to libgcj local.
1580
1581 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
1582
1583         * Makefile.am: Add dummy install-pdf target.
1584         * Makefile.in: Regenerate
1585         * include/Makefile.in: Regenerate
1586         * testsuite/Makefile.in: Regenerate
1587         * gcj/Makefile.in: Regenerate
1588
1589 2007-02-23  Gary Benson  <gbenson@redhat.com>
1590
1591         * gnu/gcj/tools/gcj_dbtool/Main.java: Updated copyright year.
1592
1593 2007-02-23  Gary Benson  <gbenson@redhat.com>
1594
1595         * java/lang/VMCompiler.java
1596         (compileClass): Don't lose zeros from within the digest.
1597
1598 2007-02-22  Jakub Jelinek  <jakub@redhat.com>
1599
1600         PR libgcj/17002
1601         PR classpath/28550
1602         * java/util/VMTimeZone.java (getDefaultTimeZoneId): To read
1603         /etc/localtime, use ZoneInfo.readTZFile instead of
1604         VMTimeZone.readtzFile.  Get better timezone name for /etc/localtime,
1605         either if it is a symlink or through /etc/sysconfig/clock.
1606         (readSysconfigClockFile): New static method.
1607         (readtzFile): Removed.
1608         * java/lang/System.java: Add gnu.java.util.zoneinfo.dir to comments.
1609         * posix.cc (_Jv_platform_initProperties): Set
1610         gnu.java.util.zoneinfo.dir.
1611         * sources.am (gnu_java_util_source_files): Add
1612         classpath/gnu/java/util/ZoneInfo.java.
1613         * Makefile.in: Regenerated.
1614         * java/util/VMTimeZone.h: Regenerated.
1615         * java/util/TimeZone.h: Regenerated.
1616         * gnu/java/util/ZoneInfo.h: Generated.
1617
1618 2007-02-22  Mohan Embar  <gnustuff@thisiscool.com>
1619
1620         * include/win32-threads.h: Added #undef OUT.
1621
1622 2007-02-21  Kyle Galloway  <kgallowa@redhat.com>
1623
1624         * jvmti.cc (_Jv_JVMTI_GetArgumentsSize): New function.
1625         * testsuite/libjava.jvmti/interp/getargssize.java: New test.
1626         * testsuite/libjava.jvmti/interp/getargssize.h: Ditto.
1627         * testsuite/libjava.jvmti/interp/getargssize.jar: Ditto.
1628         * testsuite/libjava.jvmti/interp/getargssize.out: Ditto.
1629         * testsuite/libjava.jvmti/interp/natgetargssize.cc: Ditto.
1630
1631 2007-02-21  Gary Benson  <gbenson@redhat.com>
1632
1633         * java/util/GregorianCalendar.java: Removed.
1634         * sources.am, Makefile.in: Rebuilt.
1635
1636 2007-02-20  Keith Seitz  <keiths@redhat.com>
1637
1638         * gnu/classpath/jdwp/natVMVirtualMachine.cc
1639         (jdwpClassPrepareCB): Move class status stuff to ...
1640         (getClassStatus): ... here.
1641
1642 2007-02-20  Gary Benson  <gbenson@redhat.com>
1643
1644         * gnu/awt/xlib/XEventLoop.h: Regenerated.
1645         * gnu/java/awt/peer/gtk/GThreadMutex.h: Likewise.
1646         * gnu/java/rmi/server/ConnectionRunnerPool$ConnectionRunner.h:
1647         Likewise.
1648         * gnu/java/rmi/server/UnicastConnectionManager.h: Likewise.
1649         * java/lang/SecurityManager.h: Likewise.
1650         * java/lang/Thread.h: Likewise.
1651         * java/security/VMSecureRandom$Spinner.h: Likewise.
1652         * java/util/concurrent/atomic/AtomicBoolean.h: Likewise.
1653         * java/util/concurrent/atomic/AtomicInteger.h: Likewise.
1654         * java/util/concurrent/atomic/AtomicLong.h: Likewise.
1655         * java/util/concurrent/atomic/AtomicReference.h: Likewise.
1656         * java/util/concurrent/ConcurrentHashMap$HashEntry.h: Likewise.
1657         * java/util/concurrent/ConcurrentHashMap$Segment.h: Likewise.
1658         * java/util/concurrent/ConcurrentLinkedQueue.h: Likewise.
1659         * java/util/concurrent/ConcurrentLinkedQueue$Node.h: Likewise.
1660         * java/util/concurrent/ConcurrentSkipListMap.h: Likewise.
1661         * java/util/concurrent/ConcurrentSkipListMap$Index.h: Likewise.
1662         * java/util/concurrent/ConcurrentSkipListMap$Node.h: Likewise.
1663         * java/util/concurrent/Exchanger.h: Likewise.
1664         * java/util/concurrent/Exchanger$Node.h: Likewise.
1665         * java/util/concurrent/FutureTask$Sync.h: Likewise.
1666         * java/util/concurrent/LinkedBlockingQueue$Node.h: Likewise.
1667         * java/util/concurrent/locks/AbstractQueuedLongSynchronizer.h:
1668         Likewise.
1669         * java/util/concurrent/locks/AbstractQueuedLongSynchronizer$Node.h: 
1670         Likewise.
1671         * java/util/concurrent/locks/AbstractQueuedSynchronizer.h: Likewise.
1672         * java/util/concurrent/locks/AbstractQueuedSynchronizer$Node.h:
1673         Likewise.
1674         * java/util/concurrent/ScheduledThreadPoolExecutor.h: Likewise.
1675         * java/util/concurrent/SynchronousQueue.h: Likewise.
1676         * java/util/concurrent/SynchronousQueue$TransferQueue.h: Likewise.
1677         * java/util/concurrent/SynchronousQueue$TransferQueue$QNode.h:
1678         Likewise.
1679         * java/util/concurrent/SynchronousQueue$TransferStack.h: Likewise.
1680         * java/util/concurrent/SynchronousQueue$TransferStack$SNode.h:
1681         Likewise.
1682         * java/util/concurrent/ThreadPoolExecutor.h: Likewise.
1683         * java/util/concurrent/ThreadPoolExecutor$Worker.h: Likewise.
1684         * java/util/logging/ErrorManager.h: Likewise.
1685         * javax/swing/plaf/basic/BasicSpinnerUI$2.h: Likewise.
1686         * javax/swing/plaf/basic/BasicSpinnerUI$4.h: Likewise.
1687
1688 2007-02-16  Keith Seitz  <keiths@redhat.com>
1689
1690         * gnu/classpath/jdwp/natVMVirtualMachine.cc
1691         (get_line_table): New function.
1692         (handle_single_step): New function.
1693         (jdwpSingleStepCB): New function.
1694         (jdwpVMInitCB): Define a JVMTI single step
1695         callback, but don't enable it until needed.
1696
1697 2007-02-16  David Daney  <ddaney@avtrex.com>
1698
1699         * java/lang/Thread.java (Thread(ThreadGroup, Runnable, String)): Pass
1700         new parameter constructor.
1701         (Thread(ThreadGroup, Runnable, String, long)): Same.
1702         (Thread(String, boolean)): New constructor.
1703         (Thread(Thread, ThreadGroup, Runnable, String): Add parameter
1704         noInheritableThreadLocal, don't call
1705         InheritableThreadLocal.newChildThread if set.
1706         * java/lang/PosixProcess.java(ProcessManager()): Set
1707         noInheritableThreadLocal in super.
1708         * java/lang/natThread.cc (_Jv_AttachCurrentThread): Pass new
1709         parameter to Thread constructor.
1710         (_Jv_AttachCurrentThreadAsDaemon): Same.
1711         * java/lang/Thread.h: Regenerate.
1712         * classpath/lib/java/lang/Thread.class: Same.
1713         * classpath/lib/java/lang/PosixProcess$EOFInputStream.class: Same.
1714         * classpath/lib/java/lang/PosixProcess.class: Same.
1715         * classpath/lib/java/lang/Thread$State.class: Same.
1716         * classpath/lib/java/lang/PosixProcess$ProcessManager.class: Same.
1717
1718 2007-02-16  Kyle Galloway  <kgallowa@redhat.com>
1719
1720         * interpret.cc: Add extra DEBUG_LOCALS_INSN calls for multi-slot
1721         variables to maintain type info.
1722         * interpret-run.cc: Add local variable info to frame in the debug
1723         interpreter.
1724         * jvmti.cc (getLocalFrame): New method.
1725         (_Jv_JVMTI_GetLocalObject): New method.
1726         (_Jv_JVMTI_GetLocallInt): New method.
1727         (_Jv_JVMTI_GetLocalFloat): New method.
1728         (_Jv_JVMTI_GetLocalLong): New method.
1729         (_Jv_JVMTI_GetLocalDouble): New method.
1730         (_Jv_JVMTI_SetLocalObject): New method.
1731         (_Jv_JVMTI_SetLocalInt): New method.
1732         (_Jv_JVMTI_SetLocalFloat): New method.
1733         (_Jv_JVMTI_SetLocalLong): New method.
1734         (_Jv_JVMTI_SetLocalDouble): New method.
1735
1736 2007-02-16  Gary Benson  <gbenson@redhat.com>
1737
1738         * gnu/gcj/tools/gcj_dbtool/Main.java
1739         (bytesToString): Don't lose zeros from within the digest.
1740
1741 2007-02-15  Andrew Haley  <aph@redhat.com>
1742
1743         * Makefile.am (nat_source_files): Remove
1744         java/lang/management/natVMManagementFactory.cc.
1745         * java/lang/Thread.java (getStackTrace): Use reflection to call
1746         the ManagementFactory.
1747         * java/lang/management/VMManagementFactory.java: Remove native
1748         methods.
1749         * java/lang/management/natVMManagementFactory.cc: Deleted.
1750         * sources.am: Regnerate.
1751         * scripts/makemake.tcl: Add new "bcheaders" type.
1752         Move java/lang/management and gnu/classpath/management to "bc".
1753         Move gnu/java/lang/management to "bcheaders".
1754         
1755 2007-02-15  Kyle Galloway  <kgallowa@redhat.com>
1756         
1757         * interpret.cc (_Jv_InterpMethod::check_handler): New method.
1758         * interpret-run.cc: Change the catch section to report exception
1759         events and to use the new check_handler method.
1760         * include/java-interp.h (_Jv_InterpMethod): Add check_handler.
1761         * gnu/gcj/jvmti/ExceptionEvent.java: New file.
1762         * gnu/gcj/jvmti/ExceptionEvent.h: New file.
1763         * gnu/gcj/jvmti/natExceptionEvent.cc: New file.
1764         * libjava/classpath/lib/gnu/gcj/jvmti/ExceptionEvent.class: New
1765         file.
1766         * sources.am: Added ExceptionEvent.java.
1767         * Makefile.am: Added natExceptionEvent.cc
1768         * Makefile.in: Regenerated.
1769         * include/Makefile.in: Regenerated.
1770         * gcj/Makefile.in: Regenerated.
1771
1772 2007-02-15  Johannes Schmidt  <jschmidt@avtrex.com>
1773         David Daney  <ddaney@avtrex.com>
1774
1775         * configure.ac: Create vm-tools-packages file.  Add 
1776         gnu/gcj/tools/gc_analyze to standard.omit and vm-tools-packages.
1777         Check for /proc/self/maps.
1778         * Makefile.am (bin_PROGRAMS): Added gc-analyze.
1779         (gc_analyze_SOURCES): New.
1780         (gc_analyze_LDFLAGS): New.
1781         (gc_analyze_LINK): New.
1782         (gc_analyze_LDADD): New.
1783         (gc_analyze_DEPENDENCIES): New.
1784         (nat_source_files): Add gnu/gcj/util/natGCInfo.cc.
1785         * Makefile.in: Regenerated.
1786         * configure: Regenerated.
1787         * include/config.h.in: Regenerated.
1788         * sources.am: Regenerated.
1789         * scripts/makemake.tcl: Don't include gc-analyze classes in libgcj.
1790         * gnu/gcj/tools/gc_analyze/SymbolLookup.java: New.
1791         * gnu/gcj/tools/gc_analyze/ObjectMap.java: New.
1792         * gnu/gcj/tools/gc_analyze/MemoryMap.java: New.
1793         * gnu/gcj/tools/gc_analyze/SymbolTable.java: New.
1794         * gnu/gcj/tools/gc_analyze/BlockMap.java: New.
1795         * gnu/gcj/tools/gc_analyze/BytePtr.java: New.
1796         * gnu/gcj/tools/gc_analyze/ItemList.java: New.
1797         * gnu/gcj/tools/gc_analyze/ToolPrefix.java: New.
1798         * gnu/gcj/tools/gc_analyze/MemoryAnalyze.java: New.
1799         * gnu/gcj/util/GCInfo.java: New.
1800         * gnu/gcj/util/GCInfo.h: New.
1801         * gnu/gcj/util/natGCInfo.cc: New.
1802         * gnu/gcj/util/UtilPermission.java: New.
1803         * gnu/gcj/util/UtilPermission.h: New.
1804         * classpath/tools/gnu/gcj/tools/gc_analyze/SymbolTable.class: New.
1805         * classpath/tools/gnu/gcj/tools/gc_analyze/ObjectMap$ObjectItem.class: New.
1806         * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryMap$RangeComparator.class: New.
1807         * classpath/tools/gnu/gcj/tools/gc_analyze/BlockMap$PtrMarks.class: New.
1808         * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryMap$Range.class: New.
1809         * classpath/tools/gnu/gcj/tools/gc_analyze/BlockMap.class: New.
1810         * classpath/tools/gnu/gcj/tools/gc_analyze/BytePtr.class: New.
1811         * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$SubstringComparator.class: New.
1812         * classpath/tools/gnu/gcj/tools/gc_analyze/ItemList.class: New.
1813         * classpath/tools/gnu/gcj/tools/gc_analyze/ToolPrefix.class: New.
1814         * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze.class: New.
1815         * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$1$Info.class: New.
1816         * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$1.class: New.
1817         * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$2.class: New.
1818         * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$3.class: New.
1819         * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$4.class: New.
1820         * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$OptionParser.class: New.
1821         * classpath/tools/gnu/gcj/tools/gc_analyze/BlockMap$SizeKind.class: New.
1822         * classpath/tools/gnu/gcj/tools/gc_analyze/SymbolLookup.class: New.
1823         * classpath/tools/gnu/gcj/tools/gc_analyze/ObjectMap.class: New.
1824         * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryMap.class: New.
1825         * classpath/lib/gnu/gcj/util/GCInfo.class: New.
1826         * classpath/lib/gnu/gcj/util/UtilPermission.class: New.
1827
1828 2007-02-15  David Daney  <ddaney@avtrex.com>
1829
1830         * gnu/java/net/PlainSocketImpl.h: Regenerate.
1831         * gnu/classpath/jdwp/VMVirtualMachine.h: Same.
1832         * gnu/classpath/jdwp/VMFrame.h: Same.
1833         * java/net/Socket.h: Same.
1834         * java/util/Collections$UnmodifiableMap$UnmodifiableEntrySet.h: Same.
1835
1836 2007-02-15  Kyle Galloway  <kgallowa@redhat.com>
1837
1838         * defineclass.cc (_Jv_ClassReader::read_one_code_attribute):
1839         Added LocalVariableTable attribute handling.
1840         (_Jv_ClassReader::pool_Utf8_to_char_arr): New method.
1841         * jvmti.cc (_Jv_JVMTI_GetLocalVariableTable): New method.
1842         * include/java-interp.h: Added local_var_table and 
1843         local_var_table_len fields to _Jv_InterpMethod.
1844         (_Jv_InterpMethod::get_local_var_table): New method.
1845         * testsuite/libjava.jvmti/interp/getlocalvartable.java: New test.
1846         * testsuite/libjava.jvmti/interp/getlocalvartable.jar: New test.
1847         * testsuite/libjava.jvmti/interp/getlocalvartable.out: Output
1848         for new test.
1849         * testsuite/libjava.jvmti/interp/getlocalvartable.h: New test.
1850         * testsuite/libjava.jvmti/interp/natgetlocalvartable.cc: New test.
1851
1852 2007-02-15  Kyle Galloway  <kgallowa@redhat.com>
1853
1854         * gnu/classpath/jdwp/natVMVirtualMachine (getFrames): Implement.
1855
1856 2007-02-13  Keith Seitz  <keiths@redhat.com>
1857
1858         * gnu/classpath/jdwp/natVMVirtualMachine.cc
1859         (jdwpBreakpointCB): New function.
1860         (jdwpVMInitCB): Define and enable the breakpoint
1861         callback.
1862
1863 2007-02-13  Andrew Haley  <aph@redhat.com>
1864
1865         * testsuite/libjava.lang/Divide_2.out
1866         * testsuite/libjava.lang/Divide_2.java: New test.
1867
1868 2007-02-12  Keith Seitz  <keiths@redhat.com>
1869
1870         * jvmti.cc (_Jv_JVMTI_GetStackTrace): Remove cast
1871         from jthread to Thread *; it is no longer needed.
1872         (_Jv_JVMTI_GetFrameCount): Likewise.
1873         Fix small formatting typo.
1874
1875 2007-02-12  Tom Tromey  <tromey@redhat.com>
1876
1877         * sources.am, Makefile.in: Rebuilt.
1878         * java/lang/Socket.java: Removed override.
1879         * java/lang/DatagramSocket.java: Removed override.
1880         * gnu/java/net/PlainSocketImpl.java (localSocketAddress): New
1881         field.
1882         (getLocalAddress): New method.
1883         * gnu/java/net/PlainDatagramSocketImpl.java
1884         (PlainDatagramSocketImpl): Throws IOException.
1885         * gnu/java/net/natPlainSocketImplPosix.cc (write): Remove
1886         'sizeof'.
1887         (read): Likewise.
1888
1889 2007-02-09  Jakub Jelinek  <jakub@redhat.com>
1890
1891         * java/util/VMTimeZone.java: Rewrite to handle both the old
1892         'TZif\0' format and the new one.
1893         
1894 2007-02-10  Andrew Haley  <aph@redhat.com>
1895
1896         PR java/30742
1897         * gnu/classpath/natVMStackWalker.cc (GET_CALLING_CLASS): New.
1898         (getCallingClass): Call GET_CALLING_CLASS.
1899         (getCallingClassLoader): Likewise.
1900
1901 2007-02-10  Mohan Embar  <gnustuff@thisiscool.com>
1902
1903         * configure: Rebuilt.
1904         * configure.ac (GCJH): Reverted second part of patch of 2006-12-20.
1905
1906 2007-02-10  Mohan Embar  <gnustuff@thisiscool.com>
1907
1908         * Makefile.in: Rebuilt.
1909         * Makefile.am (BUILD_ECJ1): Unify the command for renaming ecjx to
1910         the host's ecj1 executable.
1911
1912 2007-02-09  Richard Henderson  <rth@redhat.com>
1913
1914         * sysdep/alpha/locks.h (read_barrier): New.
1915
1916 2007-02-09  Keith Seitz  <keiths@redhat.com>
1917
1918         * gnu/classpath/jdwp/VMVirtualMachine.java
1919         (_stepping_threads): New member.
1920         * classpath/lib/gnu/classpath/jdwp/VMVirtualMachine.class:
1921         Regenerated.
1922         * gnu/classpath/jdwp/VMVirtualMachine.h:
1923         Regenerated.
1924         * gnu/claspath/jdwp/natVMVirtualMachine.cc
1925         (get_request_step_filter): New function.
1926         (DISABLE_EVENT): New macro.
1927         (initialize): Initialize _stepping_threads.
1928         (registerEvent): Implement EVENT_SINGLE_STEP.
1929         (unregisterEvent): Likewise.
1930
1931 2007-02-08  Keith Seitz  <keiths@redhat.com>
1932
1933         * sources.am: Regenerate.
1934         * Makefile.in: Regenerate.
1935         * testsuite/Makefile.in: Regenerate.
1936         * gcj/Makefile.in: Regenerate.
1937         * include/Makefile.in: Regenerate.
1938
1939         * classpath/lib/javax/management/MBeanServerFactory.class:
1940         Regenerate.
1941
1942 2007-02-08  Kyle Galloway  <kgallowa@redhat.com>
1943
1944         * classpath/gnu/classpath/jdwp/processor/
1945         StackFrameCommandSet.java (executeGetValues): Pass jlong instead
1946         of ByteBuffer.
1947         (executeSetValues): Ditto.
1948         (executeThisObject): Ditto.
1949         * classpath/gnu/classpath/jdwp/processor/
1950         StackFrameCommandSet.class: Rebuilt.
1951         * classpath/lib/gnu/classpath/jdwp/VMVirtualMachine.class:
1952         Rebuilt.
1953         * classpath/lib/gnu/classpath/jdwp/VMFrame.class: Rebuilt.
1954         * classpath/lib/gnu/classpath/jdwp/exception/
1955         InvalidFrameException.java: New file.
1956         * gnu/classpath/jdwp/VMFrame.java: Added field for thread of
1957         frame.
1958         (Constructor): New method.
1959         * gnu/classpath/jdwp/VMFrame.h: Regenerated.
1960         * gnu/classpath/jdwp/VMVirtualMachine.java
1961         (getFrame): Changed ByteBuffer to jlong.
1962         * gnu/classpath/jdwp/natVMVirtualMachine.cc
1963         (getFrame): Implement.
1964         * gnu/classpath/jdwp/VMVirtualMachine.h: Regenerated.
1965
1966 2007-02-08  Kyle Galloway  <kgallowa@redhat.com>
1967
1968         * include/java-interp.h (_Jv_InterpFrame): obj_ptr field added
1969         to hold "this" pointer for frame.
1970         (_Jv_InterpFrame::get_this_ptr): New method.
1971         * interpret-run.cc: Copy the "this" pointer into obj_ptr.
1972
1973 2007-02-07  Keith Seitz  <keiths@redhat.com>
1974
1975         * include/java-interp.h (_Jv_Frame::depth):
1976         New function.
1977         * jvmti.cc (_Jv_JVMTI_GetFrameCount): Use _Jv_Frame::depth.
1978
1979 2007-02-07  Kyle Galloway  <kgallowa@redhat.com>
1980
1981         * jvmti.cc (CHECK_FOR_NATIVE_METHOD): New macro.
1982         (_Jv_JVMTI_GetMaxLocals): New method.
1983         * include/java-interp.h
1984         (_Jv_InterpMethod::get_max_locals): New method.
1985
1986 2007-02-01 Marco Trudel <mtrudel@gmx.ch>
1987
1988         * jni.cc (_Jv_JNI_DeleteWeakGlobalRef): Check for NULL objects.
1989
1990 2007-02-07  Tom Tromey  <tromey@redhat.com>
1991
1992         * testsuite/libjava.jni/init.c: New file.
1993         * testsuite/libjava.jni/init.java: New file.
1994         * testsuite/libjava.jni/init.out: New file.
1995         * testsuite/libjava.jni/init.jar: New file.
1996         * testsuite/libjava.jni/init.h: New file.
1997         * testsuite/libjava.jni/init$NativeClass.h: New file.
1998
1999 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
2000
2001         PR libgomp/28468
2002         * configure: Regenerate.
2003
2004 2007-02-06  Andrew Haley  <aph@redhat.com>
2005
2006         * scripts/makemake.tcl (emit_bc_rule): Set the source filename.
2007         * sources.am: Rebuild.
2008
2009 2007-02-05  Keith Seitz  <keiths@redhat.com>
2010
2011         * jvmti.cc (_envListLock): Change type to
2012         ReentrantReadWriteLock.
2013         (_Jv_JVMTI_DisposeEnvironment): Switch to read/write
2014         lock.
2015         (check_enabled_event): Likewise.
2016         (_Jv_GetJVMTIEnv): Likewise.
2017         (_Jv_JVMTI_Init): Likewise.
2018         (_Jv_JVMTI_PostEvent): Likewise. 
2019
2020 2007-02-05  Keith Seitz  <keiths@redhat.com>
2021
2022         * gnu/classpath/jdwp/natVMVirtualMachine.cc
2023         (registerEvent): Implement EVENT_BREAKPOINT.
2024         (unregisterEvent): Likewise.
2025         (get_request_location): New function.
2026
2027 2007-02-05  Matthias Klose  <doko@debian.org>
2028
2029         testsuite/Makefile.am (compile-tests): Fix typo.
2030         testsuite/Makefile.in: Regenerate.
2031
2032 2007-02-02  Kyle Galloway  <kgallowa@redhat.com>
2033
2034         * gnu/classpath/jdwp/natVMVirtualMachine.cc (getFrameCount):
2035         Implment.
2036
2037 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
2038
2039         * configure.ac (libjava_cv_anon_version_script): New test.
2040         (ANONVERSCRIPT): New AM_CONDITIONAL.
2041         * configure: Rebuilt.
2042         * Makefile.am (extra_ldflags_libjava): Link with -Wl,--version-script
2043         if ANONVERSCRIPT.
2044         * Makefile.in: Rebuilt.
2045         (libgcj_la_DEPENDENCIES): Depend on libgcj.ver.
2046         * libgcj.ver: New file.
2047
2048 2007-02-01  David Daney  <ddaney@avtrex.com>
2049
2050         * scripts/makemake.tcl: Replace gnu/xml build with build of all
2051         its subpackages.
2052         * sources.am: Regenerate.
2053         * Makefile.in: Regenerate.
2054
2055 2007-02-01  Tom Tromey  <tromey@redhat.com>
2056
2057         * java/lang/ClassLoader.java (getResources): No longer final.
2058
2059 2007-02-01  Tom Tromey  <tromey@redhat.com>
2060
2061         * java/util/logging/LogManager.java (loggers): Genericized.
2062         (addLogger): Merged.
2063         (findAncestor): Likewise.
2064         (getLogger): Likewise.
2065         (getLoggerNames): Genericized.
2066         (reset): Merged.
2067         (getLevelProperty): Likewise.
2068         * java/lang/reflect/Method.java (getDeclaringClass): Genericized.
2069         * java/lang/reflect/Constructor.java (getParameterTypes):
2070         Genericized.
2071         (getExceptionTypes): Likewise.
2072         (newInstance): Likewise.
2073         * java/lang/reflect/Array.java (newInstance): Genericized.
2074         * java/lang/Object.java (getClass): Genericized.
2075         * java/nio/charset/spi/CharsetProvider.java (charsets):
2076         Genericized.
2077         * java/text/Collator.java: Implement Comparable<Object>.
2078
2079 2007-02-01  Tom Tromey  <tromey@redhat.com>
2080
2081         * java/util/Calendar.java: Implement Comparable<Calendar>.  Update
2082         comments.
2083         (clear): Call complete.
2084         (setTimeZone): Call computeTime, computeFields.
2085         (compareTo): New method.
2086         * java/nio/charset/Charset.java: Implement Comparable<Charset>.
2087         (availableCharsets): Genericized.
2088         (aliases): Likewise.
2089         (compareTo): Changed argument type.
2090         * java/lang/ClassLoader.java (loadClass): Genericized.
2091         (findClass): Likewise.
2092         (defineClass): Likewise.
2093         (resolveClass): Likewise.
2094         (findSystemClass): Likewise.
2095         (setSigners): Likewise.
2096         (findLoadedClass): Likewise.
2097         (getResources): Likewise.
2098         (findResources): Likewise.
2099         (getSystemResources): Likewise.
2100         (checkInitialized): New method.
2101         * java/lang/Class.java (getCanonicalName): New method.
2102
2103 2007-01-31  Keith Seitz  <keiths@redhat.com>
2104
2105         * include/jvmti-int.h (JVMTI): Declare member "enabled".
2106         * jvmti.cc (JVMTI): Add member "enabled".
2107         (_Jv_GetJVMTIEnv): Mark JVMTI enabled.
2108         * interpret.cc (_Jv_InterpMethod::ncode): Use JVMTI::enabled
2109         instead of gnu::classpath::jdwp::Jdwp::isDebugging.
2110         (_Jv_CompileMethod): If JVMTI is enabled, use run_debug
2111         instead of run to compile the method.
2112
2113         * interpret-run.cc [DEBUG] (NEXT_INSN): Add JVMTI single step
2114         notification.
2115
2116 2007-01-31  Andreas Tobler  <a.tobler@schweiz.org>
2117
2118         * testsuite/libjava.jvmti/jvmti-interp.exp (gij_jvmti_test_one): Add
2119         -shared-libgcc to the cxxflaglist for Darwin.
2120
2121 2007-01-31  Tom Tromey  <tromey@redhat.com>
2122
2123         * scripts.am, Makefile.in: Rebuilt.
2124         * scripts/makemake.tcl (gnu/javax/swing/text/html/parser): Build
2125         as 'ordinary'.
2126         (emit_ordinary_rule): New proc.
2127
2128 2007-01-31  Keith Seitz  <keiths@redhat.com>
2129
2130         * testsuite/libjava.jvmti/getmethodname.h: New file.
2131         * testsuite/libjava.jvmti/getmethodname.jar: New file.
2132
2133 2007-01-31  Andrew Haley  <aph@redhat.com>
2134
2135         * prims.cc (_Jv_Abort): fflush (stderr).
2136         * java/lang/natClassLoader.cc (_Jv_CheckABIVersion): Abort.
2137
2138 2007-01-31  Tom Tromey  <tromey@redhat.com>
2139
2140         * configure, Makefile.in: Rebuilt.
2141         * configure.ac (JAR): Check for -@ feature.
2142         * Makefile.am (libgcj-$(gcc_version).jar): Use find -prune.
2143
2144 2007-01-31  Tom Tromey  <tromey@redhat.com>
2145
2146         PR libgcj/30606:
2147         * configure, include/config.h.in: Rebuilt.
2148         * configure.ac: Check for magic_t in magic.h.
2149         * java/net/natVMURLConnection.cc: Use HAVE_MAGIC_T.
2150
2151 2007-01-30  Tom Tromey  <tromey@redhat.com>
2152
2153         * Makefile.in: Rebuilt.
2154         * Makefile.am (libgcj-$(gcc_version).jar): Rewrote.
2155
2156 2007-01-30  Andreas Tobler  <a.tobler@schweiz.org>
2157
2158         * testsuite/libjava.jvmti/natevents.cc (FieldModificationCB): Use a
2159         cast to print it right.
2160
2161 2007-01-29  Kaloian Doganov  <kaloian@doganov.org>
2162
2163         PR libgcj/30600:
2164         * gnu/gcj/convert/BytesToCharsetAdaptor.java (read): Fix call to
2165         'limit'.
2166
2167 2007-01-29  Kyle Galloway  <kgallowa@redhat.com>
2168
2169         * include/java-interp.h:  Added _Jv_Frame class and its two
2170         subclasses _Jv_InterpFrame and _Jv_NativeFrame.  Also moved
2171         _Jv_FrameType from java-stack.h.
2172         * include/java-stack.h: Removed _Jv_FrameType.
2173         * java/lang/Thread.java: Added frame member to hold new
2174         composite frame stack.
2175         * java/lang/Thread.h: Regenerated.
2176         * java/lang/Thread.class: Rebuilt.
2177         * jni.cc (_Jv_JNIMethod::call): Push a frame onto the stack when
2178         calling a JNI method.
2179         * jvmti.cc (_Jv_JVMTI_GetStackTrace): New Method.
2180         (_Jv_JVMTI_GetFrameCount): New method.
2181         * stacktrace.cc (UnwindTraceFn): Modified to use new _Jv_Frame
2182         classes.
2183         * testsuite/libjava.jvmti/interp/getstacktrace.jar: New test.
2184         * testsuite/libjava.jvmti/interp/natgetstacktrace.cc: New test.
2185         * testsuite/libjava.jvmti/interp/getstacktrace.h: New test.
2186         * testsuite/libjava.jvmti/interp/getstacktrace.jar: New test.
2187         * testsuite/libjava.jvmti/interp/getstacktrace.out: Output file
2188         for test. 
2189
2190 2007-01-29  Tom Tromey  <tromey@redhat.com>
2191
2192         * interpret.cc (run_debug): Remove comment.
2193         (STOREA): Reformat.
2194         (STOREI): Likewise.
2195         (STOREF): Likewise.
2196         (STOREL): Likewise.
2197         (STORED): Likewise.
2198         (POKEI): Likewise.
2199         (run_normal_debug): Likewise.
2200         (run_synch_object_debug): Likewise.
2201         (run_class_debug): Likewise.
2202         (run_synch_class_debug): Likewise.
2203         (get1s): Likewise.
2204         (get1u): Likewise.
2205         (get2u): Likewise.
2206         (get4): Likewise.
2207         (NULLARRAYCHECK): Likewise.
2208         (ARRAYBOUNDSCHECK): Likewise.
2209         * interpret-run.cc (insn_target) <breakpoint>: Tidy.
2210
2211 2007-01-29  Tom Tromey  <tromey@redhat.com>
2212
2213         * configure, Makefile.in: Rebuilt.
2214         * Makefile.am (bin_SCRIPTS): Never install scripts/jar.
2215         * configure.ac (BASH_JAR): Removed conditional.
2216         (JAR): Prefer the jar found by AC_CHECK_PROGS.
2217
2218 2007-01-29  Tom Tromey  <tromey@redhat.com>
2219
2220         * Makefile.in: Rebuilt.
2221         * Makefile.am (interpret.lo): New target.  Add -fwrap to
2222         AM_CXXFLAGS.
2223
2224 2007-01-29  Keith Seitz  <keiths@redhat.com>
2225
2226         * include/jvmti_md.h (_CLASSPATH_VM_JVMTI_TYPES_DEFINED):
2227         Define.
2228         [__GCJ_JNI_IMPL__]: Define our own JVMTI types when building
2229         gcj. All jvmti object types now are defined to be their
2230         corresponding java classes.
2231         * jvmti.cc (_Jv_JVMTI_SuspendThread): Remove casting from
2232         jthread to Thread*.
2233         (_Jv_JVMTI_ResumeThread): Likewise.
2234         (_Jv_JVMTI_InterruptThread): Likewise.
2235         (_Jv_JVMTI_SetEventNotificationMode): Likewise.
2236         * gnu/classpath/jdwp/natVMVirtualMachine.cc
2237         (jdwpClassPrepareCB): Likewise.
2238         (jdwpThreadEndCB): Likewise.
2239         (jdwpThreadStartCB): Likewise.
2240         (jdwpVMInitCB): Likewise.
2241  
2242 2007-01-28  Michele Sandri  <gpointorama@gmail.com>
2243
2244         * gnu/java/nio/channels/natFileChannelWin32.cc
2245         (lock): Implemented.
2246         (unlock): Implemented.
2247
2248 2007-01-27  Andreas Tobler  <a.tobler@schweiz.org>
2249
2250         PR libgcj/30513
2251         * configure.host: Add forgottten sysdep_dir to sparc. Add a flag to
2252         libgcj_flags to undefine 'sun' at compile time.
2253         * sysdep/sparc/locks.h (read_barrier): New functions for 32 and 64 bit
2254         Sparc.
2255         (write_barrier): Likewise.
2256
2257 2007-01-27  Keith Seitz  <keiths@redhat.com>
2258
2259         * gnu/classpath/jdwp/natVMVirtualMachine.cc
2260         (getAllClassMethods): Move error handling to ...
2261         (throw_jvmti_error): ... here.
2262         (jdwpClassPrepareCB): New function.
2263         (jdwpThreadEndCB): New function.
2264         (jdwpThreadStartCB): New function.
2265         (jdwpVMDeathCB): New function.
2266         (jdwpVMInitCB): Define and enable callbacks for
2267         ClassPrepare, ThreadEnd, ThreadStart, and VMDeath.
2268
2269 2007-01-27  Jakub Jelinek  <jakub@redhat.com>
2270
2271         * Makefile.am (generic_header_files): Add $(inner_nat_headers).
2272         * testsuite/Makefile.am (check-dejaGNU): Depend on compile-tests.
2273         (MYGCJH): New variable.
2274         (compile-tests): New goal.
2275         * Makefile.in: Rebuilt.
2276         * testsuite/Makefile.in: Rebuilt.
2277
2278 2007-01-26  Andrew Haley  <aph@redhat.com>
2279
2280         * java/lang/natClass.cc (initializeClass): Re-throw
2281         SecurityExceptions.
2282         * java/lang/natVMClassLoader.cc (loadClass): checkPackageAccess.
2283         * java/lang/ClassLoader.java: (loadClass): Likewise.
2284
2285 2007-01-26  Tom Tromey  <tromey@redhat.com>
2286
2287         * Updated headers.
2288
2289 2007-01-25  Tom Tromey  <tromey@redhat.com>
2290
2291         PR libgcj/29594:
2292         * gnu/gcj/convert/Convert.java (main): Correctly handle missing
2293         input or output encodings.  Removed unused local variables.
2294
2295 2007-01-25  Keith Seitz  <keiths@redhat.com>
2296
2297         * include/jvmti-int.h (_Jv_GetJDWP_JVMTIEnv): Declare.
2298         * gnu/classpath/jdwp/natVMVirtualMachine.cc
2299         (_Jv_GetJDWP_JVMTIEnv): New function.
2300         * gnu/classpath/jdwp/natVMMethod.cc (getName): Implement.
2301         (getSignature): Implement.
2302         (getModifiers): Implement.
2303
2304 2007-01-25  Andrew Haley  <aph@redhat.com>
2305
2306         * configure, Makefile.in, include/config.h.in: Rebuilt.
2307         * Makefile.am (libgcj_la_LIBADD): Removed $(LIBMAGIC).
2308         * configure.ac: Don't check for libmagic.
2309         * java/net/natVMURLConnection.cc (p_magic_open, p_magic_load,
2310         p_magic_close, p_magic_buffer): New globals.
2311         (init): Look up 'magic' functions.
2312         (guessContentTypeFromBuffer): Updated.
2313
2314 2007-01-25  Keith Seitz  <keiths@redhat.com>
2315
2316         * jvmti.cc (_Jv_JVMTI_GetMethodName): New function.
2317         (_Jv_JVMTI_Interface): Define GetMethodName.
2318         * testsuite/libjava.jvmti/getmethodname.java: New file.
2319         * testsuite/libjava.jvmti/natgetmethodname.cc: New file.
2320         * testsuite/libjava.jvmti/getmethodname.out: New file. 
2321
2322 2007-01-24  Kyle Galloway  <kgallowa@redhat.com>
2323
2324         * libjava/testsuite/libjava.jvmti/jvmti-interp.exp: New file.
2325         * libjava/testsuite/libjava.jvmti/interp: New folder.
2326         * libjava/testsuite/lib/libjava.exp (exec_gij): New Method.
2327
2328 2007-01-24  Keith Seitz  <keiths@redhat.com>
2329
2330         * link.cc (_Jv_Linker::wait_for_state): Add JVMTI
2331         CLASS_PREPARE notification.
2332
2333 2007-01-24  Keith Seitz  <keiths@redhat.com>
2334
2335         * interpret.cc: Include gnu/gcj/jvmti/Breakpoint.h,
2336         gnu/gcj/jvmti/BreakpointManager.h, jvmti.h, and jvmti-int.h
2337         * interpret-run.cc: Implement insn_breakpoint.
2338
2339 2007-01-24  Keith Seitz  <keiths@redhat.com>
2340
2341         * prims.cc (_Jv_RunMain): Send JVMTI event notifications
2342         for VM_INIT and VM_DEATH instead of the JDWP notifications.
2343
2344 2007-01-24  Keith Seitz  <keiths@redhat.com>
2345
2346         * gnu/classpath/jdwp/natVMVirtualMachine.cc
2347         (getAllClassMethods): Implement.
2348
2349 2007-01-24  Andrew Haley  <aph@redhat.com>
2350
2351         * gnu/classpath/natVMStackWalker.cc: Call InitClass everywhere.
2352         (getClassContext) Add a barrier to prevent GetStackWalkerStack()
2353         from being sibcalled.
2354
2355 2007-01-24  Andrew Haley  <aph@redhat.com>
2356
2357         * scripts/makemake.tcl (emit_bc_rule): Set the source filename.
2358         * sources.am: Rebuild.
2359
2360 2007-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
2361
2362         * exception.cc (parse_lsda_header, PERSONALITY_FUNCTION): Replaced
2363         _Unwind_Word with _uleb128_t and _Unwind_SWord with _sleb128_t.
2364
2365 2007-01-23  H.J. Lu  <hongjiu.lu@intel.com>
2366
2367         PR libgcj/30550
2368         * Makefile.am (ecjx_DEPENDENCIES): Add libgcj_bc.la if needed.
2369         * Makefile.in: Regenerated.
2370
2371 2007-01-22  Keith Seitz  <keiths@redhat.com>
2372
2373         * gnu/classpath/jdwp/natVMVirtualMachine.cc
2374         (getClassMethod): Implement.
2375
2376 2007-01-22  Keith  Seitz  <keiths@redhat.com>
2377
2378         * java/lang/Class.h (_Jv_GetClassStatus): Declare.
2379         * java/lang/natClass.cc (_Jv_GetClassStatus): New function.
2380         * jvmti.cc (_Jv_JVMTI_GetClassStatus): New function.
2381         (_Jv_JVMTI_Interface): Define GetClassStatus.
2382
2383 2007-01-22  Tom Tromey  <tromey@redhat.com>
2384
2385         * configure: Rebuilt.
2386         * configure.ac (GCJ): Reverted patch of 2006-12-20.
2387
2388 2007-01-22  Tom Tromey  <tromey@redhat.com>
2389
2390         PR java/29812:
2391         * testsuite/libjava.jni/pr29812.java: New file.
2392         * testsuite/libjava.jni/pr29812_injar.java: New file.
2393         * testsuite/libjava.jni/pr29812_injar.jar: New file.
2394         * testsuite/libjava.jni/pr29812.out: New file.
2395         * testsuite/libjava.jni/pr29812_injar.c: New file.
2396         * testsuite/libjava.jni/pr29812_injar.h: New file.
2397         * testsuite/libjava.jni/pr29812.jar: New file.
2398         * testsuite/libjava.jni/pr29812.c: New file.
2399         * testsuite/libjava.jni/pr29812.h: New file.
2400         * testsuite/libjava.jni/jni.exp (gcj_jni_get_cxxflags_invocation):
2401         New proc.
2402         (gcj_jni_invocation_test_one): Use it.
2403         (gcj_jni_pr29812): New proc.
2404         (gcj_jni_run): Use it.
2405         * java/lang/natRuntime.cc (_load): Push a new system frame before
2406         calling JNI_OnLoad.
2407         * include/jvm.h (_Jv_JNI_PopSystemFrame): Declare.
2408         (_Jv_GetJNIEnvNewFrameWithLoader): Likewise.
2409         * jni.cc (struct _Jv_JNI_LocalFrame) <marker>: Now unsigned char.
2410         <allocated_p>: Now bool.
2411         <loader>: New field.
2412         (_Jv_JNI_EnsureLocalCapacity): Updated.
2413         (_Jv_JNI_NewLocalRef): Likewise.
2414         (_Jv_JNI_NewLocalRef): Likewise.
2415         (_Jv_JNI_PopLocalFrame): Likewise.
2416         (_Jv_JNI_FindClass): Likewise.
2417         (_Jv_GetJNIEnvNewFrame): Likewise.
2418         (_Jv_JNI_AttachCurrentThread): Likewise.
2419         (_Jv_GetJNIEnvNewFrameWithLoader): New function.
2420         (_Jv_GetJNIEnvNewFrame): Use it.
2421         * include/jni_md.h (_CLASSPATH_JNIENV_CONTENTS): Removed 'klass'.
2422
2423 2007-01-22  Tom Tromey  <tromey@redhat.com>
2424
2425         * libtool-version: Bump current to 9.
2426
2427 2007-01-22  Andrew Haley  <aph@redhat.com>
2428
2429         * sysdep/alpha/locks.h (write_barrier): New.
2430
2431 2007-01-21  Matthias Klose  <doko@debian.org>
2432
2433         * Makefile.am (install-exec-hook): Use transformed name.
2434         * Makefile.in: Regenerate.
2435
2436 2007-01-19  Keith Seitz  <keiths@redhat.com>
2437
2438         * gnu/classpath/jdwp/natVMVirtualMachine.cc: Mark unused parameters
2439         in methods and reformat.
2440
2441         * gnu/classpath/jdwp/natVMFrame.cc: Mark unused parameters with
2442         MAYBE_UNUSED.
2443
2444 2007-01-18  Keith Seitz  <keiths@redhat.com>
2445
2446         From Macro Trudel <mtrudel@gmx.ch>:
2447         * gnu/classpath/jdwp/natVMVirtualMachine.cc (jdwpVMInitCB):
2448         Use JNICALL.
2449
2450 2007-01-18  Marco Trudel  <mtrudel@gmx.ch>
2451
2452         * jni.cc (_Jv_JNI_FindClass): Initialize class.
2453         * testsuite/libjava.jni/findclass2.jar: New file.
2454         * testsuite/libjava.jni/findclass2.h: New file.
2455         * testsuite/libjava.jni/findclass2.java: New file
2456         * testsuite/libjava.jni/findclass2.c: New file.
2457         * testsuite/libjava.jni/findclass2.out: New file.
2458
2459 2007-01-18  Tom Tromey  <tromey@redhat.com>
2460
2461         * configure: Rebuilt.
2462         * configure.ac: Use multi_basedir instead of libgcj_basedir.
2463
2464 2007-01-18  Gary Benson  <gbenson@redhat.com>
2465
2466         * gnu/java/nio/natVMPipeEcos.cc:
2467         Renamed from gnu/java/nio/natPipeImplEcos.cc.
2468         * gnu/java/nio/natVMPipePosix.cc:
2469         Renamed from gnu/java/nio/natPipeImplPosix.cc.
2470         * gnu/java/nio/natVMPipeWin32.cc:
2471         Renamed from gnu/java/nio/natPipeImplWin32.cc.
2472         * gnu/java/nio/natVMSelectorEcos.cc:
2473         Renamed from gnu/java/nio/natSelectorImplEcos.cc.
2474         * gnu/java/nio/natVMSelectorPosix.cc:
2475         Renamed from gnu/java/nio/natSelectorImplPosix.cc.
2476         * gnu/java/nio/natVMSelectorWin32.cc:
2477         Renamed from gnu/java/nio/natSelectorImplWin32.cc.
2478         * java/io/natVMObjectInputStream.cc:
2479         Renamed from java/io/natObjectInputStream.cc.
2480         * java/lang/natVMDouble.cc:
2481         Renamed from java/lang/natDouble.cc.
2482         * java/lang/natVMFloat.cc:
2483         Renamed from java/lang/natFloat.cc.     
2484         * Makefile.am, configure.ac: Reflect the above.
2485         * Makefile.in, configure: Rebuilt.
2486
2487 2007-01-17  Andrew Haley  <aph@redhat.com>
2488
2489         * Makefile.in: Rebuilt.
2490         * Makefile.am (ecjx_LDFLAGS): Pass -fbootclasspath.
2491
2492 2007-01-17  Keith Seitz  <keiths@redhat.com>
2493
2494         * java/lang/natThread.cc (finish_): Add JVMTI ThreadEnd notification.
2495         (_Jv_NotifyThreadStart): Add JVMTI ThreadStart notification.
2496
2497 2007-01-16  Jack Howarth  <howarth@bromo.med.uc.edu>
2498
2499         * configure.ac: Use multi.m4 from aclocal rather than custom
2500         code.  Use multi_basedir instead libgcj_basedir.  Test for
2501         /proc/self/exe when not cross-compiling.
2502         * aclocal.m4: Regenerate.
2503         * configure: Regenerate.
2504         * Makefile.in: Regenerate.
2505
2506 2007-01-17  Gary Benson  <gbenson@redhat.com>
2507
2508         * java/nio/natVMDirectByteBufferImpl.cc:
2509         Renamed from java/nio/natDirectByteBufferImpl.cc.
2510         * Makefile.am: Reflect the above.
2511         * Makefile.in: Rebuilt.
2512         
2513 2007-01-17  Marco Trudel  <mtrudel@gmx.ch>
2514
2515         * jvmti.cc (_Jv_JVMTI_GetAllThreads): Now static.  Use JNICALL.
2516         Fixed indentation.  Removed unused variable.
2517
2518 2007-01-16  Tom Tromey  <tromey@redhat.com>
2519
2520         * java/lang/natThread.cc (finalize_native): Remove cast.
2521         (_Jv_GetCurrentJNIEnv): Likewise.
2522         * include/jvm.h (struct natThread) <jni_env>: Declare as
2523         _Jv_JNIEnv*.
2524
2525 2007-01-16  Keith Seitz  <keiths@redhat.com>
2526
2527         * testsuite/libjava.jvmti/natevents.cc (FieldModificationCB): Use
2528         %#llx instead of %d for new_value.
2529         * testsuite/libjava.jvmti/events.out: Update expected output.
2530         * testsuite/libjava.jvmti/events.jar: Regenerate.
2531
2532 2007-01-16  Keith Seitz  <keiths@redhat.com>
2533
2534         * gnu/classpath/jdwp/natVMVirtualMachine.cc (DEFINE_CALLBACK):
2535         New macro.
2536         (ENABLE_EVENT): New macro.
2537         (initialize): Define and enable JVMTI VM_INIT callback.
2538         (jdwpVMInitCB): New function.
2539
2540 2007-01-16  Kyle Galloway  <kgallowa@redhat.com>
2541
2542         * jvmti.cc (_Jv_JVMTI_GetAllThreads): New function.
2543         * testsuite/libjava.jvmti/getallthreads.java: New test.
2544         * testsuite/libjava.jvmti/natgetallthreads.cc: Ditto.
2545         * testsuite/libjava.jvmti/getallthreads.out: Ditto.
2546         * testsuite/libjava.jvmti/getallthreads.h: Ditto.
2547         * testsuite/libjava.jvmti/getallthreads.jar: Ditto. 
2548
2549 2007-01-15  Keith Seitz  <keiths@redhat.com>
2550
2551         * gnu/classpath/jdwp/natVMVirtualMachine.cc (suspendThread): Use
2552         java.lang.StringBuilder instead of java.lang.StringBuffer.
2553         (resumeThread): Likewise.
2554
2555 2007-01-15  Gary Benson  <gbenson@redhat.com>
2556
2557         * java/nio/MappedByteBuffer.java: Removed.
2558         * sources.am, Makefile.in: Rebuilt.
2559
2560 2007-01-15  Gary Benson  <gbenson@redhat.com>
2561
2562         * java/net/URLClassLoader.java: Removed.
2563         * gnu/java/net/loader/Load_gcjlib.java: New file.
2564         * gnu/gcj/runtime/BootClassLoader.java: Ensure core
2565         URL handler is present in static executables.
2566         * sources.am, Makefile.in: Rebuilt.
2567
2568 2007-01-14  H.J. Lu  <hongjiu.lu@intel.com>
2569
2570         * Makefile.am (libgcj_la_LDFLAGS): Add
2571         $(LIBGCJ_LD_SYMBOLIC_FUNCTIONS).
2572         (libgcj_tools_la_LDFLAGS): Likewise.
2573         (libgcj_bc_la_LDFLAGS): Likewise.
2574         * Makefile.in: Regenerated.
2575
2576         * configure.ac: Use ACX_PROG_LD_GNU_SYMBOLIC.  Set
2577         LIBGCJ_LD_SYMBOLIC_FUNCTIONS to $SYMBOLIC_LDFLAGS.  Set
2578         libgcj_ld_symbolic to $SYMBOLIC_LDFLAGS if it isn't set.
2579         Substitute LIBGCJ_LD_SYMBOLIC_FUNCTIONS.
2580         * configure: Regenerated.
2581         * aclocal.m4: Likewise.
2582         * gcj/Makefile.in: Likewise.
2583         * include/Makefile.in: Likewise.
2584         * testsuite/Makefile.in: Likewise.
2585
2586 2007-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
2587
2588         * sysdep/sh/locks.h (read_barrier): New.
2589         (write_barrier): Likewise.
2590
2591 2007-01-12  Andrew Haley  <aph@redhat.com>
2592
2593         * include/i386-signal.h: Rewrite to use rt_sigaction.
2594
2595 2007-01-11  Andrew Haley  <aph@redhat.com>
2596
2597         * prims.cc (jdwpOptions) Fix deprecated cast from char[] constant
2598         to char*.
2599         * include/x86_64-signal.h (HANDLE_DIVIDE_OVERFLOW): Rewrite to fix
2600         aliasing violation.
2601
2602 2007-01-10  Tom Tromey  <tromey@redhat.com>
2603
2604         * gnu/gcj/xlib/*.h: New files.
2605         * gnu/awt/xlib/*.h: Likewise.
2606         * classpath/lib/gnu/gcj/xlib: New class files.
2607         * classpath/lib/gnu/awt/xlib: Likewise.
2608
2609 2007-01-10  Tom Tromey  <tromey@redhat.com>
2610
2611         * HACKING: Various updates.
2612
2613 2007-01-10  Tom Tromey  <tromey@redhat.com>
2614
2615         * java/lang/natDouble.cc (toString): Added parens.
2616         * gnu/gcj/io/shs.h (PROTO): Define.
2617         * link.cc (resolve_pool_entry): Added missing braces.
2618
2619 2007-01-10  H.J. Lu  <hongjiu.lu@intel.com>
2620
2621         PR libgcj/30424
2622         * sysdep/ia64/locks.h (read_barrier): New.
2623         (write_barrier): New.
2624
2625 2007-01-10  Gary Benson  <gbenson@redhat.com>
2626
2627         * java/net/URL.java: Removed.
2628         * sources.am, Makefile.in: Rebuilt.
2629
2630 2007-01-10  Matthias Klose  <doko@debian.org>
2631
2632         * Makefile.am (install-exec-hook): Support $(DESTDIR).
2633         * Makefile.in: Regenerated.
2634
2635 2007-01-05  Tom Tromey  <tromey@redhat.com>
2636
2637         * testsuite/libjava.loader/loader.exp (gcj_loader_run): Find
2638         dummy.class in srcdir.
2639
2640 2007-01-03  Tom Tromey  <tromey@redhat.com>
2641
2642         * testsuite/libjava.cni/cni.exp (gcj_cni_compile_cxx_to_o): Add -I
2643         for srcdir.
2644
2645 2007-01-03  Tom Tromey  <tromey@redhat.com>
2646
2647         * testsuite/*: Added many .jar and .h files.
2648         * testsuite/libjava.special/special.exp
2649         (gcj_special_try_compiler): New proc.
2650         * testsuite/libjava.loader/loader.exp (gcj_loader_run): Don't
2651         bytecompile source.  Search for .jar files.
2652         (gcj_loader_test_one): Don't look for MyLoader.java.
2653         * testsuite/libjava.jvmti/jvmti.exp (gcj_jvmti_test_one): Don't
2654         bytecompile sources or build headers.
2655         (gcj_jvmti_run): Look for .jar files.
2656         * testsuite/libjava.jni/jni.exp (gcj_jni_run): Compile .jar
2657         files.
2658         (gcj_jni_test_one): Don't bytecompile sources or build headers.
2659         Set classpath when invoking gij.
2660         (gcj_jni_invocation_test_one): Likewise.
2661         * testsuite/libjava.cni/cni.exp (gcj_cni_test_one): Don't build
2662         headers or bytecompile sources.
2663         (gcj_cni_run): Use .jar files, not .java files.
2664         * testsuite/libjava.lang/lang.exp: Compile .jar files.
2665
2666 2007-01-02  Tom Tromey  <tromey@redhat.com>
2667
2668         * configure: Rebuilt.
2669         * configure.ac: Check for gjar.
2670
2671 2007-01-02  Tom Tromey  <tromey@redhat.com>
2672
2673         * testsuite/libjava.jacks/jacks.exp: Removed.
2674         * testsuite/libjava.jacks/jacks.xfail: Removed.
2675