OSDN Git Service

f86ef8594bfac8f594cdeea09528447154551c05
[pf3gnuchains/gcc-fork.git] / libjava / ChangeLog
1 2007-02-15  Kyle Galloway  <kgallowa@redhat.com>
2
3         * defineclass.cc (_Jv_ClassReader::read_one_code_attribute):
4     Added LocalVariableTable attribute handling.
5     (_Jv_ClassReader::pool_Utf8_to_char_arr): New method.
6     * jvmti.cc (_Jv_JVMTI_GetLocalVariableTable): New method.
7     * include/java-interp.h: Added local_var_table and
8     local_var_table_len fields to _Jv_InterpMethod.
9     (_Jv_InterpMethod::get_local_var_table): New method.
10     * testsuite/libjava.jvmti/interp/getlocalvartable.java: New
11     test.
12     * testsuite/libjava.jvmti/interp/getlocalvartable.jar: New test.
13     * testsuite/libjava.jvmti/interp/getlocalvartable.out: Output
14     for new test.
15     * testsuite/libjava.jvmti/interp/getlocalvartable.h: New test.
16     * testsuite/libjava.jvmti/interp/natgetlocalvartable.cc: New
17     test.
18
19 2007-02-15  Kyle Galloway  <kgallowa@redhat.com>
20  
21    * gnu/classpath/jdwp/natVMVirtualMachine (getFrames): Implement.
22
23 2007-02-13  Keith Seitz  <keiths@redhat.com>
24
25         * gnu/classpath/jdwp/natVMVirtualMachine.cc
26         (jdwpBreakpointCB): New function.
27         (jdwpVMInitCB): Define and enable the breakpoint
28         callback.
29
30 2007-02-13  Andrew Haley  <aph@redhat.com>
31
32         * testsuite/libjava.lang/Divide_2.out
33         * testsuite/libjava.lang/Divide_2.java: New test.
34
35 2007-02-12  Keith Seitz  <keiths@redhat.com>
36
37         * jvmti.cc (_Jv_JVMTI_GetStackTrace): Remove cast
38         from jthread to Thread *; it is no longer needed.
39         (_Jv_JVMTI_GetFrameCount): Likewise.
40         Fix small formatting typo.
41
42 2007-02-12  Tom Tromey  <tromey@redhat.com>
43
44         * sources.am, Makefile.in: Rebuilt.
45         * java/lang/Socket.java: Removed override.
46         * java/lang/DatagramSocket.java: Removed override.
47         * gnu/java/net/PlainSocketImpl.java (localSocketAddress): New
48         field.
49         (getLocalAddress): New method.
50         * gnu/java/net/PlainDatagramSocketImpl.java
51         (PlainDatagramSocketImpl): Throws IOException.
52         * gnu/java/net/natPlainSocketImplPosix.cc (write): Remove
53         'sizeof'.
54         (read): Likewise.
55
56 2007-02-09  Jakub Jelinek  <jakub@redhat.com>
57
58         * java/util/VMTimeZone.java: Rewrite to handle both the old
59         'TZif\0' format and the new one.
60         
61 2007-02-10  Andrew Haley  <aph@redhat.com>
62
63         PR java/30742
64         * gnu/classpath/natVMStackWalker.cc (GET_CALLING_CLASS): New.
65         (getCallingClass): Call GET_CALLING_CLASS.
66         (getCallingClassLoader): Likewise.
67
68 2007-02-10  Mohan Embar  <gnustuff@thisiscool.com>
69
70         * configure: Rebuilt.
71         * configure.ac (GCJH): Reverted second part of patch of 2006-12-20.
72
73 2007-02-10  Mohan Embar  <gnustuff@thisiscool.com>
74
75         * Makefile.in: Rebuilt.
76         * Makefile.am (BUILD_ECJ1): Unify the command for renaming ecjx to
77         the host's ecj1 executable.
78
79 2007-02-09  Richard Henderson  <rth@redhat.com>
80
81         * sysdep/alpha/locks.h (read_barrier): New.
82
83 2007-02-09  Keith Seitz  <keiths@redhat.com>
84
85         * gnu/classpath/jdwp/VMVirtualMachine.java
86         (_stepping_threads): New member.
87         * classpath/lib/gnu/classpath/jdwp/VMVirtualMachine.class:
88         Regenerated.
89         * gnu/classpath/jdwp/VMVirtualMachine.h:
90         Regenerated.
91         * gnu/claspath/jdwp/natVMVirtualMachine.cc
92         (get_request_step_filter): New function.
93         (DISABLE_EVENT): New macro.
94         (initialize): Initialize _stepping_threads.
95         (registerEvent): Implement EVENT_SINGLE_STEP.
96         (unregisterEvent): Likewise.
97
98 2007-02-08  Keith Seitz  <keiths@redhat.com>
99
100         * sources.am: Regenerate.
101         * Makefile.in: Regenerate.
102         * testsuite/Makefile.in: Regenerate.
103         * gcj/Makefile.in: Regenerate.
104         * include/Makefile.in: Regenerate.
105
106         * classpath/lib/javax/management/MBeanServerFactory.class:
107         Regenerate.
108
109 2007-02-08  Kyle Galloway  <kgallowa@redhat.com>
110
111         * classpath/gnu/classpath/jdwp/processor/
112         StackFrameCommandSet.java (executeGetValues): Pass jlong instead
113         of ByteBuffer.
114         (executeSetValues): Ditto.
115         (executeThisObject): Ditto.
116         * classpath/gnu/classpath/jdwp/processor/
117         StackFrameCommandSet.class: Rebuilt.
118         * classpath/lib/gnu/classpath/jdwp/VMVirtualMachine.class:
119         Rebuilt.
120         * classpath/lib/gnu/classpath/jdwp/VMFrame.class: Rebuilt.
121         * classpath/lib/gnu/classpath/jdwp/exception/
122         InvalidFrameException.java: New file.
123         * gnu/classpath/jdwp/VMFrame.java: Added field for thread of
124         frame.
125         (Constructor): New method.
126         * gnu/classpath/jdwp/VMFrame.h: Regenerated.
127         * gnu/classpath/jdwp/VMVirtualMachine.java
128         (getFrame): Changed ByteBuffer to jlong.
129         * gnu/classpath/jdwp/natVMVirtualMachine.cc
130         (getFrame): Implement.
131         * gnu/classpath/jdwp/VMVirtualMachine.h: Regenerated.
132
133 2007-02-08  Kyle Galloway  <kgallowa@redhat.com>
134
135         * include/java-interp.h (_Jv_InterpFrame): obj_ptr field added
136         to hold "this" pointer for frame.
137         (_Jv_InterpFrame::get_this_ptr): New method.
138         * interpret-run.cc: Copy the "this" pointer into obj_ptr.
139
140 2007-02-07  Keith Seitz  <keiths@redhat.com>
141
142         * include/java-interp.h (_Jv_Frame::depth):
143         New function.
144         * jvmti.cc (_Jv_JVMTI_GetFrameCount): Use _Jv_Frame::depth.
145
146 2007-02-07  Kyle Galloway  <kgallowa@redhat.com>
147
148         * jvmti.cc (CHECK_FOR_NATIVE_METHOD): New macro.
149         (_Jv_JVMTI_GetMaxLocals): New method.
150         * include/java-interp.h
151         (_Jv_InterpMethod::get_max_locals): New method.
152
153 2007-02-01 Marco Trudel <mtrudel@gmx.ch>
154
155         * jni.cc (_Jv_JNI_DeleteWeakGlobalRef): Check for NULL objects.
156
157 2007-02-07  Tom Tromey  <tromey@redhat.com>
158
159         * testsuite/libjava.jni/init.c: New file.
160         * testsuite/libjava.jni/init.java: New file.
161         * testsuite/libjava.jni/init.out: New file.
162         * testsuite/libjava.jni/init.jar: New file.
163         * testsuite/libjava.jni/init.h: New file.
164         * testsuite/libjava.jni/init$NativeClass.h: New file.
165
166 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
167
168         PR libgomp/28468
169         * configure: Regenerate.
170
171 2007-02-06  Andrew Haley  <aph@redhat.com>
172
173         * scripts/makemake.tcl (emit_bc_rule): Set the source filename.
174         * sources.am: Rebuild.
175
176 2007-02-05  Keith Seitz  <keiths@redhat.com>
177
178         * jvmti.cc (_envListLock): Change type to
179         ReentrantReadWriteLock.
180         (_Jv_JVMTI_DisposeEnvironment): Switch to read/write
181         lock.
182         (check_enabled_event): Likewise.
183         (_Jv_GetJVMTIEnv): Likewise.
184         (_Jv_JVMTI_Init): Likewise.
185         (_Jv_JVMTI_PostEvent): Likewise. 
186
187 2007-02-05  Keith Seitz  <keiths@redhat.com>
188
189         * gnu/classpath/jdwp/natVMVirtualMachine.cc
190         (registerEvent): Implement EVENT_BREAKPOINT.
191         (unregisterEvent): Likewise.
192         (get_request_location): New function.
193
194 2007-02-05  Matthias Klose  <doko@debian.org>
195
196         testsuite/Makefile.am (compile-tests): Fix typo.
197         testsuite/Makefile.in: Regenerate.
198
199 2007-02-02  Kyle Galloway  <kgallowa@redhat.com>
200
201         * gnu/classpath/jdwp/natVMVirtualMachine.cc (getFrameCount):
202         Implment.
203
204 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
205
206         * configure.ac (libjava_cv_anon_version_script): New test.
207         (ANONVERSCRIPT): New AM_CONDITIONAL.
208         * configure: Rebuilt.
209         * Makefile.am (extra_ldflags_libjava): Link with -Wl,--version-script
210         if ANONVERSCRIPT.
211         * Makefile.in: Rebuilt.
212         (libgcj_la_DEPENDENCIES): Depend on libgcj.ver.
213         * libgcj.ver: New file.
214
215 2007-02-01  David Daney  <ddaney@avtrex.com>
216
217         * scripts/makemake.tcl: Replace gnu/xml build with build of all
218         its subpackages.
219         * sources.am: Regenerate.
220         * Makefile.in: Regenerate.
221
222 2007-02-01  Tom Tromey  <tromey@redhat.com>
223
224         * java/lang/ClassLoader.java (getResources): No longer final.
225
226 2007-02-01  Tom Tromey  <tromey@redhat.com>
227
228         * java/util/logging/LogManager.java (loggers): Genericized.
229         (addLogger): Merged.
230         (findAncestor): Likewise.
231         (getLogger): Likewise.
232         (getLoggerNames): Genericized.
233         (reset): Merged.
234         (getLevelProperty): Likewise.
235         * java/lang/reflect/Method.java (getDeclaringClass): Genericized.
236         * java/lang/reflect/Constructor.java (getParameterTypes):
237         Genericized.
238         (getExceptionTypes): Likewise.
239         (newInstance): Likewise.
240         * java/lang/reflect/Array.java (newInstance): Genericized.
241         * java/lang/Object.java (getClass): Genericized.
242         * java/nio/charset/spi/CharsetProvider.java (charsets):
243         Genericized.
244         * java/text/Collator.java: Implement Comparable<Object>.
245
246 2007-02-01  Tom Tromey  <tromey@redhat.com>
247
248         * java/util/Calendar.java: Implement Comparable<Calendar>.  Update
249         comments.
250         (clear): Call complete.
251         (setTimeZone): Call computeTime, computeFields.
252         (compareTo): New method.
253         * java/nio/charset/Charset.java: Implement Comparable<Charset>.
254         (availableCharsets): Genericized.
255         (aliases): Likewise.
256         (compareTo): Changed argument type.
257         * java/lang/ClassLoader.java (loadClass): Genericized.
258         (findClass): Likewise.
259         (defineClass): Likewise.
260         (resolveClass): Likewise.
261         (findSystemClass): Likewise.
262         (setSigners): Likewise.
263         (findLoadedClass): Likewise.
264         (getResources): Likewise.
265         (findResources): Likewise.
266         (getSystemResources): Likewise.
267         (checkInitialized): New method.
268         * java/lang/Class.java (getCanonicalName): New method.
269
270 2007-01-31  Keith Seitz  <keiths@redhat.com>
271
272         * include/jvmti-int.h (JVMTI): Declare member "enabled".
273         * jvmti.cc (JVMTI): Add member "enabled".
274         (_Jv_GetJVMTIEnv): Mark JVMTI enabled.
275         * interpret.cc (_Jv_InterpMethod::ncode): Use JVMTI::enabled
276         instead of gnu::classpath::jdwp::Jdwp::isDebugging.
277         (_Jv_CompileMethod): If JVMTI is enabled, use run_debug
278         instead of run to compile the method.
279
280         * interpret-run.cc [DEBUG] (NEXT_INSN): Add JVMTI single step
281         notification.
282
283 2007-01-31  Andreas Tobler  <a.tobler@schweiz.org>
284
285         * testsuite/libjava.jvmti/jvmti-interp.exp (gij_jvmti_test_one): Add
286         -shared-libgcc to the cxxflaglist for Darwin.
287
288 2007-01-31  Tom Tromey  <tromey@redhat.com>
289
290         * scripts.am, Makefile.in: Rebuilt.
291         * scripts/makemake.tcl (gnu/javax/swing/text/html/parser): Build
292         as 'ordinary'.
293         (emit_ordinary_rule): New proc.
294
295 2007-01-31  Keith Seitz  <keiths@redhat.com>
296
297         * testsuite/libjava.jvmti/getmethodname.h: New file.
298         * testsuite/libjava.jvmti/getmethodname.jar: New file.
299
300 2007-01-31  Andrew Haley  <aph@redhat.com>
301
302         * prims.cc (_Jv_Abort): fflush (stderr).
303         * java/lang/natClassLoader.cc (_Jv_CheckABIVersion): Abort.
304
305 2007-01-31  Tom Tromey  <tromey@redhat.com>
306
307         * configure, Makefile.in: Rebuilt.
308         * configure.ac (JAR): Check for -@ feature.
309         * Makefile.am (libgcj-$(gcc_version).jar): Use find -prune.
310
311 2007-01-31  Tom Tromey  <tromey@redhat.com>
312
313         PR libgcj/30606:
314         * configure, include/config.h.in: Rebuilt.
315         * configure.ac: Check for magic_t in magic.h.
316         * java/net/natVMURLConnection.cc: Use HAVE_MAGIC_T.
317
318 2007-01-30  Tom Tromey  <tromey@redhat.com>
319
320         * Makefile.in: Rebuilt.
321         * Makefile.am (libgcj-$(gcc_version).jar): Rewrote.
322
323 2007-01-30  Andreas Tobler  <a.tobler@schweiz.org>
324
325         * testsuite/libjava.jvmti/natevents.cc (FieldModificationCB): Use a
326         cast to print it right.
327
328 2007-01-29  Kaloian Doganov  <kaloian@doganov.org>
329
330         PR libgcj/30600:
331         * gnu/gcj/convert/BytesToCharsetAdaptor.java (read): Fix call to
332         'limit'.
333
334 2007-01-29  Kyle Galloway  <kgallowa@redhat.com>
335
336         * include/java-interp.h:  Added _Jv_Frame class and its two
337         subclasses _Jv_InterpFrame and _Jv_NativeFrame.  Also moved
338         _Jv_FrameType from java-stack.h.
339         * include/java-stack.h: Removed _Jv_FrameType.
340         * java/lang/Thread.java: Added frame member to hold new
341         composite frame stack.
342         * java/lang/Thread.h: Regenerated.
343         * java/lang/Thread.class: Rebuilt.
344         * jni.cc (_Jv_JNIMethod::call): Push a frame onto the stack when
345         calling a JNI method.
346         * jvmti.cc (_Jv_JVMTI_GetStackTrace): New Method.
347         (_Jv_JVMTI_GetFrameCount): New method.
348         * stacktrace.cc (UnwindTraceFn): Modified to use new _Jv_Frame
349         classes.
350         * testsuite/libjava.jvmti/interp/getstacktrace.jar: New test.
351         * testsuite/libjava.jvmti/interp/natgetstacktrace.cc: New test.
352         * testsuite/libjava.jvmti/interp/getstacktrace.h: New test.
353         * testsuite/libjava.jvmti/interp/getstacktrace.jar: New test.
354         * testsuite/libjava.jvmti/interp/getstacktrace.out: Output file
355         for test. 
356
357 2007-01-29  Tom Tromey  <tromey@redhat.com>
358
359         * interpret.cc (run_debug): Remove comment.
360         (STOREA): Reformat.
361         (STOREI): Likewise.
362         (STOREF): Likewise.
363         (STOREL): Likewise.
364         (STORED): Likewise.
365         (POKEI): Likewise.
366         (run_normal_debug): Likewise.
367         (run_synch_object_debug): Likewise.
368         (run_class_debug): Likewise.
369         (run_synch_class_debug): Likewise.
370         (get1s): Likewise.
371         (get1u): Likewise.
372         (get2u): Likewise.
373         (get4): Likewise.
374         (NULLARRAYCHECK): Likewise.
375         (ARRAYBOUNDSCHECK): Likewise.
376         * interpret-run.cc (insn_target) <breakpoint>: Tidy.
377
378 2007-01-29  Tom Tromey  <tromey@redhat.com>
379
380         * configure, Makefile.in: Rebuilt.
381         * Makefile.am (bin_SCRIPTS): Never install scripts/jar.
382         * configure.ac (BASH_JAR): Removed conditional.
383         (JAR): Prefer the jar found by AC_CHECK_PROGS.
384
385 2007-01-29  Tom Tromey  <tromey@redhat.com>
386
387         * Makefile.in: Rebuilt.
388         * Makefile.am (interpret.lo): New target.  Add -fwrap to
389         AM_CXXFLAGS.
390
391 2007-01-29  Keith Seitz  <keiths@redhat.com>
392
393         * include/jvmti_md.h (_CLASSPATH_VM_JVMTI_TYPES_DEFINED):
394         Define.
395         [__GCJ_JNI_IMPL__]: Define our own JVMTI types when building
396         gcj. All jvmti object types now are defined to be their
397         corresponding java classes.
398         * jvmti.cc (_Jv_JVMTI_SuspendThread): Remove casting from
399         jthread to Thread*.
400         (_Jv_JVMTI_ResumeThread): Likewise.
401         (_Jv_JVMTI_InterruptThread): Likewise.
402         (_Jv_JVMTI_SetEventNotificationMode): Likewise.
403         * gnu/classpath/jdwp/natVMVirtualMachine.cc
404         (jdwpClassPrepareCB): Likewise.
405         (jdwpThreadEndCB): Likewise.
406         (jdwpThreadStartCB): Likewise.
407         (jdwpVMInitCB): Likewise.
408  
409 2007-01-28  Michele Sandri  <gpointorama@gmail.com>
410
411         * gnu/java/nio/channels/natFileChannelWin32.cc
412         (lock): Implemented.
413         (unlock): Implemented.
414
415 2007-01-27  Andreas Tobler  <a.tobler@schweiz.org>
416
417         PR libgcj/30513
418         * configure.host: Add forgottten sysdep_dir to sparc. Add a flag to
419         libgcj_flags to undefine 'sun' at compile time.
420         * sysdep/sparc/locks.h (read_barrier): New functions for 32 and 64 bit
421         Sparc.
422         (write_barrier): Likewise.
423
424 2007-01-27  Keith Seitz  <keiths@redhat.com>
425
426         * gnu/classpath/jdwp/natVMVirtualMachine.cc
427         (getAllClassMethods): Move error handling to ...
428         (throw_jvmti_error): ... here.
429         (jdwpClassPrepareCB): New function.
430         (jdwpThreadEndCB): New function.
431         (jdwpThreadStartCB): New function.
432         (jdwpVMDeathCB): New function.
433         (jdwpVMInitCB): Define and enable callbacks for
434         ClassPrepare, ThreadEnd, ThreadStart, and VMDeath.
435
436 2007-01-27  Jakub Jelinek  <jakub@redhat.com>
437
438         * Makefile.am (generic_header_files): Add $(inner_nat_headers).
439         * testsuite/Makefile.am (check-dejaGNU): Depend on compile-tests.
440         (MYGCJH): New variable.
441         (compile-tests): New goal.
442         * Makefile.in: Rebuilt.
443         * testsuite/Makefile.in: Rebuilt.
444
445 2007-01-26  Andrew Haley  <aph@redhat.com>
446
447         * java/lang/natClass.cc (initializeClass): Re-throw
448         SecurityExceptions.
449         * java/lang/natVMClassLoader.cc (loadClass): checkPackageAccess.
450         * java/lang/ClassLoader.java: (loadClass): Likewise.
451
452 2007-01-26  Tom Tromey  <tromey@redhat.com>
453
454         * Updated headers.
455
456 2007-01-25  Tom Tromey  <tromey@redhat.com>
457
458         PR libgcj/29594:
459         * gnu/gcj/convert/Convert.java (main): Correctly handle missing
460         input or output encodings.  Removed unused local variables.
461
462 2007-01-25  Keith Seitz  <keiths@redhat.com>
463
464         * include/jvmti-int.h (_Jv_GetJDWP_JVMTIEnv): Declare.
465         * gnu/classpath/jdwp/natVMVirtualMachine.cc
466         (_Jv_GetJDWP_JVMTIEnv): New function.
467         * gnu/classpath/jdwp/natVMMethod.cc (getName): Implement.
468         (getSignature): Implement.
469         (getModifiers): Implement.
470
471 2007-01-25  Andrew Haley  <aph@redhat.com>
472
473         * configure, Makefile.in, include/config.h.in: Rebuilt.
474         * Makefile.am (libgcj_la_LIBADD): Removed $(LIBMAGIC).
475         * configure.ac: Don't check for libmagic.
476         * java/net/natVMURLConnection.cc (p_magic_open, p_magic_load,
477         p_magic_close, p_magic_buffer): New globals.
478         (init): Look up 'magic' functions.
479         (guessContentTypeFromBuffer): Updated.
480
481 2007-01-25  Keith Seitz  <keiths@redhat.com>
482
483         * jvmti.cc (_Jv_JVMTI_GetMethodName): New function.
484         (_Jv_JVMTI_Interface): Define GetMethodName.
485         * testsuite/libjava.jvmti/getmethodname.java: New file.
486         * testsuite/libjava.jvmti/natgetmethodname.cc: New file.
487         * testsuite/libjava.jvmti/getmethodname.out: New file. 
488
489 2007-01-24  Kyle Galloway  <kgallowa@redhat.com>
490
491         * libjava/testsuite/libjava.jvmti/jvmti-interp.exp: New file.
492         * libjava/testsuite/libjava.jvmti/interp: New folder.
493         * libjava/testsuite/lib/libjava.exp (exec_gij): New Method.
494
495 2007-01-24  Keith Seitz  <keiths@redhat.com>
496
497         * link.cc (_Jv_Linker::wait_for_state): Add JVMTI
498         CLASS_PREPARE notification.
499
500 2007-01-24  Keith Seitz  <keiths@redhat.com>
501
502         * interpret.cc: Include gnu/gcj/jvmti/Breakpoint.h,
503         gnu/gcj/jvmti/BreakpointManager.h, jvmti.h, and jvmti-int.h
504         * interpret-run.cc: Implement insn_breakpoint.
505
506 2007-01-24  Keith Seitz  <keiths@redhat.com>
507
508         * prims.cc (_Jv_RunMain): Send JVMTI event notifications
509         for VM_INIT and VM_DEATH instead of the JDWP notifications.
510
511 2007-01-24  Keith Seitz  <keiths@redhat.com>
512
513         * gnu/classpath/jdwp/natVMVirtualMachine.cc
514         (getAllClassMethods): Implement.
515
516 2007-01-24  Andrew Haley  <aph@redhat.com>
517
518         * gnu/classpath/natVMStackWalker.cc: Call InitClass everywhere.
519         (getClassContext) Add a barrier to prevent GetStackWalkerStack()
520         from being sibcalled.
521
522 2007-01-24  Andrew Haley  <aph@redhat.com>
523
524         * scripts/makemake.tcl (emit_bc_rule): Set the source filename.
525         * sources.am: Rebuild.
526
527 2007-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
528
529         * exception.cc (parse_lsda_header, PERSONALITY_FUNCTION): Replaced
530         _Unwind_Word with _uleb128_t and _Unwind_SWord with _sleb128_t.
531
532 2007-01-23  H.J. Lu  <hongjiu.lu@intel.com>
533
534         PR libgcj/30550
535         * Makefile.am (ecjx_DEPENDENCIES): Add libgcj_bc.la if needed.
536         * Makefile.in: Regenerated.
537
538 2007-01-22  Keith Seitz  <keiths@redhat.com>
539
540         * gnu/classpath/jdwp/natVMVirtualMachine.cc
541         (getClassMethod): Implement.
542
543 2007-01-22  Keith  Seitz  <keiths@redhat.com>
544
545         * java/lang/Class.h (_Jv_GetClassStatus): Declare.
546         * java/lang/natClass.cc (_Jv_GetClassStatus): New function.
547         * jvmti.cc (_Jv_JVMTI_GetClassStatus): New function.
548         (_Jv_JVMTI_Interface): Define GetClassStatus.
549
550 2007-01-22  Tom Tromey  <tromey@redhat.com>
551
552         * configure: Rebuilt.
553         * configure.ac (GCJ): Reverted patch of 2006-12-20.
554
555 2007-01-22  Tom Tromey  <tromey@redhat.com>
556
557         PR java/29812:
558         * testsuite/libjava.jni/pr29812.java: New file.
559         * testsuite/libjava.jni/pr29812_injar.java: New file.
560         * testsuite/libjava.jni/pr29812_injar.jar: New file.
561         * testsuite/libjava.jni/pr29812.out: New file.
562         * testsuite/libjava.jni/pr29812_injar.c: New file.
563         * testsuite/libjava.jni/pr29812_injar.h: New file.
564         * testsuite/libjava.jni/pr29812.jar: New file.
565         * testsuite/libjava.jni/pr29812.c: New file.
566         * testsuite/libjava.jni/pr29812.h: New file.
567         * testsuite/libjava.jni/jni.exp (gcj_jni_get_cxxflags_invocation):
568         New proc.
569         (gcj_jni_invocation_test_one): Use it.
570         (gcj_jni_pr29812): New proc.
571         (gcj_jni_run): Use it.
572         * java/lang/natRuntime.cc (_load): Push a new system frame before
573         calling JNI_OnLoad.
574         * include/jvm.h (_Jv_JNI_PopSystemFrame): Declare.
575         (_Jv_GetJNIEnvNewFrameWithLoader): Likewise.
576         * jni.cc (struct _Jv_JNI_LocalFrame) <marker>: Now unsigned char.
577         <allocated_p>: Now bool.
578         <loader>: New field.
579         (_Jv_JNI_EnsureLocalCapacity): Updated.
580         (_Jv_JNI_NewLocalRef): Likewise.
581         (_Jv_JNI_NewLocalRef): Likewise.
582         (_Jv_JNI_PopLocalFrame): Likewise.
583         (_Jv_JNI_FindClass): Likewise.
584         (_Jv_GetJNIEnvNewFrame): Likewise.
585         (_Jv_JNI_AttachCurrentThread): Likewise.
586         (_Jv_GetJNIEnvNewFrameWithLoader): New function.
587         (_Jv_GetJNIEnvNewFrame): Use it.
588         * include/jni_md.h (_CLASSPATH_JNIENV_CONTENTS): Removed 'klass'.
589
590 2007-01-22  Tom Tromey  <tromey@redhat.com>
591
592         * libtool-version: Bump current to 9.
593
594 2007-01-22  Andrew Haley  <aph@redhat.com>
595
596         * sysdep/alpha/locks.h (write_barrier): New.
597
598 2007-01-21  Matthias Klose  <doko@debian.org>
599
600         * Makefile.am (install-exec-hook): Use transformed name.
601         * Makefile.in: Regenerate.
602
603 2007-01-19  Keith Seitz  <keiths@redhat.com>
604
605         * gnu/classpath/jdwp/natVMVirtualMachine.cc: Mark unused parameters
606         in methods and reformat.
607
608         * gnu/classpath/jdwp/natVMFrame.cc: Mark unused parameters with
609         MAYBE_UNUSED.
610
611 2007-01-18  Keith Seitz  <keiths@redhat.com>
612
613         From Macro Trudel <mtrudel@gmx.ch>:
614         * gnu/classpath/jdwp/natVMVirtualMachine.cc (jdwpVMInitCB):
615         Use JNICALL.
616
617 2007-01-18  Marco Trudel  <mtrudel@gmx.ch>
618
619         * jni.cc (_Jv_JNI_FindClass): Initialize class.
620         * testsuite/libjava.jni/findclass2.jar: New file.
621         * testsuite/libjava.jni/findclass2.h: New file.
622         * testsuite/libjava.jni/findclass2.java: New file
623         * testsuite/libjava.jni/findclass2.c: New file.
624         * testsuite/libjava.jni/findclass2.out: New file.
625
626 2007-01-18  Tom Tromey  <tromey@redhat.com>
627
628         * configure: Rebuilt.
629         * configure.ac: Use multi_basedir instead of libgcj_basedir.
630
631 2007-01-18  Gary Benson  <gbenson@redhat.com>
632
633         * gnu/java/nio/natVMPipeEcos.cc:
634         Renamed from gnu/java/nio/natPipeImplEcos.cc.
635         * gnu/java/nio/natVMPipePosix.cc:
636         Renamed from gnu/java/nio/natPipeImplPosix.cc.
637         * gnu/java/nio/natVMPipeWin32.cc:
638         Renamed from gnu/java/nio/natPipeImplWin32.cc.
639         * gnu/java/nio/natVMSelectorEcos.cc:
640         Renamed from gnu/java/nio/natSelectorImplEcos.cc.
641         * gnu/java/nio/natVMSelectorPosix.cc:
642         Renamed from gnu/java/nio/natSelectorImplPosix.cc.
643         * gnu/java/nio/natVMSelectorWin32.cc:
644         Renamed from gnu/java/nio/natSelectorImplWin32.cc.
645         * java/io/natVMObjectInputStream.cc:
646         Renamed from java/io/natObjectInputStream.cc.
647         * java/lang/natVMDouble.cc:
648         Renamed from java/lang/natDouble.cc.
649         * java/lang/natVMFloat.cc:
650         Renamed from java/lang/natFloat.cc.     
651         * Makefile.am, configure.ac: Reflect the above.
652         * Makefile.in, configure: Rebuilt.
653
654 2007-01-17  Andrew Haley  <aph@redhat.com>
655
656         * Makefile.in: Rebuilt.
657         * Makefile.am (ecjx_LDFLAGS): Pass -fbootclasspath.
658
659 2007-01-17  Keith Seitz  <keiths@redhat.com>
660
661         * java/lang/natThread.cc (finish_): Add JVMTI ThreadEnd notification.
662         (_Jv_NotifyThreadStart): Add JVMTI ThreadStart notification.
663
664 2007-01-16  Jack Howarth  <howarth@bromo.med.uc.edu>
665
666         * configure.ac: Use multi.m4 from aclocal rather than custom
667         code.  Use multi_basedir instead libgcj_basedir.  Test for
668         /proc/self/exe when not cross-compiling.
669         * aclocal.m4: Regenerate.
670         * configure: Regenerate.
671         * Makefile.in: Regenerate.
672
673 2007-01-17  Gary Benson  <gbenson@redhat.com>
674
675         * java/nio/natVMDirectByteBufferImpl.cc:
676         Renamed from java/nio/natDirectByteBufferImpl.cc.
677         * Makefile.am: Reflect the above.
678         * Makefile.in: Rebuilt.
679         
680 2007-01-17  Marco Trudel  <mtrudel@gmx.ch>
681
682         * jvmti.cc (_Jv_JVMTI_GetAllThreads): Now static.  Use JNICALL.
683         Fixed indentation.  Removed unused variable.
684
685 2007-01-16  Tom Tromey  <tromey@redhat.com>
686
687         * java/lang/natThread.cc (finalize_native): Remove cast.
688         (_Jv_GetCurrentJNIEnv): Likewise.
689         * include/jvm.h (struct natThread) <jni_env>: Declare as
690         _Jv_JNIEnv*.
691
692 2007-01-16  Keith Seitz  <keiths@redhat.com>
693
694         * testsuite/libjava.jvmti/natevents.cc (FieldModificationCB): Use
695         %#llx instead of %d for new_value.
696         * testsuite/libjava.jvmti/events.out: Update expected output.
697         * testsuite/libjava.jvmti/events.jar: Regenerate.
698
699 2007-01-16  Keith Seitz  <keiths@redhat.com>
700
701         * gnu/classpath/jdwp/natVMVirtualMachine.cc (DEFINE_CALLBACK):
702         New macro.
703         (ENABLE_EVENT): New macro.
704         (initialize): Define and enable JVMTI VM_INIT callback.
705         (jdwpVMInitCB): New function.
706
707 2007-01-16  Kyle Galloway  <kgallowa@redhat.com>
708
709         * jvmti.cc (_Jv_JVMTI_GetAllThreads): New function.
710         * testsuite/libjava.jvmti/getallthreads.java: New test.
711         * testsuite/libjava.jvmti/natgetallthreads.cc: Ditto.
712         * testsuite/libjava.jvmti/getallthreads.out: Ditto.
713         * testsuite/libjava.jvmti/getallthreads.h: Ditto.
714         * testsuite/libjava.jvmti/getallthreads.jar: Ditto. 
715
716 2007-01-15  Keith Seitz  <keiths@redhat.com>
717
718         * gnu/classpath/jdwp/natVMVirtualMachine.cc (suspendThread): Use
719         java.lang.StringBuilder instead of java.lang.StringBuffer.
720         (resumeThread): Likewise.
721
722 2007-01-15  Gary Benson  <gbenson@redhat.com>
723
724         * java/nio/MappedByteBuffer.java: Removed.
725         * sources.am, Makefile.in: Rebuilt.
726
727 2007-01-15  Gary Benson  <gbenson@redhat.com>
728
729         * java/net/URLClassLoader.java: Removed.
730         * gnu/java/net/loader/Load_gcjlib.java: New file.
731         * gnu/gcj/runtime/BootClassLoader.java: Ensure core
732         URL handler is present in static executables.
733         * sources.am, Makefile.in: Rebuilt.
734
735 2007-01-14  H.J. Lu  <hongjiu.lu@intel.com>
736
737         * Makefile.am (libgcj_la_LDFLAGS): Add
738         $(LIBGCJ_LD_SYMBOLIC_FUNCTIONS).
739         (libgcj_tools_la_LDFLAGS): Likewise.
740         (libgcj_bc_la_LDFLAGS): Likewise.
741         * Makefile.in: Regenerated.
742
743         * configure.ac: Use ACX_PROG_LD_GNU_SYMBOLIC.  Set
744         LIBGCJ_LD_SYMBOLIC_FUNCTIONS to $SYMBOLIC_LDFLAGS.  Set
745         libgcj_ld_symbolic to $SYMBOLIC_LDFLAGS if it isn't set.
746         Substitute LIBGCJ_LD_SYMBOLIC_FUNCTIONS.
747         * configure: Regenerated.
748         * aclocal.m4: Likewise.
749         * gcj/Makefile.in: Likewise.
750         * include/Makefile.in: Likewise.
751         * testsuite/Makefile.in: Likewise.
752
753 2007-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
754
755         * sysdep/sh/locks.h (read_barrier): New.
756         (write_barrier): Likewise.
757
758 2007-01-12  Andrew Haley  <aph@redhat.com>
759
760         * include/i386-signal.h: Rewrite to use rt_sigaction.
761
762 2007-01-11  Andrew Haley  <aph@redhat.com>
763
764         * prims.cc (jdwpOptions) Fix deprecated cast from char[] constant
765         to char*.
766         * include/x86_64-signal.h (HANDLE_DIVIDE_OVERFLOW): Rewrite to fix
767         aliasing violation.
768
769 2007-01-10  Tom Tromey  <tromey@redhat.com>
770
771         * gnu/gcj/xlib/*.h: New files.
772         * gnu/awt/xlib/*.h: Likewise.
773         * classpath/lib/gnu/gcj/xlib: New class files.
774         * classpath/lib/gnu/awt/xlib: Likewise.
775
776 2007-01-10  Tom Tromey  <tromey@redhat.com>
777
778         * HACKING: Various updates.
779
780 2007-01-10  Tom Tromey  <tromey@redhat.com>
781
782         * java/lang/natDouble.cc (toString): Added parens.
783         * gnu/gcj/io/shs.h (PROTO): Define.
784         * link.cc (resolve_pool_entry): Added missing braces.
785
786 2007-01-10  H.J. Lu  <hongjiu.lu@intel.com>
787
788         PR libgcj/30424
789         * sysdep/ia64/locks.h (read_barrier): New.
790         (write_barrier): New.
791
792 2007-01-10  Gary Benson  <gbenson@redhat.com>
793
794         * java/net/URL.java: Removed.
795         * sources.am, Makefile.in: Rebuilt.
796
797 2007-01-10  Matthias Klose  <doko@debian.org>
798
799         * Makefile.am (install-exec-hook): Support $(DESTDIR).
800         * Makefile.in: Regenerated.
801
802 2007-01-05  Tom Tromey  <tromey@redhat.com>
803
804         * testsuite/libjava.loader/loader.exp (gcj_loader_run): Find
805         dummy.class in srcdir.
806
807 2007-01-03  Tom Tromey  <tromey@redhat.com>
808
809         * testsuite/libjava.cni/cni.exp (gcj_cni_compile_cxx_to_o): Add -I
810         for srcdir.
811
812 2007-01-03  Tom Tromey  <tromey@redhat.com>
813
814         * testsuite/*: Added many .jar and .h files.
815         * testsuite/libjava.special/special.exp
816         (gcj_special_try_compiler): New proc.
817         * testsuite/libjava.loader/loader.exp (gcj_loader_run): Don't
818         bytecompile source.  Search for .jar files.
819         (gcj_loader_test_one): Don't look for MyLoader.java.
820         * testsuite/libjava.jvmti/jvmti.exp (gcj_jvmti_test_one): Don't
821         bytecompile sources or build headers.
822         (gcj_jvmti_run): Look for .jar files.
823         * testsuite/libjava.jni/jni.exp (gcj_jni_run): Compile .jar
824         files.
825         (gcj_jni_test_one): Don't bytecompile sources or build headers.
826         Set classpath when invoking gij.
827         (gcj_jni_invocation_test_one): Likewise.
828         * testsuite/libjava.cni/cni.exp (gcj_cni_test_one): Don't build
829         headers or bytecompile sources.
830         (gcj_cni_run): Use .jar files, not .java files.
831         * testsuite/libjava.lang/lang.exp: Compile .jar files.
832
833 2007-01-02  Tom Tromey  <tromey@redhat.com>
834
835         * configure: Rebuilt.
836         * configure.ac: Check for gjar.
837
838 2007-01-02  Tom Tromey  <tromey@redhat.com>
839
840         * testsuite/libjava.jacks/jacks.exp: Removed.
841         * testsuite/libjava.jacks/jacks.xfail: Removed.
842