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