OSDN Git Service

2007-03-07 Gary Benson <gbenson@redhat.com>
[pf3gnuchains/gcc-fork.git] / libjava / ChangeLog
1 2007-03-07  Gary Benson  <gbenson@redhat.com>
2
3         * sources.am, Makefile.in: Rebuilt.
4
5 2007-03-07  Mohan Embar  <gnustuff@thisiscool.com>
6
7         * gcj/javaprims.h: Regenerated.
8
9 2007-03-07  Alexandre Oliva  <aoliva@redhat.com>
10
11         * include/jvm.h (_Jv_ClosureListFinalizer): New.
12         (_Jv_Linker::create_error_method): Adjust.
13         * boehm.cc (_Jv_ClosureListFinalizer): New.
14         * nogc.cc (_Jv_ClosureListFinalizer): New.
15         * java/lang/Class.h (class _Jv_ClosureList): New.
16         (class java::lang::Class): Declare it as friend.
17         * java/lang/natClass.cc (_Jv_ClosureList::releaseClosures): New.
18         (_Jv_ClosureList::registerClousure): New.
19         * include/execution.h (_Jv_ExecutionEngine): Add get_closure_list.
20         (_Jv_CompiledEngine::do_get_closure_list): New.
21         (_Jv_CompiledEngine::_Jv_CompiledEngine): Use it.
22         (_Jv_IndirectCompiledClass): Add closures.
23         (_Jv_IndirectCompiledEngine::get_aux_info): New.
24         (_Jv_IndirectCompiledEngine::do_allocate_field_initializers): Use
25         it.
26         (_Jv_IndirectCompiledEngine::do_get_closure_list): New.
27         (_Jv_IndirectCompiledEngine::_Jv_IndirectCompiledEngine): Use it.
28         (_Jv_InterpreterEngine::do_get_closure_list): Declare.
29         (_Jv_InterpreterEngine::_Jv_InterpreterEngine): Use it.
30         * interpret.cc (FFI_PREP_RAW_CLOSURE): Use _loc variants.
31         (node_closure): Add closure list.
32         (_Jv_InterpMethod::ncode): Add jclass argument.  Use
33         ffi_closure_alloc and the separate code pointer.  Register the
34         closure for finalization.
35         (_Jv_JNIMethod::ncode): Likewise.
36         (_Jv_InterpreterEngine::do_create_ncode): Pass klass to ncode.
37         (_Jv_InterpreterEngine::do_get_closure_list): New.
38         * include/java-interp.h (_Jv_InterpMethod::ncode): Adjust.
39         (_Jv_InterpClass): Add closures field.
40         (_Jv_JNIMethod::ncode): Adjust.
41         * defineclass.cc (_Jv_ClassReader::handleCodeAttribute): Adjust.
42         (_Jv_ClassReader::handleMethodsEnd): Likewise.
43         * link.cc (struct method_closure): Add closure list.
44         (_Jv_Linker::create_error_method): Add jclass argument.  Use
45         ffi_closure_alloc and the separate code pointer.  Register the
46         closure for finalization.
47         (_Jv_Linker::link_symbol_table): Remove outdated comment about
48         sharing of otable and atable.  Adjust.
49         * java/lang/reflect/natVMProxy.cc (ncode_closure): Add closure
50         list.
51         (ncode): Add jclass argument.  Use ffi_closure_alloc and the
52         separate code pointer.  Register the closure for finalization.
53         (java::lang::reflect::VMProxy::generateProxyClass): Adjust.
54         * testsuite/libjava.jar/TestClosureGC.java: New.
55         * testsuite/libjava.jar/TestClosureGC.out: New.
56         * testsuite/libjava.jar/TestClosureGC.xfail: New.
57         * testsuite/libjava.jar/TestClosureGC.jar: New.
58
59 2007-03-06  Kyle Galloway  <kgallowa@redhat.com>
60
61         * classpath/gnu/classpath/jdwp/exception/AbsentInformationException.java: New file.
62         * classpath/lib/gnu/classpath/jdwp/exception/AbsentInformationException.class: Ditto.
63         * gnu/classpath/jdwp/exception/AbsentInformationException.h: Ditto.
64         * gnu/classpath/jdwp/natVMMethod.cc: Add CHECK_INTERP_CLASS macro.
65         (VMMethod::getLineTable): Use new macro.
66         (VMMethod::getVariableTable): Implement.
67         * sources.am: Regenerated.
68         * Makefile.in: Ditto.
69
70 2007-03-06  Tom Tromey  <tromey@redhat.com>
71
72         * Makefile.in: Rebuilt.
73         * Makefile.am (bin_PROGRAMS): Added gcjh.
74         (gcjh_SOURCES, gcjh_LDFLAGS, gcjh_LINK, gcjh_LDADD,
75         gcjh_DEPENDENCIES): New variables.
76
77 2007-03-06  Kyle Galloway  <kgallowa@redhat.com>
78
79         * jvmti.cc(_Jv_JVMTI_GetLocalVariableTable): Fix _Jv_Malloc parameters.
80         * testsuite/libjava.jvmti/interp/natgetlocalvartable.cc
81         (do_getlocalvartable_tests): Add Deallocate calls to free strings.
82
83 2007-03-05  Matthias Klose  <doko@debian.org>
84
85         * Makefile.am (gij_LDFLAGS): Use dbexecdir.
86         * Makefile.in: Regnerate.
87
88 2007-03-05  Mark Wielaard  <mark@klomp.org>
89
90         * java/lang/Character.java: Re-merged with Classpath.
91         * java/lang/natString.cc (nativeCompareTo): Renamed from
92         compareTo.
93         * java/lang/StringBuilder.java: Re-merged with Classpath.
94         * java/lang/String.java: Re-merged with Classpath.
95         (nativeCompareTo): Renamed from compareTo.
96         * java/lang/StringBuffer.java: Re-merged with Classpath.
97         * jni.cc (_Jv_JNI_GetAnyMethodID): Split calls to append.
98
99 2007-03-05  Andrew Haley  <aph@redhat.com>
100
101         * java/lang/reflect/natVMProxy.cc (ncode_closure.meth): Delete.
102         (generateProxyClass): Don't pass method to ncode.
103         (run_proxy): Call _Jv_GetReflectedMethod to find the proxy method.
104         * java/lang/reflect/Method.h: Rebuild.
105         * java/lang/reflect/Method.java (internalGetParameterTypes,
106         internalGetExceptionTypes): New methods.
107         * headers.txt (class java/lang/reflect/Method): Declare
108         _Jv_GetReflectedMethod.  Be its friend.
109         * java/lang/natClass.cc (_Jv_GetReflectedMethod): New method.
110         * java/lang/Class.h: Declare it.  Be its friend.
111
112 2007-03-05  Tom Tromey  <tromey@redhat.com>
113
114         * sources.am, Makefile.in: Rebuilt.
115         * scripts/makemake.tcl (emit_package_rule): Don't omit
116         VMProcess.java.
117         * Makefile.am (nat_source_files): Added natVMProcess.cc.
118         (inner_nat_headers): Added ImmediateEOFInputStream.h.
119         * gcj/javaprims.h: Regenerated.
120         * java/lang/System.java (EnvironmentMap): Now package-private.
121         (EnvironmentMap(Map)): New constructor.
122         (EnvironmentMap.put): New method.
123         * java/lang/natWin32Process.cc (startProcess): Update.
124         * java/lang/Win32Process.java (Win32Process): Added 'redirect'
125         argument.
126         (startProcess): Likewise.
127         * java/lang/EcosProcess.java (EcosProcess): Added 'redirect'
128         argument.
129         * java/lang/natPosixProcess.cc (nativeSpawn): Handle redirection.
130         * java/lang/PosixProcess.java (redirect): New field.
131         (PosixProcess): Added 'redirect' argument.
132         * java/lang/natRuntime.cc (execInternal): Added 'redirect'
133         argument to Process creation.
134         * java/lang/natVMProcess.cc: New file.
135         * java/lang/ProcessBuilder.java: Removed.
136         * java/lang/VMProcess.java: New file.
137
138 2007-03-03  Andrew Haley  <aph@redhat.com>
139
140         * java/lang/natClass.cc (parseAnnotationElement): Correct long
141         annotations to read JV_CONSTANT_Long, not JV_CONSTANT_Double.
142
143 2007-03-02  Andrew Haley  <aph@redhat.com>
144
145         * sun/reflect/annotation/AnnotationInvocationHandler.java:
146         Generify in a few places.
147         (equals): Rewrite to use invoke on local proxy.
148         (deepToString): Remove most of it.
149         (toString): Make nonstatic.
150         (arrayClone): Delete.
151         (coerce): New method.
152         (invoke): Rewrite to handle gcj's structures correctly.
153         * java/lang/natClass.cc (getDeclaredAnnotations): Fix test for
154         null loader.
155         * sources.am: Regenerate.
156         * Makefile.am: Likewise.        
157
158 2007-03-02  Andrew Haley  <aph@redhat.com>
159
160         * sun/reflect/annotation/AnnotationInvocationHandler.java:
161         Whitespace only changes.
162
163 2007-03-02  Andrew Haley  <aph@redhat.com>
164
165         * sun/reflect/annotation/AnnotationInvocationHandler.java: Moved
166         from Classpath to libgcj local.
167
168 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
169
170         * Makefile.am: Add dummy install-pdf target.
171         * Makefile.in: Regenerate
172         * include/Makefile.in: Regenerate
173         * testsuite/Makefile.in: Regenerate
174         * gcj/Makefile.in: Regenerate
175
176 2007-02-23  Gary Benson  <gbenson@redhat.com>
177
178         * gnu/gcj/tools/gcj_dbtool/Main.java: Updated copyright year.
179
180 2007-02-23  Gary Benson  <gbenson@redhat.com>
181
182         * java/lang/VMCompiler.java
183         (compileClass): Don't lose zeros from within the digest.
184
185 2007-02-22  Jakub Jelinek  <jakub@redhat.com>
186
187         PR libgcj/17002
188         PR classpath/28550
189         * java/util/VMTimeZone.java (getDefaultTimeZoneId): To read
190         /etc/localtime, use ZoneInfo.readTZFile instead of
191         VMTimeZone.readtzFile.  Get better timezone name for /etc/localtime,
192         either if it is a symlink or through /etc/sysconfig/clock.
193         (readSysconfigClockFile): New static method.
194         (readtzFile): Removed.
195         * java/lang/System.java: Add gnu.java.util.zoneinfo.dir to comments.
196         * posix.cc (_Jv_platform_initProperties): Set
197         gnu.java.util.zoneinfo.dir.
198         * sources.am (gnu_java_util_source_files): Add
199         classpath/gnu/java/util/ZoneInfo.java.
200         * Makefile.in: Regenerated.
201         * java/util/VMTimeZone.h: Regenerated.
202         * java/util/TimeZone.h: Regenerated.
203         * gnu/java/util/ZoneInfo.h: Generated.
204
205 2007-02-22  Mohan Embar  <gnustuff@thisiscool.com>
206
207         * include/win32-threads.h: Added #undef OUT.
208
209 2007-02-21  Kyle Galloway  <kgallowa@redhat.com>
210
211         * jvmti.cc (_Jv_JVMTI_GetArgumentsSize): New function.
212         * testsuite/libjava.jvmti/interp/getargssize.java: New test.
213         * testsuite/libjava.jvmti/interp/getargssize.h: Ditto.
214         * testsuite/libjava.jvmti/interp/getargssize.jar: Ditto.
215         * testsuite/libjava.jvmti/interp/getargssize.out: Ditto.
216         * testsuite/libjava.jvmti/interp/natgetargssize.cc: Ditto.
217
218 2007-02-21  Gary Benson  <gbenson@redhat.com>
219
220         * java/util/GregorianCalendar.java: Removed.
221         * sources.am, Makefile.in: Rebuilt.
222
223 2007-02-20  Keith Seitz  <keiths@redhat.com>
224
225         * gnu/classpath/jdwp/natVMVirtualMachine.cc
226         (jdwpClassPrepareCB): Move class status stuff to ...
227         (getClassStatus): ... here.
228
229 2007-02-20  Gary Benson  <gbenson@redhat.com>
230
231         * gnu/awt/xlib/XEventLoop.h: Regenerated.
232         * gnu/java/awt/peer/gtk/GThreadMutex.h: Likewise.
233         * gnu/java/rmi/server/ConnectionRunnerPool$ConnectionRunner.h:
234         Likewise.
235         * gnu/java/rmi/server/UnicastConnectionManager.h: Likewise.
236         * java/lang/SecurityManager.h: Likewise.
237         * java/lang/Thread.h: Likewise.
238         * java/security/VMSecureRandom$Spinner.h: Likewise.
239         * java/util/concurrent/atomic/AtomicBoolean.h: Likewise.
240         * java/util/concurrent/atomic/AtomicInteger.h: Likewise.
241         * java/util/concurrent/atomic/AtomicLong.h: Likewise.
242         * java/util/concurrent/atomic/AtomicReference.h: Likewise.
243         * java/util/concurrent/ConcurrentHashMap$HashEntry.h: Likewise.
244         * java/util/concurrent/ConcurrentHashMap$Segment.h: Likewise.
245         * java/util/concurrent/ConcurrentLinkedQueue.h: Likewise.
246         * java/util/concurrent/ConcurrentLinkedQueue$Node.h: Likewise.
247         * java/util/concurrent/ConcurrentSkipListMap.h: Likewise.
248         * java/util/concurrent/ConcurrentSkipListMap$Index.h: Likewise.
249         * java/util/concurrent/ConcurrentSkipListMap$Node.h: Likewise.
250         * java/util/concurrent/Exchanger.h: Likewise.
251         * java/util/concurrent/Exchanger$Node.h: Likewise.
252         * java/util/concurrent/FutureTask$Sync.h: Likewise.
253         * java/util/concurrent/LinkedBlockingQueue$Node.h: Likewise.
254         * java/util/concurrent/locks/AbstractQueuedLongSynchronizer.h:
255         Likewise.
256         * java/util/concurrent/locks/AbstractQueuedLongSynchronizer$Node.h: 
257         Likewise.
258         * java/util/concurrent/locks/AbstractQueuedSynchronizer.h: Likewise.
259         * java/util/concurrent/locks/AbstractQueuedSynchronizer$Node.h:
260         Likewise.
261         * java/util/concurrent/ScheduledThreadPoolExecutor.h: Likewise.
262         * java/util/concurrent/SynchronousQueue.h: Likewise.
263         * java/util/concurrent/SynchronousQueue$TransferQueue.h: Likewise.
264         * java/util/concurrent/SynchronousQueue$TransferQueue$QNode.h:
265         Likewise.
266         * java/util/concurrent/SynchronousQueue$TransferStack.h: Likewise.
267         * java/util/concurrent/SynchronousQueue$TransferStack$SNode.h:
268         Likewise.
269         * java/util/concurrent/ThreadPoolExecutor.h: Likewise.
270         * java/util/concurrent/ThreadPoolExecutor$Worker.h: Likewise.
271         * java/util/logging/ErrorManager.h: Likewise.
272         * javax/swing/plaf/basic/BasicSpinnerUI$2.h: Likewise.
273         * javax/swing/plaf/basic/BasicSpinnerUI$4.h: Likewise.
274
275 2007-02-16  Keith Seitz  <keiths@redhat.com>
276
277         * gnu/classpath/jdwp/natVMVirtualMachine.cc
278         (get_line_table): New function.
279         (handle_single_step): New function.
280         (jdwpSingleStepCB): New function.
281         (jdwpVMInitCB): Define a JVMTI single step
282         callback, but don't enable it until needed.
283
284 2007-02-16  David Daney  <ddaney@avtrex.com>
285
286         * java/lang/Thread.java (Thread(ThreadGroup, Runnable, String)): Pass
287         new parameter constructor.
288         (Thread(ThreadGroup, Runnable, String, long)): Same.
289         (Thread(String, boolean)): New constructor.
290         (Thread(Thread, ThreadGroup, Runnable, String): Add parameter
291         noInheritableThreadLocal, don't call
292         InheritableThreadLocal.newChildThread if set.
293         * java/lang/PosixProcess.java(ProcessManager()): Set
294         noInheritableThreadLocal in super.
295         * java/lang/natThread.cc (_Jv_AttachCurrentThread): Pass new
296         parameter to Thread constructor.
297         (_Jv_AttachCurrentThreadAsDaemon): Same.
298         * java/lang/Thread.h: Regenerate.
299         * classpath/lib/java/lang/Thread.class: Same.
300         * classpath/lib/java/lang/PosixProcess$EOFInputStream.class: Same.
301         * classpath/lib/java/lang/PosixProcess.class: Same.
302         * classpath/lib/java/lang/Thread$State.class: Same.
303         * classpath/lib/java/lang/PosixProcess$ProcessManager.class: Same.
304
305 2007-02-16  Kyle Galloway  <kgallowa@redhat.com>
306
307         * interpret.cc: Add extra DEBUG_LOCALS_INSN calls for multi-slot
308         variables to maintain type info.
309         * interpret-run.cc: Add local variable info to frame in the debug
310         interpreter.
311         * jvmti.cc (getLocalFrame): New method.
312         (_Jv_JVMTI_GetLocalObject): New method.
313         (_Jv_JVMTI_GetLocallInt): New method.
314         (_Jv_JVMTI_GetLocalFloat): New method.
315         (_Jv_JVMTI_GetLocalLong): New method.
316         (_Jv_JVMTI_GetLocalDouble): New method.
317         (_Jv_JVMTI_SetLocalObject): New method.
318         (_Jv_JVMTI_SetLocalInt): New method.
319         (_Jv_JVMTI_SetLocalFloat): New method.
320         (_Jv_JVMTI_SetLocalLong): New method.
321         (_Jv_JVMTI_SetLocalDouble): New method.
322
323 2007-02-16  Gary Benson  <gbenson@redhat.com>
324
325         * gnu/gcj/tools/gcj_dbtool/Main.java
326         (bytesToString): Don't lose zeros from within the digest.
327
328 2007-02-15  Andrew Haley  <aph@redhat.com>
329
330         * Makefile.am (nat_source_files): Remove
331         java/lang/management/natVMManagementFactory.cc.
332         * java/lang/Thread.java (getStackTrace): Use reflection to call
333         the ManagementFactory.
334         * java/lang/management/VMManagementFactory.java: Remove native
335         methods.
336         * java/lang/management/natVMManagementFactory.cc: Deleted.
337         * sources.am: Regnerate.
338         * scripts/makemake.tcl: Add new "bcheaders" type.
339         Move java/lang/management and gnu/classpath/management to "bc".
340         Move gnu/java/lang/management to "bcheaders".
341         
342 2007-02-15  Kyle Galloway  <kgallowa@redhat.com>
343         
344         * interpret.cc (_Jv_InterpMethod::check_handler): New method.
345         * interpret-run.cc: Change the catch section to report exception
346         events and to use the new check_handler method.
347         * include/java-interp.h (_Jv_InterpMethod): Add check_handler.
348         * gnu/gcj/jvmti/ExceptionEvent.java: New file.
349         * gnu/gcj/jvmti/ExceptionEvent.h: New file.
350         * gnu/gcj/jvmti/natExceptionEvent.cc: New file.
351         * libjava/classpath/lib/gnu/gcj/jvmti/ExceptionEvent.class: New
352         file.
353         * sources.am: Added ExceptionEvent.java.
354         * Makefile.am: Added natExceptionEvent.cc
355         * Makefile.in: Regenerated.
356         * include/Makefile.in: Regenerated.
357         * gcj/Makefile.in: Regenerated.
358
359 2007-02-15  Johannes Schmidt  <jschmidt@avtrex.com>
360         David Daney  <ddaney@avtrex.com>
361
362         * configure.ac: Create vm-tools-packages file.  Add 
363         gnu/gcj/tools/gc_analyze to standard.omit and vm-tools-packages.
364         Check for /proc/self/maps.
365         * Makefile.am (bin_PROGRAMS): Added gc-analyze.
366         (gc_analyze_SOURCES): New.
367         (gc_analyze_LDFLAGS): New.
368         (gc_analyze_LINK): New.
369         (gc_analyze_LDADD): New.
370         (gc_analyze_DEPENDENCIES): New.
371         (nat_source_files): Add gnu/gcj/util/natGCInfo.cc.
372         * Makefile.in: Regenerated.
373         * configure: Regenerated.
374         * include/config.h.in: Regenerated.
375         * sources.am: Regenerated.
376         * scripts/makemake.tcl: Don't include gc-analyze classes in libgcj.
377         * gnu/gcj/tools/gc_analyze/SymbolLookup.java: New.
378         * gnu/gcj/tools/gc_analyze/ObjectMap.java: New.
379         * gnu/gcj/tools/gc_analyze/MemoryMap.java: New.
380         * gnu/gcj/tools/gc_analyze/SymbolTable.java: New.
381         * gnu/gcj/tools/gc_analyze/BlockMap.java: New.
382         * gnu/gcj/tools/gc_analyze/BytePtr.java: New.
383         * gnu/gcj/tools/gc_analyze/ItemList.java: New.
384         * gnu/gcj/tools/gc_analyze/ToolPrefix.java: New.
385         * gnu/gcj/tools/gc_analyze/MemoryAnalyze.java: New.
386         * gnu/gcj/util/GCInfo.java: New.
387         * gnu/gcj/util/GCInfo.h: New.
388         * gnu/gcj/util/natGCInfo.cc: New.
389         * gnu/gcj/util/UtilPermission.java: New.
390         * gnu/gcj/util/UtilPermission.h: New.
391         * classpath/tools/gnu/gcj/tools/gc_analyze/SymbolTable.class: New.
392         * classpath/tools/gnu/gcj/tools/gc_analyze/ObjectMap$ObjectItem.class: New.
393         * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryMap$RangeComparator.class: New.
394         * classpath/tools/gnu/gcj/tools/gc_analyze/BlockMap$PtrMarks.class: New.
395         * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryMap$Range.class: New.
396         * classpath/tools/gnu/gcj/tools/gc_analyze/BlockMap.class: New.
397         * classpath/tools/gnu/gcj/tools/gc_analyze/BytePtr.class: New.
398         * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$SubstringComparator.class: New.
399         * classpath/tools/gnu/gcj/tools/gc_analyze/ItemList.class: New.
400         * classpath/tools/gnu/gcj/tools/gc_analyze/ToolPrefix.class: New.
401         * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze.class: New.
402         * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$1$Info.class: New.
403         * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$1.class: New.
404         * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$2.class: New.
405         * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$3.class: New.
406         * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$4.class: New.
407         * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$OptionParser.class: New.
408         * classpath/tools/gnu/gcj/tools/gc_analyze/BlockMap$SizeKind.class: New.
409         * classpath/tools/gnu/gcj/tools/gc_analyze/SymbolLookup.class: New.
410         * classpath/tools/gnu/gcj/tools/gc_analyze/ObjectMap.class: New.
411         * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryMap.class: New.
412         * classpath/lib/gnu/gcj/util/GCInfo.class: New.
413         * classpath/lib/gnu/gcj/util/UtilPermission.class: New.
414
415 2007-02-15  David Daney  <ddaney@avtrex.com>
416
417         * gnu/java/net/PlainSocketImpl.h: Regenerate.
418         * gnu/classpath/jdwp/VMVirtualMachine.h: Same.
419         * gnu/classpath/jdwp/VMFrame.h: Same.
420         * java/net/Socket.h: Same.
421         * java/util/Collections$UnmodifiableMap$UnmodifiableEntrySet.h: Same.
422
423 2007-02-15  Kyle Galloway  <kgallowa@redhat.com>
424
425         * defineclass.cc (_Jv_ClassReader::read_one_code_attribute):
426         Added LocalVariableTable attribute handling.
427         (_Jv_ClassReader::pool_Utf8_to_char_arr): New method.
428         * jvmti.cc (_Jv_JVMTI_GetLocalVariableTable): New method.
429         * include/java-interp.h: Added local_var_table and 
430         local_var_table_len fields to _Jv_InterpMethod.
431         (_Jv_InterpMethod::get_local_var_table): New method.
432         * testsuite/libjava.jvmti/interp/getlocalvartable.java: New test.
433         * testsuite/libjava.jvmti/interp/getlocalvartable.jar: New test.
434         * testsuite/libjava.jvmti/interp/getlocalvartable.out: Output
435         for new test.
436         * testsuite/libjava.jvmti/interp/getlocalvartable.h: New test.
437         * testsuite/libjava.jvmti/interp/natgetlocalvartable.cc: New test.
438
439 2007-02-15  Kyle Galloway  <kgallowa@redhat.com>
440
441         * gnu/classpath/jdwp/natVMVirtualMachine (getFrames): Implement.
442
443 2007-02-13  Keith Seitz  <keiths@redhat.com>
444
445         * gnu/classpath/jdwp/natVMVirtualMachine.cc
446         (jdwpBreakpointCB): New function.
447         (jdwpVMInitCB): Define and enable the breakpoint
448         callback.
449
450 2007-02-13  Andrew Haley  <aph@redhat.com>
451
452         * testsuite/libjava.lang/Divide_2.out
453         * testsuite/libjava.lang/Divide_2.java: New test.
454
455 2007-02-12  Keith Seitz  <keiths@redhat.com>
456
457         * jvmti.cc (_Jv_JVMTI_GetStackTrace): Remove cast
458         from jthread to Thread *; it is no longer needed.
459         (_Jv_JVMTI_GetFrameCount): Likewise.
460         Fix small formatting typo.
461
462 2007-02-12  Tom Tromey  <tromey@redhat.com>
463
464         * sources.am, Makefile.in: Rebuilt.
465         * java/lang/Socket.java: Removed override.
466         * java/lang/DatagramSocket.java: Removed override.
467         * gnu/java/net/PlainSocketImpl.java (localSocketAddress): New
468         field.
469         (getLocalAddress): New method.
470         * gnu/java/net/PlainDatagramSocketImpl.java
471         (PlainDatagramSocketImpl): Throws IOException.
472         * gnu/java/net/natPlainSocketImplPosix.cc (write): Remove
473         'sizeof'.
474         (read): Likewise.
475
476 2007-02-09  Jakub Jelinek  <jakub@redhat.com>
477
478         * java/util/VMTimeZone.java: Rewrite to handle both the old
479         'TZif\0' format and the new one.
480         
481 2007-02-10  Andrew Haley  <aph@redhat.com>
482
483         PR java/30742
484         * gnu/classpath/natVMStackWalker.cc (GET_CALLING_CLASS): New.
485         (getCallingClass): Call GET_CALLING_CLASS.
486         (getCallingClassLoader): Likewise.
487
488 2007-02-10  Mohan Embar  <gnustuff@thisiscool.com>
489
490         * configure: Rebuilt.
491         * configure.ac (GCJH): Reverted second part of patch of 2006-12-20.
492
493 2007-02-10  Mohan Embar  <gnustuff@thisiscool.com>
494
495         * Makefile.in: Rebuilt.
496         * Makefile.am (BUILD_ECJ1): Unify the command for renaming ecjx to
497         the host's ecj1 executable.
498
499 2007-02-09  Richard Henderson  <rth@redhat.com>
500
501         * sysdep/alpha/locks.h (read_barrier): New.
502
503 2007-02-09  Keith Seitz  <keiths@redhat.com>
504
505         * gnu/classpath/jdwp/VMVirtualMachine.java
506         (_stepping_threads): New member.
507         * classpath/lib/gnu/classpath/jdwp/VMVirtualMachine.class:
508         Regenerated.
509         * gnu/classpath/jdwp/VMVirtualMachine.h:
510         Regenerated.
511         * gnu/claspath/jdwp/natVMVirtualMachine.cc
512         (get_request_step_filter): New function.
513         (DISABLE_EVENT): New macro.
514         (initialize): Initialize _stepping_threads.
515         (registerEvent): Implement EVENT_SINGLE_STEP.
516         (unregisterEvent): Likewise.
517
518 2007-02-08  Keith Seitz  <keiths@redhat.com>
519
520         * sources.am: Regenerate.
521         * Makefile.in: Regenerate.
522         * testsuite/Makefile.in: Regenerate.
523         * gcj/Makefile.in: Regenerate.
524         * include/Makefile.in: Regenerate.
525
526         * classpath/lib/javax/management/MBeanServerFactory.class:
527         Regenerate.
528
529 2007-02-08  Kyle Galloway  <kgallowa@redhat.com>
530
531         * classpath/gnu/classpath/jdwp/processor/
532         StackFrameCommandSet.java (executeGetValues): Pass jlong instead
533         of ByteBuffer.
534         (executeSetValues): Ditto.
535         (executeThisObject): Ditto.
536         * classpath/gnu/classpath/jdwp/processor/
537         StackFrameCommandSet.class: Rebuilt.
538         * classpath/lib/gnu/classpath/jdwp/VMVirtualMachine.class:
539         Rebuilt.
540         * classpath/lib/gnu/classpath/jdwp/VMFrame.class: Rebuilt.
541         * classpath/lib/gnu/classpath/jdwp/exception/
542         InvalidFrameException.java: New file.
543         * gnu/classpath/jdwp/VMFrame.java: Added field for thread of
544         frame.
545         (Constructor): New method.
546         * gnu/classpath/jdwp/VMFrame.h: Regenerated.
547         * gnu/classpath/jdwp/VMVirtualMachine.java
548         (getFrame): Changed ByteBuffer to jlong.
549         * gnu/classpath/jdwp/natVMVirtualMachine.cc
550         (getFrame): Implement.
551         * gnu/classpath/jdwp/VMVirtualMachine.h: Regenerated.
552
553 2007-02-08  Kyle Galloway  <kgallowa@redhat.com>
554
555         * include/java-interp.h (_Jv_InterpFrame): obj_ptr field added
556         to hold "this" pointer for frame.
557         (_Jv_InterpFrame::get_this_ptr): New method.
558         * interpret-run.cc: Copy the "this" pointer into obj_ptr.
559
560 2007-02-07  Keith Seitz  <keiths@redhat.com>
561
562         * include/java-interp.h (_Jv_Frame::depth):
563         New function.
564         * jvmti.cc (_Jv_JVMTI_GetFrameCount): Use _Jv_Frame::depth.
565
566 2007-02-07  Kyle Galloway  <kgallowa@redhat.com>
567
568         * jvmti.cc (CHECK_FOR_NATIVE_METHOD): New macro.
569         (_Jv_JVMTI_GetMaxLocals): New method.
570         * include/java-interp.h
571         (_Jv_InterpMethod::get_max_locals): New method.
572
573 2007-02-01 Marco Trudel <mtrudel@gmx.ch>
574
575         * jni.cc (_Jv_JNI_DeleteWeakGlobalRef): Check for NULL objects.
576
577 2007-02-07  Tom Tromey  <tromey@redhat.com>
578
579         * testsuite/libjava.jni/init.c: New file.
580         * testsuite/libjava.jni/init.java: New file.
581         * testsuite/libjava.jni/init.out: New file.
582         * testsuite/libjava.jni/init.jar: New file.
583         * testsuite/libjava.jni/init.h: New file.
584         * testsuite/libjava.jni/init$NativeClass.h: New file.
585
586 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
587
588         PR libgomp/28468
589         * configure: Regenerate.
590
591 2007-02-06  Andrew Haley  <aph@redhat.com>
592
593         * scripts/makemake.tcl (emit_bc_rule): Set the source filename.
594         * sources.am: Rebuild.
595
596 2007-02-05  Keith Seitz  <keiths@redhat.com>
597
598         * jvmti.cc (_envListLock): Change type to
599         ReentrantReadWriteLock.
600         (_Jv_JVMTI_DisposeEnvironment): Switch to read/write
601         lock.
602         (check_enabled_event): Likewise.
603         (_Jv_GetJVMTIEnv): Likewise.
604         (_Jv_JVMTI_Init): Likewise.
605         (_Jv_JVMTI_PostEvent): Likewise. 
606
607 2007-02-05  Keith Seitz  <keiths@redhat.com>
608
609         * gnu/classpath/jdwp/natVMVirtualMachine.cc
610         (registerEvent): Implement EVENT_BREAKPOINT.
611         (unregisterEvent): Likewise.
612         (get_request_location): New function.
613
614 2007-02-05  Matthias Klose  <doko@debian.org>
615
616         testsuite/Makefile.am (compile-tests): Fix typo.
617         testsuite/Makefile.in: Regenerate.
618
619 2007-02-02  Kyle Galloway  <kgallowa@redhat.com>
620
621         * gnu/classpath/jdwp/natVMVirtualMachine.cc (getFrameCount):
622         Implment.
623
624 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
625
626         * configure.ac (libjava_cv_anon_version_script): New test.
627         (ANONVERSCRIPT): New AM_CONDITIONAL.
628         * configure: Rebuilt.
629         * Makefile.am (extra_ldflags_libjava): Link with -Wl,--version-script
630         if ANONVERSCRIPT.
631         * Makefile.in: Rebuilt.
632         (libgcj_la_DEPENDENCIES): Depend on libgcj.ver.
633         * libgcj.ver: New file.
634
635 2007-02-01  David Daney  <ddaney@avtrex.com>
636
637         * scripts/makemake.tcl: Replace gnu/xml build with build of all
638         its subpackages.
639         * sources.am: Regenerate.
640         * Makefile.in: Regenerate.
641
642 2007-02-01  Tom Tromey  <tromey@redhat.com>
643
644         * java/lang/ClassLoader.java (getResources): No longer final.
645
646 2007-02-01  Tom Tromey  <tromey@redhat.com>
647
648         * java/util/logging/LogManager.java (loggers): Genericized.
649         (addLogger): Merged.
650         (findAncestor): Likewise.
651         (getLogger): Likewise.
652         (getLoggerNames): Genericized.
653         (reset): Merged.
654         (getLevelProperty): Likewise.
655         * java/lang/reflect/Method.java (getDeclaringClass): Genericized.
656         * java/lang/reflect/Constructor.java (getParameterTypes):
657         Genericized.
658         (getExceptionTypes): Likewise.
659         (newInstance): Likewise.
660         * java/lang/reflect/Array.java (newInstance): Genericized.
661         * java/lang/Object.java (getClass): Genericized.
662         * java/nio/charset/spi/CharsetProvider.java (charsets):
663         Genericized.
664         * java/text/Collator.java: Implement Comparable<Object>.
665
666 2007-02-01  Tom Tromey  <tromey@redhat.com>
667
668         * java/util/Calendar.java: Implement Comparable<Calendar>.  Update
669         comments.
670         (clear): Call complete.
671         (setTimeZone): Call computeTime, computeFields.
672         (compareTo): New method.
673         * java/nio/charset/Charset.java: Implement Comparable<Charset>.
674         (availableCharsets): Genericized.
675         (aliases): Likewise.
676         (compareTo): Changed argument type.
677         * java/lang/ClassLoader.java (loadClass): Genericized.
678         (findClass): Likewise.
679         (defineClass): Likewise.
680         (resolveClass): Likewise.
681         (findSystemClass): Likewise.
682         (setSigners): Likewise.
683         (findLoadedClass): Likewise.
684         (getResources): Likewise.
685         (findResources): Likewise.
686         (getSystemResources): Likewise.
687         (checkInitialized): New method.
688         * java/lang/Class.java (getCanonicalName): New method.
689
690 2007-01-31  Keith Seitz  <keiths@redhat.com>
691
692         * include/jvmti-int.h (JVMTI): Declare member "enabled".
693         * jvmti.cc (JVMTI): Add member "enabled".
694         (_Jv_GetJVMTIEnv): Mark JVMTI enabled.
695         * interpret.cc (_Jv_InterpMethod::ncode): Use JVMTI::enabled
696         instead of gnu::classpath::jdwp::Jdwp::isDebugging.
697         (_Jv_CompileMethod): If JVMTI is enabled, use run_debug
698         instead of run to compile the method.
699
700         * interpret-run.cc [DEBUG] (NEXT_INSN): Add JVMTI single step
701         notification.
702
703 2007-01-31  Andreas Tobler  <a.tobler@schweiz.org>
704
705         * testsuite/libjava.jvmti/jvmti-interp.exp (gij_jvmti_test_one): Add
706         -shared-libgcc to the cxxflaglist for Darwin.
707
708 2007-01-31  Tom Tromey  <tromey@redhat.com>
709
710         * scripts.am, Makefile.in: Rebuilt.
711         * scripts/makemake.tcl (gnu/javax/swing/text/html/parser): Build
712         as 'ordinary'.
713         (emit_ordinary_rule): New proc.
714
715 2007-01-31  Keith Seitz  <keiths@redhat.com>
716
717         * testsuite/libjava.jvmti/getmethodname.h: New file.
718         * testsuite/libjava.jvmti/getmethodname.jar: New file.
719
720 2007-01-31  Andrew Haley  <aph@redhat.com>
721
722         * prims.cc (_Jv_Abort): fflush (stderr).
723         * java/lang/natClassLoader.cc (_Jv_CheckABIVersion): Abort.
724
725 2007-01-31  Tom Tromey  <tromey@redhat.com>
726
727         * configure, Makefile.in: Rebuilt.
728         * configure.ac (JAR): Check for -@ feature.
729         * Makefile.am (libgcj-$(gcc_version).jar): Use find -prune.
730
731 2007-01-31  Tom Tromey  <tromey@redhat.com>
732
733         PR libgcj/30606:
734         * configure, include/config.h.in: Rebuilt.
735         * configure.ac: Check for magic_t in magic.h.
736         * java/net/natVMURLConnection.cc: Use HAVE_MAGIC_T.
737
738 2007-01-30  Tom Tromey  <tromey@redhat.com>
739
740         * Makefile.in: Rebuilt.
741         * Makefile.am (libgcj-$(gcc_version).jar): Rewrote.
742
743 2007-01-30  Andreas Tobler  <a.tobler@schweiz.org>
744
745         * testsuite/libjava.jvmti/natevents.cc (FieldModificationCB): Use a
746         cast to print it right.
747
748 2007-01-29  Kaloian Doganov  <kaloian@doganov.org>
749
750         PR libgcj/30600:
751         * gnu/gcj/convert/BytesToCharsetAdaptor.java (read): Fix call to
752         'limit'.
753
754 2007-01-29  Kyle Galloway  <kgallowa@redhat.com>
755
756         * include/java-interp.h:  Added _Jv_Frame class and its two
757         subclasses _Jv_InterpFrame and _Jv_NativeFrame.  Also moved
758         _Jv_FrameType from java-stack.h.
759         * include/java-stack.h: Removed _Jv_FrameType.
760         * java/lang/Thread.java: Added frame member to hold new
761         composite frame stack.
762         * java/lang/Thread.h: Regenerated.
763         * java/lang/Thread.class: Rebuilt.
764         * jni.cc (_Jv_JNIMethod::call): Push a frame onto the stack when
765         calling a JNI method.
766         * jvmti.cc (_Jv_JVMTI_GetStackTrace): New Method.
767         (_Jv_JVMTI_GetFrameCount): New method.
768         * stacktrace.cc (UnwindTraceFn): Modified to use new _Jv_Frame
769         classes.
770         * testsuite/libjava.jvmti/interp/getstacktrace.jar: New test.
771         * testsuite/libjava.jvmti/interp/natgetstacktrace.cc: New test.
772         * testsuite/libjava.jvmti/interp/getstacktrace.h: New test.
773         * testsuite/libjava.jvmti/interp/getstacktrace.jar: New test.
774         * testsuite/libjava.jvmti/interp/getstacktrace.out: Output file
775         for test. 
776
777 2007-01-29  Tom Tromey  <tromey@redhat.com>
778
779         * interpret.cc (run_debug): Remove comment.
780         (STOREA): Reformat.
781         (STOREI): Likewise.
782         (STOREF): Likewise.
783         (STOREL): Likewise.
784         (STORED): Likewise.
785         (POKEI): Likewise.
786         (run_normal_debug): Likewise.
787         (run_synch_object_debug): Likewise.
788         (run_class_debug): Likewise.
789         (run_synch_class_debug): Likewise.
790         (get1s): Likewise.
791         (get1u): Likewise.
792         (get2u): Likewise.
793         (get4): Likewise.
794         (NULLARRAYCHECK): Likewise.
795         (ARRAYBOUNDSCHECK): Likewise.
796         * interpret-run.cc (insn_target) <breakpoint>: Tidy.
797
798 2007-01-29  Tom Tromey  <tromey@redhat.com>
799
800         * configure, Makefile.in: Rebuilt.
801         * Makefile.am (bin_SCRIPTS): Never install scripts/jar.
802         * configure.ac (BASH_JAR): Removed conditional.
803         (JAR): Prefer the jar found by AC_CHECK_PROGS.
804
805 2007-01-29  Tom Tromey  <tromey@redhat.com>
806
807         * Makefile.in: Rebuilt.
808         * Makefile.am (interpret.lo): New target.  Add -fwrap to
809         AM_CXXFLAGS.
810
811 2007-01-29  Keith Seitz  <keiths@redhat.com>
812
813         * include/jvmti_md.h (_CLASSPATH_VM_JVMTI_TYPES_DEFINED):
814         Define.
815         [__GCJ_JNI_IMPL__]: Define our own JVMTI types when building
816         gcj. All jvmti object types now are defined to be their
817         corresponding java classes.
818         * jvmti.cc (_Jv_JVMTI_SuspendThread): Remove casting from
819         jthread to Thread*.
820         (_Jv_JVMTI_ResumeThread): Likewise.
821         (_Jv_JVMTI_InterruptThread): Likewise.
822         (_Jv_JVMTI_SetEventNotificationMode): Likewise.
823         * gnu/classpath/jdwp/natVMVirtualMachine.cc
824         (jdwpClassPrepareCB): Likewise.
825         (jdwpThreadEndCB): Likewise.
826         (jdwpThreadStartCB): Likewise.
827         (jdwpVMInitCB): Likewise.
828  
829 2007-01-28  Michele Sandri  <gpointorama@gmail.com>
830
831         * gnu/java/nio/channels/natFileChannelWin32.cc
832         (lock): Implemented.
833         (unlock): Implemented.
834
835 2007-01-27  Andreas Tobler  <a.tobler@schweiz.org>
836
837         PR libgcj/30513
838         * configure.host: Add forgottten sysdep_dir to sparc. Add a flag to
839         libgcj_flags to undefine 'sun' at compile time.
840         * sysdep/sparc/locks.h (read_barrier): New functions for 32 and 64 bit
841         Sparc.
842         (write_barrier): Likewise.
843
844 2007-01-27  Keith Seitz  <keiths@redhat.com>
845
846         * gnu/classpath/jdwp/natVMVirtualMachine.cc
847         (getAllClassMethods): Move error handling to ...
848         (throw_jvmti_error): ... here.
849         (jdwpClassPrepareCB): New function.
850         (jdwpThreadEndCB): New function.
851         (jdwpThreadStartCB): New function.
852         (jdwpVMDeathCB): New function.
853         (jdwpVMInitCB): Define and enable callbacks for
854         ClassPrepare, ThreadEnd, ThreadStart, and VMDeath.
855
856 2007-01-27  Jakub Jelinek  <jakub@redhat.com>
857
858         * Makefile.am (generic_header_files): Add $(inner_nat_headers).
859         * testsuite/Makefile.am (check-dejaGNU): Depend on compile-tests.
860         (MYGCJH): New variable.
861         (compile-tests): New goal.
862         * Makefile.in: Rebuilt.
863         * testsuite/Makefile.in: Rebuilt.
864
865 2007-01-26  Andrew Haley  <aph@redhat.com>
866
867         * java/lang/natClass.cc (initializeClass): Re-throw
868         SecurityExceptions.
869         * java/lang/natVMClassLoader.cc (loadClass): checkPackageAccess.
870         * java/lang/ClassLoader.java: (loadClass): Likewise.
871
872 2007-01-26  Tom Tromey  <tromey@redhat.com>
873
874         * Updated headers.
875
876 2007-01-25  Tom Tromey  <tromey@redhat.com>
877
878         PR libgcj/29594:
879         * gnu/gcj/convert/Convert.java (main): Correctly handle missing
880         input or output encodings.  Removed unused local variables.
881
882 2007-01-25  Keith Seitz  <keiths@redhat.com>
883
884         * include/jvmti-int.h (_Jv_GetJDWP_JVMTIEnv): Declare.
885         * gnu/classpath/jdwp/natVMVirtualMachine.cc
886         (_Jv_GetJDWP_JVMTIEnv): New function.
887         * gnu/classpath/jdwp/natVMMethod.cc (getName): Implement.
888         (getSignature): Implement.
889         (getModifiers): Implement.
890
891 2007-01-25  Andrew Haley  <aph@redhat.com>
892
893         * configure, Makefile.in, include/config.h.in: Rebuilt.
894         * Makefile.am (libgcj_la_LIBADD): Removed $(LIBMAGIC).
895         * configure.ac: Don't check for libmagic.
896         * java/net/natVMURLConnection.cc (p_magic_open, p_magic_load,
897         p_magic_close, p_magic_buffer): New globals.
898         (init): Look up 'magic' functions.
899         (guessContentTypeFromBuffer): Updated.
900
901 2007-01-25  Keith Seitz  <keiths@redhat.com>
902
903         * jvmti.cc (_Jv_JVMTI_GetMethodName): New function.
904         (_Jv_JVMTI_Interface): Define GetMethodName.
905         * testsuite/libjava.jvmti/getmethodname.java: New file.
906         * testsuite/libjava.jvmti/natgetmethodname.cc: New file.
907         * testsuite/libjava.jvmti/getmethodname.out: New file. 
908
909 2007-01-24  Kyle Galloway  <kgallowa@redhat.com>
910
911         * libjava/testsuite/libjava.jvmti/jvmti-interp.exp: New file.
912         * libjava/testsuite/libjava.jvmti/interp: New folder.
913         * libjava/testsuite/lib/libjava.exp (exec_gij): New Method.
914
915 2007-01-24  Keith Seitz  <keiths@redhat.com>
916
917         * link.cc (_Jv_Linker::wait_for_state): Add JVMTI
918         CLASS_PREPARE notification.
919
920 2007-01-24  Keith Seitz  <keiths@redhat.com>
921
922         * interpret.cc: Include gnu/gcj/jvmti/Breakpoint.h,
923         gnu/gcj/jvmti/BreakpointManager.h, jvmti.h, and jvmti-int.h
924         * interpret-run.cc: Implement insn_breakpoint.
925
926 2007-01-24  Keith Seitz  <keiths@redhat.com>
927
928         * prims.cc (_Jv_RunMain): Send JVMTI event notifications
929         for VM_INIT and VM_DEATH instead of the JDWP notifications.
930
931 2007-01-24  Keith Seitz  <keiths@redhat.com>
932
933         * gnu/classpath/jdwp/natVMVirtualMachine.cc
934         (getAllClassMethods): Implement.
935
936 2007-01-24  Andrew Haley  <aph@redhat.com>
937
938         * gnu/classpath/natVMStackWalker.cc: Call InitClass everywhere.
939         (getClassContext) Add a barrier to prevent GetStackWalkerStack()
940         from being sibcalled.
941
942 2007-01-24  Andrew Haley  <aph@redhat.com>
943
944         * scripts/makemake.tcl (emit_bc_rule): Set the source filename.
945         * sources.am: Rebuild.
946
947 2007-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
948
949         * exception.cc (parse_lsda_header, PERSONALITY_FUNCTION): Replaced
950         _Unwind_Word with _uleb128_t and _Unwind_SWord with _sleb128_t.
951
952 2007-01-23  H.J. Lu  <hongjiu.lu@intel.com>
953
954         PR libgcj/30550
955         * Makefile.am (ecjx_DEPENDENCIES): Add libgcj_bc.la if needed.
956         * Makefile.in: Regenerated.
957
958 2007-01-22  Keith Seitz  <keiths@redhat.com>
959
960         * gnu/classpath/jdwp/natVMVirtualMachine.cc
961         (getClassMethod): Implement.
962
963 2007-01-22  Keith  Seitz  <keiths@redhat.com>
964
965         * java/lang/Class.h (_Jv_GetClassStatus): Declare.
966         * java/lang/natClass.cc (_Jv_GetClassStatus): New function.
967         * jvmti.cc (_Jv_JVMTI_GetClassStatus): New function.
968         (_Jv_JVMTI_Interface): Define GetClassStatus.
969
970 2007-01-22  Tom Tromey  <tromey@redhat.com>
971
972         * configure: Rebuilt.
973         * configure.ac (GCJ): Reverted patch of 2006-12-20.
974
975 2007-01-22  Tom Tromey  <tromey@redhat.com>
976
977         PR java/29812:
978         * testsuite/libjava.jni/pr29812.java: New file.
979         * testsuite/libjava.jni/pr29812_injar.java: New file.
980         * testsuite/libjava.jni/pr29812_injar.jar: New file.
981         * testsuite/libjava.jni/pr29812.out: New file.
982         * testsuite/libjava.jni/pr29812_injar.c: New file.
983         * testsuite/libjava.jni/pr29812_injar.h: New file.
984         * testsuite/libjava.jni/pr29812.jar: New file.
985         * testsuite/libjava.jni/pr29812.c: New file.
986         * testsuite/libjava.jni/pr29812.h: New file.
987         * testsuite/libjava.jni/jni.exp (gcj_jni_get_cxxflags_invocation):
988         New proc.
989         (gcj_jni_invocation_test_one): Use it.
990         (gcj_jni_pr29812): New proc.
991         (gcj_jni_run): Use it.
992         * java/lang/natRuntime.cc (_load): Push a new system frame before
993         calling JNI_OnLoad.
994         * include/jvm.h (_Jv_JNI_PopSystemFrame): Declare.
995         (_Jv_GetJNIEnvNewFrameWithLoader): Likewise.
996         * jni.cc (struct _Jv_JNI_LocalFrame) <marker>: Now unsigned char.
997         <allocated_p>: Now bool.
998         <loader>: New field.
999         (_Jv_JNI_EnsureLocalCapacity): Updated.
1000         (_Jv_JNI_NewLocalRef): Likewise.
1001         (_Jv_JNI_NewLocalRef): Likewise.
1002         (_Jv_JNI_PopLocalFrame): Likewise.
1003         (_Jv_JNI_FindClass): Likewise.
1004         (_Jv_GetJNIEnvNewFrame): Likewise.
1005         (_Jv_JNI_AttachCurrentThread): Likewise.
1006         (_Jv_GetJNIEnvNewFrameWithLoader): New function.
1007         (_Jv_GetJNIEnvNewFrame): Use it.
1008         * include/jni_md.h (_CLASSPATH_JNIENV_CONTENTS): Removed 'klass'.
1009
1010 2007-01-22  Tom Tromey  <tromey@redhat.com>
1011
1012         * libtool-version: Bump current to 9.
1013
1014 2007-01-22  Andrew Haley  <aph@redhat.com>
1015
1016         * sysdep/alpha/locks.h (write_barrier): New.
1017
1018 2007-01-21  Matthias Klose  <doko@debian.org>
1019
1020         * Makefile.am (install-exec-hook): Use transformed name.
1021         * Makefile.in: Regenerate.
1022
1023 2007-01-19  Keith Seitz  <keiths@redhat.com>
1024
1025         * gnu/classpath/jdwp/natVMVirtualMachine.cc: Mark unused parameters
1026         in methods and reformat.
1027
1028         * gnu/classpath/jdwp/natVMFrame.cc: Mark unused parameters with
1029         MAYBE_UNUSED.
1030
1031 2007-01-18  Keith Seitz  <keiths@redhat.com>
1032
1033         From Macro Trudel <mtrudel@gmx.ch>:
1034         * gnu/classpath/jdwp/natVMVirtualMachine.cc (jdwpVMInitCB):
1035         Use JNICALL.
1036
1037 2007-01-18  Marco Trudel  <mtrudel@gmx.ch>
1038
1039         * jni.cc (_Jv_JNI_FindClass): Initialize class.
1040         * testsuite/libjava.jni/findclass2.jar: New file.
1041         * testsuite/libjava.jni/findclass2.h: New file.
1042         * testsuite/libjava.jni/findclass2.java: New file
1043         * testsuite/libjava.jni/findclass2.c: New file.
1044         * testsuite/libjava.jni/findclass2.out: New file.
1045
1046 2007-01-18  Tom Tromey  <tromey@redhat.com>
1047
1048         * configure: Rebuilt.
1049         * configure.ac: Use multi_basedir instead of libgcj_basedir.
1050
1051 2007-01-18  Gary Benson  <gbenson@redhat.com>
1052
1053         * gnu/java/nio/natVMPipeEcos.cc:
1054         Renamed from gnu/java/nio/natPipeImplEcos.cc.
1055         * gnu/java/nio/natVMPipePosix.cc:
1056         Renamed from gnu/java/nio/natPipeImplPosix.cc.
1057         * gnu/java/nio/natVMPipeWin32.cc:
1058         Renamed from gnu/java/nio/natPipeImplWin32.cc.
1059         * gnu/java/nio/natVMSelectorEcos.cc:
1060         Renamed from gnu/java/nio/natSelectorImplEcos.cc.
1061         * gnu/java/nio/natVMSelectorPosix.cc:
1062         Renamed from gnu/java/nio/natSelectorImplPosix.cc.
1063         * gnu/java/nio/natVMSelectorWin32.cc:
1064         Renamed from gnu/java/nio/natSelectorImplWin32.cc.
1065         * java/io/natVMObjectInputStream.cc:
1066         Renamed from java/io/natObjectInputStream.cc.
1067         * java/lang/natVMDouble.cc:
1068         Renamed from java/lang/natDouble.cc.
1069         * java/lang/natVMFloat.cc:
1070         Renamed from java/lang/natFloat.cc.     
1071         * Makefile.am, configure.ac: Reflect the above.
1072         * Makefile.in, configure: Rebuilt.
1073
1074 2007-01-17  Andrew Haley  <aph@redhat.com>
1075
1076         * Makefile.in: Rebuilt.
1077         * Makefile.am (ecjx_LDFLAGS): Pass -fbootclasspath.
1078
1079 2007-01-17  Keith Seitz  <keiths@redhat.com>
1080
1081         * java/lang/natThread.cc (finish_): Add JVMTI ThreadEnd notification.
1082         (_Jv_NotifyThreadStart): Add JVMTI ThreadStart notification.
1083
1084 2007-01-16  Jack Howarth  <howarth@bromo.med.uc.edu>
1085
1086         * configure.ac: Use multi.m4 from aclocal rather than custom
1087         code.  Use multi_basedir instead libgcj_basedir.  Test for
1088         /proc/self/exe when not cross-compiling.
1089         * aclocal.m4: Regenerate.
1090         * configure: Regenerate.
1091         * Makefile.in: Regenerate.
1092
1093 2007-01-17  Gary Benson  <gbenson@redhat.com>
1094
1095         * java/nio/natVMDirectByteBufferImpl.cc:
1096         Renamed from java/nio/natDirectByteBufferImpl.cc.
1097         * Makefile.am: Reflect the above.
1098         * Makefile.in: Rebuilt.
1099         
1100 2007-01-17  Marco Trudel  <mtrudel@gmx.ch>
1101
1102         * jvmti.cc (_Jv_JVMTI_GetAllThreads): Now static.  Use JNICALL.
1103         Fixed indentation.  Removed unused variable.
1104
1105 2007-01-16  Tom Tromey  <tromey@redhat.com>
1106
1107         * java/lang/natThread.cc (finalize_native): Remove cast.
1108         (_Jv_GetCurrentJNIEnv): Likewise.
1109         * include/jvm.h (struct natThread) <jni_env>: Declare as
1110         _Jv_JNIEnv*.
1111
1112 2007-01-16  Keith Seitz  <keiths@redhat.com>
1113
1114         * testsuite/libjava.jvmti/natevents.cc (FieldModificationCB): Use
1115         %#llx instead of %d for new_value.
1116         * testsuite/libjava.jvmti/events.out: Update expected output.
1117         * testsuite/libjava.jvmti/events.jar: Regenerate.
1118
1119 2007-01-16  Keith Seitz  <keiths@redhat.com>
1120
1121         * gnu/classpath/jdwp/natVMVirtualMachine.cc (DEFINE_CALLBACK):
1122         New macro.
1123         (ENABLE_EVENT): New macro.
1124         (initialize): Define and enable JVMTI VM_INIT callback.
1125         (jdwpVMInitCB): New function.
1126
1127 2007-01-16  Kyle Galloway  <kgallowa@redhat.com>
1128
1129         * jvmti.cc (_Jv_JVMTI_GetAllThreads): New function.
1130         * testsuite/libjava.jvmti/getallthreads.java: New test.
1131         * testsuite/libjava.jvmti/natgetallthreads.cc: Ditto.
1132         * testsuite/libjava.jvmti/getallthreads.out: Ditto.
1133         * testsuite/libjava.jvmti/getallthreads.h: Ditto.
1134         * testsuite/libjava.jvmti/getallthreads.jar: Ditto. 
1135
1136 2007-01-15  Keith Seitz  <keiths@redhat.com>
1137
1138         * gnu/classpath/jdwp/natVMVirtualMachine.cc (suspendThread): Use
1139         java.lang.StringBuilder instead of java.lang.StringBuffer.
1140         (resumeThread): Likewise.
1141
1142 2007-01-15  Gary Benson  <gbenson@redhat.com>
1143
1144         * java/nio/MappedByteBuffer.java: Removed.
1145         * sources.am, Makefile.in: Rebuilt.
1146
1147 2007-01-15  Gary Benson  <gbenson@redhat.com>
1148
1149         * java/net/URLClassLoader.java: Removed.
1150         * gnu/java/net/loader/Load_gcjlib.java: New file.
1151         * gnu/gcj/runtime/BootClassLoader.java: Ensure core
1152         URL handler is present in static executables.
1153         * sources.am, Makefile.in: Rebuilt.
1154
1155 2007-01-14  H.J. Lu  <hongjiu.lu@intel.com>
1156
1157         * Makefile.am (libgcj_la_LDFLAGS): Add
1158         $(LIBGCJ_LD_SYMBOLIC_FUNCTIONS).
1159         (libgcj_tools_la_LDFLAGS): Likewise.
1160         (libgcj_bc_la_LDFLAGS): Likewise.
1161         * Makefile.in: Regenerated.
1162
1163         * configure.ac: Use ACX_PROG_LD_GNU_SYMBOLIC.  Set
1164         LIBGCJ_LD_SYMBOLIC_FUNCTIONS to $SYMBOLIC_LDFLAGS.  Set
1165         libgcj_ld_symbolic to $SYMBOLIC_LDFLAGS if it isn't set.
1166         Substitute LIBGCJ_LD_SYMBOLIC_FUNCTIONS.
1167         * configure: Regenerated.
1168         * aclocal.m4: Likewise.
1169         * gcj/Makefile.in: Likewise.
1170         * include/Makefile.in: Likewise.
1171         * testsuite/Makefile.in: Likewise.
1172
1173 2007-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
1174
1175         * sysdep/sh/locks.h (read_barrier): New.
1176         (write_barrier): Likewise.
1177
1178 2007-01-12  Andrew Haley  <aph@redhat.com>
1179
1180         * include/i386-signal.h: Rewrite to use rt_sigaction.
1181
1182 2007-01-11  Andrew Haley  <aph@redhat.com>
1183
1184         * prims.cc (jdwpOptions) Fix deprecated cast from char[] constant
1185         to char*.
1186         * include/x86_64-signal.h (HANDLE_DIVIDE_OVERFLOW): Rewrite to fix
1187         aliasing violation.
1188
1189 2007-01-10  Tom Tromey  <tromey@redhat.com>
1190
1191         * gnu/gcj/xlib/*.h: New files.
1192         * gnu/awt/xlib/*.h: Likewise.
1193         * classpath/lib/gnu/gcj/xlib: New class files.
1194         * classpath/lib/gnu/awt/xlib: Likewise.
1195
1196 2007-01-10  Tom Tromey  <tromey@redhat.com>
1197
1198         * HACKING: Various updates.
1199
1200 2007-01-10  Tom Tromey  <tromey@redhat.com>
1201
1202         * java/lang/natDouble.cc (toString): Added parens.
1203         * gnu/gcj/io/shs.h (PROTO): Define.
1204         * link.cc (resolve_pool_entry): Added missing braces.
1205
1206 2007-01-10  H.J. Lu  <hongjiu.lu@intel.com>
1207
1208         PR libgcj/30424
1209         * sysdep/ia64/locks.h (read_barrier): New.
1210         (write_barrier): New.
1211
1212 2007-01-10  Gary Benson  <gbenson@redhat.com>
1213
1214         * java/net/URL.java: Removed.
1215         * sources.am, Makefile.in: Rebuilt.
1216
1217 2007-01-10  Matthias Klose  <doko@debian.org>
1218
1219         * Makefile.am (install-exec-hook): Support $(DESTDIR).
1220         * Makefile.in: Regenerated.
1221
1222 2007-01-05  Tom Tromey  <tromey@redhat.com>
1223
1224         * testsuite/libjava.loader/loader.exp (gcj_loader_run): Find
1225         dummy.class in srcdir.
1226
1227 2007-01-03  Tom Tromey  <tromey@redhat.com>
1228
1229         * testsuite/libjava.cni/cni.exp (gcj_cni_compile_cxx_to_o): Add -I
1230         for srcdir.
1231
1232 2007-01-03  Tom Tromey  <tromey@redhat.com>
1233
1234         * testsuite/*: Added many .jar and .h files.
1235         * testsuite/libjava.special/special.exp
1236         (gcj_special_try_compiler): New proc.
1237         * testsuite/libjava.loader/loader.exp (gcj_loader_run): Don't
1238         bytecompile source.  Search for .jar files.
1239         (gcj_loader_test_one): Don't look for MyLoader.java.
1240         * testsuite/libjava.jvmti/jvmti.exp (gcj_jvmti_test_one): Don't
1241         bytecompile sources or build headers.
1242         (gcj_jvmti_run): Look for .jar files.
1243         * testsuite/libjava.jni/jni.exp (gcj_jni_run): Compile .jar
1244         files.
1245         (gcj_jni_test_one): Don't bytecompile sources or build headers.
1246         Set classpath when invoking gij.
1247         (gcj_jni_invocation_test_one): Likewise.
1248         * testsuite/libjava.cni/cni.exp (gcj_cni_test_one): Don't build
1249         headers or bytecompile sources.
1250         (gcj_cni_run): Use .jar files, not .java files.
1251         * testsuite/libjava.lang/lang.exp: Compile .jar files.
1252
1253 2007-01-02  Tom Tromey  <tromey@redhat.com>
1254
1255         * configure: Rebuilt.
1256         * configure.ac: Check for gjar.
1257
1258 2007-01-02  Tom Tromey  <tromey@redhat.com>
1259
1260         * testsuite/libjava.jacks/jacks.exp: Removed.
1261         * testsuite/libjava.jacks/jacks.xfail: Removed.
1262