1 2007-03-14 Jakub Jelinek <jakub@redhat.com>
3 * Makefile.am (AM_MAKEFLAGS): Pass through mandir.
4 * Makefile.in: Rebuilt.
6 2007-03-13 Keith Seitz <keiths@redhat.com>
8 * include/java-interp.h (_Jv_InterpClass): Declare
9 friend function _Jv_GetInterpClassSourceFile.
10 * java/lang/Class.h (Class): Likewise.
11 * java/lang/natClass.cc (_Jv_GetInterpClassSourceFile):
13 * gnu/classpath/jdwp/natVMVirtualMachine.cc
14 (getSourceFile): Implement.
16 2007-03-13 Thomas Fitzsimmons <fitzsim@redhat.com>
18 * Makefile.am (AM_CXXFLAGS): Define ECJ_JAR_FILE.
19 * classpath/configure.ac: Add --with-ecj-jar configure option.
20 * classpath/gnu/classpath/Configuration.java.in (ECJ_JAR): New
22 * classpath/INSTALL: Document --with-ecj-jar configure option and
23 ecj jar requirement for com.sun.tools.javac support.
24 * classpath/tools/Makefile.am: Build decendents of com and sun
26 * configure.ac: Substitute ECJ_JAR in stub Configuration.java.
27 * gnu/classpath/Configuration.java,
28 gnu/classpath/natConfiguration.cc (ecj): New method.
30 * scripts/makemake.tcl (scan_packages): Add com directory.
31 * sources.am (property_files): Add
32 classpath/resource/sun/rmi/rmic/messages.properties and
33 classpath/resource/com/sun/tools/javac/messages.properties.
34 * classpath/resource/com, classpath/resource/com/sun,
35 classpath/resource/com/sun/tools,
36 classpath/resource/com/sun/tools/javac, classpath/resource/sun,
37 classpath/resource/sun/rmi, classpath/resource/sun/rmi/rmic,
38 classpath/tools/classes/com, classpath/tools/classes/com/sun,
39 classpath/tools/classes/com/sun/javadoc,
40 classpath/tools/classes/com/sun/tools,
41 classpath/tools/classes/com/sun/tools/doclets,
42 classpath/tools/classes/sun, classpath/tools/classes/sun/rmi,
43 classpath/tools/classes/sun/rmi/rmic, classpath/tools/com,
44 classpath/tools/com/sun, classpath/tools/com/sun/javadoc,
45 classpath/tools/com/sun/tools,
46 classpath/tools/com/sun/tools/doclets,
47 classpath/tools/com/sun/tools/javac, classpath/tools/sun,
48 classpath/tools/sun/rmi, classpath/tools/sun/rmi/rmic: New
50 * classpath/resource/com/sun/tools/javac/messages.properties,
51 classpath/resource/sun/rmi/rmic/messages.properties,
52 classpath/tools/classes/com/sun/javadoc/ClassDoc.class,
53 classpath/tools/classes/com/sun/javadoc/ConstructorDoc.class,
54 classpath/tools/classes/com/sun/javadoc/Doc.class,
55 classpath/tools/classes/com/sun/javadoc/DocErrorReporter.class,
56 classpath/tools/classes/com/sun/javadoc/Doclet.class,
57 classpath/tools/classes/com/sun/javadoc/ExecutableMemberDoc.class,
58 classpath/tools/classes/com/sun/javadoc/FieldDoc.class,
59 classpath/tools/classes/com/sun/javadoc/MemberDoc.class,
60 classpath/tools/classes/com/sun/javadoc/MethodDoc.class,
61 classpath/tools/classes/com/sun/javadoc/PackageDoc.class,
62 classpath/tools/classes/com/sun/javadoc/ParamTag.class,
63 classpath/tools/classes/com/sun/javadoc/Parameter.class,
64 classpath/tools/classes/com/sun/javadoc/ProgramElementDoc.class,
65 classpath/tools/classes/com/sun/javadoc/RootDoc.class,
66 classpath/tools/classes/com/sun/javadoc/SeeTag.class,
67 classpath/tools/classes/com/sun/javadoc/SerialFieldTag.class,
68 classpath/tools/classes/com/sun/javadoc/SourcePosition.class,
69 classpath/tools/classes/com/sun/javadoc/Tag.class,
70 classpath/tools/classes/com/sun/javadoc/ThrowsTag.class,
71 classpath/tools/classes/com/sun/javadoc/Type.class,
72 classpath/tools/classes/com/sun/javadoc/TypeVariable.class,
73 classpath/tools/classes/com/sun/tools/doclets/Taglet.class,
74 classpath/tools/classes/sun/rmi/rmic/Main.class,
75 classpath/tools/classes/sun/rmi/rmic/Messages.class,
76 classpath/tools/com/sun/javadoc/ClassDoc.java,
77 classpath/tools/com/sun/javadoc/ConstructorDoc.java,
78 classpath/tools/com/sun/javadoc/Doc.java,
79 classpath/tools/com/sun/javadoc/DocErrorReporter.java,
80 classpath/tools/com/sun/javadoc/Doclet.java,
81 classpath/tools/com/sun/javadoc/ExecutableMemberDoc.java,
82 classpath/tools/com/sun/javadoc/FieldDoc.java,
83 classpath/tools/com/sun/javadoc/MemberDoc.java,
84 classpath/tools/com/sun/javadoc/MethodDoc.java,
85 classpath/tools/com/sun/javadoc/PackageDoc.java,
86 classpath/tools/com/sun/javadoc/ParamTag.java,
87 classpath/tools/com/sun/javadoc/Parameter.java,
88 classpath/tools/com/sun/javadoc/ProgramElementDoc.java,
89 classpath/tools/com/sun/javadoc/RootDoc.java,
90 classpath/tools/com/sun/javadoc/SeeTag.java,
91 classpath/tools/com/sun/javadoc/SerialFieldTag.java,
92 classpath/tools/com/sun/javadoc/SourcePosition.java,
93 classpath/tools/com/sun/javadoc/Tag.java,
94 classpath/tools/com/sun/javadoc/ThrowsTag.java,
95 classpath/tools/com/sun/javadoc/Type.java,
96 classpath/tools/com/sun/javadoc/TypeVariable.java,
97 classpath/tools/com/sun/tools/doclets/Taglet.java,
98 classpath/tools/com/sun/tools/javac/Main.java,
99 classpath/tools/com/sun/tools/javac/Messages.java,
100 classpath/tools/sun/rmi/rmic/Main.java,
101 classpath/tools/sun/rmi/rmic/Messages.java: New files.
102 * Makefile.in, classpath/Makefile.in, classpath/configure,
103 classpath/doc/Makefile.in, classpath/doc/api/Makefile.in,
104 classpath/examples/Makefile.in, classpath/external/Makefile.in,
105 classpath/external/jsr166/Makefile.in,
106 classpath/external/relaxngDatatype/Makefile.in,
107 classpath/external/sax/Makefile.in,
108 classpath/external/w3c_dom/Makefile.in,
109 classpath/include/Makefile.in, classpath/include/config.h.in,
110 classpath/lib/Makefile.in,
111 classpath/lib/gnu/classpath/Configuration.class,
112 classpath/native/Makefile.in, classpath/native/fdlibm/Makefile.in,
113 classpath/native/jawt/Makefile.in,
114 classpath/native/jni/Makefile.in,
115 classpath/native/jni/classpath/Makefile.in,
116 classpath/native/jni/gconf-peer/Makefile.in,
117 classpath/native/jni/gtk-peer/Makefile.in,
118 classpath/native/jni/java-io/Makefile.in,
119 classpath/native/jni/java-lang/Makefile.in,
120 classpath/native/jni/java-net/Makefile.in,
121 classpath/native/jni/java-nio/Makefile.in,
122 classpath/native/jni/java-util/Makefile.in,
123 classpath/native/jni/midi-alsa/Makefile.in,
124 classpath/native/jni/midi-dssi/Makefile.in,
125 classpath/native/jni/native-lib/Makefile.in,
126 classpath/native/jni/qt-peer/Makefile.in,
127 classpath/native/jni/xmlj/Makefile.in,
128 classpath/native/plugin/Makefile.in,
129 classpath/resource/Makefile.in, classpath/scripts/Makefile.in,
130 classpath/tools/Makefile.in, configure,
131 gnu/classpath/Configuration.h: Regenerate.
133 2007-03-12 Kyle Galloway <kgallowa@redhat.com>
135 * jvmti.cc (_Jv_JVMTI_GetArgumentsSize): Make wide type arrays count
138 2007-03-12 Marco Trudel <mtrudel@gmx.ch>
140 * java/lang/natString.cc (getBytes (jstring enc)):
141 Fixed the loop for multiple cycles, Code cleanup
143 2007-03-09 Tom Tromey <tromey@redhat.com>
145 * sources.am, Makefile.in: Rebuilt.
146 * scripts/makemake.tcl (scan_directory): Allow service files to be
148 Omit all XML-related service files.
150 2007-03-07 Tom Tromey <tromey@redhat.com>
152 * configure: Rebuilt.
153 * configure.ac: Clear vm-tools-packages.
155 2007-03-07 Mohan Embar <gnustuff@thisiscool.com>
157 * java/lang/Win32Process.java: Added nested class EOFInputStream.
158 * java/lang/natWin32Process.cc (ChildProcessPipe): Added DUMMY
159 enum and implementation.
160 (startProcess): Use redirect flag.
161 * classpath/lib/java/lang/Win32Process.class: Regenerated.
162 * classpath/lib/java/lang/Win32Process$EOFInputStream.class: New.
163 * gcj/javaprims.h: Regenerated.
164 * java/lang/Win32Process$EOFInputStream.h: New.
166 2007-03-07 Andrew Haley <aph@redhat.com>
168 * libgcj_bc.c (JvRunMainName): Declare.
170 2007-03-07 Gary Benson <gbenson@redhat.com>
172 * sources.am, Makefile.in: Rebuilt.
174 2007-03-07 Mohan Embar <gnustuff@thisiscool.com>
176 * gcj/javaprims.h: Regenerated.
178 2007-03-07 Alexandre Oliva <aoliva@redhat.com>
180 * include/jvm.h (_Jv_ClosureListFinalizer): New.
181 (_Jv_Linker::create_error_method): Adjust.
182 * boehm.cc (_Jv_ClosureListFinalizer): New.
183 * nogc.cc (_Jv_ClosureListFinalizer): New.
184 * java/lang/Class.h (class _Jv_ClosureList): New.
185 (class java::lang::Class): Declare it as friend.
186 * java/lang/natClass.cc (_Jv_ClosureList::releaseClosures): New.
187 (_Jv_ClosureList::registerClousure): New.
188 * include/execution.h (_Jv_ExecutionEngine): Add get_closure_list.
189 (_Jv_CompiledEngine::do_get_closure_list): New.
190 (_Jv_CompiledEngine::_Jv_CompiledEngine): Use it.
191 (_Jv_IndirectCompiledClass): Add closures.
192 (_Jv_IndirectCompiledEngine::get_aux_info): New.
193 (_Jv_IndirectCompiledEngine::do_allocate_field_initializers): Use
195 (_Jv_IndirectCompiledEngine::do_get_closure_list): New.
196 (_Jv_IndirectCompiledEngine::_Jv_IndirectCompiledEngine): Use it.
197 (_Jv_InterpreterEngine::do_get_closure_list): Declare.
198 (_Jv_InterpreterEngine::_Jv_InterpreterEngine): Use it.
199 * interpret.cc (FFI_PREP_RAW_CLOSURE): Use _loc variants.
200 (node_closure): Add closure list.
201 (_Jv_InterpMethod::ncode): Add jclass argument. Use
202 ffi_closure_alloc and the separate code pointer. Register the
203 closure for finalization.
204 (_Jv_JNIMethod::ncode): Likewise.
205 (_Jv_InterpreterEngine::do_create_ncode): Pass klass to ncode.
206 (_Jv_InterpreterEngine::do_get_closure_list): New.
207 * include/java-interp.h (_Jv_InterpMethod::ncode): Adjust.
208 (_Jv_InterpClass): Add closures field.
209 (_Jv_JNIMethod::ncode): Adjust.
210 * defineclass.cc (_Jv_ClassReader::handleCodeAttribute): Adjust.
211 (_Jv_ClassReader::handleMethodsEnd): Likewise.
212 * link.cc (struct method_closure): Add closure list.
213 (_Jv_Linker::create_error_method): Add jclass argument. Use
214 ffi_closure_alloc and the separate code pointer. Register the
215 closure for finalization.
216 (_Jv_Linker::link_symbol_table): Remove outdated comment about
217 sharing of otable and atable. Adjust.
218 * java/lang/reflect/natVMProxy.cc (ncode_closure): Add closure
220 (ncode): Add jclass argument. Use ffi_closure_alloc and the
221 separate code pointer. Register the closure for finalization.
222 (java::lang::reflect::VMProxy::generateProxyClass): Adjust.
223 * testsuite/libjava.jar/TestClosureGC.java: New.
224 * testsuite/libjava.jar/TestClosureGC.out: New.
225 * testsuite/libjava.jar/TestClosureGC.xfail: New.
226 * testsuite/libjava.jar/TestClosureGC.jar: New.
228 2007-03-06 Kyle Galloway <kgallowa@redhat.com>
230 * classpath/gnu/classpath/jdwp/exception/AbsentInformationException.java: New file.
231 * classpath/lib/gnu/classpath/jdwp/exception/AbsentInformationException.class: Ditto.
232 * gnu/classpath/jdwp/exception/AbsentInformationException.h: Ditto.
233 * gnu/classpath/jdwp/natVMMethod.cc: Add CHECK_INTERP_CLASS macro.
234 (VMMethod::getLineTable): Use new macro.
235 (VMMethod::getVariableTable): Implement.
236 * sources.am: Regenerated.
237 * Makefile.in: Ditto.
239 2007-03-06 Tom Tromey <tromey@redhat.com>
241 * Makefile.in: Rebuilt.
242 * Makefile.am (bin_PROGRAMS): Added gcjh.
243 (gcjh_SOURCES, gcjh_LDFLAGS, gcjh_LINK, gcjh_LDADD,
244 gcjh_DEPENDENCIES): New variables.
246 2007-03-06 Kyle Galloway <kgallowa@redhat.com>
248 * jvmti.cc(_Jv_JVMTI_GetLocalVariableTable): Fix _Jv_Malloc parameters.
249 * testsuite/libjava.jvmti/interp/natgetlocalvartable.cc
250 (do_getlocalvartable_tests): Add Deallocate calls to free strings.
252 2007-03-05 Matthias Klose <doko@debian.org>
254 * Makefile.am (gij_LDFLAGS): Use dbexecdir.
255 * Makefile.in: Regnerate.
257 2007-03-05 Mark Wielaard <mark@klomp.org>
259 * java/lang/Character.java: Re-merged with Classpath.
260 * java/lang/natString.cc (nativeCompareTo): Renamed from
262 * java/lang/StringBuilder.java: Re-merged with Classpath.
263 * java/lang/String.java: Re-merged with Classpath.
264 (nativeCompareTo): Renamed from compareTo.
265 * java/lang/StringBuffer.java: Re-merged with Classpath.
266 * jni.cc (_Jv_JNI_GetAnyMethodID): Split calls to append.
268 2007-03-05 Andrew Haley <aph@redhat.com>
270 * java/lang/reflect/natVMProxy.cc (ncode_closure.meth): Delete.
271 (generateProxyClass): Don't pass method to ncode.
272 (run_proxy): Call _Jv_GetReflectedMethod to find the proxy method.
273 * java/lang/reflect/Method.h: Rebuild.
274 * java/lang/reflect/Method.java (internalGetParameterTypes,
275 internalGetExceptionTypes): New methods.
276 * headers.txt (class java/lang/reflect/Method): Declare
277 _Jv_GetReflectedMethod. Be its friend.
278 * java/lang/natClass.cc (_Jv_GetReflectedMethod): New method.
279 * java/lang/Class.h: Declare it. Be its friend.
281 2007-03-05 Tom Tromey <tromey@redhat.com>
283 * sources.am, Makefile.in: Rebuilt.
284 * scripts/makemake.tcl (emit_package_rule): Don't omit
286 * Makefile.am (nat_source_files): Added natVMProcess.cc.
287 (inner_nat_headers): Added ImmediateEOFInputStream.h.
288 * gcj/javaprims.h: Regenerated.
289 * java/lang/System.java (EnvironmentMap): Now package-private.
290 (EnvironmentMap(Map)): New constructor.
291 (EnvironmentMap.put): New method.
292 * java/lang/natWin32Process.cc (startProcess): Update.
293 * java/lang/Win32Process.java (Win32Process): Added 'redirect'
295 (startProcess): Likewise.
296 * java/lang/EcosProcess.java (EcosProcess): Added 'redirect'
298 * java/lang/natPosixProcess.cc (nativeSpawn): Handle redirection.
299 * java/lang/PosixProcess.java (redirect): New field.
300 (PosixProcess): Added 'redirect' argument.
301 * java/lang/natRuntime.cc (execInternal): Added 'redirect'
302 argument to Process creation.
303 * java/lang/natVMProcess.cc: New file.
304 * java/lang/ProcessBuilder.java: Removed.
305 * java/lang/VMProcess.java: New file.
307 2007-03-03 Andrew Haley <aph@redhat.com>
309 * java/lang/natClass.cc (parseAnnotationElement): Correct long
310 annotations to read JV_CONSTANT_Long, not JV_CONSTANT_Double.
312 2007-03-02 Andrew Haley <aph@redhat.com>
314 * sun/reflect/annotation/AnnotationInvocationHandler.java:
315 Generify in a few places.
316 (equals): Rewrite to use invoke on local proxy.
317 (deepToString): Remove most of it.
318 (toString): Make nonstatic.
319 (arrayClone): Delete.
320 (coerce): New method.
321 (invoke): Rewrite to handle gcj's structures correctly.
322 * java/lang/natClass.cc (getDeclaredAnnotations): Fix test for
324 * sources.am: Regenerate.
325 * Makefile.am: Likewise.
327 2007-03-02 Andrew Haley <aph@redhat.com>
329 * sun/reflect/annotation/AnnotationInvocationHandler.java:
330 Whitespace only changes.
332 2007-03-02 Andrew Haley <aph@redhat.com>
334 * sun/reflect/annotation/AnnotationInvocationHandler.java: Moved
335 from Classpath to libgcj local.
337 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
339 * Makefile.am: Add dummy install-pdf target.
340 * Makefile.in: Regenerate
341 * include/Makefile.in: Regenerate
342 * testsuite/Makefile.in: Regenerate
343 * gcj/Makefile.in: Regenerate
345 2007-02-23 Gary Benson <gbenson@redhat.com>
347 * gnu/gcj/tools/gcj_dbtool/Main.java: Updated copyright year.
349 2007-02-23 Gary Benson <gbenson@redhat.com>
351 * java/lang/VMCompiler.java
352 (compileClass): Don't lose zeros from within the digest.
354 2007-02-22 Jakub Jelinek <jakub@redhat.com>
358 * java/util/VMTimeZone.java (getDefaultTimeZoneId): To read
359 /etc/localtime, use ZoneInfo.readTZFile instead of
360 VMTimeZone.readtzFile. Get better timezone name for /etc/localtime,
361 either if it is a symlink or through /etc/sysconfig/clock.
362 (readSysconfigClockFile): New static method.
363 (readtzFile): Removed.
364 * java/lang/System.java: Add gnu.java.util.zoneinfo.dir to comments.
365 * posix.cc (_Jv_platform_initProperties): Set
366 gnu.java.util.zoneinfo.dir.
367 * sources.am (gnu_java_util_source_files): Add
368 classpath/gnu/java/util/ZoneInfo.java.
369 * Makefile.in: Regenerated.
370 * java/util/VMTimeZone.h: Regenerated.
371 * java/util/TimeZone.h: Regenerated.
372 * gnu/java/util/ZoneInfo.h: Generated.
374 2007-02-22 Mohan Embar <gnustuff@thisiscool.com>
376 * include/win32-threads.h: Added #undef OUT.
378 2007-02-21 Kyle Galloway <kgallowa@redhat.com>
380 * jvmti.cc (_Jv_JVMTI_GetArgumentsSize): New function.
381 * testsuite/libjava.jvmti/interp/getargssize.java: New test.
382 * testsuite/libjava.jvmti/interp/getargssize.h: Ditto.
383 * testsuite/libjava.jvmti/interp/getargssize.jar: Ditto.
384 * testsuite/libjava.jvmti/interp/getargssize.out: Ditto.
385 * testsuite/libjava.jvmti/interp/natgetargssize.cc: Ditto.
387 2007-02-21 Gary Benson <gbenson@redhat.com>
389 * java/util/GregorianCalendar.java: Removed.
390 * sources.am, Makefile.in: Rebuilt.
392 2007-02-20 Keith Seitz <keiths@redhat.com>
394 * gnu/classpath/jdwp/natVMVirtualMachine.cc
395 (jdwpClassPrepareCB): Move class status stuff to ...
396 (getClassStatus): ... here.
398 2007-02-20 Gary Benson <gbenson@redhat.com>
400 * gnu/awt/xlib/XEventLoop.h: Regenerated.
401 * gnu/java/awt/peer/gtk/GThreadMutex.h: Likewise.
402 * gnu/java/rmi/server/ConnectionRunnerPool$ConnectionRunner.h:
404 * gnu/java/rmi/server/UnicastConnectionManager.h: Likewise.
405 * java/lang/SecurityManager.h: Likewise.
406 * java/lang/Thread.h: Likewise.
407 * java/security/VMSecureRandom$Spinner.h: Likewise.
408 * java/util/concurrent/atomic/AtomicBoolean.h: Likewise.
409 * java/util/concurrent/atomic/AtomicInteger.h: Likewise.
410 * java/util/concurrent/atomic/AtomicLong.h: Likewise.
411 * java/util/concurrent/atomic/AtomicReference.h: Likewise.
412 * java/util/concurrent/ConcurrentHashMap$HashEntry.h: Likewise.
413 * java/util/concurrent/ConcurrentHashMap$Segment.h: Likewise.
414 * java/util/concurrent/ConcurrentLinkedQueue.h: Likewise.
415 * java/util/concurrent/ConcurrentLinkedQueue$Node.h: Likewise.
416 * java/util/concurrent/ConcurrentSkipListMap.h: Likewise.
417 * java/util/concurrent/ConcurrentSkipListMap$Index.h: Likewise.
418 * java/util/concurrent/ConcurrentSkipListMap$Node.h: Likewise.
419 * java/util/concurrent/Exchanger.h: Likewise.
420 * java/util/concurrent/Exchanger$Node.h: Likewise.
421 * java/util/concurrent/FutureTask$Sync.h: Likewise.
422 * java/util/concurrent/LinkedBlockingQueue$Node.h: Likewise.
423 * java/util/concurrent/locks/AbstractQueuedLongSynchronizer.h:
425 * java/util/concurrent/locks/AbstractQueuedLongSynchronizer$Node.h:
427 * java/util/concurrent/locks/AbstractQueuedSynchronizer.h: Likewise.
428 * java/util/concurrent/locks/AbstractQueuedSynchronizer$Node.h:
430 * java/util/concurrent/ScheduledThreadPoolExecutor.h: Likewise.
431 * java/util/concurrent/SynchronousQueue.h: Likewise.
432 * java/util/concurrent/SynchronousQueue$TransferQueue.h: Likewise.
433 * java/util/concurrent/SynchronousQueue$TransferQueue$QNode.h:
435 * java/util/concurrent/SynchronousQueue$TransferStack.h: Likewise.
436 * java/util/concurrent/SynchronousQueue$TransferStack$SNode.h:
438 * java/util/concurrent/ThreadPoolExecutor.h: Likewise.
439 * java/util/concurrent/ThreadPoolExecutor$Worker.h: Likewise.
440 * java/util/logging/ErrorManager.h: Likewise.
441 * javax/swing/plaf/basic/BasicSpinnerUI$2.h: Likewise.
442 * javax/swing/plaf/basic/BasicSpinnerUI$4.h: Likewise.
444 2007-02-16 Keith Seitz <keiths@redhat.com>
446 * gnu/classpath/jdwp/natVMVirtualMachine.cc
447 (get_line_table): New function.
448 (handle_single_step): New function.
449 (jdwpSingleStepCB): New function.
450 (jdwpVMInitCB): Define a JVMTI single step
451 callback, but don't enable it until needed.
453 2007-02-16 David Daney <ddaney@avtrex.com>
455 * java/lang/Thread.java (Thread(ThreadGroup, Runnable, String)): Pass
456 new parameter constructor.
457 (Thread(ThreadGroup, Runnable, String, long)): Same.
458 (Thread(String, boolean)): New constructor.
459 (Thread(Thread, ThreadGroup, Runnable, String): Add parameter
460 noInheritableThreadLocal, don't call
461 InheritableThreadLocal.newChildThread if set.
462 * java/lang/PosixProcess.java(ProcessManager()): Set
463 noInheritableThreadLocal in super.
464 * java/lang/natThread.cc (_Jv_AttachCurrentThread): Pass new
465 parameter to Thread constructor.
466 (_Jv_AttachCurrentThreadAsDaemon): Same.
467 * java/lang/Thread.h: Regenerate.
468 * classpath/lib/java/lang/Thread.class: Same.
469 * classpath/lib/java/lang/PosixProcess$EOFInputStream.class: Same.
470 * classpath/lib/java/lang/PosixProcess.class: Same.
471 * classpath/lib/java/lang/Thread$State.class: Same.
472 * classpath/lib/java/lang/PosixProcess$ProcessManager.class: Same.
474 2007-02-16 Kyle Galloway <kgallowa@redhat.com>
476 * interpret.cc: Add extra DEBUG_LOCALS_INSN calls for multi-slot
477 variables to maintain type info.
478 * interpret-run.cc: Add local variable info to frame in the debug
480 * jvmti.cc (getLocalFrame): New method.
481 (_Jv_JVMTI_GetLocalObject): New method.
482 (_Jv_JVMTI_GetLocallInt): New method.
483 (_Jv_JVMTI_GetLocalFloat): New method.
484 (_Jv_JVMTI_GetLocalLong): New method.
485 (_Jv_JVMTI_GetLocalDouble): New method.
486 (_Jv_JVMTI_SetLocalObject): New method.
487 (_Jv_JVMTI_SetLocalInt): New method.
488 (_Jv_JVMTI_SetLocalFloat): New method.
489 (_Jv_JVMTI_SetLocalLong): New method.
490 (_Jv_JVMTI_SetLocalDouble): New method.
492 2007-02-16 Gary Benson <gbenson@redhat.com>
494 * gnu/gcj/tools/gcj_dbtool/Main.java
495 (bytesToString): Don't lose zeros from within the digest.
497 2007-02-15 Andrew Haley <aph@redhat.com>
499 * Makefile.am (nat_source_files): Remove
500 java/lang/management/natVMManagementFactory.cc.
501 * java/lang/Thread.java (getStackTrace): Use reflection to call
502 the ManagementFactory.
503 * java/lang/management/VMManagementFactory.java: Remove native
505 * java/lang/management/natVMManagementFactory.cc: Deleted.
506 * sources.am: Regnerate.
507 * scripts/makemake.tcl: Add new "bcheaders" type.
508 Move java/lang/management and gnu/classpath/management to "bc".
509 Move gnu/java/lang/management to "bcheaders".
511 2007-02-15 Kyle Galloway <kgallowa@redhat.com>
513 * interpret.cc (_Jv_InterpMethod::check_handler): New method.
514 * interpret-run.cc: Change the catch section to report exception
515 events and to use the new check_handler method.
516 * include/java-interp.h (_Jv_InterpMethod): Add check_handler.
517 * gnu/gcj/jvmti/ExceptionEvent.java: New file.
518 * gnu/gcj/jvmti/ExceptionEvent.h: New file.
519 * gnu/gcj/jvmti/natExceptionEvent.cc: New file.
520 * libjava/classpath/lib/gnu/gcj/jvmti/ExceptionEvent.class: New
522 * sources.am: Added ExceptionEvent.java.
523 * Makefile.am: Added natExceptionEvent.cc
524 * Makefile.in: Regenerated.
525 * include/Makefile.in: Regenerated.
526 * gcj/Makefile.in: Regenerated.
528 2007-02-15 Johannes Schmidt <jschmidt@avtrex.com>
529 David Daney <ddaney@avtrex.com>
531 * configure.ac: Create vm-tools-packages file. Add
532 gnu/gcj/tools/gc_analyze to standard.omit and vm-tools-packages.
533 Check for /proc/self/maps.
534 * Makefile.am (bin_PROGRAMS): Added gc-analyze.
535 (gc_analyze_SOURCES): New.
536 (gc_analyze_LDFLAGS): New.
537 (gc_analyze_LINK): New.
538 (gc_analyze_LDADD): New.
539 (gc_analyze_DEPENDENCIES): New.
540 (nat_source_files): Add gnu/gcj/util/natGCInfo.cc.
541 * Makefile.in: Regenerated.
542 * configure: Regenerated.
543 * include/config.h.in: Regenerated.
544 * sources.am: Regenerated.
545 * scripts/makemake.tcl: Don't include gc-analyze classes in libgcj.
546 * gnu/gcj/tools/gc_analyze/SymbolLookup.java: New.
547 * gnu/gcj/tools/gc_analyze/ObjectMap.java: New.
548 * gnu/gcj/tools/gc_analyze/MemoryMap.java: New.
549 * gnu/gcj/tools/gc_analyze/SymbolTable.java: New.
550 * gnu/gcj/tools/gc_analyze/BlockMap.java: New.
551 * gnu/gcj/tools/gc_analyze/BytePtr.java: New.
552 * gnu/gcj/tools/gc_analyze/ItemList.java: New.
553 * gnu/gcj/tools/gc_analyze/ToolPrefix.java: New.
554 * gnu/gcj/tools/gc_analyze/MemoryAnalyze.java: New.
555 * gnu/gcj/util/GCInfo.java: New.
556 * gnu/gcj/util/GCInfo.h: New.
557 * gnu/gcj/util/natGCInfo.cc: New.
558 * gnu/gcj/util/UtilPermission.java: New.
559 * gnu/gcj/util/UtilPermission.h: New.
560 * classpath/tools/gnu/gcj/tools/gc_analyze/SymbolTable.class: New.
561 * classpath/tools/gnu/gcj/tools/gc_analyze/ObjectMap$ObjectItem.class: New.
562 * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryMap$RangeComparator.class: New.
563 * classpath/tools/gnu/gcj/tools/gc_analyze/BlockMap$PtrMarks.class: New.
564 * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryMap$Range.class: New.
565 * classpath/tools/gnu/gcj/tools/gc_analyze/BlockMap.class: New.
566 * classpath/tools/gnu/gcj/tools/gc_analyze/BytePtr.class: New.
567 * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$SubstringComparator.class: New.
568 * classpath/tools/gnu/gcj/tools/gc_analyze/ItemList.class: New.
569 * classpath/tools/gnu/gcj/tools/gc_analyze/ToolPrefix.class: New.
570 * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze.class: New.
571 * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$1$Info.class: New.
572 * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$1.class: New.
573 * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$2.class: New.
574 * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$3.class: New.
575 * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$4.class: New.
576 * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$OptionParser.class: New.
577 * classpath/tools/gnu/gcj/tools/gc_analyze/BlockMap$SizeKind.class: New.
578 * classpath/tools/gnu/gcj/tools/gc_analyze/SymbolLookup.class: New.
579 * classpath/tools/gnu/gcj/tools/gc_analyze/ObjectMap.class: New.
580 * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryMap.class: New.
581 * classpath/lib/gnu/gcj/util/GCInfo.class: New.
582 * classpath/lib/gnu/gcj/util/UtilPermission.class: New.
584 2007-02-15 David Daney <ddaney@avtrex.com>
586 * gnu/java/net/PlainSocketImpl.h: Regenerate.
587 * gnu/classpath/jdwp/VMVirtualMachine.h: Same.
588 * gnu/classpath/jdwp/VMFrame.h: Same.
589 * java/net/Socket.h: Same.
590 * java/util/Collections$UnmodifiableMap$UnmodifiableEntrySet.h: Same.
592 2007-02-15 Kyle Galloway <kgallowa@redhat.com>
594 * defineclass.cc (_Jv_ClassReader::read_one_code_attribute):
595 Added LocalVariableTable attribute handling.
596 (_Jv_ClassReader::pool_Utf8_to_char_arr): New method.
597 * jvmti.cc (_Jv_JVMTI_GetLocalVariableTable): New method.
598 * include/java-interp.h: Added local_var_table and
599 local_var_table_len fields to _Jv_InterpMethod.
600 (_Jv_InterpMethod::get_local_var_table): New method.
601 * testsuite/libjava.jvmti/interp/getlocalvartable.java: New test.
602 * testsuite/libjava.jvmti/interp/getlocalvartable.jar: New test.
603 * testsuite/libjava.jvmti/interp/getlocalvartable.out: Output
605 * testsuite/libjava.jvmti/interp/getlocalvartable.h: New test.
606 * testsuite/libjava.jvmti/interp/natgetlocalvartable.cc: New test.
608 2007-02-15 Kyle Galloway <kgallowa@redhat.com>
610 * gnu/classpath/jdwp/natVMVirtualMachine (getFrames): Implement.
612 2007-02-13 Keith Seitz <keiths@redhat.com>
614 * gnu/classpath/jdwp/natVMVirtualMachine.cc
615 (jdwpBreakpointCB): New function.
616 (jdwpVMInitCB): Define and enable the breakpoint
619 2007-02-13 Andrew Haley <aph@redhat.com>
621 * testsuite/libjava.lang/Divide_2.out
622 * testsuite/libjava.lang/Divide_2.java: New test.
624 2007-02-12 Keith Seitz <keiths@redhat.com>
626 * jvmti.cc (_Jv_JVMTI_GetStackTrace): Remove cast
627 from jthread to Thread *; it is no longer needed.
628 (_Jv_JVMTI_GetFrameCount): Likewise.
629 Fix small formatting typo.
631 2007-02-12 Tom Tromey <tromey@redhat.com>
633 * sources.am, Makefile.in: Rebuilt.
634 * java/lang/Socket.java: Removed override.
635 * java/lang/DatagramSocket.java: Removed override.
636 * gnu/java/net/PlainSocketImpl.java (localSocketAddress): New
638 (getLocalAddress): New method.
639 * gnu/java/net/PlainDatagramSocketImpl.java
640 (PlainDatagramSocketImpl): Throws IOException.
641 * gnu/java/net/natPlainSocketImplPosix.cc (write): Remove
645 2007-02-09 Jakub Jelinek <jakub@redhat.com>
647 * java/util/VMTimeZone.java: Rewrite to handle both the old
648 'TZif\0' format and the new one.
650 2007-02-10 Andrew Haley <aph@redhat.com>
653 * gnu/classpath/natVMStackWalker.cc (GET_CALLING_CLASS): New.
654 (getCallingClass): Call GET_CALLING_CLASS.
655 (getCallingClassLoader): Likewise.
657 2007-02-10 Mohan Embar <gnustuff@thisiscool.com>
659 * configure: Rebuilt.
660 * configure.ac (GCJH): Reverted second part of patch of 2006-12-20.
662 2007-02-10 Mohan Embar <gnustuff@thisiscool.com>
664 * Makefile.in: Rebuilt.
665 * Makefile.am (BUILD_ECJ1): Unify the command for renaming ecjx to
666 the host's ecj1 executable.
668 2007-02-09 Richard Henderson <rth@redhat.com>
670 * sysdep/alpha/locks.h (read_barrier): New.
672 2007-02-09 Keith Seitz <keiths@redhat.com>
674 * gnu/classpath/jdwp/VMVirtualMachine.java
675 (_stepping_threads): New member.
676 * classpath/lib/gnu/classpath/jdwp/VMVirtualMachine.class:
678 * gnu/classpath/jdwp/VMVirtualMachine.h:
680 * gnu/claspath/jdwp/natVMVirtualMachine.cc
681 (get_request_step_filter): New function.
682 (DISABLE_EVENT): New macro.
683 (initialize): Initialize _stepping_threads.
684 (registerEvent): Implement EVENT_SINGLE_STEP.
685 (unregisterEvent): Likewise.
687 2007-02-08 Keith Seitz <keiths@redhat.com>
689 * sources.am: Regenerate.
690 * Makefile.in: Regenerate.
691 * testsuite/Makefile.in: Regenerate.
692 * gcj/Makefile.in: Regenerate.
693 * include/Makefile.in: Regenerate.
695 * classpath/lib/javax/management/MBeanServerFactory.class:
698 2007-02-08 Kyle Galloway <kgallowa@redhat.com>
700 * classpath/gnu/classpath/jdwp/processor/
701 StackFrameCommandSet.java (executeGetValues): Pass jlong instead
703 (executeSetValues): Ditto.
704 (executeThisObject): Ditto.
705 * classpath/gnu/classpath/jdwp/processor/
706 StackFrameCommandSet.class: Rebuilt.
707 * classpath/lib/gnu/classpath/jdwp/VMVirtualMachine.class:
709 * classpath/lib/gnu/classpath/jdwp/VMFrame.class: Rebuilt.
710 * classpath/lib/gnu/classpath/jdwp/exception/
711 InvalidFrameException.java: New file.
712 * gnu/classpath/jdwp/VMFrame.java: Added field for thread of
714 (Constructor): New method.
715 * gnu/classpath/jdwp/VMFrame.h: Regenerated.
716 * gnu/classpath/jdwp/VMVirtualMachine.java
717 (getFrame): Changed ByteBuffer to jlong.
718 * gnu/classpath/jdwp/natVMVirtualMachine.cc
719 (getFrame): Implement.
720 * gnu/classpath/jdwp/VMVirtualMachine.h: Regenerated.
722 2007-02-08 Kyle Galloway <kgallowa@redhat.com>
724 * include/java-interp.h (_Jv_InterpFrame): obj_ptr field added
725 to hold "this" pointer for frame.
726 (_Jv_InterpFrame::get_this_ptr): New method.
727 * interpret-run.cc: Copy the "this" pointer into obj_ptr.
729 2007-02-07 Keith Seitz <keiths@redhat.com>
731 * include/java-interp.h (_Jv_Frame::depth):
733 * jvmti.cc (_Jv_JVMTI_GetFrameCount): Use _Jv_Frame::depth.
735 2007-02-07 Kyle Galloway <kgallowa@redhat.com>
737 * jvmti.cc (CHECK_FOR_NATIVE_METHOD): New macro.
738 (_Jv_JVMTI_GetMaxLocals): New method.
739 * include/java-interp.h
740 (_Jv_InterpMethod::get_max_locals): New method.
742 2007-02-01 Marco Trudel <mtrudel@gmx.ch>
744 * jni.cc (_Jv_JNI_DeleteWeakGlobalRef): Check for NULL objects.
746 2007-02-07 Tom Tromey <tromey@redhat.com>
748 * testsuite/libjava.jni/init.c: New file.
749 * testsuite/libjava.jni/init.java: New file.
750 * testsuite/libjava.jni/init.out: New file.
751 * testsuite/libjava.jni/init.jar: New file.
752 * testsuite/libjava.jni/init.h: New file.
753 * testsuite/libjava.jni/init$NativeClass.h: New file.
755 2007-02-07 Jakub Jelinek <jakub@redhat.com>
758 * configure: Regenerate.
760 2007-02-06 Andrew Haley <aph@redhat.com>
762 * scripts/makemake.tcl (emit_bc_rule): Set the source filename.
763 * sources.am: Rebuild.
765 2007-02-05 Keith Seitz <keiths@redhat.com>
767 * jvmti.cc (_envListLock): Change type to
768 ReentrantReadWriteLock.
769 (_Jv_JVMTI_DisposeEnvironment): Switch to read/write
771 (check_enabled_event): Likewise.
772 (_Jv_GetJVMTIEnv): Likewise.
773 (_Jv_JVMTI_Init): Likewise.
774 (_Jv_JVMTI_PostEvent): Likewise.
776 2007-02-05 Keith Seitz <keiths@redhat.com>
778 * gnu/classpath/jdwp/natVMVirtualMachine.cc
779 (registerEvent): Implement EVENT_BREAKPOINT.
780 (unregisterEvent): Likewise.
781 (get_request_location): New function.
783 2007-02-05 Matthias Klose <doko@debian.org>
785 testsuite/Makefile.am (compile-tests): Fix typo.
786 testsuite/Makefile.in: Regenerate.
788 2007-02-02 Kyle Galloway <kgallowa@redhat.com>
790 * gnu/classpath/jdwp/natVMVirtualMachine.cc (getFrameCount):
793 2007-02-02 Jakub Jelinek <jakub@redhat.com>
795 * configure.ac (libjava_cv_anon_version_script): New test.
796 (ANONVERSCRIPT): New AM_CONDITIONAL.
797 * configure: Rebuilt.
798 * Makefile.am (extra_ldflags_libjava): Link with -Wl,--version-script
800 * Makefile.in: Rebuilt.
801 (libgcj_la_DEPENDENCIES): Depend on libgcj.ver.
802 * libgcj.ver: New file.
804 2007-02-01 David Daney <ddaney@avtrex.com>
806 * scripts/makemake.tcl: Replace gnu/xml build with build of all
808 * sources.am: Regenerate.
809 * Makefile.in: Regenerate.
811 2007-02-01 Tom Tromey <tromey@redhat.com>
813 * java/lang/ClassLoader.java (getResources): No longer final.
815 2007-02-01 Tom Tromey <tromey@redhat.com>
817 * java/util/logging/LogManager.java (loggers): Genericized.
819 (findAncestor): Likewise.
820 (getLogger): Likewise.
821 (getLoggerNames): Genericized.
823 (getLevelProperty): Likewise.
824 * java/lang/reflect/Method.java (getDeclaringClass): Genericized.
825 * java/lang/reflect/Constructor.java (getParameterTypes):
827 (getExceptionTypes): Likewise.
828 (newInstance): Likewise.
829 * java/lang/reflect/Array.java (newInstance): Genericized.
830 * java/lang/Object.java (getClass): Genericized.
831 * java/nio/charset/spi/CharsetProvider.java (charsets):
833 * java/text/Collator.java: Implement Comparable<Object>.
835 2007-02-01 Tom Tromey <tromey@redhat.com>
837 * java/util/Calendar.java: Implement Comparable<Calendar>. Update
839 (clear): Call complete.
840 (setTimeZone): Call computeTime, computeFields.
841 (compareTo): New method.
842 * java/nio/charset/Charset.java: Implement Comparable<Charset>.
843 (availableCharsets): Genericized.
845 (compareTo): Changed argument type.
846 * java/lang/ClassLoader.java (loadClass): Genericized.
847 (findClass): Likewise.
848 (defineClass): Likewise.
849 (resolveClass): Likewise.
850 (findSystemClass): Likewise.
851 (setSigners): Likewise.
852 (findLoadedClass): Likewise.
853 (getResources): Likewise.
854 (findResources): Likewise.
855 (getSystemResources): Likewise.
856 (checkInitialized): New method.
857 * java/lang/Class.java (getCanonicalName): New method.
859 2007-01-31 Keith Seitz <keiths@redhat.com>
861 * include/jvmti-int.h (JVMTI): Declare member "enabled".
862 * jvmti.cc (JVMTI): Add member "enabled".
863 (_Jv_GetJVMTIEnv): Mark JVMTI enabled.
864 * interpret.cc (_Jv_InterpMethod::ncode): Use JVMTI::enabled
865 instead of gnu::classpath::jdwp::Jdwp::isDebugging.
866 (_Jv_CompileMethod): If JVMTI is enabled, use run_debug
867 instead of run to compile the method.
869 * interpret-run.cc [DEBUG] (NEXT_INSN): Add JVMTI single step
872 2007-01-31 Andreas Tobler <a.tobler@schweiz.org>
874 * testsuite/libjava.jvmti/jvmti-interp.exp (gij_jvmti_test_one): Add
875 -shared-libgcc to the cxxflaglist for Darwin.
877 2007-01-31 Tom Tromey <tromey@redhat.com>
879 * scripts.am, Makefile.in: Rebuilt.
880 * scripts/makemake.tcl (gnu/javax/swing/text/html/parser): Build
882 (emit_ordinary_rule): New proc.
884 2007-01-31 Keith Seitz <keiths@redhat.com>
886 * testsuite/libjava.jvmti/getmethodname.h: New file.
887 * testsuite/libjava.jvmti/getmethodname.jar: New file.
889 2007-01-31 Andrew Haley <aph@redhat.com>
891 * prims.cc (_Jv_Abort): fflush (stderr).
892 * java/lang/natClassLoader.cc (_Jv_CheckABIVersion): Abort.
894 2007-01-31 Tom Tromey <tromey@redhat.com>
896 * configure, Makefile.in: Rebuilt.
897 * configure.ac (JAR): Check for -@ feature.
898 * Makefile.am (libgcj-$(gcc_version).jar): Use find -prune.
900 2007-01-31 Tom Tromey <tromey@redhat.com>
903 * configure, include/config.h.in: Rebuilt.
904 * configure.ac: Check for magic_t in magic.h.
905 * java/net/natVMURLConnection.cc: Use HAVE_MAGIC_T.
907 2007-01-30 Tom Tromey <tromey@redhat.com>
909 * Makefile.in: Rebuilt.
910 * Makefile.am (libgcj-$(gcc_version).jar): Rewrote.
912 2007-01-30 Andreas Tobler <a.tobler@schweiz.org>
914 * testsuite/libjava.jvmti/natevents.cc (FieldModificationCB): Use a
915 cast to print it right.
917 2007-01-29 Kaloian Doganov <kaloian@doganov.org>
920 * gnu/gcj/convert/BytesToCharsetAdaptor.java (read): Fix call to
923 2007-01-29 Kyle Galloway <kgallowa@redhat.com>
925 * include/java-interp.h: Added _Jv_Frame class and its two
926 subclasses _Jv_InterpFrame and _Jv_NativeFrame. Also moved
927 _Jv_FrameType from java-stack.h.
928 * include/java-stack.h: Removed _Jv_FrameType.
929 * java/lang/Thread.java: Added frame member to hold new
930 composite frame stack.
931 * java/lang/Thread.h: Regenerated.
932 * java/lang/Thread.class: Rebuilt.
933 * jni.cc (_Jv_JNIMethod::call): Push a frame onto the stack when
934 calling a JNI method.
935 * jvmti.cc (_Jv_JVMTI_GetStackTrace): New Method.
936 (_Jv_JVMTI_GetFrameCount): New method.
937 * stacktrace.cc (UnwindTraceFn): Modified to use new _Jv_Frame
939 * testsuite/libjava.jvmti/interp/getstacktrace.jar: New test.
940 * testsuite/libjava.jvmti/interp/natgetstacktrace.cc: New test.
941 * testsuite/libjava.jvmti/interp/getstacktrace.h: New test.
942 * testsuite/libjava.jvmti/interp/getstacktrace.jar: New test.
943 * testsuite/libjava.jvmti/interp/getstacktrace.out: Output file
946 2007-01-29 Tom Tromey <tromey@redhat.com>
948 * interpret.cc (run_debug): Remove comment.
955 (run_normal_debug): Likewise.
956 (run_synch_object_debug): Likewise.
957 (run_class_debug): Likewise.
958 (run_synch_class_debug): Likewise.
963 (NULLARRAYCHECK): Likewise.
964 (ARRAYBOUNDSCHECK): Likewise.
965 * interpret-run.cc (insn_target) <breakpoint>: Tidy.
967 2007-01-29 Tom Tromey <tromey@redhat.com>
969 * configure, Makefile.in: Rebuilt.
970 * Makefile.am (bin_SCRIPTS): Never install scripts/jar.
971 * configure.ac (BASH_JAR): Removed conditional.
972 (JAR): Prefer the jar found by AC_CHECK_PROGS.
974 2007-01-29 Tom Tromey <tromey@redhat.com>
976 * Makefile.in: Rebuilt.
977 * Makefile.am (interpret.lo): New target. Add -fwrap to
980 2007-01-29 Keith Seitz <keiths@redhat.com>
982 * include/jvmti_md.h (_CLASSPATH_VM_JVMTI_TYPES_DEFINED):
984 [__GCJ_JNI_IMPL__]: Define our own JVMTI types when building
985 gcj. All jvmti object types now are defined to be their
986 corresponding java classes.
987 * jvmti.cc (_Jv_JVMTI_SuspendThread): Remove casting from
989 (_Jv_JVMTI_ResumeThread): Likewise.
990 (_Jv_JVMTI_InterruptThread): Likewise.
991 (_Jv_JVMTI_SetEventNotificationMode): Likewise.
992 * gnu/classpath/jdwp/natVMVirtualMachine.cc
993 (jdwpClassPrepareCB): Likewise.
994 (jdwpThreadEndCB): Likewise.
995 (jdwpThreadStartCB): Likewise.
996 (jdwpVMInitCB): Likewise.
998 2007-01-28 Michele Sandri <gpointorama@gmail.com>
1000 * gnu/java/nio/channels/natFileChannelWin32.cc
1001 (lock): Implemented.
1002 (unlock): Implemented.
1004 2007-01-27 Andreas Tobler <a.tobler@schweiz.org>
1007 * configure.host: Add forgottten sysdep_dir to sparc. Add a flag to
1008 libgcj_flags to undefine 'sun' at compile time.
1009 * sysdep/sparc/locks.h (read_barrier): New functions for 32 and 64 bit
1011 (write_barrier): Likewise.
1013 2007-01-27 Keith Seitz <keiths@redhat.com>
1015 * gnu/classpath/jdwp/natVMVirtualMachine.cc
1016 (getAllClassMethods): Move error handling to ...
1017 (throw_jvmti_error): ... here.
1018 (jdwpClassPrepareCB): New function.
1019 (jdwpThreadEndCB): New function.
1020 (jdwpThreadStartCB): New function.
1021 (jdwpVMDeathCB): New function.
1022 (jdwpVMInitCB): Define and enable callbacks for
1023 ClassPrepare, ThreadEnd, ThreadStart, and VMDeath.
1025 2007-01-27 Jakub Jelinek <jakub@redhat.com>
1027 * Makefile.am (generic_header_files): Add $(inner_nat_headers).
1028 * testsuite/Makefile.am (check-dejaGNU): Depend on compile-tests.
1029 (MYGCJH): New variable.
1030 (compile-tests): New goal.
1031 * Makefile.in: Rebuilt.
1032 * testsuite/Makefile.in: Rebuilt.
1034 2007-01-26 Andrew Haley <aph@redhat.com>
1036 * java/lang/natClass.cc (initializeClass): Re-throw
1038 * java/lang/natVMClassLoader.cc (loadClass): checkPackageAccess.
1039 * java/lang/ClassLoader.java: (loadClass): Likewise.
1041 2007-01-26 Tom Tromey <tromey@redhat.com>
1045 2007-01-25 Tom Tromey <tromey@redhat.com>
1048 * gnu/gcj/convert/Convert.java (main): Correctly handle missing
1049 input or output encodings. Removed unused local variables.
1051 2007-01-25 Keith Seitz <keiths@redhat.com>
1053 * include/jvmti-int.h (_Jv_GetJDWP_JVMTIEnv): Declare.
1054 * gnu/classpath/jdwp/natVMVirtualMachine.cc
1055 (_Jv_GetJDWP_JVMTIEnv): New function.
1056 * gnu/classpath/jdwp/natVMMethod.cc (getName): Implement.
1057 (getSignature): Implement.
1058 (getModifiers): Implement.
1060 2007-01-25 Andrew Haley <aph@redhat.com>
1062 * configure, Makefile.in, include/config.h.in: Rebuilt.
1063 * Makefile.am (libgcj_la_LIBADD): Removed $(LIBMAGIC).
1064 * configure.ac: Don't check for libmagic.
1065 * java/net/natVMURLConnection.cc (p_magic_open, p_magic_load,
1066 p_magic_close, p_magic_buffer): New globals.
1067 (init): Look up 'magic' functions.
1068 (guessContentTypeFromBuffer): Updated.
1070 2007-01-25 Keith Seitz <keiths@redhat.com>
1072 * jvmti.cc (_Jv_JVMTI_GetMethodName): New function.
1073 (_Jv_JVMTI_Interface): Define GetMethodName.
1074 * testsuite/libjava.jvmti/getmethodname.java: New file.
1075 * testsuite/libjava.jvmti/natgetmethodname.cc: New file.
1076 * testsuite/libjava.jvmti/getmethodname.out: New file.
1078 2007-01-24 Kyle Galloway <kgallowa@redhat.com>
1080 * libjava/testsuite/libjava.jvmti/jvmti-interp.exp: New file.
1081 * libjava/testsuite/libjava.jvmti/interp: New folder.
1082 * libjava/testsuite/lib/libjava.exp (exec_gij): New Method.
1084 2007-01-24 Keith Seitz <keiths@redhat.com>
1086 * link.cc (_Jv_Linker::wait_for_state): Add JVMTI
1087 CLASS_PREPARE notification.
1089 2007-01-24 Keith Seitz <keiths@redhat.com>
1091 * interpret.cc: Include gnu/gcj/jvmti/Breakpoint.h,
1092 gnu/gcj/jvmti/BreakpointManager.h, jvmti.h, and jvmti-int.h
1093 * interpret-run.cc: Implement insn_breakpoint.
1095 2007-01-24 Keith Seitz <keiths@redhat.com>
1097 * prims.cc (_Jv_RunMain): Send JVMTI event notifications
1098 for VM_INIT and VM_DEATH instead of the JDWP notifications.
1100 2007-01-24 Keith Seitz <keiths@redhat.com>
1102 * gnu/classpath/jdwp/natVMVirtualMachine.cc
1103 (getAllClassMethods): Implement.
1105 2007-01-24 Andrew Haley <aph@redhat.com>
1107 * gnu/classpath/natVMStackWalker.cc: Call InitClass everywhere.
1108 (getClassContext) Add a barrier to prevent GetStackWalkerStack()
1109 from being sibcalled.
1111 2007-01-24 Andrew Haley <aph@redhat.com>
1113 * scripts/makemake.tcl (emit_bc_rule): Set the source filename.
1114 * sources.am: Rebuild.
1116 2007-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
1118 * exception.cc (parse_lsda_header, PERSONALITY_FUNCTION): Replaced
1119 _Unwind_Word with _uleb128_t and _Unwind_SWord with _sleb128_t.
1121 2007-01-23 H.J. Lu <hongjiu.lu@intel.com>
1124 * Makefile.am (ecjx_DEPENDENCIES): Add libgcj_bc.la if needed.
1125 * Makefile.in: Regenerated.
1127 2007-01-22 Keith Seitz <keiths@redhat.com>
1129 * gnu/classpath/jdwp/natVMVirtualMachine.cc
1130 (getClassMethod): Implement.
1132 2007-01-22 Keith Seitz <keiths@redhat.com>
1134 * java/lang/Class.h (_Jv_GetClassStatus): Declare.
1135 * java/lang/natClass.cc (_Jv_GetClassStatus): New function.
1136 * jvmti.cc (_Jv_JVMTI_GetClassStatus): New function.
1137 (_Jv_JVMTI_Interface): Define GetClassStatus.
1139 2007-01-22 Tom Tromey <tromey@redhat.com>
1141 * configure: Rebuilt.
1142 * configure.ac (GCJ): Reverted patch of 2006-12-20.
1144 2007-01-22 Tom Tromey <tromey@redhat.com>
1147 * testsuite/libjava.jni/pr29812.java: New file.
1148 * testsuite/libjava.jni/pr29812_injar.java: New file.
1149 * testsuite/libjava.jni/pr29812_injar.jar: New file.
1150 * testsuite/libjava.jni/pr29812.out: New file.
1151 * testsuite/libjava.jni/pr29812_injar.c: New file.
1152 * testsuite/libjava.jni/pr29812_injar.h: New file.
1153 * testsuite/libjava.jni/pr29812.jar: New file.
1154 * testsuite/libjava.jni/pr29812.c: New file.
1155 * testsuite/libjava.jni/pr29812.h: New file.
1156 * testsuite/libjava.jni/jni.exp (gcj_jni_get_cxxflags_invocation):
1158 (gcj_jni_invocation_test_one): Use it.
1159 (gcj_jni_pr29812): New proc.
1160 (gcj_jni_run): Use it.
1161 * java/lang/natRuntime.cc (_load): Push a new system frame before
1163 * include/jvm.h (_Jv_JNI_PopSystemFrame): Declare.
1164 (_Jv_GetJNIEnvNewFrameWithLoader): Likewise.
1165 * jni.cc (struct _Jv_JNI_LocalFrame) <marker>: Now unsigned char.
1166 <allocated_p>: Now bool.
1167 <loader>: New field.
1168 (_Jv_JNI_EnsureLocalCapacity): Updated.
1169 (_Jv_JNI_NewLocalRef): Likewise.
1170 (_Jv_JNI_NewLocalRef): Likewise.
1171 (_Jv_JNI_PopLocalFrame): Likewise.
1172 (_Jv_JNI_FindClass): Likewise.
1173 (_Jv_GetJNIEnvNewFrame): Likewise.
1174 (_Jv_JNI_AttachCurrentThread): Likewise.
1175 (_Jv_GetJNIEnvNewFrameWithLoader): New function.
1176 (_Jv_GetJNIEnvNewFrame): Use it.
1177 * include/jni_md.h (_CLASSPATH_JNIENV_CONTENTS): Removed 'klass'.
1179 2007-01-22 Tom Tromey <tromey@redhat.com>
1181 * libtool-version: Bump current to 9.
1183 2007-01-22 Andrew Haley <aph@redhat.com>
1185 * sysdep/alpha/locks.h (write_barrier): New.
1187 2007-01-21 Matthias Klose <doko@debian.org>
1189 * Makefile.am (install-exec-hook): Use transformed name.
1190 * Makefile.in: Regenerate.
1192 2007-01-19 Keith Seitz <keiths@redhat.com>
1194 * gnu/classpath/jdwp/natVMVirtualMachine.cc: Mark unused parameters
1195 in methods and reformat.
1197 * gnu/classpath/jdwp/natVMFrame.cc: Mark unused parameters with
1200 2007-01-18 Keith Seitz <keiths@redhat.com>
1202 From Macro Trudel <mtrudel@gmx.ch>:
1203 * gnu/classpath/jdwp/natVMVirtualMachine.cc (jdwpVMInitCB):
1206 2007-01-18 Marco Trudel <mtrudel@gmx.ch>
1208 * jni.cc (_Jv_JNI_FindClass): Initialize class.
1209 * testsuite/libjava.jni/findclass2.jar: New file.
1210 * testsuite/libjava.jni/findclass2.h: New file.
1211 * testsuite/libjava.jni/findclass2.java: New file
1212 * testsuite/libjava.jni/findclass2.c: New file.
1213 * testsuite/libjava.jni/findclass2.out: New file.
1215 2007-01-18 Tom Tromey <tromey@redhat.com>
1217 * configure: Rebuilt.
1218 * configure.ac: Use multi_basedir instead of libgcj_basedir.
1220 2007-01-18 Gary Benson <gbenson@redhat.com>
1222 * gnu/java/nio/natVMPipeEcos.cc:
1223 Renamed from gnu/java/nio/natPipeImplEcos.cc.
1224 * gnu/java/nio/natVMPipePosix.cc:
1225 Renamed from gnu/java/nio/natPipeImplPosix.cc.
1226 * gnu/java/nio/natVMPipeWin32.cc:
1227 Renamed from gnu/java/nio/natPipeImplWin32.cc.
1228 * gnu/java/nio/natVMSelectorEcos.cc:
1229 Renamed from gnu/java/nio/natSelectorImplEcos.cc.
1230 * gnu/java/nio/natVMSelectorPosix.cc:
1231 Renamed from gnu/java/nio/natSelectorImplPosix.cc.
1232 * gnu/java/nio/natVMSelectorWin32.cc:
1233 Renamed from gnu/java/nio/natSelectorImplWin32.cc.
1234 * java/io/natVMObjectInputStream.cc:
1235 Renamed from java/io/natObjectInputStream.cc.
1236 * java/lang/natVMDouble.cc:
1237 Renamed from java/lang/natDouble.cc.
1238 * java/lang/natVMFloat.cc:
1239 Renamed from java/lang/natFloat.cc.
1240 * Makefile.am, configure.ac: Reflect the above.
1241 * Makefile.in, configure: Rebuilt.
1243 2007-01-17 Andrew Haley <aph@redhat.com>
1245 * Makefile.in: Rebuilt.
1246 * Makefile.am (ecjx_LDFLAGS): Pass -fbootclasspath.
1248 2007-01-17 Keith Seitz <keiths@redhat.com>
1250 * java/lang/natThread.cc (finish_): Add JVMTI ThreadEnd notification.
1251 (_Jv_NotifyThreadStart): Add JVMTI ThreadStart notification.
1253 2007-01-16 Jack Howarth <howarth@bromo.med.uc.edu>
1255 * configure.ac: Use multi.m4 from aclocal rather than custom
1256 code. Use multi_basedir instead libgcj_basedir. Test for
1257 /proc/self/exe when not cross-compiling.
1258 * aclocal.m4: Regenerate.
1259 * configure: Regenerate.
1260 * Makefile.in: Regenerate.
1262 2007-01-17 Gary Benson <gbenson@redhat.com>
1264 * java/nio/natVMDirectByteBufferImpl.cc:
1265 Renamed from java/nio/natDirectByteBufferImpl.cc.
1266 * Makefile.am: Reflect the above.
1267 * Makefile.in: Rebuilt.
1269 2007-01-17 Marco Trudel <mtrudel@gmx.ch>
1271 * jvmti.cc (_Jv_JVMTI_GetAllThreads): Now static. Use JNICALL.
1272 Fixed indentation. Removed unused variable.
1274 2007-01-16 Tom Tromey <tromey@redhat.com>
1276 * java/lang/natThread.cc (finalize_native): Remove cast.
1277 (_Jv_GetCurrentJNIEnv): Likewise.
1278 * include/jvm.h (struct natThread) <jni_env>: Declare as
1281 2007-01-16 Keith Seitz <keiths@redhat.com>
1283 * testsuite/libjava.jvmti/natevents.cc (FieldModificationCB): Use
1284 %#llx instead of %d for new_value.
1285 * testsuite/libjava.jvmti/events.out: Update expected output.
1286 * testsuite/libjava.jvmti/events.jar: Regenerate.
1288 2007-01-16 Keith Seitz <keiths@redhat.com>
1290 * gnu/classpath/jdwp/natVMVirtualMachine.cc (DEFINE_CALLBACK):
1292 (ENABLE_EVENT): New macro.
1293 (initialize): Define and enable JVMTI VM_INIT callback.
1294 (jdwpVMInitCB): New function.
1296 2007-01-16 Kyle Galloway <kgallowa@redhat.com>
1298 * jvmti.cc (_Jv_JVMTI_GetAllThreads): New function.
1299 * testsuite/libjava.jvmti/getallthreads.java: New test.
1300 * testsuite/libjava.jvmti/natgetallthreads.cc: Ditto.
1301 * testsuite/libjava.jvmti/getallthreads.out: Ditto.
1302 * testsuite/libjava.jvmti/getallthreads.h: Ditto.
1303 * testsuite/libjava.jvmti/getallthreads.jar: Ditto.
1305 2007-01-15 Keith Seitz <keiths@redhat.com>
1307 * gnu/classpath/jdwp/natVMVirtualMachine.cc (suspendThread): Use
1308 java.lang.StringBuilder instead of java.lang.StringBuffer.
1309 (resumeThread): Likewise.
1311 2007-01-15 Gary Benson <gbenson@redhat.com>
1313 * java/nio/MappedByteBuffer.java: Removed.
1314 * sources.am, Makefile.in: Rebuilt.
1316 2007-01-15 Gary Benson <gbenson@redhat.com>
1318 * java/net/URLClassLoader.java: Removed.
1319 * gnu/java/net/loader/Load_gcjlib.java: New file.
1320 * gnu/gcj/runtime/BootClassLoader.java: Ensure core
1321 URL handler is present in static executables.
1322 * sources.am, Makefile.in: Rebuilt.
1324 2007-01-14 H.J. Lu <hongjiu.lu@intel.com>
1326 * Makefile.am (libgcj_la_LDFLAGS): Add
1327 $(LIBGCJ_LD_SYMBOLIC_FUNCTIONS).
1328 (libgcj_tools_la_LDFLAGS): Likewise.
1329 (libgcj_bc_la_LDFLAGS): Likewise.
1330 * Makefile.in: Regenerated.
1332 * configure.ac: Use ACX_PROG_LD_GNU_SYMBOLIC. Set
1333 LIBGCJ_LD_SYMBOLIC_FUNCTIONS to $SYMBOLIC_LDFLAGS. Set
1334 libgcj_ld_symbolic to $SYMBOLIC_LDFLAGS if it isn't set.
1335 Substitute LIBGCJ_LD_SYMBOLIC_FUNCTIONS.
1336 * configure: Regenerated.
1337 * aclocal.m4: Likewise.
1338 * gcj/Makefile.in: Likewise.
1339 * include/Makefile.in: Likewise.
1340 * testsuite/Makefile.in: Likewise.
1342 2007-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
1344 * sysdep/sh/locks.h (read_barrier): New.
1345 (write_barrier): Likewise.
1347 2007-01-12 Andrew Haley <aph@redhat.com>
1349 * include/i386-signal.h: Rewrite to use rt_sigaction.
1351 2007-01-11 Andrew Haley <aph@redhat.com>
1353 * prims.cc (jdwpOptions) Fix deprecated cast from char[] constant
1355 * include/x86_64-signal.h (HANDLE_DIVIDE_OVERFLOW): Rewrite to fix
1358 2007-01-10 Tom Tromey <tromey@redhat.com>
1360 * gnu/gcj/xlib/*.h: New files.
1361 * gnu/awt/xlib/*.h: Likewise.
1362 * classpath/lib/gnu/gcj/xlib: New class files.
1363 * classpath/lib/gnu/awt/xlib: Likewise.
1365 2007-01-10 Tom Tromey <tromey@redhat.com>
1367 * HACKING: Various updates.
1369 2007-01-10 Tom Tromey <tromey@redhat.com>
1371 * java/lang/natDouble.cc (toString): Added parens.
1372 * gnu/gcj/io/shs.h (PROTO): Define.
1373 * link.cc (resolve_pool_entry): Added missing braces.
1375 2007-01-10 H.J. Lu <hongjiu.lu@intel.com>
1378 * sysdep/ia64/locks.h (read_barrier): New.
1379 (write_barrier): New.
1381 2007-01-10 Gary Benson <gbenson@redhat.com>
1383 * java/net/URL.java: Removed.
1384 * sources.am, Makefile.in: Rebuilt.
1386 2007-01-10 Matthias Klose <doko@debian.org>
1388 * Makefile.am (install-exec-hook): Support $(DESTDIR).
1389 * Makefile.in: Regenerated.
1391 2007-01-05 Tom Tromey <tromey@redhat.com>
1393 * testsuite/libjava.loader/loader.exp (gcj_loader_run): Find
1394 dummy.class in srcdir.
1396 2007-01-03 Tom Tromey <tromey@redhat.com>
1398 * testsuite/libjava.cni/cni.exp (gcj_cni_compile_cxx_to_o): Add -I
1401 2007-01-03 Tom Tromey <tromey@redhat.com>
1403 * testsuite/*: Added many .jar and .h files.
1404 * testsuite/libjava.special/special.exp
1405 (gcj_special_try_compiler): New proc.
1406 * testsuite/libjava.loader/loader.exp (gcj_loader_run): Don't
1407 bytecompile source. Search for .jar files.
1408 (gcj_loader_test_one): Don't look for MyLoader.java.
1409 * testsuite/libjava.jvmti/jvmti.exp (gcj_jvmti_test_one): Don't
1410 bytecompile sources or build headers.
1411 (gcj_jvmti_run): Look for .jar files.
1412 * testsuite/libjava.jni/jni.exp (gcj_jni_run): Compile .jar
1414 (gcj_jni_test_one): Don't bytecompile sources or build headers.
1415 Set classpath when invoking gij.
1416 (gcj_jni_invocation_test_one): Likewise.
1417 * testsuite/libjava.cni/cni.exp (gcj_cni_test_one): Don't build
1418 headers or bytecompile sources.
1419 (gcj_cni_run): Use .jar files, not .java files.
1420 * testsuite/libjava.lang/lang.exp: Compile .jar files.
1422 2007-01-02 Tom Tromey <tromey@redhat.com>
1424 * configure: Rebuilt.
1425 * configure.ac: Check for gjar.
1427 2007-01-02 Tom Tromey <tromey@redhat.com>
1429 * testsuite/libjava.jacks/jacks.exp: Removed.
1430 * testsuite/libjava.jacks/jacks.xfail: Removed.