1 2007-02-15 Kyle Galloway <kgallowa@redhat.com>
3 * interpret.cc (_Jv_InterpMethod::check_handler): New method.
4 * interpret-run.cc: Change the catch section to report exception
5 events and to use the new check_handler method.
6 * include/java-interp.h (_Jv_InterpMethod): Add check_handler.
7 * gnu/gcj/jvmti/ExceptionEvent.java: New file.
8 * gnu/gcj/jvmti/ExceptionEvent.h: New file.
9 * gnu/gcj/jvmti/natExceptionEvent.cc: New file.
10 * libjava/classpath/lib/gnu/gcj/jvmti/ExceptionEvent.class: New
12 * sources.am: Added ExceptionEvent.java.
13 * Makefile.am: Added natExceptionEvent.cc
14 * Makefile.in: Regenerated.
15 * include/Makefile.in: Regenerated.
16 * gcj/Makefile.in: Regenerated.
18 2007-02-15 Johannes Schmidt <jschmidt@avtrex.com>
19 David Daney <ddaney@avtrex.com>
21 * configure.ac: Create vm-tools-packages file. Add
22 gnu/gcj/tools/gc_analyze to standard.omit and vm-tools-packages.
23 Check for /proc/self/maps.
24 * Makefile.am (bin_PROGRAMS): Added gc-analyze.
25 (gc_analyze_SOURCES): New.
26 (gc_analyze_LDFLAGS): New.
27 (gc_analyze_LINK): New.
28 (gc_analyze_LDADD): New.
29 (gc_analyze_DEPENDENCIES): New.
30 (nat_source_files): Add gnu/gcj/util/natGCInfo.cc.
31 * Makefile.in: Regenerated.
32 * configure: Regenerated.
33 * include/config.h.in: Regenerated.
34 * sources.am: Regenerated.
35 * scripts/makemake.tcl: Don't include gc-analyze classes in libgcj.
36 * gnu/gcj/tools/gc_analyze/SymbolLookup.java: New.
37 * gnu/gcj/tools/gc_analyze/ObjectMap.java: New.
38 * gnu/gcj/tools/gc_analyze/MemoryMap.java: New.
39 * gnu/gcj/tools/gc_analyze/SymbolTable.java: New.
40 * gnu/gcj/tools/gc_analyze/BlockMap.java: New.
41 * gnu/gcj/tools/gc_analyze/BytePtr.java: New.
42 * gnu/gcj/tools/gc_analyze/ItemList.java: New.
43 * gnu/gcj/tools/gc_analyze/ToolPrefix.java: New.
44 * gnu/gcj/tools/gc_analyze/MemoryAnalyze.java: New.
45 * gnu/gcj/util/GCInfo.java: New.
46 * gnu/gcj/util/GCInfo.h: New.
47 * gnu/gcj/util/natGCInfo.cc: New.
48 * gnu/gcj/util/UtilPermission.java: New.
49 * gnu/gcj/util/UtilPermission.h: New.
50 * classpath/tools/gnu/gcj/tools/gc_analyze/SymbolTable.class: New.
51 * classpath/tools/gnu/gcj/tools/gc_analyze/ObjectMap$ObjectItem.class: New.
52 * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryMap$RangeComparator.class: New.
53 * classpath/tools/gnu/gcj/tools/gc_analyze/BlockMap$PtrMarks.class: New.
54 * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryMap$Range.class: New.
55 * classpath/tools/gnu/gcj/tools/gc_analyze/BlockMap.class: New.
56 * classpath/tools/gnu/gcj/tools/gc_analyze/BytePtr.class: New.
57 * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$SubstringComparator.class: New.
58 * classpath/tools/gnu/gcj/tools/gc_analyze/ItemList.class: New.
59 * classpath/tools/gnu/gcj/tools/gc_analyze/ToolPrefix.class: New.
60 * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze.class: New.
61 * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$1$Info.class: New.
62 * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$1.class: New.
63 * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$2.class: New.
64 * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$3.class: New.
65 * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$4.class: New.
66 * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$OptionParser.class: New.
67 * classpath/tools/gnu/gcj/tools/gc_analyze/BlockMap$SizeKind.class: New.
68 * classpath/tools/gnu/gcj/tools/gc_analyze/SymbolLookup.class: New.
69 * classpath/tools/gnu/gcj/tools/gc_analyze/ObjectMap.class: New.
70 * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryMap.class: New.
71 * classpath/lib/gnu/gcj/util/GCInfo.class: New.
72 * classpath/lib/gnu/gcj/util/UtilPermission.class: New.
74 2007-02-15 David Daney <ddaney@avtrex.com>
76 * gnu/java/net/PlainSocketImpl.h: Regenerate.
77 * gnu/classpath/jdwp/VMVirtualMachine.h: Same.
78 * gnu/classpath/jdwp/VMFrame.h: Same.
79 * java/net/Socket.h: Same.
80 * java/util/Collections$UnmodifiableMap$UnmodifiableEntrySet.h: Same.
82 2007-02-15 Kyle Galloway <kgallowa@redhat.com>
84 * defineclass.cc (_Jv_ClassReader::read_one_code_attribute):
85 Added LocalVariableTable attribute handling.
86 (_Jv_ClassReader::pool_Utf8_to_char_arr): New method.
87 * jvmti.cc (_Jv_JVMTI_GetLocalVariableTable): New method.
88 * include/java-interp.h: Added local_var_table and
89 local_var_table_len fields to _Jv_InterpMethod.
90 (_Jv_InterpMethod::get_local_var_table): New method.
91 * testsuite/libjava.jvmti/interp/getlocalvartable.java: New test.
92 * testsuite/libjava.jvmti/interp/getlocalvartable.jar: New test.
93 * testsuite/libjava.jvmti/interp/getlocalvartable.out: Output
95 * testsuite/libjava.jvmti/interp/getlocalvartable.h: New test.
96 * testsuite/libjava.jvmti/interp/natgetlocalvartable.cc: New test.
98 2007-02-15 Kyle Galloway <kgallowa@redhat.com>
100 * gnu/classpath/jdwp/natVMVirtualMachine (getFrames): Implement.
102 2007-02-13 Keith Seitz <keiths@redhat.com>
104 * gnu/classpath/jdwp/natVMVirtualMachine.cc
105 (jdwpBreakpointCB): New function.
106 (jdwpVMInitCB): Define and enable the breakpoint
109 2007-02-13 Andrew Haley <aph@redhat.com>
111 * testsuite/libjava.lang/Divide_2.out
112 * testsuite/libjava.lang/Divide_2.java: New test.
114 2007-02-12 Keith Seitz <keiths@redhat.com>
116 * jvmti.cc (_Jv_JVMTI_GetStackTrace): Remove cast
117 from jthread to Thread *; it is no longer needed.
118 (_Jv_JVMTI_GetFrameCount): Likewise.
119 Fix small formatting typo.
121 2007-02-12 Tom Tromey <tromey@redhat.com>
123 * sources.am, Makefile.in: Rebuilt.
124 * java/lang/Socket.java: Removed override.
125 * java/lang/DatagramSocket.java: Removed override.
126 * gnu/java/net/PlainSocketImpl.java (localSocketAddress): New
128 (getLocalAddress): New method.
129 * gnu/java/net/PlainDatagramSocketImpl.java
130 (PlainDatagramSocketImpl): Throws IOException.
131 * gnu/java/net/natPlainSocketImplPosix.cc (write): Remove
135 2007-02-09 Jakub Jelinek <jakub@redhat.com>
137 * java/util/VMTimeZone.java: Rewrite to handle both the old
138 'TZif\0' format and the new one.
140 2007-02-10 Andrew Haley <aph@redhat.com>
143 * gnu/classpath/natVMStackWalker.cc (GET_CALLING_CLASS): New.
144 (getCallingClass): Call GET_CALLING_CLASS.
145 (getCallingClassLoader): Likewise.
147 2007-02-10 Mohan Embar <gnustuff@thisiscool.com>
149 * configure: Rebuilt.
150 * configure.ac (GCJH): Reverted second part of patch of 2006-12-20.
152 2007-02-10 Mohan Embar <gnustuff@thisiscool.com>
154 * Makefile.in: Rebuilt.
155 * Makefile.am (BUILD_ECJ1): Unify the command for renaming ecjx to
156 the host's ecj1 executable.
158 2007-02-09 Richard Henderson <rth@redhat.com>
160 * sysdep/alpha/locks.h (read_barrier): New.
162 2007-02-09 Keith Seitz <keiths@redhat.com>
164 * gnu/classpath/jdwp/VMVirtualMachine.java
165 (_stepping_threads): New member.
166 * classpath/lib/gnu/classpath/jdwp/VMVirtualMachine.class:
168 * gnu/classpath/jdwp/VMVirtualMachine.h:
170 * gnu/claspath/jdwp/natVMVirtualMachine.cc
171 (get_request_step_filter): New function.
172 (DISABLE_EVENT): New macro.
173 (initialize): Initialize _stepping_threads.
174 (registerEvent): Implement EVENT_SINGLE_STEP.
175 (unregisterEvent): Likewise.
177 2007-02-08 Keith Seitz <keiths@redhat.com>
179 * sources.am: Regenerate.
180 * Makefile.in: Regenerate.
181 * testsuite/Makefile.in: Regenerate.
182 * gcj/Makefile.in: Regenerate.
183 * include/Makefile.in: Regenerate.
185 * classpath/lib/javax/management/MBeanServerFactory.class:
188 2007-02-08 Kyle Galloway <kgallowa@redhat.com>
190 * classpath/gnu/classpath/jdwp/processor/
191 StackFrameCommandSet.java (executeGetValues): Pass jlong instead
193 (executeSetValues): Ditto.
194 (executeThisObject): Ditto.
195 * classpath/gnu/classpath/jdwp/processor/
196 StackFrameCommandSet.class: Rebuilt.
197 * classpath/lib/gnu/classpath/jdwp/VMVirtualMachine.class:
199 * classpath/lib/gnu/classpath/jdwp/VMFrame.class: Rebuilt.
200 * classpath/lib/gnu/classpath/jdwp/exception/
201 InvalidFrameException.java: New file.
202 * gnu/classpath/jdwp/VMFrame.java: Added field for thread of
204 (Constructor): New method.
205 * gnu/classpath/jdwp/VMFrame.h: Regenerated.
206 * gnu/classpath/jdwp/VMVirtualMachine.java
207 (getFrame): Changed ByteBuffer to jlong.
208 * gnu/classpath/jdwp/natVMVirtualMachine.cc
209 (getFrame): Implement.
210 * gnu/classpath/jdwp/VMVirtualMachine.h: Regenerated.
212 2007-02-08 Kyle Galloway <kgallowa@redhat.com>
214 * include/java-interp.h (_Jv_InterpFrame): obj_ptr field added
215 to hold "this" pointer for frame.
216 (_Jv_InterpFrame::get_this_ptr): New method.
217 * interpret-run.cc: Copy the "this" pointer into obj_ptr.
219 2007-02-07 Keith Seitz <keiths@redhat.com>
221 * include/java-interp.h (_Jv_Frame::depth):
223 * jvmti.cc (_Jv_JVMTI_GetFrameCount): Use _Jv_Frame::depth.
225 2007-02-07 Kyle Galloway <kgallowa@redhat.com>
227 * jvmti.cc (CHECK_FOR_NATIVE_METHOD): New macro.
228 (_Jv_JVMTI_GetMaxLocals): New method.
229 * include/java-interp.h
230 (_Jv_InterpMethod::get_max_locals): New method.
232 2007-02-01 Marco Trudel <mtrudel@gmx.ch>
234 * jni.cc (_Jv_JNI_DeleteWeakGlobalRef): Check for NULL objects.
236 2007-02-07 Tom Tromey <tromey@redhat.com>
238 * testsuite/libjava.jni/init.c: New file.
239 * testsuite/libjava.jni/init.java: New file.
240 * testsuite/libjava.jni/init.out: New file.
241 * testsuite/libjava.jni/init.jar: New file.
242 * testsuite/libjava.jni/init.h: New file.
243 * testsuite/libjava.jni/init$NativeClass.h: New file.
245 2007-02-07 Jakub Jelinek <jakub@redhat.com>
248 * configure: Regenerate.
250 2007-02-06 Andrew Haley <aph@redhat.com>
252 * scripts/makemake.tcl (emit_bc_rule): Set the source filename.
253 * sources.am: Rebuild.
255 2007-02-05 Keith Seitz <keiths@redhat.com>
257 * jvmti.cc (_envListLock): Change type to
258 ReentrantReadWriteLock.
259 (_Jv_JVMTI_DisposeEnvironment): Switch to read/write
261 (check_enabled_event): Likewise.
262 (_Jv_GetJVMTIEnv): Likewise.
263 (_Jv_JVMTI_Init): Likewise.
264 (_Jv_JVMTI_PostEvent): Likewise.
266 2007-02-05 Keith Seitz <keiths@redhat.com>
268 * gnu/classpath/jdwp/natVMVirtualMachine.cc
269 (registerEvent): Implement EVENT_BREAKPOINT.
270 (unregisterEvent): Likewise.
271 (get_request_location): New function.
273 2007-02-05 Matthias Klose <doko@debian.org>
275 testsuite/Makefile.am (compile-tests): Fix typo.
276 testsuite/Makefile.in: Regenerate.
278 2007-02-02 Kyle Galloway <kgallowa@redhat.com>
280 * gnu/classpath/jdwp/natVMVirtualMachine.cc (getFrameCount):
283 2007-02-02 Jakub Jelinek <jakub@redhat.com>
285 * configure.ac (libjava_cv_anon_version_script): New test.
286 (ANONVERSCRIPT): New AM_CONDITIONAL.
287 * configure: Rebuilt.
288 * Makefile.am (extra_ldflags_libjava): Link with -Wl,--version-script
290 * Makefile.in: Rebuilt.
291 (libgcj_la_DEPENDENCIES): Depend on libgcj.ver.
292 * libgcj.ver: New file.
294 2007-02-01 David Daney <ddaney@avtrex.com>
296 * scripts/makemake.tcl: Replace gnu/xml build with build of all
298 * sources.am: Regenerate.
299 * Makefile.in: Regenerate.
301 2007-02-01 Tom Tromey <tromey@redhat.com>
303 * java/lang/ClassLoader.java (getResources): No longer final.
305 2007-02-01 Tom Tromey <tromey@redhat.com>
307 * java/util/logging/LogManager.java (loggers): Genericized.
309 (findAncestor): Likewise.
310 (getLogger): Likewise.
311 (getLoggerNames): Genericized.
313 (getLevelProperty): Likewise.
314 * java/lang/reflect/Method.java (getDeclaringClass): Genericized.
315 * java/lang/reflect/Constructor.java (getParameterTypes):
317 (getExceptionTypes): Likewise.
318 (newInstance): Likewise.
319 * java/lang/reflect/Array.java (newInstance): Genericized.
320 * java/lang/Object.java (getClass): Genericized.
321 * java/nio/charset/spi/CharsetProvider.java (charsets):
323 * java/text/Collator.java: Implement Comparable<Object>.
325 2007-02-01 Tom Tromey <tromey@redhat.com>
327 * java/util/Calendar.java: Implement Comparable<Calendar>. Update
329 (clear): Call complete.
330 (setTimeZone): Call computeTime, computeFields.
331 (compareTo): New method.
332 * java/nio/charset/Charset.java: Implement Comparable<Charset>.
333 (availableCharsets): Genericized.
335 (compareTo): Changed argument type.
336 * java/lang/ClassLoader.java (loadClass): Genericized.
337 (findClass): Likewise.
338 (defineClass): Likewise.
339 (resolveClass): Likewise.
340 (findSystemClass): Likewise.
341 (setSigners): Likewise.
342 (findLoadedClass): Likewise.
343 (getResources): Likewise.
344 (findResources): Likewise.
345 (getSystemResources): Likewise.
346 (checkInitialized): New method.
347 * java/lang/Class.java (getCanonicalName): New method.
349 2007-01-31 Keith Seitz <keiths@redhat.com>
351 * include/jvmti-int.h (JVMTI): Declare member "enabled".
352 * jvmti.cc (JVMTI): Add member "enabled".
353 (_Jv_GetJVMTIEnv): Mark JVMTI enabled.
354 * interpret.cc (_Jv_InterpMethod::ncode): Use JVMTI::enabled
355 instead of gnu::classpath::jdwp::Jdwp::isDebugging.
356 (_Jv_CompileMethod): If JVMTI is enabled, use run_debug
357 instead of run to compile the method.
359 * interpret-run.cc [DEBUG] (NEXT_INSN): Add JVMTI single step
362 2007-01-31 Andreas Tobler <a.tobler@schweiz.org>
364 * testsuite/libjava.jvmti/jvmti-interp.exp (gij_jvmti_test_one): Add
365 -shared-libgcc to the cxxflaglist for Darwin.
367 2007-01-31 Tom Tromey <tromey@redhat.com>
369 * scripts.am, Makefile.in: Rebuilt.
370 * scripts/makemake.tcl (gnu/javax/swing/text/html/parser): Build
372 (emit_ordinary_rule): New proc.
374 2007-01-31 Keith Seitz <keiths@redhat.com>
376 * testsuite/libjava.jvmti/getmethodname.h: New file.
377 * testsuite/libjava.jvmti/getmethodname.jar: New file.
379 2007-01-31 Andrew Haley <aph@redhat.com>
381 * prims.cc (_Jv_Abort): fflush (stderr).
382 * java/lang/natClassLoader.cc (_Jv_CheckABIVersion): Abort.
384 2007-01-31 Tom Tromey <tromey@redhat.com>
386 * configure, Makefile.in: Rebuilt.
387 * configure.ac (JAR): Check for -@ feature.
388 * Makefile.am (libgcj-$(gcc_version).jar): Use find -prune.
390 2007-01-31 Tom Tromey <tromey@redhat.com>
393 * configure, include/config.h.in: Rebuilt.
394 * configure.ac: Check for magic_t in magic.h.
395 * java/net/natVMURLConnection.cc: Use HAVE_MAGIC_T.
397 2007-01-30 Tom Tromey <tromey@redhat.com>
399 * Makefile.in: Rebuilt.
400 * Makefile.am (libgcj-$(gcc_version).jar): Rewrote.
402 2007-01-30 Andreas Tobler <a.tobler@schweiz.org>
404 * testsuite/libjava.jvmti/natevents.cc (FieldModificationCB): Use a
405 cast to print it right.
407 2007-01-29 Kaloian Doganov <kaloian@doganov.org>
410 * gnu/gcj/convert/BytesToCharsetAdaptor.java (read): Fix call to
413 2007-01-29 Kyle Galloway <kgallowa@redhat.com>
415 * include/java-interp.h: Added _Jv_Frame class and its two
416 subclasses _Jv_InterpFrame and _Jv_NativeFrame. Also moved
417 _Jv_FrameType from java-stack.h.
418 * include/java-stack.h: Removed _Jv_FrameType.
419 * java/lang/Thread.java: Added frame member to hold new
420 composite frame stack.
421 * java/lang/Thread.h: Regenerated.
422 * java/lang/Thread.class: Rebuilt.
423 * jni.cc (_Jv_JNIMethod::call): Push a frame onto the stack when
424 calling a JNI method.
425 * jvmti.cc (_Jv_JVMTI_GetStackTrace): New Method.
426 (_Jv_JVMTI_GetFrameCount): New method.
427 * stacktrace.cc (UnwindTraceFn): Modified to use new _Jv_Frame
429 * testsuite/libjava.jvmti/interp/getstacktrace.jar: New test.
430 * testsuite/libjava.jvmti/interp/natgetstacktrace.cc: New test.
431 * testsuite/libjava.jvmti/interp/getstacktrace.h: New test.
432 * testsuite/libjava.jvmti/interp/getstacktrace.jar: New test.
433 * testsuite/libjava.jvmti/interp/getstacktrace.out: Output file
436 2007-01-29 Tom Tromey <tromey@redhat.com>
438 * interpret.cc (run_debug): Remove comment.
445 (run_normal_debug): Likewise.
446 (run_synch_object_debug): Likewise.
447 (run_class_debug): Likewise.
448 (run_synch_class_debug): Likewise.
453 (NULLARRAYCHECK): Likewise.
454 (ARRAYBOUNDSCHECK): Likewise.
455 * interpret-run.cc (insn_target) <breakpoint>: Tidy.
457 2007-01-29 Tom Tromey <tromey@redhat.com>
459 * configure, Makefile.in: Rebuilt.
460 * Makefile.am (bin_SCRIPTS): Never install scripts/jar.
461 * configure.ac (BASH_JAR): Removed conditional.
462 (JAR): Prefer the jar found by AC_CHECK_PROGS.
464 2007-01-29 Tom Tromey <tromey@redhat.com>
466 * Makefile.in: Rebuilt.
467 * Makefile.am (interpret.lo): New target. Add -fwrap to
470 2007-01-29 Keith Seitz <keiths@redhat.com>
472 * include/jvmti_md.h (_CLASSPATH_VM_JVMTI_TYPES_DEFINED):
474 [__GCJ_JNI_IMPL__]: Define our own JVMTI types when building
475 gcj. All jvmti object types now are defined to be their
476 corresponding java classes.
477 * jvmti.cc (_Jv_JVMTI_SuspendThread): Remove casting from
479 (_Jv_JVMTI_ResumeThread): Likewise.
480 (_Jv_JVMTI_InterruptThread): Likewise.
481 (_Jv_JVMTI_SetEventNotificationMode): Likewise.
482 * gnu/classpath/jdwp/natVMVirtualMachine.cc
483 (jdwpClassPrepareCB): Likewise.
484 (jdwpThreadEndCB): Likewise.
485 (jdwpThreadStartCB): Likewise.
486 (jdwpVMInitCB): Likewise.
488 2007-01-28 Michele Sandri <gpointorama@gmail.com>
490 * gnu/java/nio/channels/natFileChannelWin32.cc
492 (unlock): Implemented.
494 2007-01-27 Andreas Tobler <a.tobler@schweiz.org>
497 * configure.host: Add forgottten sysdep_dir to sparc. Add a flag to
498 libgcj_flags to undefine 'sun' at compile time.
499 * sysdep/sparc/locks.h (read_barrier): New functions for 32 and 64 bit
501 (write_barrier): Likewise.
503 2007-01-27 Keith Seitz <keiths@redhat.com>
505 * gnu/classpath/jdwp/natVMVirtualMachine.cc
506 (getAllClassMethods): Move error handling to ...
507 (throw_jvmti_error): ... here.
508 (jdwpClassPrepareCB): New function.
509 (jdwpThreadEndCB): New function.
510 (jdwpThreadStartCB): New function.
511 (jdwpVMDeathCB): New function.
512 (jdwpVMInitCB): Define and enable callbacks for
513 ClassPrepare, ThreadEnd, ThreadStart, and VMDeath.
515 2007-01-27 Jakub Jelinek <jakub@redhat.com>
517 * Makefile.am (generic_header_files): Add $(inner_nat_headers).
518 * testsuite/Makefile.am (check-dejaGNU): Depend on compile-tests.
519 (MYGCJH): New variable.
520 (compile-tests): New goal.
521 * Makefile.in: Rebuilt.
522 * testsuite/Makefile.in: Rebuilt.
524 2007-01-26 Andrew Haley <aph@redhat.com>
526 * java/lang/natClass.cc (initializeClass): Re-throw
528 * java/lang/natVMClassLoader.cc (loadClass): checkPackageAccess.
529 * java/lang/ClassLoader.java: (loadClass): Likewise.
531 2007-01-26 Tom Tromey <tromey@redhat.com>
535 2007-01-25 Tom Tromey <tromey@redhat.com>
538 * gnu/gcj/convert/Convert.java (main): Correctly handle missing
539 input or output encodings. Removed unused local variables.
541 2007-01-25 Keith Seitz <keiths@redhat.com>
543 * include/jvmti-int.h (_Jv_GetJDWP_JVMTIEnv): Declare.
544 * gnu/classpath/jdwp/natVMVirtualMachine.cc
545 (_Jv_GetJDWP_JVMTIEnv): New function.
546 * gnu/classpath/jdwp/natVMMethod.cc (getName): Implement.
547 (getSignature): Implement.
548 (getModifiers): Implement.
550 2007-01-25 Andrew Haley <aph@redhat.com>
552 * configure, Makefile.in, include/config.h.in: Rebuilt.
553 * Makefile.am (libgcj_la_LIBADD): Removed $(LIBMAGIC).
554 * configure.ac: Don't check for libmagic.
555 * java/net/natVMURLConnection.cc (p_magic_open, p_magic_load,
556 p_magic_close, p_magic_buffer): New globals.
557 (init): Look up 'magic' functions.
558 (guessContentTypeFromBuffer): Updated.
560 2007-01-25 Keith Seitz <keiths@redhat.com>
562 * jvmti.cc (_Jv_JVMTI_GetMethodName): New function.
563 (_Jv_JVMTI_Interface): Define GetMethodName.
564 * testsuite/libjava.jvmti/getmethodname.java: New file.
565 * testsuite/libjava.jvmti/natgetmethodname.cc: New file.
566 * testsuite/libjava.jvmti/getmethodname.out: New file.
568 2007-01-24 Kyle Galloway <kgallowa@redhat.com>
570 * libjava/testsuite/libjava.jvmti/jvmti-interp.exp: New file.
571 * libjava/testsuite/libjava.jvmti/interp: New folder.
572 * libjava/testsuite/lib/libjava.exp (exec_gij): New Method.
574 2007-01-24 Keith Seitz <keiths@redhat.com>
576 * link.cc (_Jv_Linker::wait_for_state): Add JVMTI
577 CLASS_PREPARE notification.
579 2007-01-24 Keith Seitz <keiths@redhat.com>
581 * interpret.cc: Include gnu/gcj/jvmti/Breakpoint.h,
582 gnu/gcj/jvmti/BreakpointManager.h, jvmti.h, and jvmti-int.h
583 * interpret-run.cc: Implement insn_breakpoint.
585 2007-01-24 Keith Seitz <keiths@redhat.com>
587 * prims.cc (_Jv_RunMain): Send JVMTI event notifications
588 for VM_INIT and VM_DEATH instead of the JDWP notifications.
590 2007-01-24 Keith Seitz <keiths@redhat.com>
592 * gnu/classpath/jdwp/natVMVirtualMachine.cc
593 (getAllClassMethods): Implement.
595 2007-01-24 Andrew Haley <aph@redhat.com>
597 * gnu/classpath/natVMStackWalker.cc: Call InitClass everywhere.
598 (getClassContext) Add a barrier to prevent GetStackWalkerStack()
599 from being sibcalled.
601 2007-01-24 Andrew Haley <aph@redhat.com>
603 * scripts/makemake.tcl (emit_bc_rule): Set the source filename.
604 * sources.am: Rebuild.
606 2007-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
608 * exception.cc (parse_lsda_header, PERSONALITY_FUNCTION): Replaced
609 _Unwind_Word with _uleb128_t and _Unwind_SWord with _sleb128_t.
611 2007-01-23 H.J. Lu <hongjiu.lu@intel.com>
614 * Makefile.am (ecjx_DEPENDENCIES): Add libgcj_bc.la if needed.
615 * Makefile.in: Regenerated.
617 2007-01-22 Keith Seitz <keiths@redhat.com>
619 * gnu/classpath/jdwp/natVMVirtualMachine.cc
620 (getClassMethod): Implement.
622 2007-01-22 Keith Seitz <keiths@redhat.com>
624 * java/lang/Class.h (_Jv_GetClassStatus): Declare.
625 * java/lang/natClass.cc (_Jv_GetClassStatus): New function.
626 * jvmti.cc (_Jv_JVMTI_GetClassStatus): New function.
627 (_Jv_JVMTI_Interface): Define GetClassStatus.
629 2007-01-22 Tom Tromey <tromey@redhat.com>
631 * configure: Rebuilt.
632 * configure.ac (GCJ): Reverted patch of 2006-12-20.
634 2007-01-22 Tom Tromey <tromey@redhat.com>
637 * testsuite/libjava.jni/pr29812.java: New file.
638 * testsuite/libjava.jni/pr29812_injar.java: New file.
639 * testsuite/libjava.jni/pr29812_injar.jar: New file.
640 * testsuite/libjava.jni/pr29812.out: New file.
641 * testsuite/libjava.jni/pr29812_injar.c: New file.
642 * testsuite/libjava.jni/pr29812_injar.h: New file.
643 * testsuite/libjava.jni/pr29812.jar: New file.
644 * testsuite/libjava.jni/pr29812.c: New file.
645 * testsuite/libjava.jni/pr29812.h: New file.
646 * testsuite/libjava.jni/jni.exp (gcj_jni_get_cxxflags_invocation):
648 (gcj_jni_invocation_test_one): Use it.
649 (gcj_jni_pr29812): New proc.
650 (gcj_jni_run): Use it.
651 * java/lang/natRuntime.cc (_load): Push a new system frame before
653 * include/jvm.h (_Jv_JNI_PopSystemFrame): Declare.
654 (_Jv_GetJNIEnvNewFrameWithLoader): Likewise.
655 * jni.cc (struct _Jv_JNI_LocalFrame) <marker>: Now unsigned char.
656 <allocated_p>: Now bool.
658 (_Jv_JNI_EnsureLocalCapacity): Updated.
659 (_Jv_JNI_NewLocalRef): Likewise.
660 (_Jv_JNI_NewLocalRef): Likewise.
661 (_Jv_JNI_PopLocalFrame): Likewise.
662 (_Jv_JNI_FindClass): Likewise.
663 (_Jv_GetJNIEnvNewFrame): Likewise.
664 (_Jv_JNI_AttachCurrentThread): Likewise.
665 (_Jv_GetJNIEnvNewFrameWithLoader): New function.
666 (_Jv_GetJNIEnvNewFrame): Use it.
667 * include/jni_md.h (_CLASSPATH_JNIENV_CONTENTS): Removed 'klass'.
669 2007-01-22 Tom Tromey <tromey@redhat.com>
671 * libtool-version: Bump current to 9.
673 2007-01-22 Andrew Haley <aph@redhat.com>
675 * sysdep/alpha/locks.h (write_barrier): New.
677 2007-01-21 Matthias Klose <doko@debian.org>
679 * Makefile.am (install-exec-hook): Use transformed name.
680 * Makefile.in: Regenerate.
682 2007-01-19 Keith Seitz <keiths@redhat.com>
684 * gnu/classpath/jdwp/natVMVirtualMachine.cc: Mark unused parameters
685 in methods and reformat.
687 * gnu/classpath/jdwp/natVMFrame.cc: Mark unused parameters with
690 2007-01-18 Keith Seitz <keiths@redhat.com>
692 From Macro Trudel <mtrudel@gmx.ch>:
693 * gnu/classpath/jdwp/natVMVirtualMachine.cc (jdwpVMInitCB):
696 2007-01-18 Marco Trudel <mtrudel@gmx.ch>
698 * jni.cc (_Jv_JNI_FindClass): Initialize class.
699 * testsuite/libjava.jni/findclass2.jar: New file.
700 * testsuite/libjava.jni/findclass2.h: New file.
701 * testsuite/libjava.jni/findclass2.java: New file
702 * testsuite/libjava.jni/findclass2.c: New file.
703 * testsuite/libjava.jni/findclass2.out: New file.
705 2007-01-18 Tom Tromey <tromey@redhat.com>
707 * configure: Rebuilt.
708 * configure.ac: Use multi_basedir instead of libgcj_basedir.
710 2007-01-18 Gary Benson <gbenson@redhat.com>
712 * gnu/java/nio/natVMPipeEcos.cc:
713 Renamed from gnu/java/nio/natPipeImplEcos.cc.
714 * gnu/java/nio/natVMPipePosix.cc:
715 Renamed from gnu/java/nio/natPipeImplPosix.cc.
716 * gnu/java/nio/natVMPipeWin32.cc:
717 Renamed from gnu/java/nio/natPipeImplWin32.cc.
718 * gnu/java/nio/natVMSelectorEcos.cc:
719 Renamed from gnu/java/nio/natSelectorImplEcos.cc.
720 * gnu/java/nio/natVMSelectorPosix.cc:
721 Renamed from gnu/java/nio/natSelectorImplPosix.cc.
722 * gnu/java/nio/natVMSelectorWin32.cc:
723 Renamed from gnu/java/nio/natSelectorImplWin32.cc.
724 * java/io/natVMObjectInputStream.cc:
725 Renamed from java/io/natObjectInputStream.cc.
726 * java/lang/natVMDouble.cc:
727 Renamed from java/lang/natDouble.cc.
728 * java/lang/natVMFloat.cc:
729 Renamed from java/lang/natFloat.cc.
730 * Makefile.am, configure.ac: Reflect the above.
731 * Makefile.in, configure: Rebuilt.
733 2007-01-17 Andrew Haley <aph@redhat.com>
735 * Makefile.in: Rebuilt.
736 * Makefile.am (ecjx_LDFLAGS): Pass -fbootclasspath.
738 2007-01-17 Keith Seitz <keiths@redhat.com>
740 * java/lang/natThread.cc (finish_): Add JVMTI ThreadEnd notification.
741 (_Jv_NotifyThreadStart): Add JVMTI ThreadStart notification.
743 2007-01-16 Jack Howarth <howarth@bromo.med.uc.edu>
745 * configure.ac: Use multi.m4 from aclocal rather than custom
746 code. Use multi_basedir instead libgcj_basedir. Test for
747 /proc/self/exe when not cross-compiling.
748 * aclocal.m4: Regenerate.
749 * configure: Regenerate.
750 * Makefile.in: Regenerate.
752 2007-01-17 Gary Benson <gbenson@redhat.com>
754 * java/nio/natVMDirectByteBufferImpl.cc:
755 Renamed from java/nio/natDirectByteBufferImpl.cc.
756 * Makefile.am: Reflect the above.
757 * Makefile.in: Rebuilt.
759 2007-01-17 Marco Trudel <mtrudel@gmx.ch>
761 * jvmti.cc (_Jv_JVMTI_GetAllThreads): Now static. Use JNICALL.
762 Fixed indentation. Removed unused variable.
764 2007-01-16 Tom Tromey <tromey@redhat.com>
766 * java/lang/natThread.cc (finalize_native): Remove cast.
767 (_Jv_GetCurrentJNIEnv): Likewise.
768 * include/jvm.h (struct natThread) <jni_env>: Declare as
771 2007-01-16 Keith Seitz <keiths@redhat.com>
773 * testsuite/libjava.jvmti/natevents.cc (FieldModificationCB): Use
774 %#llx instead of %d for new_value.
775 * testsuite/libjava.jvmti/events.out: Update expected output.
776 * testsuite/libjava.jvmti/events.jar: Regenerate.
778 2007-01-16 Keith Seitz <keiths@redhat.com>
780 * gnu/classpath/jdwp/natVMVirtualMachine.cc (DEFINE_CALLBACK):
782 (ENABLE_EVENT): New macro.
783 (initialize): Define and enable JVMTI VM_INIT callback.
784 (jdwpVMInitCB): New function.
786 2007-01-16 Kyle Galloway <kgallowa@redhat.com>
788 * jvmti.cc (_Jv_JVMTI_GetAllThreads): New function.
789 * testsuite/libjava.jvmti/getallthreads.java: New test.
790 * testsuite/libjava.jvmti/natgetallthreads.cc: Ditto.
791 * testsuite/libjava.jvmti/getallthreads.out: Ditto.
792 * testsuite/libjava.jvmti/getallthreads.h: Ditto.
793 * testsuite/libjava.jvmti/getallthreads.jar: Ditto.
795 2007-01-15 Keith Seitz <keiths@redhat.com>
797 * gnu/classpath/jdwp/natVMVirtualMachine.cc (suspendThread): Use
798 java.lang.StringBuilder instead of java.lang.StringBuffer.
799 (resumeThread): Likewise.
801 2007-01-15 Gary Benson <gbenson@redhat.com>
803 * java/nio/MappedByteBuffer.java: Removed.
804 * sources.am, Makefile.in: Rebuilt.
806 2007-01-15 Gary Benson <gbenson@redhat.com>
808 * java/net/URLClassLoader.java: Removed.
809 * gnu/java/net/loader/Load_gcjlib.java: New file.
810 * gnu/gcj/runtime/BootClassLoader.java: Ensure core
811 URL handler is present in static executables.
812 * sources.am, Makefile.in: Rebuilt.
814 2007-01-14 H.J. Lu <hongjiu.lu@intel.com>
816 * Makefile.am (libgcj_la_LDFLAGS): Add
817 $(LIBGCJ_LD_SYMBOLIC_FUNCTIONS).
818 (libgcj_tools_la_LDFLAGS): Likewise.
819 (libgcj_bc_la_LDFLAGS): Likewise.
820 * Makefile.in: Regenerated.
822 * configure.ac: Use ACX_PROG_LD_GNU_SYMBOLIC. Set
823 LIBGCJ_LD_SYMBOLIC_FUNCTIONS to $SYMBOLIC_LDFLAGS. Set
824 libgcj_ld_symbolic to $SYMBOLIC_LDFLAGS if it isn't set.
825 Substitute LIBGCJ_LD_SYMBOLIC_FUNCTIONS.
826 * configure: Regenerated.
827 * aclocal.m4: Likewise.
828 * gcj/Makefile.in: Likewise.
829 * include/Makefile.in: Likewise.
830 * testsuite/Makefile.in: Likewise.
832 2007-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
834 * sysdep/sh/locks.h (read_barrier): New.
835 (write_barrier): Likewise.
837 2007-01-12 Andrew Haley <aph@redhat.com>
839 * include/i386-signal.h: Rewrite to use rt_sigaction.
841 2007-01-11 Andrew Haley <aph@redhat.com>
843 * prims.cc (jdwpOptions) Fix deprecated cast from char[] constant
845 * include/x86_64-signal.h (HANDLE_DIVIDE_OVERFLOW): Rewrite to fix
848 2007-01-10 Tom Tromey <tromey@redhat.com>
850 * gnu/gcj/xlib/*.h: New files.
851 * gnu/awt/xlib/*.h: Likewise.
852 * classpath/lib/gnu/gcj/xlib: New class files.
853 * classpath/lib/gnu/awt/xlib: Likewise.
855 2007-01-10 Tom Tromey <tromey@redhat.com>
857 * HACKING: Various updates.
859 2007-01-10 Tom Tromey <tromey@redhat.com>
861 * java/lang/natDouble.cc (toString): Added parens.
862 * gnu/gcj/io/shs.h (PROTO): Define.
863 * link.cc (resolve_pool_entry): Added missing braces.
865 2007-01-10 H.J. Lu <hongjiu.lu@intel.com>
868 * sysdep/ia64/locks.h (read_barrier): New.
869 (write_barrier): New.
871 2007-01-10 Gary Benson <gbenson@redhat.com>
873 * java/net/URL.java: Removed.
874 * sources.am, Makefile.in: Rebuilt.
876 2007-01-10 Matthias Klose <doko@debian.org>
878 * Makefile.am (install-exec-hook): Support $(DESTDIR).
879 * Makefile.in: Regenerated.
881 2007-01-05 Tom Tromey <tromey@redhat.com>
883 * testsuite/libjava.loader/loader.exp (gcj_loader_run): Find
884 dummy.class in srcdir.
886 2007-01-03 Tom Tromey <tromey@redhat.com>
888 * testsuite/libjava.cni/cni.exp (gcj_cni_compile_cxx_to_o): Add -I
891 2007-01-03 Tom Tromey <tromey@redhat.com>
893 * testsuite/*: Added many .jar and .h files.
894 * testsuite/libjava.special/special.exp
895 (gcj_special_try_compiler): New proc.
896 * testsuite/libjava.loader/loader.exp (gcj_loader_run): Don't
897 bytecompile source. Search for .jar files.
898 (gcj_loader_test_one): Don't look for MyLoader.java.
899 * testsuite/libjava.jvmti/jvmti.exp (gcj_jvmti_test_one): Don't
900 bytecompile sources or build headers.
901 (gcj_jvmti_run): Look for .jar files.
902 * testsuite/libjava.jni/jni.exp (gcj_jni_run): Compile .jar
904 (gcj_jni_test_one): Don't bytecompile sources or build headers.
905 Set classpath when invoking gij.
906 (gcj_jni_invocation_test_one): Likewise.
907 * testsuite/libjava.cni/cni.exp (gcj_cni_test_one): Don't build
908 headers or bytecompile sources.
909 (gcj_cni_run): Use .jar files, not .java files.
910 * testsuite/libjava.lang/lang.exp: Compile .jar files.
912 2007-01-02 Tom Tromey <tromey@redhat.com>
914 * configure: Rebuilt.
915 * configure.ac: Check for gjar.
917 2007-01-02 Tom Tromey <tromey@redhat.com>
919 * testsuite/libjava.jacks/jacks.exp: Removed.
920 * testsuite/libjava.jacks/jacks.xfail: Removed.