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