1 2007-01-29 Kaloian Doganov <kaloian@doganov.org>
4 * gnu/gcj/convert/BytesToCharsetAdaptor.java (read): Fix call to
7 2007-01-29 Kyle Galloway <kgallowa@redhat.com>
9 * include/java-interp.h: Added _Jv_Frame class and its two
10 subclasses _Jv_InterpFrame and _Jv_NativeFrame. Also moved
11 _Jv_FrameType from java-stack.h.
12 * include/java-stack.h: Removed _Jv_FrameType.
13 * java/lang/Thread.java: Added frame member to hold new
14 composite frame stack.
15 * java/lang/Thread.h: Regenerated.
16 * java/lang/Thread.class: Rebuilt.
17 * jni.cc (_Jv_JNIMethod::call): Push a frame onto the stack when
19 * jvmti.cc (_Jv_JVMTI_GetStackTrace): New Method.
20 (_Jv_JVMTI_GetFrameCount): New method.
21 * stacktrace.cc (UnwindTraceFn): Modified to use new _Jv_Frame
23 * testsuite/libjava.jvmti/interp/getstacktrace.jar: New test.
24 * testsuite/libjava.jvmti/interp/natgetstacktrace.cc: New test.
25 * testsuite/libjava.jvmti/interp/getstacktrace.h: New test.
26 * testsuite/libjava.jvmti/interp/getstacktrace.jar: New test.
27 * testsuite/libjava.jvmti/interp/getstacktrace.out: Output file
30 2007-01-29 Tom Tromey <tromey@redhat.com>
32 * interpret.cc (run_debug): Remove comment.
39 (run_normal_debug): Likewise.
40 (run_synch_object_debug): Likewise.
41 (run_class_debug): Likewise.
42 (run_synch_class_debug): Likewise.
47 (NULLARRAYCHECK): Likewise.
48 (ARRAYBOUNDSCHECK): Likewise.
49 * interpret-run.cc (insn_target) <breakpoint>: Tidy.
51 2007-01-29 Tom Tromey <tromey@redhat.com>
53 * configure, Makefile.in: Rebuilt.
54 * Makefile.am (bin_SCRIPTS): Never install scripts/jar.
55 * configure.ac (BASH_JAR): Removed conditional.
56 (JAR): Prefer the jar found by AC_CHECK_PROGS.
58 2007-01-29 Tom Tromey <tromey@redhat.com>
60 * Makefile.in: Rebuilt.
61 * Makefile.am (interpret.lo): New target. Add -fwrap to
64 2007-01-29 Keith Seitz <keiths@redhat.com>
66 * include/jvmti_md.h (_CLASSPATH_VM_JVMTI_TYPES_DEFINED):
68 [__GCJ_JNI_IMPL__]: Define our own JVMTI types when building
69 gcj. All jvmti object types now are defined to be their
70 corresponding java classes.
71 * jvmti.cc (_Jv_JVMTI_SuspendThread): Remove casting from
73 (_Jv_JVMTI_ResumeThread): Likewise.
74 (_Jv_JVMTI_InterruptThread): Likewise.
75 (_Jv_JVMTI_SetEventNotificationMode): Likewise.
76 * gnu/classpath/jdwp/natVMVirtualMachine.cc
77 (jdwpClassPrepareCB): Likewise.
78 (jdwpThreadEndCB): Likewise.
79 (jdwpThreadStartCB): Likewise.
80 (jdwpVMInitCB): Likewise.
82 2007-01-28 Michele Sandri <gpointorama@gmail.com>
84 * gnu/java/nio/channels/natFileChannelWin32.cc
86 (unlock): Implemented.
88 2007-01-27 Andreas Tobler <a.tobler@schweiz.org>
91 * configure.host: Add forgottten sysdep_dir to sparc. Add a flag to
92 libgcj_flags to undefine 'sun' at compile time.
93 * sysdep/sparc/locks.h (read_barrier): New functions for 32 and 64 bit
95 (write_barrier): Likewise.
97 2007-01-27 Keith Seitz <keiths@redhat.com>
99 * gnu/classpath/jdwp/natVMVirtualMachine.cc
100 (getAllClassMethods): Move error handling to ...
101 (throw_jvmti_error): ... here.
102 (jdwpClassPrepareCB): New function.
103 (jdwpThreadEndCB): New function.
104 (jdwpThreadStartCB): New function.
105 (jdwpVMDeathCB): New function.
106 (jdwpVMInitCB): Define and enable callbacks for
107 ClassPrepare, ThreadEnd, ThreadStart, and VMDeath.
109 2007-01-27 Jakub Jelinek <jakub@redhat.com>
111 * Makefile.am (generic_header_files): Add $(inner_nat_headers).
112 * testsuite/Makefile.am (check-dejaGNU): Depend on compile-tests.
113 (MYGCJH): New variable.
114 (compile-tests): New goal.
115 * Makefile.in: Rebuilt.
116 * testsuite/Makefile.in: Rebuilt.
118 2007-01-26 Tom Tromey <tromey@redhat.com>
122 2007-01-25 Tom Tromey <tromey@redhat.com>
125 * gnu/gcj/convert/Convert.java (main): Correctly handle missing
126 input or output encodings. Removed unused local variables.
128 2007-01-25 Keith Seitz <keiths@redhat.com>
130 * include/jvmti-int.h (_Jv_GetJDWP_JVMTIEnv): Declare.
131 * gnu/classpath/jdwp/natVMVirtualMachine.cc
132 (_Jv_GetJDWP_JVMTIEnv): New function.
133 * gnu/classpath/jdwp/natVMMethod.cc (getName): Implement.
134 (getSignature): Implement.
135 (getModifiers): Implement.
137 2007-01-25 Andrew Haley <aph@redhat.com>
139 * configure, Makefile.in, include/config.h.in: Rebuilt.
140 * Makefile.am (libgcj_la_LIBADD): Removed $(LIBMAGIC).
141 * configure.ac: Don't check for libmagic.
142 * java/net/natVMURLConnection.cc (p_magic_open, p_magic_load,
143 p_magic_close, p_magic_buffer): New globals.
144 (init): Look up 'magic' functions.
145 (guessContentTypeFromBuffer): Updated.
147 2007-01-25 Keith Seitz <keiths@redhat.com>
149 * jvmti.cc (_Jv_JVMTI_GetMethodName): New function.
150 (_Jv_JVMTI_Interface): Define GetMethodName.
151 * testsuite/libjava.jvmti/getmethodname.java: New file.
152 * testsuite/libjava.jvmti/natgetmethodname.cc: New file.
153 * testsuite/libjava.jvmti/getmethodname.out: New file.
155 2007-01-24 Kyle Galloway <kgallowa@redhat.com>
157 * libjava/testsuite/libjava.jvmti/jvmti-interp.exp: New file.
158 * libjava/testsuite/libjava.jvmti/interp: New folder.
159 * libjava/testsuite/lib/libjava.exp (exec_gij): New Method.
161 2007-01-24 Keith Seitz <keiths@redhat.com>
163 * link.cc (_Jv_Linker::wait_for_state): Add JVMTI
164 CLASS_PREPARE notification.
166 2007-01-24 Keith Seitz <keiths@redhat.com>
168 * interpret.cc: Include gnu/gcj/jvmti/Breakpoint.h,
169 gnu/gcj/jvmti/BreakpointManager.h, jvmti.h, and jvmti-int.h
170 * interpret-run.cc: Implement insn_breakpoint.
172 2007-01-24 Keith Seitz <keiths@redhat.com>
174 * prims.cc (_Jv_RunMain): Send JVMTI event notifications
175 for VM_INIT and VM_DEATH instead of the JDWP notifications.
177 2007-01-24 Keith Seitz <keiths@redhat.com>
179 * gnu/classpath/jdwp/natVMVirtualMachine.cc
180 (getAllClassMethods): Implement.
182 2007-01-24 Andrew Haley <aph@redhat.com>
184 * gnu/classpath/natVMStackWalker.cc: Call InitClass everywhere.
185 (getClassContext) Add a barrier to prevent GetStackWalkerStack()
186 from being sibcalled.
188 2007-01-24 Andrew Haley <aph@redhat.com>
190 * scripts/makemake.tcl (emit_bc_rule): Set the source filename.
191 * sources.am: Rebuild.
193 2007-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
195 * exception.cc (parse_lsda_header, PERSONALITY_FUNCTION): Replaced
196 _Unwind_Word with _uleb128_t and _Unwind_SWord with _sleb128_t.
198 2007-01-23 H.J. Lu <hongjiu.lu@intel.com>
201 * Makefile.am (ecjx_DEPENDENCIES): Add libgcj_bc.la if needed.
202 * Makefile.in: Regenerated.
204 2007-01-22 Keith Seitz <keiths@redhat.com>
206 * gnu/classpath/jdwp/natVMVirtualMachine.cc
207 (getClassMethod): Implement.
209 2007-01-22 Keith Seitz <keiths@redhat.com>
211 * java/lang/Class.h (_Jv_GetClassStatus): Declare.
212 * java/lang/natClass.cc (_Jv_GetClassStatus): New function.
213 * jvmti.cc (_Jv_JVMTI_GetClassStatus): New function.
214 (_Jv_JVMTI_Interface): Define GetClassStatus.
216 2007-01-22 Tom Tromey <tromey@redhat.com>
218 * configure: Rebuilt.
219 * configure.ac (GCJ): Reverted patch of 2006-12-20.
221 2007-01-22 Tom Tromey <tromey@redhat.com>
224 * testsuite/libjava.jni/pr29812.java: New file.
225 * testsuite/libjava.jni/pr29812_injar.java: New file.
226 * testsuite/libjava.jni/pr29812_injar.jar: New file.
227 * testsuite/libjava.jni/pr29812.out: New file.
228 * testsuite/libjava.jni/pr29812_injar.c: New file.
229 * testsuite/libjava.jni/pr29812_injar.h: New file.
230 * testsuite/libjava.jni/pr29812.jar: New file.
231 * testsuite/libjava.jni/pr29812.c: New file.
232 * testsuite/libjava.jni/pr29812.h: New file.
233 * testsuite/libjava.jni/jni.exp (gcj_jni_get_cxxflags_invocation):
235 (gcj_jni_invocation_test_one): Use it.
236 (gcj_jni_pr29812): New proc.
237 (gcj_jni_run): Use it.
238 * java/lang/natRuntime.cc (_load): Push a new system frame before
240 * include/jvm.h (_Jv_JNI_PopSystemFrame): Declare.
241 (_Jv_GetJNIEnvNewFrameWithLoader): Likewise.
242 * jni.cc (struct _Jv_JNI_LocalFrame) <marker>: Now unsigned char.
243 <allocated_p>: Now bool.
245 (_Jv_JNI_EnsureLocalCapacity): Updated.
246 (_Jv_JNI_NewLocalRef): Likewise.
247 (_Jv_JNI_NewLocalRef): Likewise.
248 (_Jv_JNI_PopLocalFrame): Likewise.
249 (_Jv_JNI_FindClass): Likewise.
250 (_Jv_GetJNIEnvNewFrame): Likewise.
251 (_Jv_JNI_AttachCurrentThread): Likewise.
252 (_Jv_GetJNIEnvNewFrameWithLoader): New function.
253 (_Jv_GetJNIEnvNewFrame): Use it.
254 * include/jni_md.h (_CLASSPATH_JNIENV_CONTENTS): Removed 'klass'.
256 2007-01-22 Tom Tromey <tromey@redhat.com>
258 * libtool-version: Bump current to 9.
260 2007-01-22 Andrew Haley <aph@redhat.com>
262 * sysdep/alpha/locks.h (write_barrier): New.
264 2007-01-21 Matthias Klose <doko@debian.org>
266 * Makefile.am (install-exec-hook): Use transformed name.
267 * Makefile.in: Regenerate.
269 2007-01-19 Keith Seitz <keiths@redhat.com>
271 * gnu/classpath/jdwp/natVMVirtualMachine.cc: Mark unused parameters
272 in methods and reformat.
274 * gnu/classpath/jdwp/natVMFrame.cc: Mark unused parameters with
277 2007-01-18 Keith Seitz <keiths@redhat.com>
279 From Macro Trudel <mtrudel@gmx.ch>:
280 * gnu/classpath/jdwp/natVMVirtualMachine.cc (jdwpVMInitCB):
283 2007-01-18 Marco Trudel <mtrudel@gmx.ch>
285 * jni.cc (_Jv_JNI_FindClass): Initialize class.
286 * testsuite/libjava.jni/findclass2.jar: New file.
287 * testsuite/libjava.jni/findclass2.h: New file.
288 * testsuite/libjava.jni/findclass2.java: New file
289 * testsuite/libjava.jni/findclass2.c: New file.
290 * testsuite/libjava.jni/findclass2.out: New file.
292 2007-01-18 Tom Tromey <tromey@redhat.com>
294 * configure: Rebuilt.
295 * configure.ac: Use multi_basedir instead of libgcj_basedir.
297 2007-01-18 Gary Benson <gbenson@redhat.com>
299 * gnu/java/nio/natVMPipeEcos.cc:
300 Renamed from gnu/java/nio/natPipeImplEcos.cc.
301 * gnu/java/nio/natVMPipePosix.cc:
302 Renamed from gnu/java/nio/natPipeImplPosix.cc.
303 * gnu/java/nio/natVMPipeWin32.cc:
304 Renamed from gnu/java/nio/natPipeImplWin32.cc.
305 * gnu/java/nio/natVMSelectorEcos.cc:
306 Renamed from gnu/java/nio/natSelectorImplEcos.cc.
307 * gnu/java/nio/natVMSelectorPosix.cc:
308 Renamed from gnu/java/nio/natSelectorImplPosix.cc.
309 * gnu/java/nio/natVMSelectorWin32.cc:
310 Renamed from gnu/java/nio/natSelectorImplWin32.cc.
311 * java/io/natVMObjectInputStream.cc:
312 Renamed from java/io/natObjectInputStream.cc.
313 * java/lang/natVMDouble.cc:
314 Renamed from java/lang/natDouble.cc.
315 * java/lang/natVMFloat.cc:
316 Renamed from java/lang/natFloat.cc.
317 * Makefile.am, configure.ac: Reflect the above.
318 * Makefile.in, configure: Rebuilt.
320 2007-01-17 Andrew Haley <aph@redhat.com>
322 * Makefile.in: Rebuilt.
323 * Makefile.am (ecjx_LDFLAGS): Pass -fbootclasspath.
325 2007-01-17 Keith Seitz <keiths@redhat.com>
327 * java/lang/natThread.cc (finish_): Add JVMTI ThreadEnd notification.
328 (_Jv_NotifyThreadStart): Add JVMTI ThreadStart notification.
330 2007-01-16 Jack Howarth <howarth@bromo.med.uc.edu>
332 * configure.ac: Use multi.m4 from aclocal rather than custom
333 code. Use multi_basedir instead libgcj_basedir. Test for
334 /proc/self/exe when not cross-compiling.
335 * aclocal.m4: Regenerate.
336 * configure: Regenerate.
337 * Makefile.in: Regenerate.
339 2007-01-17 Gary Benson <gbenson@redhat.com>
341 * java/nio/natVMDirectByteBufferImpl.cc:
342 Renamed from java/nio/natDirectByteBufferImpl.cc.
343 * Makefile.am: Reflect the above.
344 * Makefile.in: Rebuilt.
346 2007-01-17 Marco Trudel <mtrudel@gmx.ch>
348 * jvmti.cc (_Jv_JVMTI_GetAllThreads): Now static. Use JNICALL.
349 Fixed indentation. Removed unused variable.
351 2007-01-16 Tom Tromey <tromey@redhat.com>
353 * java/lang/natThread.cc (finalize_native): Remove cast.
354 (_Jv_GetCurrentJNIEnv): Likewise.
355 * include/jvm.h (struct natThread) <jni_env>: Declare as
358 2007-01-16 Keith Seitz <keiths@redhat.com>
360 * testsuite/libjava.jvmti/natevents.cc (FieldModificationCB): Use
361 %#llx instead of %d for new_value.
362 * testsuite/libjava.jvmti/events.out: Update expected output.
363 * testsuite/libjava.jvmti/events.jar: Regenerate.
365 2007-01-16 Keith Seitz <keiths@redhat.com>
367 * gnu/classpath/jdwp/natVMVirtualMachine.cc (DEFINE_CALLBACK):
369 (ENABLE_EVENT): New macro.
370 (initialize): Define and enable JVMTI VM_INIT callback.
371 (jdwpVMInitCB): New function.
373 2007-01-16 Kyle Galloway <kgallowa@redhat.com>
375 * jvmti.cc (_Jv_JVMTI_GetAllThreads): New function.
376 * testsuite/libjava.jvmti/getallthreads.java: New test.
377 * testsuite/libjava.jvmti/natgetallthreads.cc: Ditto.
378 * testsuite/libjava.jvmti/getallthreads.out: Ditto.
379 * testsuite/libjava.jvmti/getallthreads.h: Ditto.
380 * testsuite/libjava.jvmti/getallthreads.jar: Ditto.
382 2007-01-15 Keith Seitz <keiths@redhat.com>
384 * gnu/classpath/jdwp/natVMVirtualMachine.cc (suspendThread): Use
385 java.lang.StringBuilder instead of java.lang.StringBuffer.
386 (resumeThread): Likewise.
388 2007-01-15 Gary Benson <gbenson@redhat.com>
390 * java/nio/MappedByteBuffer.java: Removed.
391 * sources.am, Makefile.in: Rebuilt.
393 2007-01-15 Gary Benson <gbenson@redhat.com>
395 * java/net/URLClassLoader.java: Removed.
396 * gnu/java/net/loader/Load_gcjlib.java: New file.
397 * gnu/gcj/runtime/BootClassLoader.java: Ensure core
398 URL handler is present in static executables.
399 * sources.am, Makefile.in: Rebuilt.
401 2007-01-14 H.J. Lu <hongjiu.lu@intel.com>
403 * Makefile.am (libgcj_la_LDFLAGS): Add
404 $(LIBGCJ_LD_SYMBOLIC_FUNCTIONS).
405 (libgcj_tools_la_LDFLAGS): Likewise.
406 (libgcj_bc_la_LDFLAGS): Likewise.
407 * Makefile.in: Regenerated.
409 * configure.ac: Use ACX_PROG_LD_GNU_SYMBOLIC. Set
410 LIBGCJ_LD_SYMBOLIC_FUNCTIONS to $SYMBOLIC_LDFLAGS. Set
411 libgcj_ld_symbolic to $SYMBOLIC_LDFLAGS if it isn't set.
412 Substitute LIBGCJ_LD_SYMBOLIC_FUNCTIONS.
413 * configure: Regenerated.
414 * aclocal.m4: Likewise.
415 * gcj/Makefile.in: Likewise.
416 * include/Makefile.in: Likewise.
417 * testsuite/Makefile.in: Likewise.
419 2007-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
421 * sysdep/sh/locks.h (read_barrier): New.
422 (write_barrier): Likewise.
424 2007-01-12 Andrew Haley <aph@redhat.com>
426 * include/i386-signal.h: Rewrite to use rt_sigaction.
428 2007-01-11 Andrew Haley <aph@redhat.com>
430 * prims.cc (jdwpOptions) Fix deprecated cast from char[] constant
432 * include/x86_64-signal.h (HANDLE_DIVIDE_OVERFLOW): Rewrite to fix
435 2007-01-10 Tom Tromey <tromey@redhat.com>
437 * gnu/gcj/xlib/*.h: New files.
438 * gnu/awt/xlib/*.h: Likewise.
439 * classpath/lib/gnu/gcj/xlib: New class files.
440 * classpath/lib/gnu/awt/xlib: Likewise.
442 2007-01-10 Tom Tromey <tromey@redhat.com>
444 * HACKING: Various updates.
446 2007-01-10 Tom Tromey <tromey@redhat.com>
448 * java/lang/natDouble.cc (toString): Added parens.
449 * gnu/gcj/io/shs.h (PROTO): Define.
450 * link.cc (resolve_pool_entry): Added missing braces.
452 2007-01-10 H.J. Lu <hongjiu.lu@intel.com>
455 * sysdep/ia64/locks.h (read_barrier): New.
456 (write_barrier): New.
458 2007-01-10 Gary Benson <gbenson@redhat.com>
460 * java/net/URL.java: Removed.
461 * sources.am, Makefile.in: Rebuilt.
463 2007-01-10 Matthias Klose <doko@debian.org>
465 * Makefile.am (install-exec-hook): Support $(DESTDIR).
466 * Makefile.in: Regenerated.
468 2007-01-05 Tom Tromey <tromey@redhat.com>
470 * testsuite/libjava.loader/loader.exp (gcj_loader_run): Find
471 dummy.class in srcdir.
473 2007-01-03 Tom Tromey <tromey@redhat.com>
475 * testsuite/libjava.cni/cni.exp (gcj_cni_compile_cxx_to_o): Add -I
478 2007-01-03 Tom Tromey <tromey@redhat.com>
480 * testsuite/*: Added many .jar and .h files.
481 * testsuite/libjava.special/special.exp
482 (gcj_special_try_compiler): New proc.
483 * testsuite/libjava.loader/loader.exp (gcj_loader_run): Don't
484 bytecompile source. Search for .jar files.
485 (gcj_loader_test_one): Don't look for MyLoader.java.
486 * testsuite/libjava.jvmti/jvmti.exp (gcj_jvmti_test_one): Don't
487 bytecompile sources or build headers.
488 (gcj_jvmti_run): Look for .jar files.
489 * testsuite/libjava.jni/jni.exp (gcj_jni_run): Compile .jar
491 (gcj_jni_test_one): Don't bytecompile sources or build headers.
492 Set classpath when invoking gij.
493 (gcj_jni_invocation_test_one): Likewise.
494 * testsuite/libjava.cni/cni.exp (gcj_cni_test_one): Don't build
495 headers or bytecompile sources.
496 (gcj_cni_run): Use .jar files, not .java files.
497 * testsuite/libjava.lang/lang.exp: Compile .jar files.
499 2007-01-02 Tom Tromey <tromey@redhat.com>
501 * configure: Rebuilt.
502 * configure.ac: Check for gjar.
504 2007-01-02 Tom Tromey <tromey@redhat.com>
506 * testsuite/libjava.jacks/jacks.exp: Removed.
507 * testsuite/libjava.jacks/jacks.xfail: Removed.