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