OSDN Git Service

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