1 2007-01-31 Keith Seitz <keiths@redhat.com>
3 * testsuite/libjava.jvmti/getmethodname.h: New file.
4 * testsuite/libjava.jvmti/getmethodname.jar: New file.
6 2007-01-31 Andrew Haley <aph@redhat.com>
8 * prims.cc (_Jv_Abort): fflush (stderr).
9 * java/lang/natClassLoader.cc (_Jv_CheckABIVersion): Abort.
11 2007-01-31 Tom Tromey <tromey@redhat.com>
13 * configure, Makefile.in: Rebuilt.
14 * configure.ac (JAR): Check for -@ feature.
15 * Makefile.am (libgcj-$(gcc_version).jar): Use find -prune.
17 2007-01-31 Tom Tromey <tromey@redhat.com>
20 * configure, include/config.h.in: Rebuilt.
21 * configure.ac: Check for magic_t in magic.h.
22 * java/net/natVMURLConnection.cc: Use HAVE_MAGIC_T.
24 2007-01-30 Tom Tromey <tromey@redhat.com>
26 * Makefile.in: Rebuilt.
27 * Makefile.am (libgcj-$(gcc_version).jar): Rewrote.
29 2007-01-30 Andreas Tobler <a.tobler@schweiz.org>
31 * testsuite/libjava.jvmti/natevents.cc (FieldModificationCB): Use a
32 cast to print it right.
34 2007-01-29 Kaloian Doganov <kaloian@doganov.org>
37 * gnu/gcj/convert/BytesToCharsetAdaptor.java (read): Fix call to
40 2007-01-29 Kyle Galloway <kgallowa@redhat.com>
42 * include/java-interp.h: Added _Jv_Frame class and its two
43 subclasses _Jv_InterpFrame and _Jv_NativeFrame. Also moved
44 _Jv_FrameType from java-stack.h.
45 * include/java-stack.h: Removed _Jv_FrameType.
46 * java/lang/Thread.java: Added frame member to hold new
47 composite frame stack.
48 * java/lang/Thread.h: Regenerated.
49 * java/lang/Thread.class: Rebuilt.
50 * jni.cc (_Jv_JNIMethod::call): Push a frame onto the stack when
52 * jvmti.cc (_Jv_JVMTI_GetStackTrace): New Method.
53 (_Jv_JVMTI_GetFrameCount): New method.
54 * stacktrace.cc (UnwindTraceFn): Modified to use new _Jv_Frame
56 * testsuite/libjava.jvmti/interp/getstacktrace.jar: New test.
57 * testsuite/libjava.jvmti/interp/natgetstacktrace.cc: New test.
58 * testsuite/libjava.jvmti/interp/getstacktrace.h: New test.
59 * testsuite/libjava.jvmti/interp/getstacktrace.jar: New test.
60 * testsuite/libjava.jvmti/interp/getstacktrace.out: Output file
63 2007-01-29 Tom Tromey <tromey@redhat.com>
65 * interpret.cc (run_debug): Remove comment.
72 (run_normal_debug): Likewise.
73 (run_synch_object_debug): Likewise.
74 (run_class_debug): Likewise.
75 (run_synch_class_debug): Likewise.
80 (NULLARRAYCHECK): Likewise.
81 (ARRAYBOUNDSCHECK): Likewise.
82 * interpret-run.cc (insn_target) <breakpoint>: Tidy.
84 2007-01-29 Tom Tromey <tromey@redhat.com>
86 * configure, Makefile.in: Rebuilt.
87 * Makefile.am (bin_SCRIPTS): Never install scripts/jar.
88 * configure.ac (BASH_JAR): Removed conditional.
89 (JAR): Prefer the jar found by AC_CHECK_PROGS.
91 2007-01-29 Tom Tromey <tromey@redhat.com>
93 * Makefile.in: Rebuilt.
94 * Makefile.am (interpret.lo): New target. Add -fwrap to
97 2007-01-29 Keith Seitz <keiths@redhat.com>
99 * include/jvmti_md.h (_CLASSPATH_VM_JVMTI_TYPES_DEFINED):
101 [__GCJ_JNI_IMPL__]: Define our own JVMTI types when building
102 gcj. All jvmti object types now are defined to be their
103 corresponding java classes.
104 * jvmti.cc (_Jv_JVMTI_SuspendThread): Remove casting from
106 (_Jv_JVMTI_ResumeThread): Likewise.
107 (_Jv_JVMTI_InterruptThread): Likewise.
108 (_Jv_JVMTI_SetEventNotificationMode): Likewise.
109 * gnu/classpath/jdwp/natVMVirtualMachine.cc
110 (jdwpClassPrepareCB): Likewise.
111 (jdwpThreadEndCB): Likewise.
112 (jdwpThreadStartCB): Likewise.
113 (jdwpVMInitCB): Likewise.
115 2007-01-28 Michele Sandri <gpointorama@gmail.com>
117 * gnu/java/nio/channels/natFileChannelWin32.cc
119 (unlock): Implemented.
121 2007-01-27 Andreas Tobler <a.tobler@schweiz.org>
124 * configure.host: Add forgottten sysdep_dir to sparc. Add a flag to
125 libgcj_flags to undefine 'sun' at compile time.
126 * sysdep/sparc/locks.h (read_barrier): New functions for 32 and 64 bit
128 (write_barrier): Likewise.
130 2007-01-27 Keith Seitz <keiths@redhat.com>
132 * gnu/classpath/jdwp/natVMVirtualMachine.cc
133 (getAllClassMethods): Move error handling to ...
134 (throw_jvmti_error): ... here.
135 (jdwpClassPrepareCB): New function.
136 (jdwpThreadEndCB): New function.
137 (jdwpThreadStartCB): New function.
138 (jdwpVMDeathCB): New function.
139 (jdwpVMInitCB): Define and enable callbacks for
140 ClassPrepare, ThreadEnd, ThreadStart, and VMDeath.
142 2007-01-27 Jakub Jelinek <jakub@redhat.com>
144 * Makefile.am (generic_header_files): Add $(inner_nat_headers).
145 * testsuite/Makefile.am (check-dejaGNU): Depend on compile-tests.
146 (MYGCJH): New variable.
147 (compile-tests): New goal.
148 * Makefile.in: Rebuilt.
149 * testsuite/Makefile.in: Rebuilt.
151 2007-01-26 Tom Tromey <tromey@redhat.com>
155 2007-01-25 Tom Tromey <tromey@redhat.com>
158 * gnu/gcj/convert/Convert.java (main): Correctly handle missing
159 input or output encodings. Removed unused local variables.
161 2007-01-25 Keith Seitz <keiths@redhat.com>
163 * include/jvmti-int.h (_Jv_GetJDWP_JVMTIEnv): Declare.
164 * gnu/classpath/jdwp/natVMVirtualMachine.cc
165 (_Jv_GetJDWP_JVMTIEnv): New function.
166 * gnu/classpath/jdwp/natVMMethod.cc (getName): Implement.
167 (getSignature): Implement.
168 (getModifiers): Implement.
170 2007-01-25 Andrew Haley <aph@redhat.com>
172 * configure, Makefile.in, include/config.h.in: Rebuilt.
173 * Makefile.am (libgcj_la_LIBADD): Removed $(LIBMAGIC).
174 * configure.ac: Don't check for libmagic.
175 * java/net/natVMURLConnection.cc (p_magic_open, p_magic_load,
176 p_magic_close, p_magic_buffer): New globals.
177 (init): Look up 'magic' functions.
178 (guessContentTypeFromBuffer): Updated.
180 2007-01-25 Keith Seitz <keiths@redhat.com>
182 * jvmti.cc (_Jv_JVMTI_GetMethodName): New function.
183 (_Jv_JVMTI_Interface): Define GetMethodName.
184 * testsuite/libjava.jvmti/getmethodname.java: New file.
185 * testsuite/libjava.jvmti/natgetmethodname.cc: New file.
186 * testsuite/libjava.jvmti/getmethodname.out: New file.
188 2007-01-24 Kyle Galloway <kgallowa@redhat.com>
190 * libjava/testsuite/libjava.jvmti/jvmti-interp.exp: New file.
191 * libjava/testsuite/libjava.jvmti/interp: New folder.
192 * libjava/testsuite/lib/libjava.exp (exec_gij): New Method.
194 2007-01-24 Keith Seitz <keiths@redhat.com>
196 * link.cc (_Jv_Linker::wait_for_state): Add JVMTI
197 CLASS_PREPARE notification.
199 2007-01-24 Keith Seitz <keiths@redhat.com>
201 * interpret.cc: Include gnu/gcj/jvmti/Breakpoint.h,
202 gnu/gcj/jvmti/BreakpointManager.h, jvmti.h, and jvmti-int.h
203 * interpret-run.cc: Implement insn_breakpoint.
205 2007-01-24 Keith Seitz <keiths@redhat.com>
207 * prims.cc (_Jv_RunMain): Send JVMTI event notifications
208 for VM_INIT and VM_DEATH instead of the JDWP notifications.
210 2007-01-24 Keith Seitz <keiths@redhat.com>
212 * gnu/classpath/jdwp/natVMVirtualMachine.cc
213 (getAllClassMethods): Implement.
215 2007-01-24 Andrew Haley <aph@redhat.com>
217 * gnu/classpath/natVMStackWalker.cc: Call InitClass everywhere.
218 (getClassContext) Add a barrier to prevent GetStackWalkerStack()
219 from being sibcalled.
221 2007-01-24 Andrew Haley <aph@redhat.com>
223 * scripts/makemake.tcl (emit_bc_rule): Set the source filename.
224 * sources.am: Rebuild.
226 2007-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
228 * exception.cc (parse_lsda_header, PERSONALITY_FUNCTION): Replaced
229 _Unwind_Word with _uleb128_t and _Unwind_SWord with _sleb128_t.
231 2007-01-23 H.J. Lu <hongjiu.lu@intel.com>
234 * Makefile.am (ecjx_DEPENDENCIES): Add libgcj_bc.la if needed.
235 * Makefile.in: Regenerated.
237 2007-01-22 Keith Seitz <keiths@redhat.com>
239 * gnu/classpath/jdwp/natVMVirtualMachine.cc
240 (getClassMethod): Implement.
242 2007-01-22 Keith Seitz <keiths@redhat.com>
244 * java/lang/Class.h (_Jv_GetClassStatus): Declare.
245 * java/lang/natClass.cc (_Jv_GetClassStatus): New function.
246 * jvmti.cc (_Jv_JVMTI_GetClassStatus): New function.
247 (_Jv_JVMTI_Interface): Define GetClassStatus.
249 2007-01-22 Tom Tromey <tromey@redhat.com>
251 * configure: Rebuilt.
252 * configure.ac (GCJ): Reverted patch of 2006-12-20.
254 2007-01-22 Tom Tromey <tromey@redhat.com>
257 * testsuite/libjava.jni/pr29812.java: New file.
258 * testsuite/libjava.jni/pr29812_injar.java: New file.
259 * testsuite/libjava.jni/pr29812_injar.jar: New file.
260 * testsuite/libjava.jni/pr29812.out: New file.
261 * testsuite/libjava.jni/pr29812_injar.c: New file.
262 * testsuite/libjava.jni/pr29812_injar.h: New file.
263 * testsuite/libjava.jni/pr29812.jar: New file.
264 * testsuite/libjava.jni/pr29812.c: New file.
265 * testsuite/libjava.jni/pr29812.h: New file.
266 * testsuite/libjava.jni/jni.exp (gcj_jni_get_cxxflags_invocation):
268 (gcj_jni_invocation_test_one): Use it.
269 (gcj_jni_pr29812): New proc.
270 (gcj_jni_run): Use it.
271 * java/lang/natRuntime.cc (_load): Push a new system frame before
273 * include/jvm.h (_Jv_JNI_PopSystemFrame): Declare.
274 (_Jv_GetJNIEnvNewFrameWithLoader): Likewise.
275 * jni.cc (struct _Jv_JNI_LocalFrame) <marker>: Now unsigned char.
276 <allocated_p>: Now bool.
278 (_Jv_JNI_EnsureLocalCapacity): Updated.
279 (_Jv_JNI_NewLocalRef): Likewise.
280 (_Jv_JNI_NewLocalRef): Likewise.
281 (_Jv_JNI_PopLocalFrame): Likewise.
282 (_Jv_JNI_FindClass): Likewise.
283 (_Jv_GetJNIEnvNewFrame): Likewise.
284 (_Jv_JNI_AttachCurrentThread): Likewise.
285 (_Jv_GetJNIEnvNewFrameWithLoader): New function.
286 (_Jv_GetJNIEnvNewFrame): Use it.
287 * include/jni_md.h (_CLASSPATH_JNIENV_CONTENTS): Removed 'klass'.
289 2007-01-22 Tom Tromey <tromey@redhat.com>
291 * libtool-version: Bump current to 9.
293 2007-01-22 Andrew Haley <aph@redhat.com>
295 * sysdep/alpha/locks.h (write_barrier): New.
297 2007-01-21 Matthias Klose <doko@debian.org>
299 * Makefile.am (install-exec-hook): Use transformed name.
300 * Makefile.in: Regenerate.
302 2007-01-19 Keith Seitz <keiths@redhat.com>
304 * gnu/classpath/jdwp/natVMVirtualMachine.cc: Mark unused parameters
305 in methods and reformat.
307 * gnu/classpath/jdwp/natVMFrame.cc: Mark unused parameters with
310 2007-01-18 Keith Seitz <keiths@redhat.com>
312 From Macro Trudel <mtrudel@gmx.ch>:
313 * gnu/classpath/jdwp/natVMVirtualMachine.cc (jdwpVMInitCB):
316 2007-01-18 Marco Trudel <mtrudel@gmx.ch>
318 * jni.cc (_Jv_JNI_FindClass): Initialize class.
319 * testsuite/libjava.jni/findclass2.jar: New file.
320 * testsuite/libjava.jni/findclass2.h: New file.
321 * testsuite/libjava.jni/findclass2.java: New file
322 * testsuite/libjava.jni/findclass2.c: New file.
323 * testsuite/libjava.jni/findclass2.out: New file.
325 2007-01-18 Tom Tromey <tromey@redhat.com>
327 * configure: Rebuilt.
328 * configure.ac: Use multi_basedir instead of libgcj_basedir.
330 2007-01-18 Gary Benson <gbenson@redhat.com>
332 * gnu/java/nio/natVMPipeEcos.cc:
333 Renamed from gnu/java/nio/natPipeImplEcos.cc.
334 * gnu/java/nio/natVMPipePosix.cc:
335 Renamed from gnu/java/nio/natPipeImplPosix.cc.
336 * gnu/java/nio/natVMPipeWin32.cc:
337 Renamed from gnu/java/nio/natPipeImplWin32.cc.
338 * gnu/java/nio/natVMSelectorEcos.cc:
339 Renamed from gnu/java/nio/natSelectorImplEcos.cc.
340 * gnu/java/nio/natVMSelectorPosix.cc:
341 Renamed from gnu/java/nio/natSelectorImplPosix.cc.
342 * gnu/java/nio/natVMSelectorWin32.cc:
343 Renamed from gnu/java/nio/natSelectorImplWin32.cc.
344 * java/io/natVMObjectInputStream.cc:
345 Renamed from java/io/natObjectInputStream.cc.
346 * java/lang/natVMDouble.cc:
347 Renamed from java/lang/natDouble.cc.
348 * java/lang/natVMFloat.cc:
349 Renamed from java/lang/natFloat.cc.
350 * Makefile.am, configure.ac: Reflect the above.
351 * Makefile.in, configure: Rebuilt.
353 2007-01-17 Andrew Haley <aph@redhat.com>
355 * Makefile.in: Rebuilt.
356 * Makefile.am (ecjx_LDFLAGS): Pass -fbootclasspath.
358 2007-01-17 Keith Seitz <keiths@redhat.com>
360 * java/lang/natThread.cc (finish_): Add JVMTI ThreadEnd notification.
361 (_Jv_NotifyThreadStart): Add JVMTI ThreadStart notification.
363 2007-01-16 Jack Howarth <howarth@bromo.med.uc.edu>
365 * configure.ac: Use multi.m4 from aclocal rather than custom
366 code. Use multi_basedir instead libgcj_basedir. Test for
367 /proc/self/exe when not cross-compiling.
368 * aclocal.m4: Regenerate.
369 * configure: Regenerate.
370 * Makefile.in: Regenerate.
372 2007-01-17 Gary Benson <gbenson@redhat.com>
374 * java/nio/natVMDirectByteBufferImpl.cc:
375 Renamed from java/nio/natDirectByteBufferImpl.cc.
376 * Makefile.am: Reflect the above.
377 * Makefile.in: Rebuilt.
379 2007-01-17 Marco Trudel <mtrudel@gmx.ch>
381 * jvmti.cc (_Jv_JVMTI_GetAllThreads): Now static. Use JNICALL.
382 Fixed indentation. Removed unused variable.
384 2007-01-16 Tom Tromey <tromey@redhat.com>
386 * java/lang/natThread.cc (finalize_native): Remove cast.
387 (_Jv_GetCurrentJNIEnv): Likewise.
388 * include/jvm.h (struct natThread) <jni_env>: Declare as
391 2007-01-16 Keith Seitz <keiths@redhat.com>
393 * testsuite/libjava.jvmti/natevents.cc (FieldModificationCB): Use
394 %#llx instead of %d for new_value.
395 * testsuite/libjava.jvmti/events.out: Update expected output.
396 * testsuite/libjava.jvmti/events.jar: Regenerate.
398 2007-01-16 Keith Seitz <keiths@redhat.com>
400 * gnu/classpath/jdwp/natVMVirtualMachine.cc (DEFINE_CALLBACK):
402 (ENABLE_EVENT): New macro.
403 (initialize): Define and enable JVMTI VM_INIT callback.
404 (jdwpVMInitCB): New function.
406 2007-01-16 Kyle Galloway <kgallowa@redhat.com>
408 * jvmti.cc (_Jv_JVMTI_GetAllThreads): New function.
409 * testsuite/libjava.jvmti/getallthreads.java: New test.
410 * testsuite/libjava.jvmti/natgetallthreads.cc: Ditto.
411 * testsuite/libjava.jvmti/getallthreads.out: Ditto.
412 * testsuite/libjava.jvmti/getallthreads.h: Ditto.
413 * testsuite/libjava.jvmti/getallthreads.jar: Ditto.
415 2007-01-15 Keith Seitz <keiths@redhat.com>
417 * gnu/classpath/jdwp/natVMVirtualMachine.cc (suspendThread): Use
418 java.lang.StringBuilder instead of java.lang.StringBuffer.
419 (resumeThread): Likewise.
421 2007-01-15 Gary Benson <gbenson@redhat.com>
423 * java/nio/MappedByteBuffer.java: Removed.
424 * sources.am, Makefile.in: Rebuilt.
426 2007-01-15 Gary Benson <gbenson@redhat.com>
428 * java/net/URLClassLoader.java: Removed.
429 * gnu/java/net/loader/Load_gcjlib.java: New file.
430 * gnu/gcj/runtime/BootClassLoader.java: Ensure core
431 URL handler is present in static executables.
432 * sources.am, Makefile.in: Rebuilt.
434 2007-01-14 H.J. Lu <hongjiu.lu@intel.com>
436 * Makefile.am (libgcj_la_LDFLAGS): Add
437 $(LIBGCJ_LD_SYMBOLIC_FUNCTIONS).
438 (libgcj_tools_la_LDFLAGS): Likewise.
439 (libgcj_bc_la_LDFLAGS): Likewise.
440 * Makefile.in: Regenerated.
442 * configure.ac: Use ACX_PROG_LD_GNU_SYMBOLIC. Set
443 LIBGCJ_LD_SYMBOLIC_FUNCTIONS to $SYMBOLIC_LDFLAGS. Set
444 libgcj_ld_symbolic to $SYMBOLIC_LDFLAGS if it isn't set.
445 Substitute LIBGCJ_LD_SYMBOLIC_FUNCTIONS.
446 * configure: Regenerated.
447 * aclocal.m4: Likewise.
448 * gcj/Makefile.in: Likewise.
449 * include/Makefile.in: Likewise.
450 * testsuite/Makefile.in: Likewise.
452 2007-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
454 * sysdep/sh/locks.h (read_barrier): New.
455 (write_barrier): Likewise.
457 2007-01-12 Andrew Haley <aph@redhat.com>
459 * include/i386-signal.h: Rewrite to use rt_sigaction.
461 2007-01-11 Andrew Haley <aph@redhat.com>
463 * prims.cc (jdwpOptions) Fix deprecated cast from char[] constant
465 * include/x86_64-signal.h (HANDLE_DIVIDE_OVERFLOW): Rewrite to fix
468 2007-01-10 Tom Tromey <tromey@redhat.com>
470 * gnu/gcj/xlib/*.h: New files.
471 * gnu/awt/xlib/*.h: Likewise.
472 * classpath/lib/gnu/gcj/xlib: New class files.
473 * classpath/lib/gnu/awt/xlib: Likewise.
475 2007-01-10 Tom Tromey <tromey@redhat.com>
477 * HACKING: Various updates.
479 2007-01-10 Tom Tromey <tromey@redhat.com>
481 * java/lang/natDouble.cc (toString): Added parens.
482 * gnu/gcj/io/shs.h (PROTO): Define.
483 * link.cc (resolve_pool_entry): Added missing braces.
485 2007-01-10 H.J. Lu <hongjiu.lu@intel.com>
488 * sysdep/ia64/locks.h (read_barrier): New.
489 (write_barrier): New.
491 2007-01-10 Gary Benson <gbenson@redhat.com>
493 * java/net/URL.java: Removed.
494 * sources.am, Makefile.in: Rebuilt.
496 2007-01-10 Matthias Klose <doko@debian.org>
498 * Makefile.am (install-exec-hook): Support $(DESTDIR).
499 * Makefile.in: Regenerated.
501 2007-01-05 Tom Tromey <tromey@redhat.com>
503 * testsuite/libjava.loader/loader.exp (gcj_loader_run): Find
504 dummy.class in srcdir.
506 2007-01-03 Tom Tromey <tromey@redhat.com>
508 * testsuite/libjava.cni/cni.exp (gcj_cni_compile_cxx_to_o): Add -I
511 2007-01-03 Tom Tromey <tromey@redhat.com>
513 * testsuite/*: Added many .jar and .h files.
514 * testsuite/libjava.special/special.exp
515 (gcj_special_try_compiler): New proc.
516 * testsuite/libjava.loader/loader.exp (gcj_loader_run): Don't
517 bytecompile source. Search for .jar files.
518 (gcj_loader_test_one): Don't look for MyLoader.java.
519 * testsuite/libjava.jvmti/jvmti.exp (gcj_jvmti_test_one): Don't
520 bytecompile sources or build headers.
521 (gcj_jvmti_run): Look for .jar files.
522 * testsuite/libjava.jni/jni.exp (gcj_jni_run): Compile .jar
524 (gcj_jni_test_one): Don't bytecompile sources or build headers.
525 Set classpath when invoking gij.
526 (gcj_jni_invocation_test_one): Likewise.
527 * testsuite/libjava.cni/cni.exp (gcj_cni_test_one): Don't build
528 headers or bytecompile sources.
529 (gcj_cni_run): Use .jar files, not .java files.
530 * testsuite/libjava.lang/lang.exp: Compile .jar files.
532 2007-01-02 Tom Tromey <tromey@redhat.com>
534 * configure: Rebuilt.
535 * configure.ac: Check for gjar.
537 2007-01-02 Tom Tromey <tromey@redhat.com>
539 * testsuite/libjava.jacks/jacks.exp: Removed.
540 * testsuite/libjava.jacks/jacks.xfail: Removed.