1 2007-01-28 Michele Sandri <gpointorama@gmail.com>
3 * gnu/java/nio/channels/natFileChannelWin32.cc
7 2007-01-27 Andreas Tobler <a.tobler@schweiz.org>
10 * configure.host: Add forgottten sysdep_dir to sparc. Add a flag to
11 libgcj_flags to undefine 'sun' at compile time.
12 * sysdep/sparc/locks.h (read_barrier): New functions for 32 and 64 bit
14 (write_barrier): Likewise.
16 2007-01-27 Keith Seitz <keiths@redhat.com>
18 * gnu/classpath/jdwp/natVMVirtualMachine.cc
19 (getAllClassMethods): Move error handling to ...
20 (throw_jvmti_error): ... here.
21 (jdwpClassPrepareCB): New function.
22 (jdwpThreadEndCB): New function.
23 (jdwpThreadStartCB): New function.
24 (jdwpVMDeathCB): New function.
25 (jdwpVMInitCB): Define and enable callbacks for
26 ClassPrepare, ThreadEnd, ThreadStart, and VMDeath.
28 2007-01-27 Jakub Jelinek <jakub@redhat.com>
30 * Makefile.am (generic_header_files): Add $(inner_nat_headers).
31 * testsuite/Makefile.am (check-dejaGNU): Depend on compile-tests.
32 (MYGCJH): New variable.
33 (compile-tests): New goal.
34 * Makefile.in: Rebuilt.
35 * testsuite/Makefile.in: Rebuilt.
37 2007-01-26 Tom Tromey <tromey@redhat.com>
41 2007-01-25 Tom Tromey <tromey@redhat.com>
44 * gnu/gcj/convert/Convert.java (main): Correctly handle missing
45 input or output encodings. Removed unused local variables.
47 2007-01-25 Keith Seitz <keiths@redhat.com>
49 * include/jvmti-int.h (_Jv_GetJDWP_JVMTIEnv): Declare.
50 * gnu/classpath/jdwp/natVMVirtualMachine.cc
51 (_Jv_GetJDWP_JVMTIEnv): New function.
52 * gnu/classpath/jdwp/natVMMethod.cc (getName): Implement.
53 (getSignature): Implement.
54 (getModifiers): Implement.
56 2007-01-25 Andrew Haley <aph@redhat.com>
58 * configure, Makefile.in, include/config.h.in: Rebuilt.
59 * Makefile.am (libgcj_la_LIBADD): Removed $(LIBMAGIC).
60 * configure.ac: Don't check for libmagic.
61 * java/net/natVMURLConnection.cc (p_magic_open, p_magic_load,
62 p_magic_close, p_magic_buffer): New globals.
63 (init): Look up 'magic' functions.
64 (guessContentTypeFromBuffer): Updated.
66 2007-01-25 Keith Seitz <keiths@redhat.com>
68 * jvmti.cc (_Jv_JVMTI_GetMethodName): New function.
69 (_Jv_JVMTI_Interface): Define GetMethodName.
70 * testsuite/libjava.jvmti/getmethodname.java: New file.
71 * testsuite/libjava.jvmti/natgetmethodname.cc: New file.
72 * testsuite/libjava.jvmti/getmethodname.out: New file.
74 2007-01-24 Kyle Galloway <kgallowa@redhat.com>
76 * libjava/testsuite/libjava.jvmti/jvmti-interp.exp: New file.
77 * libjava/testsuite/libjava.jvmti/interp: New folder.
78 * libjava/testsuite/lib/libjava.exp (exec_gij): New Method.
80 2007-01-24 Keith Seitz <keiths@redhat.com>
82 * link.cc (_Jv_Linker::wait_for_state): Add JVMTI
83 CLASS_PREPARE notification.
85 2007-01-24 Keith Seitz <keiths@redhat.com>
87 * interpret.cc: Include gnu/gcj/jvmti/Breakpoint.h,
88 gnu/gcj/jvmti/BreakpointManager.h, jvmti.h, and jvmti-int.h
89 * interpret-run.cc: Implement insn_breakpoint.
91 2007-01-24 Keith Seitz <keiths@redhat.com>
93 * prims.cc (_Jv_RunMain): Send JVMTI event notifications
94 for VM_INIT and VM_DEATH instead of the JDWP notifications.
96 2007-01-24 Keith Seitz <keiths@redhat.com>
98 * gnu/classpath/jdwp/natVMVirtualMachine.cc
99 (getAllClassMethods): Implement.
101 2007-01-24 Andrew Haley <aph@redhat.com>
103 * gnu/classpath/natVMStackWalker.cc: Call InitClass everywhere.
104 (getClassContext) Add a barrier to prevent GetStackWalkerStack()
105 from being sibcalled.
107 2007-01-24 Andrew Haley <aph@redhat.com>
109 * scripts/makemake.tcl (emit_bc_rule): Set the source filename.
110 * sources.am: Rebuild.
112 2007-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
114 * exception.cc (parse_lsda_header, PERSONALITY_FUNCTION): Replaced
115 _Unwind_Word with _uleb128_t and _Unwind_SWord with _sleb128_t.
117 2007-01-23 H.J. Lu <hongjiu.lu@intel.com>
120 * Makefile.am (ecjx_DEPENDENCIES): Add libgcj_bc.la if needed.
121 * Makefile.in: Regenerated.
123 2007-01-22 Keith Seitz <keiths@redhat.com>
125 * gnu/classpath/jdwp/natVMVirtualMachine.cc
126 (getClassMethod): Implement.
128 2007-01-22 Keith Seitz <keiths@redhat.com>
130 * java/lang/Class.h (_Jv_GetClassStatus): Declare.
131 * java/lang/natClass.cc (_Jv_GetClassStatus): New function.
132 * jvmti.cc (_Jv_JVMTI_GetClassStatus): New function.
133 (_Jv_JVMTI_Interface): Define GetClassStatus.
135 2007-01-22 Tom Tromey <tromey@redhat.com>
137 * configure: Rebuilt.
138 * configure.ac (GCJ): Reverted patch of 2006-12-20.
140 2007-01-22 Tom Tromey <tromey@redhat.com>
143 * testsuite/libjava.jni/pr29812.java: New file.
144 * testsuite/libjava.jni/pr29812_injar.java: New file.
145 * testsuite/libjava.jni/pr29812_injar.jar: New file.
146 * testsuite/libjava.jni/pr29812.out: New file.
147 * testsuite/libjava.jni/pr29812_injar.c: New file.
148 * testsuite/libjava.jni/pr29812_injar.h: New file.
149 * testsuite/libjava.jni/pr29812.jar: New file.
150 * testsuite/libjava.jni/pr29812.c: New file.
151 * testsuite/libjava.jni/pr29812.h: New file.
152 * testsuite/libjava.jni/jni.exp (gcj_jni_get_cxxflags_invocation):
154 (gcj_jni_invocation_test_one): Use it.
155 (gcj_jni_pr29812): New proc.
156 (gcj_jni_run): Use it.
157 * java/lang/natRuntime.cc (_load): Push a new system frame before
159 * include/jvm.h (_Jv_JNI_PopSystemFrame): Declare.
160 (_Jv_GetJNIEnvNewFrameWithLoader): Likewise.
161 * jni.cc (struct _Jv_JNI_LocalFrame) <marker>: Now unsigned char.
162 <allocated_p>: Now bool.
164 (_Jv_JNI_EnsureLocalCapacity): Updated.
165 (_Jv_JNI_NewLocalRef): Likewise.
166 (_Jv_JNI_NewLocalRef): Likewise.
167 (_Jv_JNI_PopLocalFrame): Likewise.
168 (_Jv_JNI_FindClass): Likewise.
169 (_Jv_GetJNIEnvNewFrame): Likewise.
170 (_Jv_JNI_AttachCurrentThread): Likewise.
171 (_Jv_GetJNIEnvNewFrameWithLoader): New function.
172 (_Jv_GetJNIEnvNewFrame): Use it.
173 * include/jni_md.h (_CLASSPATH_JNIENV_CONTENTS): Removed 'klass'.
175 2007-01-22 Tom Tromey <tromey@redhat.com>
177 * libtool-version: Bump current to 9.
179 2007-01-22 Andrew Haley <aph@redhat.com>
181 * sysdep/alpha/locks.h (write_barrier): New.
183 2007-01-21 Matthias Klose <doko@debian.org>
185 * Makefile.am (install-exec-hook): Use transformed name.
186 * Makefile.in: Regenerate.
188 2007-01-19 Keith Seitz <keiths@redhat.com>
190 * gnu/classpath/jdwp/natVMVirtualMachine.cc: Mark unused parameters
191 in methods and reformat.
193 * gnu/classpath/jdwp/natVMFrame.cc: Mark unused parameters with
196 2007-01-18 Keith Seitz <keiths@redhat.com>
198 From Macro Trudel <mtrudel@gmx.ch>:
199 * gnu/classpath/jdwp/natVMVirtualMachine.cc (jdwpVMInitCB):
202 2007-01-18 Marco Trudel <mtrudel@gmx.ch>
204 * jni.cc (_Jv_JNI_FindClass): Initialize class.
205 * testsuite/libjava.jni/findclass2.jar: New file.
206 * testsuite/libjava.jni/findclass2.h: New file.
207 * testsuite/libjava.jni/findclass2.java: New file
208 * testsuite/libjava.jni/findclass2.c: New file.
209 * testsuite/libjava.jni/findclass2.out: New file.
211 2007-01-18 Tom Tromey <tromey@redhat.com>
213 * configure: Rebuilt.
214 * configure.ac: Use multi_basedir instead of libgcj_basedir.
216 2007-01-18 Gary Benson <gbenson@redhat.com>
218 * gnu/java/nio/natVMPipeEcos.cc:
219 Renamed from gnu/java/nio/natPipeImplEcos.cc.
220 * gnu/java/nio/natVMPipePosix.cc:
221 Renamed from gnu/java/nio/natPipeImplPosix.cc.
222 * gnu/java/nio/natVMPipeWin32.cc:
223 Renamed from gnu/java/nio/natPipeImplWin32.cc.
224 * gnu/java/nio/natVMSelectorEcos.cc:
225 Renamed from gnu/java/nio/natSelectorImplEcos.cc.
226 * gnu/java/nio/natVMSelectorPosix.cc:
227 Renamed from gnu/java/nio/natSelectorImplPosix.cc.
228 * gnu/java/nio/natVMSelectorWin32.cc:
229 Renamed from gnu/java/nio/natSelectorImplWin32.cc.
230 * java/io/natVMObjectInputStream.cc:
231 Renamed from java/io/natObjectInputStream.cc.
232 * java/lang/natVMDouble.cc:
233 Renamed from java/lang/natDouble.cc.
234 * java/lang/natVMFloat.cc:
235 Renamed from java/lang/natFloat.cc.
236 * Makefile.am, configure.ac: Reflect the above.
237 * Makefile.in, configure: Rebuilt.
239 2007-01-17 Andrew Haley <aph@redhat.com>
241 * Makefile.in: Rebuilt.
242 * Makefile.am (ecjx_LDFLAGS): Pass -fbootclasspath.
244 2007-01-17 Keith Seitz <keiths@redhat.com>
246 * java/lang/natThread.cc (finish_): Add JVMTI ThreadEnd notification.
247 (_Jv_NotifyThreadStart): Add JVMTI ThreadStart notification.
249 2007-01-16 Jack Howarth <howarth@bromo.med.uc.edu>
251 * configure.ac: Use multi.m4 from aclocal rather than custom
252 code. Use multi_basedir instead libgcj_basedir. Test for
253 /proc/self/exe when not cross-compiling.
254 * aclocal.m4: Regenerate.
255 * configure: Regenerate.
256 * Makefile.in: Regenerate.
258 2007-01-17 Gary Benson <gbenson@redhat.com>
260 * java/nio/natVMDirectByteBufferImpl.cc:
261 Renamed from java/nio/natDirectByteBufferImpl.cc.
262 * Makefile.am: Reflect the above.
263 * Makefile.in: Rebuilt.
265 2007-01-17 Marco Trudel <mtrudel@gmx.ch>
267 * jvmti.cc (_Jv_JVMTI_GetAllThreads): Now static. Use JNICALL.
268 Fixed indentation. Removed unused variable.
270 2007-01-16 Tom Tromey <tromey@redhat.com>
272 * java/lang/natThread.cc (finalize_native): Remove cast.
273 (_Jv_GetCurrentJNIEnv): Likewise.
274 * include/jvm.h (struct natThread) <jni_env>: Declare as
277 2007-01-16 Keith Seitz <keiths@redhat.com>
279 * testsuite/libjava.jvmti/natevents.cc (FieldModificationCB): Use
280 %#llx instead of %d for new_value.
281 * testsuite/libjava.jvmti/events.out: Update expected output.
282 * testsuite/libjava.jvmti/events.jar: Regenerate.
284 2007-01-16 Keith Seitz <keiths@redhat.com>
286 * gnu/classpath/jdwp/natVMVirtualMachine.cc (DEFINE_CALLBACK):
288 (ENABLE_EVENT): New macro.
289 (initialize): Define and enable JVMTI VM_INIT callback.
290 (jdwpVMInitCB): New function.
292 2007-01-16 Kyle Galloway <kgallowa@redhat.com>
294 * jvmti.cc (_Jv_JVMTI_GetAllThreads): New function.
295 * testsuite/libjava.jvmti/getallthreads.java: New test.
296 * testsuite/libjava.jvmti/natgetallthreads.cc: Ditto.
297 * testsuite/libjava.jvmti/getallthreads.out: Ditto.
298 * testsuite/libjava.jvmti/getallthreads.h: Ditto.
299 * testsuite/libjava.jvmti/getallthreads.jar: Ditto.
301 2007-01-15 Keith Seitz <keiths@redhat.com>
303 * gnu/classpath/jdwp/natVMVirtualMachine.cc (suspendThread): Use
304 java.lang.StringBuilder instead of java.lang.StringBuffer.
305 (resumeThread): Likewise.
307 2007-01-15 Gary Benson <gbenson@redhat.com>
309 * java/nio/MappedByteBuffer.java: Removed.
310 * sources.am, Makefile.in: Rebuilt.
312 2007-01-15 Gary Benson <gbenson@redhat.com>
314 * java/net/URLClassLoader.java: Removed.
315 * gnu/java/net/loader/Load_gcjlib.java: New file.
316 * gnu/gcj/runtime/BootClassLoader.java: Ensure core
317 URL handler is present in static executables.
318 * sources.am, Makefile.in: Rebuilt.
320 2007-01-14 H.J. Lu <hongjiu.lu@intel.com>
322 * Makefile.am (libgcj_la_LDFLAGS): Add
323 $(LIBGCJ_LD_SYMBOLIC_FUNCTIONS).
324 (libgcj_tools_la_LDFLAGS): Likewise.
325 (libgcj_bc_la_LDFLAGS): Likewise.
326 * Makefile.in: Regenerated.
328 * configure.ac: Use ACX_PROG_LD_GNU_SYMBOLIC. Set
329 LIBGCJ_LD_SYMBOLIC_FUNCTIONS to $SYMBOLIC_LDFLAGS. Set
330 libgcj_ld_symbolic to $SYMBOLIC_LDFLAGS if it isn't set.
331 Substitute LIBGCJ_LD_SYMBOLIC_FUNCTIONS.
332 * configure: Regenerated.
333 * aclocal.m4: Likewise.
334 * gcj/Makefile.in: Likewise.
335 * include/Makefile.in: Likewise.
336 * testsuite/Makefile.in: Likewise.
338 2007-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
340 * sysdep/sh/locks.h (read_barrier): New.
341 (write_barrier): Likewise.
343 2007-01-12 Andrew Haley <aph@redhat.com>
345 * include/i386-signal.h: Rewrite to use rt_sigaction.
347 2007-01-11 Andrew Haley <aph@redhat.com>
349 * prims.cc (jdwpOptions) Fix deprecated cast from char[] constant
351 * include/x86_64-signal.h (HANDLE_DIVIDE_OVERFLOW): Rewrite to fix
354 2007-01-10 Tom Tromey <tromey@redhat.com>
356 * gnu/gcj/xlib/*.h: New files.
357 * gnu/awt/xlib/*.h: Likewise.
358 * classpath/lib/gnu/gcj/xlib: New class files.
359 * classpath/lib/gnu/awt/xlib: Likewise.
361 2007-01-10 Tom Tromey <tromey@redhat.com>
363 * HACKING: Various updates.
365 2007-01-10 Tom Tromey <tromey@redhat.com>
367 * java/lang/natDouble.cc (toString): Added parens.
368 * gnu/gcj/io/shs.h (PROTO): Define.
369 * link.cc (resolve_pool_entry): Added missing braces.
371 2007-01-10 H.J. Lu <hongjiu.lu@intel.com>
374 * sysdep/ia64/locks.h (read_barrier): New.
375 (write_barrier): New.
377 2007-01-10 Gary Benson <gbenson@redhat.com>
379 * java/net/URL.java: Removed.
380 * sources.am, Makefile.in: Rebuilt.
382 2007-01-10 Matthias Klose <doko@debian.org>
384 * Makefile.am (install-exec-hook): Support $(DESTDIR).
385 * Makefile.in: Regenerated.
387 2007-01-05 Tom Tromey <tromey@redhat.com>
389 * testsuite/libjava.loader/loader.exp (gcj_loader_run): Find
390 dummy.class in srcdir.
392 2007-01-03 Tom Tromey <tromey@redhat.com>
394 * testsuite/libjava.cni/cni.exp (gcj_cni_compile_cxx_to_o): Add -I
397 2007-01-03 Tom Tromey <tromey@redhat.com>
399 * testsuite/*: Added many .jar and .h files.
400 * testsuite/libjava.special/special.exp
401 (gcj_special_try_compiler): New proc.
402 * testsuite/libjava.loader/loader.exp (gcj_loader_run): Don't
403 bytecompile source. Search for .jar files.
404 (gcj_loader_test_one): Don't look for MyLoader.java.
405 * testsuite/libjava.jvmti/jvmti.exp (gcj_jvmti_test_one): Don't
406 bytecompile sources or build headers.
407 (gcj_jvmti_run): Look for .jar files.
408 * testsuite/libjava.jni/jni.exp (gcj_jni_run): Compile .jar
410 (gcj_jni_test_one): Don't bytecompile sources or build headers.
411 Set classpath when invoking gij.
412 (gcj_jni_invocation_test_one): Likewise.
413 * testsuite/libjava.cni/cni.exp (gcj_cni_test_one): Don't build
414 headers or bytecompile sources.
415 (gcj_cni_run): Use .jar files, not .java files.
416 * testsuite/libjava.lang/lang.exp: Compile .jar files.
418 2007-01-02 Tom Tromey <tromey@redhat.com>
420 * configure: Rebuilt.
421 * configure.ac: Check for gjar.
423 2007-01-02 Tom Tromey <tromey@redhat.com>
425 * testsuite/libjava.jacks/jacks.exp: Removed.
426 * testsuite/libjava.jacks/jacks.xfail: Removed.