1 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
3 * configure: Regenerate.
5 2007-05-31 Andrew Haley <aph@redhat.com>
7 * java/lang/natClassLoader.cc (_Jv_NewClassFromInitializer): Clear
8 INTERPRETED access modifier.
10 2007-05-31 Paolo Bonzini <bonzini@gnu.org>
13 * configure: Regenerated.
14 * aclocal.m4: Regenerated.
16 2007-05-30 H.J. Lu <hongjiu.lu@intel.com>
19 * configure: Regenerated.
21 2007-05-29 H.J. Lu <hongjiu.lu@intel.com>
23 * configure.ac: Don't include ../config/confsubdir.m4.
24 * aclocal.m4: Regenerated.
25 * configure: Likewise.
27 2007-05-27 Paolo Bonzini <bonzini@gnu.org>
30 * configure.ac: Include confsubdir.m4.
31 * configure: Regenerate.
33 2007-05-24 Keith Seitz <keiths@redhat.com>
35 * include/java-interp.h (_Jv_InterpFrame::get_pc): Only deduct
36 one when pc_ptr is non-NULL.
38 * prims.cc (parse_init_args): Enable JVMTI with agentlib
39 and agentpath options.
41 * testsuite/lib/libjava.exp (exec_gij): Add new addl_flags
43 * testsuite/libjava.jvmti/jvmti-interp.exp (gij_jvmti_test_one):
44 Pass '-agentlib:dummyagent' when executing gij.
45 (gij_jvmti_run): Build dummy JVMTI agent before running tests,
46 and remove it when finished.
47 * testsuite/libjava.jvmti/dummyagent.c: New file.
49 2007-05-23 Steve Ellcey <sje@cup.hp.com>
51 * Makefile.in: Regenerate.
52 * configure: Regenerate.
53 * aclocal.m4: Regenerate.
54 * gcj/Makefile.in: Regenerate.
55 * include/Makefile.in: Regenerate.
56 * testsuite/Makefile.in: Regenerate.
58 2007-05-17 Kyle Galloway <kgallowa@redhat.com>
60 * classpath/gnu/classpath/jdwp/processor/ReferenceTypeCommandSet.java
61 (executeMethods): Remove cast to ClassReferenceTypeId.
62 * classpath/lib/gnu/classpath/jdwp/processor/
63 ReferenceTypeCommandSet.class: Rebuilt.
65 2007-05-17 Kyle Galloway <kgallowa@redhat.com>
67 * gnu/classpath/jdwp/natVMMethod.cc (getModifiers): Check for native
68 classes and mark methods as native appropriately.
70 2007-05-17 Kyle Galloway <kgallowa@redhat.com>
72 * gnu/classpath/jdwp/VMFrame.java (<init>): Add parameter for "this"
74 * gnu/classpath/jdwp/VMFrame.h: Regenerated.
75 * classpath/lib/gnu/classpath/jdwp/VMFrame.class: Rebuilt.
76 * gnu/classpath/jdwp/natVMVirtualMachine.cc (getFrame): Use new
79 2007-05-16 David Daney <ddaney@avtrex.com>
81 * include/java-stack.h (_Jv_FrameInfo): Remove union definition.
82 (_Jv_StackFrame): Remove commented out code.
83 (_Jv_UnwindState): Remove superfluous 'typedef'.
84 * sun/misc/natUnsafe.cc (spinlock): Add white space to quiet
86 * gnu/java/lang/management/natVMMemoryPoolMXBeanImpl.cc
87 (getCollectionUsage): Don't declare unused parameter n.
88 (getMemoryManagerNames): Same.
89 * gnu/gcj/util/natGCInfo.cc (gc_debug_info): Remove superfluous
92 2007-05-16 Keith Seitz <keiths@redhat.com>
94 * include/java-interp.h (breakpoint_at): Declare.
95 * interpret.cc (breakpoint_at): New function.
96 * gnu/classpath/jdwp/VMVirtualMachine.java (_event_list):
98 * gnu/classpath/jdwp/natVMVirtualMachine.cc (initialize):
99 Initialize _event_list.
100 (handle_single_step): If there is a breakpoint at the
101 location at which we are stopping, do not send the notification.
102 Instead add the event to a list of events that occur at this
104 (jdwpBreakpointCB): If the event list is not empty, send
105 whatever events are in it and the breakpoint event in a single
107 Mark parameter jni_env as MAYBE_UNUSED.
108 * classpath/lib/gnu/classpath/jdwp/VMVirtualMachine.class:
110 * gnu/classpath/jdwp/VMVirtualMachine.h: Regenerated.
112 2007-05-15 David Daney <ddaney@avtrex.com>
114 * classpath/lib/javax/swing/text/html/HTMLEditorKit.class: Regenerate
115 * gnu/java/awt/peer/gtk/ComponentGraphics.h: Same.
117 2007-05-15 Keith Seitz <keiths@redhat.com>
119 * interpret.cc (STOREA): Rewrite using temporary variable to
120 avoid double-macro expansion side-effects.
123 (STOREL)[SIZEOF_VOID_P == 8]: Likewise.
124 (STORED)[SIZEOF_VOID_P == 8]: Likewise.
125 (STOREL)[SIZEOF_VOID_P != 8]: Likewise.
126 (STORED)[SIZEOF_VOID_P != 8]: Likewise.
129 2007-05-12 David Daney <ddaney@avtrex.com>
132 * include/posix-threads.h (_Jv_BlockSigchld): Declare.
133 (_Jv_UnBlockSigchld): Same.
134 * posix-threads.cc: Include posix-threads.h.
135 (block_sigchld) Rename to...
136 (_Jv_BlockSigchld) ... this.
137 (_Jv_UnBlockSigchld): New function.
138 (_Jv_InitThreads): Call _Jv_BlockSigchld in place of block_sigchld.
139 (_Jv_ThreadStart): Same.
140 * java/lang/PosixProcess$ProcessManager.h: Regenerate.
141 * java/lang/PosixProcess.java: Clean up imports.
142 (ProcessManager): Make final.
143 (ProcessManager.queue): Genericise and make private.
144 (ProcessManager.pidToProcess): Remove.
145 (ProcessManager.liveProcesses): New field.
146 (ProcessManager.reaperPID): Remove.
147 (ProcessManager.nativeData): New field.
148 (ProcessManager.removeProcessFromMap): Remove.
149 (ProcessManager.addProcessToMap):Remove.
150 (ProcessManager.addToLiveProcesses): New method.
151 (ProcessManager.run): Rewritten.
152 (ProcessManager.reap): Change method signature,
153 (getErrorStream): Correct formatting.
154 (getInputStream): Same.
155 (spawn): Add process to liveProcesses list.
156 (pid): Make package private.
157 * java/lang/PosixProcess.h: Regenerate.
158 * java/lang/natPosixProcess.cc: Include posix.h and posix-threads.h.
159 Add useing namespace java::lang.
160 (ProcessManagerInternal): New struct.
161 (sigchld_handler): Rewritten.
163 (waitForSignal): Same.
165 (signalReaper): Same.
166 (nativeDestroy): Call kill as ::kill.
167 (nativeSpawn): Correct formatting.
168 * classpath/lib/java/lang/PosixProcess$EOFInputStream.class: Regenerate.
169 * classpath/lib/java/lang/PosixProcess.class: Same.
170 * classpath/lib/java/lang/PosixProcess$ProcessManager.class: Same.
172 2007-05-07 Ian Lance Taylor <iant@google.com>
175 * java/lang/natString.cc (_Jv_FormatInt): Avoid undefined signed
178 2007-05-07 Keith Seitz <keiths@redhat.com>
180 * classpath/lib/gnu/classpath/jdwp/Jdwp.class: Regenerate.
181 * classpath/lib/gnu/classpath/jdwp/Jdwp$1.class: Regenerate.
182 * classpath/lib/gnu/classpath/jdwp/event/Event.class:
184 * classpath/lib/gnu/classpath/jdwp/transport/JdwpConnection.class:
186 * gnu/classpath/jdwp/Jdwp.h: Regenerate.
187 * gnu/classpath/jdwp/event/Event.h: Regenerate.
188 * gnu/classpath/jdwp/transport/JdwpConnection.h: Regenerate.
190 2007-05-04 Kyle Galloway <kgallowa@redhat.com>
192 * gnu/classpath/jdwp/natVMVirtualMachine.cc (getClassMethod): Change
195 2007-05-03 Keith Seitz <keiths@redhat.com>
197 * interpret.cc: Don't include ExceptionEvent.h.
198 * gnu/gcj/jvmti/natExceptionEvent.cc: Remove.
199 * Makefile.am (nat_source_files): Remove natExceptionEvent.cc.
200 * Makefile.in: Regenerated.
202 2007-05-03 Keith Seitz <keiths@redhat.com>
204 * include/jvmti-int.h (_Jv_ReportJVMTIExceptionThrow):
206 * interpret.cc (_Jv_ReportJVMTIExceptionThrow): New function.
207 (find_catch_location): New function.
208 (REPORT_EXCEPTION): New macro.
209 (throw_internal_error): Use REPORT_EXCEPTION.
210 (throw_incompatible_class_change_error): Likewise.
211 (throw_null_pointer_exception): Likewise.
212 (throw_class_format_error): Likewise.
213 * interpret-run.cc (INTERP_REPORT_EXCEPTION)[DEBUG]: Set
215 (INTERP_REPORT_EXCEPTION)[!DEBUG]: Make nop.
216 (insn_new): Use INTERP_REPORT_EXCEPTION.
217 (insn_athrow): Likewise.
218 Remove previous JVMTI exception notifications.
219 Add JVMTI ExceptionCatch notificatin.
220 * jni.cc (_Jv_PopSystemFrame): Notify JVMTI clients of
222 * gnu/gcj/jvmti/ExceptionEvent.java: Removed.
223 * gnu/gcj/jvmti/ExceptionEvent.h: Removed.
224 * classpath/lib/gnu/gcj/jvmti/ExceptionEvent.class: Removed.
225 * gnu/classpath/jdwp/natVMVirtualMachine.cc
226 (jdwpExceptionCB): New function.
227 (jdwpVMInitCB): Set Exception event handler and enable.
228 * sources.am: Regenerated.
229 * Makefile.in: Regenerated.
231 2007-05-03 Thomas Fitzsimmons <fitzsim@redhat.com>
233 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=237304
234 * Makefile.in: Regenerate.
235 * scripts/makemake.tcl (scan_directory): Treat default.css as a
237 * classpath/javax/swing/text/html/default.css: Move to...
238 * classpath/resource/javax/swing/text/html/default.css: New file.
239 * classpath/javax/swing/text/html/HTMLEditorKit.java
240 (getStyleSheet): Throw RuntimeException when style loading fails.
241 * sources.am (property_files): Add
242 classpath/resource/javax/swing/text/html/default.css.
244 2007-05-02 Tom Tromey <tromey@redhat.com>
246 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=238755
247 * java/lang/natCharacter.cc (Character::getType): Handle negative
249 (Character::toLowerCase): Likewise.
250 (Character::toUpperCase): Likewise.
251 (Character::digit): Likewise.
252 (Character::getNumericValue): Likewise.
253 (Character::getDirectionality): Likewise.
254 (Character::toTitleCase): Likewise.
256 2007-04-30 Keith Seitz <keiths@redhat.com>
258 * interpret-run.cc (NEXT_INSN)[DEBUG]: Advance PC before
259 executing the instruction.
260 * include/java-interp.h (_Jv_InterpFrame::get_pc): Subtract
261 one insn from the frame's PC. _Jv_InterpMethod::run et al
262 will advance the PC before executing the instruction.
264 2007-04-27 Keith Seitz <keiths@redhat.com>
266 * classpath/lib/gnu/classpath/jdwp/Jdwp.class: Regenerated.
267 * classpath/lib/gnu/classpath/jdwp/event/EventManager.class:
269 * gnu/classpath/jdwp/event/EventManager.h: Regenerated.
271 2007-04-27 Keith Seitz <keiths@redhat.com>
273 * classpath/lib/gnu/classpath/jdwp/event/filters/
274 LocationOnlyFilter.class: Regenerated;
275 * classpath/lib/gnu/classpath/jdwp/util/Location.class:
277 * gnu/classpath/jdwp/VMMethod.java
278 * classpath/lib/gnu/classpath/jdwp/VMMethod.class:
280 * gnu/classpath/jdwp/VMMethod.h: Regenerated.
281 * gnu/classpath/jdwp/util/Location.h: Regenerated.
283 2007-04-27 Thomas Fitzsimmons <fitzsim@redhat.com>
285 * gnu/java/awt/peer/gtk/CairoGraphics2D.h: Regenerate.
286 * gnu/java/awt/peer/gtk/ComponentGraphics.h: Regenerate.
288 2007-04-25 Kyle Galloway <kgallowa@redhat.com>
290 * gnu/classpath/jdwp/VMIdManager.java (getObjectId): Deal with null
292 (get): Deal with ObjectId of 0.
294 2007-04-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
297 * java/lang/natVMProcess.cc: Include platform.h before jvm.h.
299 2007-04-24 Kyle Galloway <kgallowa@redhat.com>
301 * gnu/classpath/jdwp/natVMVirtualMachine.java
302 (getThreadStatus): Implement.
304 2007-04-24 Keith Seitz <keiths@redhat.com>
306 * headers.txt (gnu/gcj/jvmti/Breakpoint.h)[DIRECT_THREADED]:
307 Add _Jv_RewriteBreakpointInsn friend declaration.
308 * gnu/gcj/jvmti/natBreakpoint.cc (_Jv_RewriteBreakpointInsn)
309 [DIRECT_THREADED]: New function.
310 * gnu/gcj/jvmti/Breakpoint.h: Regenerate.
311 * interpret-run.cc: Define new REWRITE_INSN macro.
312 Changed all occurrences of insn rewriting to call REWRITE_INSN.
314 2007-04-23 Keith Seitz <keiths@redhat.com>
316 * include/no-gc.h (_Jv_IsThreadSuspended): Declare.
317 * include/boehm-gc.h (_Jv_IsThreadSuspended): Likewise.
318 * boehm.cc (_Jv_IsThreadSuspended): New function.
319 * nogc.cc (_Jv_IsThreadSuspended): Likewise.
320 * jvmti.cc (_Jv_JVMTI_GetThreadState): New function.
321 (_Jv_JVMTI_Interface): Define GetThreadState.
323 2007-04-23 Kyle Galloway <kgallowa@redhat.com>
325 * include/java-interp.h (_Jv_InterpFrame): Add pointer to the
327 (<init>): Add a pointer to the interpreter PC as a parameter with
329 (get_pc): New method.
330 * interpret-run.cc: If debugging, pass a pointer to the PC when
331 creating the stack frame.
332 * jvmti.cc (_Jv_JVMTI_GetStackTrace): Call _Jv_InterpFrame::get_pc
335 2007-04-23 Kyle Galloway <kgallowa@redhat.com>
337 * gnu/classpath/jdwp/natVMVirtualMachine.cc (getSourceFile): Check
338 for null source file and throw an exception indicating this.
340 2007-04-20 Keith Seitz <keiths@redhat.com>
342 * gnu/gcj/jvmti/BreakpointManager.java (newBreakpoint):
343 Install the new breakpoint into the bytecode.
344 (deleteBreakpoint): Remove the breakpoint from the bytecode.
345 * classpath/lib/gnu/gcj/jvmti/BreakpointManager.class:
347 * gnu/gcj/jvmti/natBreakpoint.cc (initialize_native):
348 Don't install the breakpoint here.
350 2007-04-19 Keith Seitz <keiths@redhat.com>
352 * interpret-run.cc [insn_breakpoint]: Save the original
353 insn for the breakpoint before posting the JVMTI notification.
355 2007-04-19 Tom Tromey <tromey@redhat.com>
357 * gnu/javax/net/ssl/provider/SSLSocketFactoryImpl.h: Rebuilt.
359 2007-04-18 Tom Tromey <tromey@redhat.com>
361 * Regenerated headers with new gjavah.
363 2007-04-18 Andrew Haley <aph@redhat.com>
365 * java/lang/reflect/natVMProxy.cc (ncode_closure): Add
367 (generateProxyClass): Add field $Proxy0.m. Store methods array in
369 (run_proxy): Retrieve the method to invoke from in $Proxy0.m.
370 * java/lang/Class.h: Remove _Jv_LookupProxyMethod.
371 * java/lang/natClass.cc: Likewise.
372 * headers.txt: Likewise.
373 * java/lang/reflect/Method.h: Likewise.
375 2007-04-16 Andrew Haley <aph@redhat.com>
377 * gnu/gcj/runtime/BootClassLoader.java (getBootURLLoader): New
379 (bootGetResource): Use getBootURLLoader() to load resources.
380 (bootGetResources): Likewise.
382 * java/lang/reflect/natMethod.cc (Method::invoke): In invoke also
383 check that the method's declaring class is accessible.
385 2007-04-10 Keith Seitz <keiths@redhat.com>
387 * sources.am: Regenerate.
388 * Makefile.in: Likewise.
390 2007-04-09 Kyle Galloway <kgallowa@redhat.com>
392 * interpret-run.cc: If debugging, check if args is NULL before
393 getting the "this" pointer.
395 2007-04-09 Kyle Galloway <kgallowa@redhat.com>
397 * classpath/gnu/classpath/jdwp/value/ArrayValue.java: New file.
398 * classpath/lib/gnu/classpath/jdwp/value/ArrayValue.class: New file.
399 * gnu/classpath/jdwp/ArrayValue.h: New file.
400 * gnu/classpath/jdwp/natVMFrame.cc (getValue): Add array case.
403 2007-04-09 David Daney <ddaney@avtrex.com>
406 * java/lang/natPosixProcess.cc (nativeSpawn): Move building of
407 environment before the fork.
408 * testsuite/libjava.lang/Process_7.java: New test.
409 * testsuite/libjava.lang/Process_7.out: Its expected results.
410 * testsuite/libjava.lang/Process_7.jar: Generated file.
412 2007-04-09 H.J. Lu <hongjiu.lu@intel.com>
414 * prims.cc (load_jvmti_agent): Add the missing `,'.
416 2007-04-09 Kyle Galloway <kgallowa@redhat.com>
418 * gij.cc (main): Accept -agentlib and -agentpath options.
419 * prims.cc (parse_init_args): Deal with -agentlib and -agentpath.
420 (load_jvmti_agent): New function.
422 2007-04-04 Tania Bento <tbento@redhat.com>
424 * java/text/DecimalFormatSymbols.java: Added the year 2007 to
425 Copyright information and introduced new variable, currency.
426 (DecimalFormatSymbols(Locale)): Define currency and intlCurrencySymbol
427 to "XXX", currencySymbol to "?" and localCurrency appropriately.
428 (getCurrency): Fixed documentation and return the value of currency.
429 (setCurrency): Fixed documentation and update the value of currency.
430 (setInternationalCurrencySymbol): Fixed documentation and update the
432 * java/util/Currency.java: Introduced two new variables, properties
433 and fractionDigits. In the static block, a properties object is
434 created and the currency resource is loaded.
435 (Currency(Locale)): fractionDigits is defined.
436 (Currency(String)): New method.
437 (getDefaultFractionDigits): Return the value of fractionDigits.
438 (getInstance(String)): Check if String is equal to "XXX".
440 2007-04-04 Kyle Galloway <kgallowa@redhat.com>
442 * classpath/gnu/classpath/jdwp/util/VariableTable.java: Change longs
443 to ints for argCnt and slots.
444 (write): Replace writeLong with writeInt for the above.
446 2007-04-03 Andrew Haley <aph@redhat.com>
448 * testsuite/libjava.lang/ProxyTest.java: New test.
450 2007-04-02 Tom Tromey <tromey@redhat.com>
452 http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=205157
453 * gnu/java/nio/channels/natFileChannelPosix.cc (mapImpl): Extend
454 file, when writing, if it is too short.
456 2007-04-02 Tom Tromey <tromey@redhat.com>
458 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=233406
459 * gnu/java/net/natPlainSocketImplPosix.cc (create): Return if
461 * gnu/java/net/PlainSocketImpl.java (getLocalAddress): Handle case
462 where localport is -1.
463 (create): Now public.
464 * gnu/java/nio/SocketChannelImpl.java (SocketChannelImpl): Call
465 'create' on the socket.
467 2007-04-02 Andrew Haley <aph@redhat.com>
469 * java/lang/reflect/natVMProxy.cc (run_proxy): Use
470 _Jv_LookupProxyMethod to find the Method.
471 If parameter_types->length == 0, pass a null paramameter list,
472 not a zero-length parameter list.
473 * java/lang/natClass.cc (_Jv_LookupProxyMethod): New function.
474 * java/lang/Class.h (_Jv_LookupProxyMethod): Declare.
476 2007-04-02 Kyle Galloway <kgallowa@redhat.com>
478 * interpret-run.cc: Add code to properly set up variable slots
480 * gnu/classpath/jdwp/natVMFrame.cc (checkJVMTIError): New function.
481 (getObjectJVMTI): New function.
482 (setObjectJVMTI): New function.
483 (getIntJVMTI): New function.
484 (setIntJVMTI): New function.
485 (getLongJVMTI): New function.
486 (setLongJVMTI): New function.
487 (getFloatJVMTI): New function.
488 (setFloatJVMTI): New function.
489 (getDoubleJVMTI): New function.
490 (setDoubleJVMTI): New function.
491 (getFrameDepth): New function.
492 (getValue): Implement.
493 (setValue): Implement.
495 2007-04-02 Kyle Galloway <kgallowa@redhat.com>
497 * classpath/gnu/classpath/jdwp/processor/ThreadReferenceCommandSet.java
498 (executeResume): Call VMVirtualMachine.resumeThread.
500 2007-03-29 Tom Tromey <tromey@redhat.com>
503 * java/util/logging/LogManager.java (readConfiguration): Handle
504 comma-separated 'handlers'. Don't try to add a non-existing
507 2007-03-27 Tom Tromey <tromey@redhat.com>
509 * sources.am, Makefile.in: Rebuilt.
510 * scripts/mime.types: Removed.
511 * scripts/MakeDefaultMimeTypes.java: Removed.
512 * gnu/gcj/io/MimeTypes.java: Removed.
513 * gnu/gcj/io/MimeTypes.h: Removed.
514 * gnu/gcj/io/DefaultMimeTypes.java: Removed.
515 * gnu/gcj/io/DefaultMimeTypes.h: Removed.
517 2007-03-27 Keith Seitz <keiths@redhat.com>
519 * gnu/classpath/jdwp/VMFrame.java: Update from upstream
521 * gnu/classpath/jdwp/natVMFrame.cc: Likewise.
522 * gnu/classpath/jdwp/VMVirtualMachine.java: Likewise.
523 * gnu/classpath/jdwp/natVMVirtualMachine.cc: Likewise.
524 (initialize): Fix compiler type-punning warning.
525 (getAllLoadedClasses): Return empty list instead of NULL.
526 (getLoadRequests): Likewise.
527 * gnu/classpath/jdwp/exception/InvalidTagException.h: New file.
528 * gnu/classpath/jdwp/exception/InvalidSlotException.h: New file.
529 * gnu/classpath/jdwp/exception/TypeMismatchException.h: New file.
530 * gnu/classpath/jdwp/VMVirtualMachine.h: Rebuilt.
531 * gnu/classpath/jdwp/value/CharValue.h: New file.
532 * gnu/classpath/jdwp/value/LongValue.h: New file.
533 * gnu/classpath/jdwp/value/ShortValue.h: New file.
534 * gnu/classpath/jdwp/value/Value.h: New file.
535 * gnu/classpath/jdwp/value/BooleanValue.h: New file.
536 * gnu/classpath/jdwp/value/VoidValue.h: New file.
537 * gnu/classpath/jdwp/value/ByteValue.h: New file.
538 * gnu/classpath/jdwp/value/FloatValue.h: New file.
539 * gnu/classpath/jdwp/value/ObjectValue.h: New file.
540 * gnu/classpath/jdwp/value/StringValue.h: New file.
541 * gnu/classpath/jdwp/value/ValueFactory.h: New file.
542 * gnu/classpath/jdwp/value/IntValue.h: New file.
543 * gnu/classpath/jdwp/value/DoubleValue.h: New file.
544 * gnu/classpath/jdwp/VMFrame.h: Rebuilt.
545 * gnu/classpath/jdwp/id/NullObjectId.h: New file.
546 * gnu/classpath/jdwp/util/MethodResult.h: Rebuilt.
547 * gnu/classpath/jdwp/util/NullObject.h: New file.
548 * gnu/classpath/jdwp/util/MonitorInfo.h: New file.
549 * Makefile.in: Rebuilt.
550 * sources.am: Rebuilt.
552 2006-03-26 David Daney <ddaney@avtrex.com>
554 * configure.ac: Remove checks for mktime, alloca, ioctl, gmtime_r,
555 fork, execvp, execinfo.h, pthread_mutexattr_settype,
556 pthread_mutexattr_setkind_np and sys/wait.h.
557 * Makefile.in: Regenerate.
558 * include/Makefile.in: Regenerate.
559 * include/config.h.in: Regenerate.
560 * testsuite/Makefile.in: Regenerate.
561 * configure: Regenerate.
562 * gcj/Makefile.in: Regenerate.
564 2007-03-23 Gary Benson <gbenson@redhat.com>
566 * link.cc (_Jv_Linker::resolve_method_entry):
567 Ensure that the argument types and the return type of the
568 found method match those expected by the calling method.
570 2007-03-22 David Daney <ddaney@avtrex.com>
573 * configure.ac: Add checks for getrlimit and sys/resource.h.
574 * include/posix.h (_Jv_platform_close_on_exec): Remove.
575 * include/config.h.in: Regenerate.
576 * configure: Regenerate.
577 * gnu/java/nio/channels/natFileChannelPosix.cc (open): Remove call to
578 _Jv_platform_close_on_exec;
579 * gnu/java/net/natPlainSocketImplPosix.cc (create): Likewise.
581 * gnu/java/net/natPlainDatagramSocketImplPosix.cc (create):Likewise.
582 * java/lang/natPosixProcess.cc: Include sys/resource.h.
583 (nativeSpawn): Close all file descriptors. Don't set FD_CLOEXEC on
586 2007-03-20 Andrew Haley <aph@redhat.com>
588 * testsuite/libjava.lang/PR31264.java: New test.
590 2007-03-14 Jakub Jelinek <jakub@redhat.com>
592 * Makefile.am (AM_MAKEFLAGS): Pass through mandir.
593 * Makefile.in: Rebuilt.
595 2007-03-13 Keith Seitz <keiths@redhat.com>
597 * include/java-interp.h (_Jv_InterpClass): Declare
598 friend function _Jv_GetInterpClassSourceFile.
599 * java/lang/Class.h (Class): Likewise.
600 * java/lang/natClass.cc (_Jv_GetInterpClassSourceFile):
602 * gnu/classpath/jdwp/natVMVirtualMachine.cc
603 (getSourceFile): Implement.
605 2007-03-13 Thomas Fitzsimmons <fitzsim@redhat.com>
607 * Makefile.am (AM_CXXFLAGS): Define ECJ_JAR_FILE.
608 * classpath/configure.ac: Add --with-ecj-jar configure option.
609 * classpath/gnu/classpath/Configuration.java.in (ECJ_JAR): New
611 * classpath/INSTALL: Document --with-ecj-jar configure option and
612 ecj jar requirement for com.sun.tools.javac support.
613 * classpath/tools/Makefile.am: Build decendents of com and sun
615 * configure.ac: Substitute ECJ_JAR in stub Configuration.java.
616 * gnu/classpath/Configuration.java,
617 gnu/classpath/natConfiguration.cc (ecj): New method.
618 (ECJ_JAR): New field.
619 * scripts/makemake.tcl (scan_packages): Add com directory.
620 * sources.am (property_files): Add
621 classpath/resource/sun/rmi/rmic/messages.properties and
622 classpath/resource/com/sun/tools/javac/messages.properties.
623 * classpath/resource/com, classpath/resource/com/sun,
624 classpath/resource/com/sun/tools,
625 classpath/resource/com/sun/tools/javac, classpath/resource/sun,
626 classpath/resource/sun/rmi, classpath/resource/sun/rmi/rmic,
627 classpath/tools/classes/com, classpath/tools/classes/com/sun,
628 classpath/tools/classes/com/sun/javadoc,
629 classpath/tools/classes/com/sun/tools,
630 classpath/tools/classes/com/sun/tools/doclets,
631 classpath/tools/classes/sun, classpath/tools/classes/sun/rmi,
632 classpath/tools/classes/sun/rmi/rmic, classpath/tools/com,
633 classpath/tools/com/sun, classpath/tools/com/sun/javadoc,
634 classpath/tools/com/sun/tools,
635 classpath/tools/com/sun/tools/doclets,
636 classpath/tools/com/sun/tools/javac, classpath/tools/sun,
637 classpath/tools/sun/rmi, classpath/tools/sun/rmi/rmic: New
639 * classpath/resource/com/sun/tools/javac/messages.properties,
640 classpath/resource/sun/rmi/rmic/messages.properties,
641 classpath/tools/classes/com/sun/javadoc/ClassDoc.class,
642 classpath/tools/classes/com/sun/javadoc/ConstructorDoc.class,
643 classpath/tools/classes/com/sun/javadoc/Doc.class,
644 classpath/tools/classes/com/sun/javadoc/DocErrorReporter.class,
645 classpath/tools/classes/com/sun/javadoc/Doclet.class,
646 classpath/tools/classes/com/sun/javadoc/ExecutableMemberDoc.class,
647 classpath/tools/classes/com/sun/javadoc/FieldDoc.class,
648 classpath/tools/classes/com/sun/javadoc/MemberDoc.class,
649 classpath/tools/classes/com/sun/javadoc/MethodDoc.class,
650 classpath/tools/classes/com/sun/javadoc/PackageDoc.class,
651 classpath/tools/classes/com/sun/javadoc/ParamTag.class,
652 classpath/tools/classes/com/sun/javadoc/Parameter.class,
653 classpath/tools/classes/com/sun/javadoc/ProgramElementDoc.class,
654 classpath/tools/classes/com/sun/javadoc/RootDoc.class,
655 classpath/tools/classes/com/sun/javadoc/SeeTag.class,
656 classpath/tools/classes/com/sun/javadoc/SerialFieldTag.class,
657 classpath/tools/classes/com/sun/javadoc/SourcePosition.class,
658 classpath/tools/classes/com/sun/javadoc/Tag.class,
659 classpath/tools/classes/com/sun/javadoc/ThrowsTag.class,
660 classpath/tools/classes/com/sun/javadoc/Type.class,
661 classpath/tools/classes/com/sun/javadoc/TypeVariable.class,
662 classpath/tools/classes/com/sun/tools/doclets/Taglet.class,
663 classpath/tools/classes/sun/rmi/rmic/Main.class,
664 classpath/tools/classes/sun/rmi/rmic/Messages.class,
665 classpath/tools/com/sun/javadoc/ClassDoc.java,
666 classpath/tools/com/sun/javadoc/ConstructorDoc.java,
667 classpath/tools/com/sun/javadoc/Doc.java,
668 classpath/tools/com/sun/javadoc/DocErrorReporter.java,
669 classpath/tools/com/sun/javadoc/Doclet.java,
670 classpath/tools/com/sun/javadoc/ExecutableMemberDoc.java,
671 classpath/tools/com/sun/javadoc/FieldDoc.java,
672 classpath/tools/com/sun/javadoc/MemberDoc.java,
673 classpath/tools/com/sun/javadoc/MethodDoc.java,
674 classpath/tools/com/sun/javadoc/PackageDoc.java,
675 classpath/tools/com/sun/javadoc/ParamTag.java,
676 classpath/tools/com/sun/javadoc/Parameter.java,
677 classpath/tools/com/sun/javadoc/ProgramElementDoc.java,
678 classpath/tools/com/sun/javadoc/RootDoc.java,
679 classpath/tools/com/sun/javadoc/SeeTag.java,
680 classpath/tools/com/sun/javadoc/SerialFieldTag.java,
681 classpath/tools/com/sun/javadoc/SourcePosition.java,
682 classpath/tools/com/sun/javadoc/Tag.java,
683 classpath/tools/com/sun/javadoc/ThrowsTag.java,
684 classpath/tools/com/sun/javadoc/Type.java,
685 classpath/tools/com/sun/javadoc/TypeVariable.java,
686 classpath/tools/com/sun/tools/doclets/Taglet.java,
687 classpath/tools/com/sun/tools/javac/Main.java,
688 classpath/tools/com/sun/tools/javac/Messages.java,
689 classpath/tools/sun/rmi/rmic/Main.java,
690 classpath/tools/sun/rmi/rmic/Messages.java: New files.
691 * Makefile.in, classpath/Makefile.in, classpath/configure,
692 classpath/doc/Makefile.in, classpath/doc/api/Makefile.in,
693 classpath/examples/Makefile.in, classpath/external/Makefile.in,
694 classpath/external/jsr166/Makefile.in,
695 classpath/external/relaxngDatatype/Makefile.in,
696 classpath/external/sax/Makefile.in,
697 classpath/external/w3c_dom/Makefile.in,
698 classpath/include/Makefile.in, classpath/include/config.h.in,
699 classpath/lib/Makefile.in,
700 classpath/lib/gnu/classpath/Configuration.class,
701 classpath/native/Makefile.in, classpath/native/fdlibm/Makefile.in,
702 classpath/native/jawt/Makefile.in,
703 classpath/native/jni/Makefile.in,
704 classpath/native/jni/classpath/Makefile.in,
705 classpath/native/jni/gconf-peer/Makefile.in,
706 classpath/native/jni/gtk-peer/Makefile.in,
707 classpath/native/jni/java-io/Makefile.in,
708 classpath/native/jni/java-lang/Makefile.in,
709 classpath/native/jni/java-net/Makefile.in,
710 classpath/native/jni/java-nio/Makefile.in,
711 classpath/native/jni/java-util/Makefile.in,
712 classpath/native/jni/midi-alsa/Makefile.in,
713 classpath/native/jni/midi-dssi/Makefile.in,
714 classpath/native/jni/native-lib/Makefile.in,
715 classpath/native/jni/qt-peer/Makefile.in,
716 classpath/native/jni/xmlj/Makefile.in,
717 classpath/native/plugin/Makefile.in,
718 classpath/resource/Makefile.in, classpath/scripts/Makefile.in,
719 classpath/tools/Makefile.in, configure,
720 gnu/classpath/Configuration.h: Regenerate.
722 2007-03-12 Kyle Galloway <kgallowa@redhat.com>
724 * jvmti.cc (_Jv_JVMTI_GetArgumentsSize): Make wide type arrays count
727 2007-03-12 Marco Trudel <mtrudel@gmx.ch>
729 * java/lang/natString.cc (getBytes (jstring enc)):
730 Fixed the loop for multiple cycles, Code cleanup
732 2007-03-09 Tom Tromey <tromey@redhat.com>
734 * sources.am, Makefile.in: Rebuilt.
735 * scripts/makemake.tcl (scan_directory): Allow service files to be
737 Omit all XML-related service files.
739 2007-03-07 Tom Tromey <tromey@redhat.com>
741 * configure: Rebuilt.
742 * configure.ac: Clear vm-tools-packages.
744 2007-03-07 Mohan Embar <gnustuff@thisiscool.com>
746 * java/lang/Win32Process.java: Added nested class EOFInputStream.
747 * java/lang/natWin32Process.cc (ChildProcessPipe): Added DUMMY
748 enum and implementation.
749 (startProcess): Use redirect flag.
750 * classpath/lib/java/lang/Win32Process.class: Regenerated.
751 * classpath/lib/java/lang/Win32Process$EOFInputStream.class: New.
752 * gcj/javaprims.h: Regenerated.
753 * java/lang/Win32Process$EOFInputStream.h: New.
755 2007-03-07 Andrew Haley <aph@redhat.com>
757 * libgcj_bc.c (JvRunMainName): Declare.
759 2007-03-07 Gary Benson <gbenson@redhat.com>
761 * sources.am, Makefile.in: Rebuilt.
763 2007-03-07 Mohan Embar <gnustuff@thisiscool.com>
765 * gcj/javaprims.h: Regenerated.
767 2007-03-07 Alexandre Oliva <aoliva@redhat.com>
769 * include/jvm.h (_Jv_ClosureListFinalizer): New.
770 (_Jv_Linker::create_error_method): Adjust.
771 * boehm.cc (_Jv_ClosureListFinalizer): New.
772 * nogc.cc (_Jv_ClosureListFinalizer): New.
773 * java/lang/Class.h (class _Jv_ClosureList): New.
774 (class java::lang::Class): Declare it as friend.
775 * java/lang/natClass.cc (_Jv_ClosureList::releaseClosures): New.
776 (_Jv_ClosureList::registerClousure): New.
777 * include/execution.h (_Jv_ExecutionEngine): Add get_closure_list.
778 (_Jv_CompiledEngine::do_get_closure_list): New.
779 (_Jv_CompiledEngine::_Jv_CompiledEngine): Use it.
780 (_Jv_IndirectCompiledClass): Add closures.
781 (_Jv_IndirectCompiledEngine::get_aux_info): New.
782 (_Jv_IndirectCompiledEngine::do_allocate_field_initializers): Use
784 (_Jv_IndirectCompiledEngine::do_get_closure_list): New.
785 (_Jv_IndirectCompiledEngine::_Jv_IndirectCompiledEngine): Use it.
786 (_Jv_InterpreterEngine::do_get_closure_list): Declare.
787 (_Jv_InterpreterEngine::_Jv_InterpreterEngine): Use it.
788 * interpret.cc (FFI_PREP_RAW_CLOSURE): Use _loc variants.
789 (node_closure): Add closure list.
790 (_Jv_InterpMethod::ncode): Add jclass argument. Use
791 ffi_closure_alloc and the separate code pointer. Register the
792 closure for finalization.
793 (_Jv_JNIMethod::ncode): Likewise.
794 (_Jv_InterpreterEngine::do_create_ncode): Pass klass to ncode.
795 (_Jv_InterpreterEngine::do_get_closure_list): New.
796 * include/java-interp.h (_Jv_InterpMethod::ncode): Adjust.
797 (_Jv_InterpClass): Add closures field.
798 (_Jv_JNIMethod::ncode): Adjust.
799 * defineclass.cc (_Jv_ClassReader::handleCodeAttribute): Adjust.
800 (_Jv_ClassReader::handleMethodsEnd): Likewise.
801 * link.cc (struct method_closure): Add closure list.
802 (_Jv_Linker::create_error_method): Add jclass argument. Use
803 ffi_closure_alloc and the separate code pointer. Register the
804 closure for finalization.
805 (_Jv_Linker::link_symbol_table): Remove outdated comment about
806 sharing of otable and atable. Adjust.
807 * java/lang/reflect/natVMProxy.cc (ncode_closure): Add closure
809 (ncode): Add jclass argument. Use ffi_closure_alloc and the
810 separate code pointer. Register the closure for finalization.
811 (java::lang::reflect::VMProxy::generateProxyClass): Adjust.
812 * testsuite/libjava.jar/TestClosureGC.java: New.
813 * testsuite/libjava.jar/TestClosureGC.out: New.
814 * testsuite/libjava.jar/TestClosureGC.xfail: New.
815 * testsuite/libjava.jar/TestClosureGC.jar: New.
817 2007-03-06 Kyle Galloway <kgallowa@redhat.com>
819 * classpath/gnu/classpath/jdwp/exception/AbsentInformationException.java: New file.
820 * classpath/lib/gnu/classpath/jdwp/exception/AbsentInformationException.class: Ditto.
821 * gnu/classpath/jdwp/exception/AbsentInformationException.h: Ditto.
822 * gnu/classpath/jdwp/natVMMethod.cc: Add CHECK_INTERP_CLASS macro.
823 (VMMethod::getLineTable): Use new macro.
824 (VMMethod::getVariableTable): Implement.
825 * sources.am: Regenerated.
826 * Makefile.in: Ditto.
828 2007-03-06 Tom Tromey <tromey@redhat.com>
830 * Makefile.in: Rebuilt.
831 * Makefile.am (bin_PROGRAMS): Added gcjh.
832 (gcjh_SOURCES, gcjh_LDFLAGS, gcjh_LINK, gcjh_LDADD,
833 gcjh_DEPENDENCIES): New variables.
835 2007-03-06 Kyle Galloway <kgallowa@redhat.com>
837 * jvmti.cc(_Jv_JVMTI_GetLocalVariableTable): Fix _Jv_Malloc parameters.
838 * testsuite/libjava.jvmti/interp/natgetlocalvartable.cc
839 (do_getlocalvartable_tests): Add Deallocate calls to free strings.
841 2007-03-05 Matthias Klose <doko@debian.org>
843 * Makefile.am (gij_LDFLAGS): Use dbexecdir.
844 * Makefile.in: Regnerate.
846 2007-03-05 Mark Wielaard <mark@klomp.org>
848 * java/lang/Character.java: Re-merged with Classpath.
849 * java/lang/natString.cc (nativeCompareTo): Renamed from
851 * java/lang/StringBuilder.java: Re-merged with Classpath.
852 * java/lang/String.java: Re-merged with Classpath.
853 (nativeCompareTo): Renamed from compareTo.
854 * java/lang/StringBuffer.java: Re-merged with Classpath.
855 * jni.cc (_Jv_JNI_GetAnyMethodID): Split calls to append.
857 2007-03-05 Andrew Haley <aph@redhat.com>
859 * java/lang/reflect/natVMProxy.cc (ncode_closure.meth): Delete.
860 (generateProxyClass): Don't pass method to ncode.
861 (run_proxy): Call _Jv_GetReflectedMethod to find the proxy method.
862 * java/lang/reflect/Method.h: Rebuild.
863 * java/lang/reflect/Method.java (internalGetParameterTypes,
864 internalGetExceptionTypes): New methods.
865 * headers.txt (class java/lang/reflect/Method): Declare
866 _Jv_GetReflectedMethod. Be its friend.
867 * java/lang/natClass.cc (_Jv_GetReflectedMethod): New method.
868 * java/lang/Class.h: Declare it. Be its friend.
870 2007-03-05 Tom Tromey <tromey@redhat.com>
872 * sources.am, Makefile.in: Rebuilt.
873 * scripts/makemake.tcl (emit_package_rule): Don't omit
875 * Makefile.am (nat_source_files): Added natVMProcess.cc.
876 (inner_nat_headers): Added ImmediateEOFInputStream.h.
877 * gcj/javaprims.h: Regenerated.
878 * java/lang/System.java (EnvironmentMap): Now package-private.
879 (EnvironmentMap(Map)): New constructor.
880 (EnvironmentMap.put): New method.
881 * java/lang/natWin32Process.cc (startProcess): Update.
882 * java/lang/Win32Process.java (Win32Process): Added 'redirect'
884 (startProcess): Likewise.
885 * java/lang/EcosProcess.java (EcosProcess): Added 'redirect'
887 * java/lang/natPosixProcess.cc (nativeSpawn): Handle redirection.
888 * java/lang/PosixProcess.java (redirect): New field.
889 (PosixProcess): Added 'redirect' argument.
890 * java/lang/natRuntime.cc (execInternal): Added 'redirect'
891 argument to Process creation.
892 * java/lang/natVMProcess.cc: New file.
893 * java/lang/ProcessBuilder.java: Removed.
894 * java/lang/VMProcess.java: New file.
896 2007-03-03 Andrew Haley <aph@redhat.com>
898 * java/lang/natClass.cc (parseAnnotationElement): Correct long
899 annotations to read JV_CONSTANT_Long, not JV_CONSTANT_Double.
901 2007-03-02 Andrew Haley <aph@redhat.com>
903 * sun/reflect/annotation/AnnotationInvocationHandler.java:
904 Generify in a few places.
905 (equals): Rewrite to use invoke on local proxy.
906 (deepToString): Remove most of it.
907 (toString): Make nonstatic.
908 (arrayClone): Delete.
909 (coerce): New method.
910 (invoke): Rewrite to handle gcj's structures correctly.
911 * java/lang/natClass.cc (getDeclaredAnnotations): Fix test for
913 * sources.am: Regenerate.
914 * Makefile.am: Likewise.
916 2007-03-02 Andrew Haley <aph@redhat.com>
918 * sun/reflect/annotation/AnnotationInvocationHandler.java:
919 Whitespace only changes.
921 2007-03-02 Andrew Haley <aph@redhat.com>
923 * sun/reflect/annotation/AnnotationInvocationHandler.java: Moved
924 from Classpath to libgcj local.
926 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
928 * Makefile.am: Add dummy install-pdf target.
929 * Makefile.in: Regenerate
930 * include/Makefile.in: Regenerate
931 * testsuite/Makefile.in: Regenerate
932 * gcj/Makefile.in: Regenerate
934 2007-02-23 Gary Benson <gbenson@redhat.com>
936 * gnu/gcj/tools/gcj_dbtool/Main.java: Updated copyright year.
938 2007-02-23 Gary Benson <gbenson@redhat.com>
940 * java/lang/VMCompiler.java
941 (compileClass): Don't lose zeros from within the digest.
943 2007-02-22 Jakub Jelinek <jakub@redhat.com>
947 * java/util/VMTimeZone.java (getDefaultTimeZoneId): To read
948 /etc/localtime, use ZoneInfo.readTZFile instead of
949 VMTimeZone.readtzFile. Get better timezone name for /etc/localtime,
950 either if it is a symlink or through /etc/sysconfig/clock.
951 (readSysconfigClockFile): New static method.
952 (readtzFile): Removed.
953 * java/lang/System.java: Add gnu.java.util.zoneinfo.dir to comments.
954 * posix.cc (_Jv_platform_initProperties): Set
955 gnu.java.util.zoneinfo.dir.
956 * sources.am (gnu_java_util_source_files): Add
957 classpath/gnu/java/util/ZoneInfo.java.
958 * Makefile.in: Regenerated.
959 * java/util/VMTimeZone.h: Regenerated.
960 * java/util/TimeZone.h: Regenerated.
961 * gnu/java/util/ZoneInfo.h: Generated.
963 2007-02-22 Mohan Embar <gnustuff@thisiscool.com>
965 * include/win32-threads.h: Added #undef OUT.
967 2007-02-21 Kyle Galloway <kgallowa@redhat.com>
969 * jvmti.cc (_Jv_JVMTI_GetArgumentsSize): New function.
970 * testsuite/libjava.jvmti/interp/getargssize.java: New test.
971 * testsuite/libjava.jvmti/interp/getargssize.h: Ditto.
972 * testsuite/libjava.jvmti/interp/getargssize.jar: Ditto.
973 * testsuite/libjava.jvmti/interp/getargssize.out: Ditto.
974 * testsuite/libjava.jvmti/interp/natgetargssize.cc: Ditto.
976 2007-02-21 Gary Benson <gbenson@redhat.com>
978 * java/util/GregorianCalendar.java: Removed.
979 * sources.am, Makefile.in: Rebuilt.
981 2007-02-20 Keith Seitz <keiths@redhat.com>
983 * gnu/classpath/jdwp/natVMVirtualMachine.cc
984 (jdwpClassPrepareCB): Move class status stuff to ...
985 (getClassStatus): ... here.
987 2007-02-20 Gary Benson <gbenson@redhat.com>
989 * gnu/awt/xlib/XEventLoop.h: Regenerated.
990 * gnu/java/awt/peer/gtk/GThreadMutex.h: Likewise.
991 * gnu/java/rmi/server/ConnectionRunnerPool$ConnectionRunner.h:
993 * gnu/java/rmi/server/UnicastConnectionManager.h: Likewise.
994 * java/lang/SecurityManager.h: Likewise.
995 * java/lang/Thread.h: Likewise.
996 * java/security/VMSecureRandom$Spinner.h: Likewise.
997 * java/util/concurrent/atomic/AtomicBoolean.h: Likewise.
998 * java/util/concurrent/atomic/AtomicInteger.h: Likewise.
999 * java/util/concurrent/atomic/AtomicLong.h: Likewise.
1000 * java/util/concurrent/atomic/AtomicReference.h: Likewise.
1001 * java/util/concurrent/ConcurrentHashMap$HashEntry.h: Likewise.
1002 * java/util/concurrent/ConcurrentHashMap$Segment.h: Likewise.
1003 * java/util/concurrent/ConcurrentLinkedQueue.h: Likewise.
1004 * java/util/concurrent/ConcurrentLinkedQueue$Node.h: Likewise.
1005 * java/util/concurrent/ConcurrentSkipListMap.h: Likewise.
1006 * java/util/concurrent/ConcurrentSkipListMap$Index.h: Likewise.
1007 * java/util/concurrent/ConcurrentSkipListMap$Node.h: Likewise.
1008 * java/util/concurrent/Exchanger.h: Likewise.
1009 * java/util/concurrent/Exchanger$Node.h: Likewise.
1010 * java/util/concurrent/FutureTask$Sync.h: Likewise.
1011 * java/util/concurrent/LinkedBlockingQueue$Node.h: Likewise.
1012 * java/util/concurrent/locks/AbstractQueuedLongSynchronizer.h:
1014 * java/util/concurrent/locks/AbstractQueuedLongSynchronizer$Node.h:
1016 * java/util/concurrent/locks/AbstractQueuedSynchronizer.h: Likewise.
1017 * java/util/concurrent/locks/AbstractQueuedSynchronizer$Node.h:
1019 * java/util/concurrent/ScheduledThreadPoolExecutor.h: Likewise.
1020 * java/util/concurrent/SynchronousQueue.h: Likewise.
1021 * java/util/concurrent/SynchronousQueue$TransferQueue.h: Likewise.
1022 * java/util/concurrent/SynchronousQueue$TransferQueue$QNode.h:
1024 * java/util/concurrent/SynchronousQueue$TransferStack.h: Likewise.
1025 * java/util/concurrent/SynchronousQueue$TransferStack$SNode.h:
1027 * java/util/concurrent/ThreadPoolExecutor.h: Likewise.
1028 * java/util/concurrent/ThreadPoolExecutor$Worker.h: Likewise.
1029 * java/util/logging/ErrorManager.h: Likewise.
1030 * javax/swing/plaf/basic/BasicSpinnerUI$2.h: Likewise.
1031 * javax/swing/plaf/basic/BasicSpinnerUI$4.h: Likewise.
1033 2007-02-16 Keith Seitz <keiths@redhat.com>
1035 * gnu/classpath/jdwp/natVMVirtualMachine.cc
1036 (get_line_table): New function.
1037 (handle_single_step): New function.
1038 (jdwpSingleStepCB): New function.
1039 (jdwpVMInitCB): Define a JVMTI single step
1040 callback, but don't enable it until needed.
1042 2007-02-16 David Daney <ddaney@avtrex.com>
1044 * java/lang/Thread.java (Thread(ThreadGroup, Runnable, String)): Pass
1045 new parameter constructor.
1046 (Thread(ThreadGroup, Runnable, String, long)): Same.
1047 (Thread(String, boolean)): New constructor.
1048 (Thread(Thread, ThreadGroup, Runnable, String): Add parameter
1049 noInheritableThreadLocal, don't call
1050 InheritableThreadLocal.newChildThread if set.
1051 * java/lang/PosixProcess.java(ProcessManager()): Set
1052 noInheritableThreadLocal in super.
1053 * java/lang/natThread.cc (_Jv_AttachCurrentThread): Pass new
1054 parameter to Thread constructor.
1055 (_Jv_AttachCurrentThreadAsDaemon): Same.
1056 * java/lang/Thread.h: Regenerate.
1057 * classpath/lib/java/lang/Thread.class: Same.
1058 * classpath/lib/java/lang/PosixProcess$EOFInputStream.class: Same.
1059 * classpath/lib/java/lang/PosixProcess.class: Same.
1060 * classpath/lib/java/lang/Thread$State.class: Same.
1061 * classpath/lib/java/lang/PosixProcess$ProcessManager.class: Same.
1063 2007-02-16 Kyle Galloway <kgallowa@redhat.com>
1065 * interpret.cc: Add extra DEBUG_LOCALS_INSN calls for multi-slot
1066 variables to maintain type info.
1067 * interpret-run.cc: Add local variable info to frame in the debug
1069 * jvmti.cc (getLocalFrame): New method.
1070 (_Jv_JVMTI_GetLocalObject): New method.
1071 (_Jv_JVMTI_GetLocallInt): New method.
1072 (_Jv_JVMTI_GetLocalFloat): New method.
1073 (_Jv_JVMTI_GetLocalLong): New method.
1074 (_Jv_JVMTI_GetLocalDouble): New method.
1075 (_Jv_JVMTI_SetLocalObject): New method.
1076 (_Jv_JVMTI_SetLocalInt): New method.
1077 (_Jv_JVMTI_SetLocalFloat): New method.
1078 (_Jv_JVMTI_SetLocalLong): New method.
1079 (_Jv_JVMTI_SetLocalDouble): New method.
1081 2007-02-16 Gary Benson <gbenson@redhat.com>
1083 * gnu/gcj/tools/gcj_dbtool/Main.java
1084 (bytesToString): Don't lose zeros from within the digest.
1086 2007-02-15 Andrew Haley <aph@redhat.com>
1088 * Makefile.am (nat_source_files): Remove
1089 java/lang/management/natVMManagementFactory.cc.
1090 * java/lang/Thread.java (getStackTrace): Use reflection to call
1091 the ManagementFactory.
1092 * java/lang/management/VMManagementFactory.java: Remove native
1094 * java/lang/management/natVMManagementFactory.cc: Deleted.
1095 * sources.am: Regnerate.
1096 * scripts/makemake.tcl: Add new "bcheaders" type.
1097 Move java/lang/management and gnu/classpath/management to "bc".
1098 Move gnu/java/lang/management to "bcheaders".
1100 2007-02-15 Kyle Galloway <kgallowa@redhat.com>
1102 * interpret.cc (_Jv_InterpMethod::check_handler): New method.
1103 * interpret-run.cc: Change the catch section to report exception
1104 events and to use the new check_handler method.
1105 * include/java-interp.h (_Jv_InterpMethod): Add check_handler.
1106 * gnu/gcj/jvmti/ExceptionEvent.java: New file.
1107 * gnu/gcj/jvmti/ExceptionEvent.h: New file.
1108 * gnu/gcj/jvmti/natExceptionEvent.cc: New file.
1109 * libjava/classpath/lib/gnu/gcj/jvmti/ExceptionEvent.class: New
1111 * sources.am: Added ExceptionEvent.java.
1112 * Makefile.am: Added natExceptionEvent.cc
1113 * Makefile.in: Regenerated.
1114 * include/Makefile.in: Regenerated.
1115 * gcj/Makefile.in: Regenerated.
1117 2007-02-15 Johannes Schmidt <jschmidt@avtrex.com>
1118 David Daney <ddaney@avtrex.com>
1120 * configure.ac: Create vm-tools-packages file. Add
1121 gnu/gcj/tools/gc_analyze to standard.omit and vm-tools-packages.
1122 Check for /proc/self/maps.
1123 * Makefile.am (bin_PROGRAMS): Added gc-analyze.
1124 (gc_analyze_SOURCES): New.
1125 (gc_analyze_LDFLAGS): New.
1126 (gc_analyze_LINK): New.
1127 (gc_analyze_LDADD): New.
1128 (gc_analyze_DEPENDENCIES): New.
1129 (nat_source_files): Add gnu/gcj/util/natGCInfo.cc.
1130 * Makefile.in: Regenerated.
1131 * configure: Regenerated.
1132 * include/config.h.in: Regenerated.
1133 * sources.am: Regenerated.
1134 * scripts/makemake.tcl: Don't include gc-analyze classes in libgcj.
1135 * gnu/gcj/tools/gc_analyze/SymbolLookup.java: New.
1136 * gnu/gcj/tools/gc_analyze/ObjectMap.java: New.
1137 * gnu/gcj/tools/gc_analyze/MemoryMap.java: New.
1138 * gnu/gcj/tools/gc_analyze/SymbolTable.java: New.
1139 * gnu/gcj/tools/gc_analyze/BlockMap.java: New.
1140 * gnu/gcj/tools/gc_analyze/BytePtr.java: New.
1141 * gnu/gcj/tools/gc_analyze/ItemList.java: New.
1142 * gnu/gcj/tools/gc_analyze/ToolPrefix.java: New.
1143 * gnu/gcj/tools/gc_analyze/MemoryAnalyze.java: New.
1144 * gnu/gcj/util/GCInfo.java: New.
1145 * gnu/gcj/util/GCInfo.h: New.
1146 * gnu/gcj/util/natGCInfo.cc: New.
1147 * gnu/gcj/util/UtilPermission.java: New.
1148 * gnu/gcj/util/UtilPermission.h: New.
1149 * classpath/tools/gnu/gcj/tools/gc_analyze/SymbolTable.class: New.
1150 * classpath/tools/gnu/gcj/tools/gc_analyze/ObjectMap$ObjectItem.class: New.
1151 * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryMap$RangeComparator.class: New.
1152 * classpath/tools/gnu/gcj/tools/gc_analyze/BlockMap$PtrMarks.class: New.
1153 * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryMap$Range.class: New.
1154 * classpath/tools/gnu/gcj/tools/gc_analyze/BlockMap.class: New.
1155 * classpath/tools/gnu/gcj/tools/gc_analyze/BytePtr.class: New.
1156 * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$SubstringComparator.class: New.
1157 * classpath/tools/gnu/gcj/tools/gc_analyze/ItemList.class: New.
1158 * classpath/tools/gnu/gcj/tools/gc_analyze/ToolPrefix.class: New.
1159 * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze.class: New.
1160 * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$1$Info.class: New.
1161 * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$1.class: New.
1162 * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$2.class: New.
1163 * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$3.class: New.
1164 * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$4.class: New.
1165 * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$OptionParser.class: New.
1166 * classpath/tools/gnu/gcj/tools/gc_analyze/BlockMap$SizeKind.class: New.
1167 * classpath/tools/gnu/gcj/tools/gc_analyze/SymbolLookup.class: New.
1168 * classpath/tools/gnu/gcj/tools/gc_analyze/ObjectMap.class: New.
1169 * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryMap.class: New.
1170 * classpath/lib/gnu/gcj/util/GCInfo.class: New.
1171 * classpath/lib/gnu/gcj/util/UtilPermission.class: New.
1173 2007-02-15 David Daney <ddaney@avtrex.com>
1175 * gnu/java/net/PlainSocketImpl.h: Regenerate.
1176 * gnu/classpath/jdwp/VMVirtualMachine.h: Same.
1177 * gnu/classpath/jdwp/VMFrame.h: Same.
1178 * java/net/Socket.h: Same.
1179 * java/util/Collections$UnmodifiableMap$UnmodifiableEntrySet.h: Same.
1181 2007-02-15 Kyle Galloway <kgallowa@redhat.com>
1183 * defineclass.cc (_Jv_ClassReader::read_one_code_attribute):
1184 Added LocalVariableTable attribute handling.
1185 (_Jv_ClassReader::pool_Utf8_to_char_arr): New method.
1186 * jvmti.cc (_Jv_JVMTI_GetLocalVariableTable): New method.
1187 * include/java-interp.h: Added local_var_table and
1188 local_var_table_len fields to _Jv_InterpMethod.
1189 (_Jv_InterpMethod::get_local_var_table): New method.
1190 * testsuite/libjava.jvmti/interp/getlocalvartable.java: New test.
1191 * testsuite/libjava.jvmti/interp/getlocalvartable.jar: New test.
1192 * testsuite/libjava.jvmti/interp/getlocalvartable.out: Output
1194 * testsuite/libjava.jvmti/interp/getlocalvartable.h: New test.
1195 * testsuite/libjava.jvmti/interp/natgetlocalvartable.cc: New test.
1197 2007-02-15 Kyle Galloway <kgallowa@redhat.com>
1199 * gnu/classpath/jdwp/natVMVirtualMachine (getFrames): Implement.
1201 2007-02-13 Keith Seitz <keiths@redhat.com>
1203 * gnu/classpath/jdwp/natVMVirtualMachine.cc
1204 (jdwpBreakpointCB): New function.
1205 (jdwpVMInitCB): Define and enable the breakpoint
1208 2007-02-13 Andrew Haley <aph@redhat.com>
1210 * testsuite/libjava.lang/Divide_2.out
1211 * testsuite/libjava.lang/Divide_2.java: New test.
1213 2007-02-12 Keith Seitz <keiths@redhat.com>
1215 * jvmti.cc (_Jv_JVMTI_GetStackTrace): Remove cast
1216 from jthread to Thread *; it is no longer needed.
1217 (_Jv_JVMTI_GetFrameCount): Likewise.
1218 Fix small formatting typo.
1220 2007-02-12 Tom Tromey <tromey@redhat.com>
1222 * sources.am, Makefile.in: Rebuilt.
1223 * java/lang/Socket.java: Removed override.
1224 * java/lang/DatagramSocket.java: Removed override.
1225 * gnu/java/net/PlainSocketImpl.java (localSocketAddress): New
1227 (getLocalAddress): New method.
1228 * gnu/java/net/PlainDatagramSocketImpl.java
1229 (PlainDatagramSocketImpl): Throws IOException.
1230 * gnu/java/net/natPlainSocketImplPosix.cc (write): Remove
1234 2007-02-09 Jakub Jelinek <jakub@redhat.com>
1236 * java/util/VMTimeZone.java: Rewrite to handle both the old
1237 'TZif\0' format and the new one.
1239 2007-02-10 Andrew Haley <aph@redhat.com>
1242 * gnu/classpath/natVMStackWalker.cc (GET_CALLING_CLASS): New.
1243 (getCallingClass): Call GET_CALLING_CLASS.
1244 (getCallingClassLoader): Likewise.
1246 2007-02-10 Mohan Embar <gnustuff@thisiscool.com>
1248 * configure: Rebuilt.
1249 * configure.ac (GCJH): Reverted second part of patch of 2006-12-20.
1251 2007-02-10 Mohan Embar <gnustuff@thisiscool.com>
1253 * Makefile.in: Rebuilt.
1254 * Makefile.am (BUILD_ECJ1): Unify the command for renaming ecjx to
1255 the host's ecj1 executable.
1257 2007-02-09 Richard Henderson <rth@redhat.com>
1259 * sysdep/alpha/locks.h (read_barrier): New.
1261 2007-02-09 Keith Seitz <keiths@redhat.com>
1263 * gnu/classpath/jdwp/VMVirtualMachine.java
1264 (_stepping_threads): New member.
1265 * classpath/lib/gnu/classpath/jdwp/VMVirtualMachine.class:
1267 * gnu/classpath/jdwp/VMVirtualMachine.h:
1269 * gnu/claspath/jdwp/natVMVirtualMachine.cc
1270 (get_request_step_filter): New function.
1271 (DISABLE_EVENT): New macro.
1272 (initialize): Initialize _stepping_threads.
1273 (registerEvent): Implement EVENT_SINGLE_STEP.
1274 (unregisterEvent): Likewise.
1276 2007-02-08 Keith Seitz <keiths@redhat.com>
1278 * sources.am: Regenerate.
1279 * Makefile.in: Regenerate.
1280 * testsuite/Makefile.in: Regenerate.
1281 * gcj/Makefile.in: Regenerate.
1282 * include/Makefile.in: Regenerate.
1284 * classpath/lib/javax/management/MBeanServerFactory.class:
1287 2007-02-08 Kyle Galloway <kgallowa@redhat.com>
1289 * classpath/gnu/classpath/jdwp/processor/
1290 StackFrameCommandSet.java (executeGetValues): Pass jlong instead
1292 (executeSetValues): Ditto.
1293 (executeThisObject): Ditto.
1294 * classpath/gnu/classpath/jdwp/processor/
1295 StackFrameCommandSet.class: Rebuilt.
1296 * classpath/lib/gnu/classpath/jdwp/VMVirtualMachine.class:
1298 * classpath/lib/gnu/classpath/jdwp/VMFrame.class: Rebuilt.
1299 * classpath/lib/gnu/classpath/jdwp/exception/
1300 InvalidFrameException.java: New file.
1301 * gnu/classpath/jdwp/VMFrame.java: Added field for thread of
1303 (Constructor): New method.
1304 * gnu/classpath/jdwp/VMFrame.h: Regenerated.
1305 * gnu/classpath/jdwp/VMVirtualMachine.java
1306 (getFrame): Changed ByteBuffer to jlong.
1307 * gnu/classpath/jdwp/natVMVirtualMachine.cc
1308 (getFrame): Implement.
1309 * gnu/classpath/jdwp/VMVirtualMachine.h: Regenerated.
1311 2007-02-08 Kyle Galloway <kgallowa@redhat.com>
1313 * include/java-interp.h (_Jv_InterpFrame): obj_ptr field added
1314 to hold "this" pointer for frame.
1315 (_Jv_InterpFrame::get_this_ptr): New method.
1316 * interpret-run.cc: Copy the "this" pointer into obj_ptr.
1318 2007-02-07 Keith Seitz <keiths@redhat.com>
1320 * include/java-interp.h (_Jv_Frame::depth):
1322 * jvmti.cc (_Jv_JVMTI_GetFrameCount): Use _Jv_Frame::depth.
1324 2007-02-07 Kyle Galloway <kgallowa@redhat.com>
1326 * jvmti.cc (CHECK_FOR_NATIVE_METHOD): New macro.
1327 (_Jv_JVMTI_GetMaxLocals): New method.
1328 * include/java-interp.h
1329 (_Jv_InterpMethod::get_max_locals): New method.
1331 2007-02-01 Marco Trudel <mtrudel@gmx.ch>
1333 * jni.cc (_Jv_JNI_DeleteWeakGlobalRef): Check for NULL objects.
1335 2007-02-07 Tom Tromey <tromey@redhat.com>
1337 * testsuite/libjava.jni/init.c: New file.
1338 * testsuite/libjava.jni/init.java: New file.
1339 * testsuite/libjava.jni/init.out: New file.
1340 * testsuite/libjava.jni/init.jar: New file.
1341 * testsuite/libjava.jni/init.h: New file.
1342 * testsuite/libjava.jni/init$NativeClass.h: New file.
1344 2007-02-07 Jakub Jelinek <jakub@redhat.com>
1347 * configure: Regenerate.
1349 2007-02-06 Andrew Haley <aph@redhat.com>
1351 * scripts/makemake.tcl (emit_bc_rule): Set the source filename.
1352 * sources.am: Rebuild.
1354 2007-02-05 Keith Seitz <keiths@redhat.com>
1356 * jvmti.cc (_envListLock): Change type to
1357 ReentrantReadWriteLock.
1358 (_Jv_JVMTI_DisposeEnvironment): Switch to read/write
1360 (check_enabled_event): Likewise.
1361 (_Jv_GetJVMTIEnv): Likewise.
1362 (_Jv_JVMTI_Init): Likewise.
1363 (_Jv_JVMTI_PostEvent): Likewise.
1365 2007-02-05 Keith Seitz <keiths@redhat.com>
1367 * gnu/classpath/jdwp/natVMVirtualMachine.cc
1368 (registerEvent): Implement EVENT_BREAKPOINT.
1369 (unregisterEvent): Likewise.
1370 (get_request_location): New function.
1372 2007-02-05 Matthias Klose <doko@debian.org>
1374 testsuite/Makefile.am (compile-tests): Fix typo.
1375 testsuite/Makefile.in: Regenerate.
1377 2007-02-02 Kyle Galloway <kgallowa@redhat.com>
1379 * gnu/classpath/jdwp/natVMVirtualMachine.cc (getFrameCount):
1382 2007-02-02 Jakub Jelinek <jakub@redhat.com>
1384 * configure.ac (libjava_cv_anon_version_script): New test.
1385 (ANONVERSCRIPT): New AM_CONDITIONAL.
1386 * configure: Rebuilt.
1387 * Makefile.am (extra_ldflags_libjava): Link with -Wl,--version-script
1389 * Makefile.in: Rebuilt.
1390 (libgcj_la_DEPENDENCIES): Depend on libgcj.ver.
1391 * libgcj.ver: New file.
1393 2007-02-01 David Daney <ddaney@avtrex.com>
1395 * scripts/makemake.tcl: Replace gnu/xml build with build of all
1397 * sources.am: Regenerate.
1398 * Makefile.in: Regenerate.
1400 2007-02-01 Tom Tromey <tromey@redhat.com>
1402 * java/lang/ClassLoader.java (getResources): No longer final.
1404 2007-02-01 Tom Tromey <tromey@redhat.com>
1406 * java/util/logging/LogManager.java (loggers): Genericized.
1407 (addLogger): Merged.
1408 (findAncestor): Likewise.
1409 (getLogger): Likewise.
1410 (getLoggerNames): Genericized.
1412 (getLevelProperty): Likewise.
1413 * java/lang/reflect/Method.java (getDeclaringClass): Genericized.
1414 * java/lang/reflect/Constructor.java (getParameterTypes):
1416 (getExceptionTypes): Likewise.
1417 (newInstance): Likewise.
1418 * java/lang/reflect/Array.java (newInstance): Genericized.
1419 * java/lang/Object.java (getClass): Genericized.
1420 * java/nio/charset/spi/CharsetProvider.java (charsets):
1422 * java/text/Collator.java: Implement Comparable<Object>.
1424 2007-02-01 Tom Tromey <tromey@redhat.com>
1426 * java/util/Calendar.java: Implement Comparable<Calendar>. Update
1428 (clear): Call complete.
1429 (setTimeZone): Call computeTime, computeFields.
1430 (compareTo): New method.
1431 * java/nio/charset/Charset.java: Implement Comparable<Charset>.
1432 (availableCharsets): Genericized.
1433 (aliases): Likewise.
1434 (compareTo): Changed argument type.
1435 * java/lang/ClassLoader.java (loadClass): Genericized.
1436 (findClass): Likewise.
1437 (defineClass): Likewise.
1438 (resolveClass): Likewise.
1439 (findSystemClass): Likewise.
1440 (setSigners): Likewise.
1441 (findLoadedClass): Likewise.
1442 (getResources): Likewise.
1443 (findResources): Likewise.
1444 (getSystemResources): Likewise.
1445 (checkInitialized): New method.
1446 * java/lang/Class.java (getCanonicalName): New method.
1448 2007-01-31 Keith Seitz <keiths@redhat.com>
1450 * include/jvmti-int.h (JVMTI): Declare member "enabled".
1451 * jvmti.cc (JVMTI): Add member "enabled".
1452 (_Jv_GetJVMTIEnv): Mark JVMTI enabled.
1453 * interpret.cc (_Jv_InterpMethod::ncode): Use JVMTI::enabled
1454 instead of gnu::classpath::jdwp::Jdwp::isDebugging.
1455 (_Jv_CompileMethod): If JVMTI is enabled, use run_debug
1456 instead of run to compile the method.
1458 * interpret-run.cc [DEBUG] (NEXT_INSN): Add JVMTI single step
1461 2007-01-31 Andreas Tobler <a.tobler@schweiz.org>
1463 * testsuite/libjava.jvmti/jvmti-interp.exp (gij_jvmti_test_one): Add
1464 -shared-libgcc to the cxxflaglist for Darwin.
1466 2007-01-31 Tom Tromey <tromey@redhat.com>
1468 * scripts.am, Makefile.in: Rebuilt.
1469 * scripts/makemake.tcl (gnu/javax/swing/text/html/parser): Build
1471 (emit_ordinary_rule): New proc.
1473 2007-01-31 Keith Seitz <keiths@redhat.com>
1475 * testsuite/libjava.jvmti/getmethodname.h: New file.
1476 * testsuite/libjava.jvmti/getmethodname.jar: New file.
1478 2007-01-31 Andrew Haley <aph@redhat.com>
1480 * prims.cc (_Jv_Abort): fflush (stderr).
1481 * java/lang/natClassLoader.cc (_Jv_CheckABIVersion): Abort.
1483 2007-01-31 Tom Tromey <tromey@redhat.com>
1485 * configure, Makefile.in: Rebuilt.
1486 * configure.ac (JAR): Check for -@ feature.
1487 * Makefile.am (libgcj-$(gcc_version).jar): Use find -prune.
1489 2007-01-31 Tom Tromey <tromey@redhat.com>
1492 * configure, include/config.h.in: Rebuilt.
1493 * configure.ac: Check for magic_t in magic.h.
1494 * java/net/natVMURLConnection.cc: Use HAVE_MAGIC_T.
1496 2007-01-30 Tom Tromey <tromey@redhat.com>
1498 * Makefile.in: Rebuilt.
1499 * Makefile.am (libgcj-$(gcc_version).jar): Rewrote.
1501 2007-01-30 Andreas Tobler <a.tobler@schweiz.org>
1503 * testsuite/libjava.jvmti/natevents.cc (FieldModificationCB): Use a
1504 cast to print it right.
1506 2007-01-29 Kaloian Doganov <kaloian@doganov.org>
1509 * gnu/gcj/convert/BytesToCharsetAdaptor.java (read): Fix call to
1512 2007-01-29 Kyle Galloway <kgallowa@redhat.com>
1514 * include/java-interp.h: Added _Jv_Frame class and its two
1515 subclasses _Jv_InterpFrame and _Jv_NativeFrame. Also moved
1516 _Jv_FrameType from java-stack.h.
1517 * include/java-stack.h: Removed _Jv_FrameType.
1518 * java/lang/Thread.java: Added frame member to hold new
1519 composite frame stack.
1520 * java/lang/Thread.h: Regenerated.
1521 * java/lang/Thread.class: Rebuilt.
1522 * jni.cc (_Jv_JNIMethod::call): Push a frame onto the stack when
1523 calling a JNI method.
1524 * jvmti.cc (_Jv_JVMTI_GetStackTrace): New Method.
1525 (_Jv_JVMTI_GetFrameCount): New method.
1526 * stacktrace.cc (UnwindTraceFn): Modified to use new _Jv_Frame
1528 * testsuite/libjava.jvmti/interp/getstacktrace.jar: New test.
1529 * testsuite/libjava.jvmti/interp/natgetstacktrace.cc: New test.
1530 * testsuite/libjava.jvmti/interp/getstacktrace.h: New test.
1531 * testsuite/libjava.jvmti/interp/getstacktrace.jar: New test.
1532 * testsuite/libjava.jvmti/interp/getstacktrace.out: Output file
1535 2007-01-29 Tom Tromey <tromey@redhat.com>
1537 * interpret.cc (run_debug): Remove comment.
1544 (run_normal_debug): Likewise.
1545 (run_synch_object_debug): Likewise.
1546 (run_class_debug): Likewise.
1547 (run_synch_class_debug): Likewise.
1552 (NULLARRAYCHECK): Likewise.
1553 (ARRAYBOUNDSCHECK): Likewise.
1554 * interpret-run.cc (insn_target) <breakpoint>: Tidy.
1556 2007-01-29 Tom Tromey <tromey@redhat.com>
1558 * configure, Makefile.in: Rebuilt.
1559 * Makefile.am (bin_SCRIPTS): Never install scripts/jar.
1560 * configure.ac (BASH_JAR): Removed conditional.
1561 (JAR): Prefer the jar found by AC_CHECK_PROGS.
1563 2007-01-29 Tom Tromey <tromey@redhat.com>
1565 * Makefile.in: Rebuilt.
1566 * Makefile.am (interpret.lo): New target. Add -fwrap to
1569 2007-01-29 Keith Seitz <keiths@redhat.com>
1571 * include/jvmti_md.h (_CLASSPATH_VM_JVMTI_TYPES_DEFINED):
1573 [__GCJ_JNI_IMPL__]: Define our own JVMTI types when building
1574 gcj. All jvmti object types now are defined to be their
1575 corresponding java classes.
1576 * jvmti.cc (_Jv_JVMTI_SuspendThread): Remove casting from
1578 (_Jv_JVMTI_ResumeThread): Likewise.
1579 (_Jv_JVMTI_InterruptThread): Likewise.
1580 (_Jv_JVMTI_SetEventNotificationMode): Likewise.
1581 * gnu/classpath/jdwp/natVMVirtualMachine.cc
1582 (jdwpClassPrepareCB): Likewise.
1583 (jdwpThreadEndCB): Likewise.
1584 (jdwpThreadStartCB): Likewise.
1585 (jdwpVMInitCB): Likewise.
1587 2007-01-28 Michele Sandri <gpointorama@gmail.com>
1589 * gnu/java/nio/channels/natFileChannelWin32.cc
1590 (lock): Implemented.
1591 (unlock): Implemented.
1593 2007-01-27 Andreas Tobler <a.tobler@schweiz.org>
1596 * configure.host: Add forgottten sysdep_dir to sparc. Add a flag to
1597 libgcj_flags to undefine 'sun' at compile time.
1598 * sysdep/sparc/locks.h (read_barrier): New functions for 32 and 64 bit
1600 (write_barrier): Likewise.
1602 2007-01-27 Keith Seitz <keiths@redhat.com>
1604 * gnu/classpath/jdwp/natVMVirtualMachine.cc
1605 (getAllClassMethods): Move error handling to ...
1606 (throw_jvmti_error): ... here.
1607 (jdwpClassPrepareCB): New function.
1608 (jdwpThreadEndCB): New function.
1609 (jdwpThreadStartCB): New function.
1610 (jdwpVMDeathCB): New function.
1611 (jdwpVMInitCB): Define and enable callbacks for
1612 ClassPrepare, ThreadEnd, ThreadStart, and VMDeath.
1614 2007-01-27 Jakub Jelinek <jakub@redhat.com>
1616 * Makefile.am (generic_header_files): Add $(inner_nat_headers).
1617 * testsuite/Makefile.am (check-dejaGNU): Depend on compile-tests.
1618 (MYGCJH): New variable.
1619 (compile-tests): New goal.
1620 * Makefile.in: Rebuilt.
1621 * testsuite/Makefile.in: Rebuilt.
1623 2007-01-26 Andrew Haley <aph@redhat.com>
1625 * java/lang/natClass.cc (initializeClass): Re-throw
1627 * java/lang/natVMClassLoader.cc (loadClass): checkPackageAccess.
1628 * java/lang/ClassLoader.java: (loadClass): Likewise.
1630 2007-01-26 Tom Tromey <tromey@redhat.com>
1634 2007-01-25 Tom Tromey <tromey@redhat.com>
1637 * gnu/gcj/convert/Convert.java (main): Correctly handle missing
1638 input or output encodings. Removed unused local variables.
1640 2007-01-25 Keith Seitz <keiths@redhat.com>
1642 * include/jvmti-int.h (_Jv_GetJDWP_JVMTIEnv): Declare.
1643 * gnu/classpath/jdwp/natVMVirtualMachine.cc
1644 (_Jv_GetJDWP_JVMTIEnv): New function.
1645 * gnu/classpath/jdwp/natVMMethod.cc (getName): Implement.
1646 (getSignature): Implement.
1647 (getModifiers): Implement.
1649 2007-01-25 Andrew Haley <aph@redhat.com>
1651 * configure, Makefile.in, include/config.h.in: Rebuilt.
1652 * Makefile.am (libgcj_la_LIBADD): Removed $(LIBMAGIC).
1653 * configure.ac: Don't check for libmagic.
1654 * java/net/natVMURLConnection.cc (p_magic_open, p_magic_load,
1655 p_magic_close, p_magic_buffer): New globals.
1656 (init): Look up 'magic' functions.
1657 (guessContentTypeFromBuffer): Updated.
1659 2007-01-25 Keith Seitz <keiths@redhat.com>
1661 * jvmti.cc (_Jv_JVMTI_GetMethodName): New function.
1662 (_Jv_JVMTI_Interface): Define GetMethodName.
1663 * testsuite/libjava.jvmti/getmethodname.java: New file.
1664 * testsuite/libjava.jvmti/natgetmethodname.cc: New file.
1665 * testsuite/libjava.jvmti/getmethodname.out: New file.
1667 2007-01-24 Kyle Galloway <kgallowa@redhat.com>
1669 * libjava/testsuite/libjava.jvmti/jvmti-interp.exp: New file.
1670 * libjava/testsuite/libjava.jvmti/interp: New folder.
1671 * libjava/testsuite/lib/libjava.exp (exec_gij): New Method.
1673 2007-01-24 Keith Seitz <keiths@redhat.com>
1675 * link.cc (_Jv_Linker::wait_for_state): Add JVMTI
1676 CLASS_PREPARE notification.
1678 2007-01-24 Keith Seitz <keiths@redhat.com>
1680 * interpret.cc: Include gnu/gcj/jvmti/Breakpoint.h,
1681 gnu/gcj/jvmti/BreakpointManager.h, jvmti.h, and jvmti-int.h
1682 * interpret-run.cc: Implement insn_breakpoint.
1684 2007-01-24 Keith Seitz <keiths@redhat.com>
1686 * prims.cc (_Jv_RunMain): Send JVMTI event notifications
1687 for VM_INIT and VM_DEATH instead of the JDWP notifications.
1689 2007-01-24 Keith Seitz <keiths@redhat.com>
1691 * gnu/classpath/jdwp/natVMVirtualMachine.cc
1692 (getAllClassMethods): Implement.
1694 2007-01-24 Andrew Haley <aph@redhat.com>
1696 * gnu/classpath/natVMStackWalker.cc: Call InitClass everywhere.
1697 (getClassContext) Add a barrier to prevent GetStackWalkerStack()
1698 from being sibcalled.
1700 2007-01-24 Andrew Haley <aph@redhat.com>
1702 * scripts/makemake.tcl (emit_bc_rule): Set the source filename.
1703 * sources.am: Rebuild.
1705 2007-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
1707 * exception.cc (parse_lsda_header, PERSONALITY_FUNCTION): Replaced
1708 _Unwind_Word with _uleb128_t and _Unwind_SWord with _sleb128_t.
1710 2007-01-23 H.J. Lu <hongjiu.lu@intel.com>
1713 * Makefile.am (ecjx_DEPENDENCIES): Add libgcj_bc.la if needed.
1714 * Makefile.in: Regenerated.
1716 2007-01-22 Keith Seitz <keiths@redhat.com>
1718 * gnu/classpath/jdwp/natVMVirtualMachine.cc
1719 (getClassMethod): Implement.
1721 2007-01-22 Keith Seitz <keiths@redhat.com>
1723 * java/lang/Class.h (_Jv_GetClassStatus): Declare.
1724 * java/lang/natClass.cc (_Jv_GetClassStatus): New function.
1725 * jvmti.cc (_Jv_JVMTI_GetClassStatus): New function.
1726 (_Jv_JVMTI_Interface): Define GetClassStatus.
1728 2007-01-22 Tom Tromey <tromey@redhat.com>
1730 * configure: Rebuilt.
1731 * configure.ac (GCJ): Reverted patch of 2006-12-20.
1733 2007-01-22 Tom Tromey <tromey@redhat.com>
1736 * testsuite/libjava.jni/pr29812.java: New file.
1737 * testsuite/libjava.jni/pr29812_injar.java: New file.
1738 * testsuite/libjava.jni/pr29812_injar.jar: New file.
1739 * testsuite/libjava.jni/pr29812.out: New file.
1740 * testsuite/libjava.jni/pr29812_injar.c: New file.
1741 * testsuite/libjava.jni/pr29812_injar.h: New file.
1742 * testsuite/libjava.jni/pr29812.jar: New file.
1743 * testsuite/libjava.jni/pr29812.c: New file.
1744 * testsuite/libjava.jni/pr29812.h: New file.
1745 * testsuite/libjava.jni/jni.exp (gcj_jni_get_cxxflags_invocation):
1747 (gcj_jni_invocation_test_one): Use it.
1748 (gcj_jni_pr29812): New proc.
1749 (gcj_jni_run): Use it.
1750 * java/lang/natRuntime.cc (_load): Push a new system frame before
1752 * include/jvm.h (_Jv_JNI_PopSystemFrame): Declare.
1753 (_Jv_GetJNIEnvNewFrameWithLoader): Likewise.
1754 * jni.cc (struct _Jv_JNI_LocalFrame) <marker>: Now unsigned char.
1755 <allocated_p>: Now bool.
1756 <loader>: New field.
1757 (_Jv_JNI_EnsureLocalCapacity): Updated.
1758 (_Jv_JNI_NewLocalRef): Likewise.
1759 (_Jv_JNI_NewLocalRef): Likewise.
1760 (_Jv_JNI_PopLocalFrame): Likewise.
1761 (_Jv_JNI_FindClass): Likewise.
1762 (_Jv_GetJNIEnvNewFrame): Likewise.
1763 (_Jv_JNI_AttachCurrentThread): Likewise.
1764 (_Jv_GetJNIEnvNewFrameWithLoader): New function.
1765 (_Jv_GetJNIEnvNewFrame): Use it.
1766 * include/jni_md.h (_CLASSPATH_JNIENV_CONTENTS): Removed 'klass'.
1768 2007-01-22 Tom Tromey <tromey@redhat.com>
1770 * libtool-version: Bump current to 9.
1772 2007-01-22 Andrew Haley <aph@redhat.com>
1774 * sysdep/alpha/locks.h (write_barrier): New.
1776 2007-01-21 Matthias Klose <doko@debian.org>
1778 * Makefile.am (install-exec-hook): Use transformed name.
1779 * Makefile.in: Regenerate.
1781 2007-01-19 Keith Seitz <keiths@redhat.com>
1783 * gnu/classpath/jdwp/natVMVirtualMachine.cc: Mark unused parameters
1784 in methods and reformat.
1786 * gnu/classpath/jdwp/natVMFrame.cc: Mark unused parameters with
1789 2007-01-18 Keith Seitz <keiths@redhat.com>
1791 From Macro Trudel <mtrudel@gmx.ch>:
1792 * gnu/classpath/jdwp/natVMVirtualMachine.cc (jdwpVMInitCB):
1795 2007-01-18 Marco Trudel <mtrudel@gmx.ch>
1797 * jni.cc (_Jv_JNI_FindClass): Initialize class.
1798 * testsuite/libjava.jni/findclass2.jar: New file.
1799 * testsuite/libjava.jni/findclass2.h: New file.
1800 * testsuite/libjava.jni/findclass2.java: New file
1801 * testsuite/libjava.jni/findclass2.c: New file.
1802 * testsuite/libjava.jni/findclass2.out: New file.
1804 2007-01-18 Tom Tromey <tromey@redhat.com>
1806 * configure: Rebuilt.
1807 * configure.ac: Use multi_basedir instead of libgcj_basedir.
1809 2007-01-18 Gary Benson <gbenson@redhat.com>
1811 * gnu/java/nio/natVMPipeEcos.cc:
1812 Renamed from gnu/java/nio/natPipeImplEcos.cc.
1813 * gnu/java/nio/natVMPipePosix.cc:
1814 Renamed from gnu/java/nio/natPipeImplPosix.cc.
1815 * gnu/java/nio/natVMPipeWin32.cc:
1816 Renamed from gnu/java/nio/natPipeImplWin32.cc.
1817 * gnu/java/nio/natVMSelectorEcos.cc:
1818 Renamed from gnu/java/nio/natSelectorImplEcos.cc.
1819 * gnu/java/nio/natVMSelectorPosix.cc:
1820 Renamed from gnu/java/nio/natSelectorImplPosix.cc.
1821 * gnu/java/nio/natVMSelectorWin32.cc:
1822 Renamed from gnu/java/nio/natSelectorImplWin32.cc.
1823 * java/io/natVMObjectInputStream.cc:
1824 Renamed from java/io/natObjectInputStream.cc.
1825 * java/lang/natVMDouble.cc:
1826 Renamed from java/lang/natDouble.cc.
1827 * java/lang/natVMFloat.cc:
1828 Renamed from java/lang/natFloat.cc.
1829 * Makefile.am, configure.ac: Reflect the above.
1830 * Makefile.in, configure: Rebuilt.
1832 2007-01-17 Andrew Haley <aph@redhat.com>
1834 * Makefile.in: Rebuilt.
1835 * Makefile.am (ecjx_LDFLAGS): Pass -fbootclasspath.
1837 2007-01-17 Keith Seitz <keiths@redhat.com>
1839 * java/lang/natThread.cc (finish_): Add JVMTI ThreadEnd notification.
1840 (_Jv_NotifyThreadStart): Add JVMTI ThreadStart notification.
1842 2007-01-16 Jack Howarth <howarth@bromo.med.uc.edu>
1844 * configure.ac: Use multi.m4 from aclocal rather than custom
1845 code. Use multi_basedir instead libgcj_basedir. Test for
1846 /proc/self/exe when not cross-compiling.
1847 * aclocal.m4: Regenerate.
1848 * configure: Regenerate.
1849 * Makefile.in: Regenerate.
1851 2007-01-17 Gary Benson <gbenson@redhat.com>
1853 * java/nio/natVMDirectByteBufferImpl.cc:
1854 Renamed from java/nio/natDirectByteBufferImpl.cc.
1855 * Makefile.am: Reflect the above.
1856 * Makefile.in: Rebuilt.
1858 2007-01-17 Marco Trudel <mtrudel@gmx.ch>
1860 * jvmti.cc (_Jv_JVMTI_GetAllThreads): Now static. Use JNICALL.
1861 Fixed indentation. Removed unused variable.
1863 2007-01-16 Tom Tromey <tromey@redhat.com>
1865 * java/lang/natThread.cc (finalize_native): Remove cast.
1866 (_Jv_GetCurrentJNIEnv): Likewise.
1867 * include/jvm.h (struct natThread) <jni_env>: Declare as
1870 2007-01-16 Keith Seitz <keiths@redhat.com>
1872 * testsuite/libjava.jvmti/natevents.cc (FieldModificationCB): Use
1873 %#llx instead of %d for new_value.
1874 * testsuite/libjava.jvmti/events.out: Update expected output.
1875 * testsuite/libjava.jvmti/events.jar: Regenerate.
1877 2007-01-16 Keith Seitz <keiths@redhat.com>
1879 * gnu/classpath/jdwp/natVMVirtualMachine.cc (DEFINE_CALLBACK):
1881 (ENABLE_EVENT): New macro.
1882 (initialize): Define and enable JVMTI VM_INIT callback.
1883 (jdwpVMInitCB): New function.
1885 2007-01-16 Kyle Galloway <kgallowa@redhat.com>
1887 * jvmti.cc (_Jv_JVMTI_GetAllThreads): New function.
1888 * testsuite/libjava.jvmti/getallthreads.java: New test.
1889 * testsuite/libjava.jvmti/natgetallthreads.cc: Ditto.
1890 * testsuite/libjava.jvmti/getallthreads.out: Ditto.
1891 * testsuite/libjava.jvmti/getallthreads.h: Ditto.
1892 * testsuite/libjava.jvmti/getallthreads.jar: Ditto.
1894 2007-01-15 Keith Seitz <keiths@redhat.com>
1896 * gnu/classpath/jdwp/natVMVirtualMachine.cc (suspendThread): Use
1897 java.lang.StringBuilder instead of java.lang.StringBuffer.
1898 (resumeThread): Likewise.
1900 2007-01-15 Gary Benson <gbenson@redhat.com>
1902 * java/nio/MappedByteBuffer.java: Removed.
1903 * sources.am, Makefile.in: Rebuilt.
1905 2007-01-15 Gary Benson <gbenson@redhat.com>
1907 * java/net/URLClassLoader.java: Removed.
1908 * gnu/java/net/loader/Load_gcjlib.java: New file.
1909 * gnu/gcj/runtime/BootClassLoader.java: Ensure core
1910 URL handler is present in static executables.
1911 * sources.am, Makefile.in: Rebuilt.
1913 2007-01-14 H.J. Lu <hongjiu.lu@intel.com>
1915 * Makefile.am (libgcj_la_LDFLAGS): Add
1916 $(LIBGCJ_LD_SYMBOLIC_FUNCTIONS).
1917 (libgcj_tools_la_LDFLAGS): Likewise.
1918 (libgcj_bc_la_LDFLAGS): Likewise.
1919 * Makefile.in: Regenerated.
1921 * configure.ac: Use ACX_PROG_LD_GNU_SYMBOLIC. Set
1922 LIBGCJ_LD_SYMBOLIC_FUNCTIONS to $SYMBOLIC_LDFLAGS. Set
1923 libgcj_ld_symbolic to $SYMBOLIC_LDFLAGS if it isn't set.
1924 Substitute LIBGCJ_LD_SYMBOLIC_FUNCTIONS.
1925 * configure: Regenerated.
1926 * aclocal.m4: Likewise.
1927 * gcj/Makefile.in: Likewise.
1928 * include/Makefile.in: Likewise.
1929 * testsuite/Makefile.in: Likewise.
1931 2007-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
1933 * sysdep/sh/locks.h (read_barrier): New.
1934 (write_barrier): Likewise.
1936 2007-01-12 Andrew Haley <aph@redhat.com>
1938 * include/i386-signal.h: Rewrite to use rt_sigaction.
1940 2007-01-11 Andrew Haley <aph@redhat.com>
1942 * prims.cc (jdwpOptions) Fix deprecated cast from char[] constant
1944 * include/x86_64-signal.h (HANDLE_DIVIDE_OVERFLOW): Rewrite to fix
1947 2007-01-10 Tom Tromey <tromey@redhat.com>
1949 * gnu/gcj/xlib/*.h: New files.
1950 * gnu/awt/xlib/*.h: Likewise.
1951 * classpath/lib/gnu/gcj/xlib: New class files.
1952 * classpath/lib/gnu/awt/xlib: Likewise.
1954 2007-01-10 Tom Tromey <tromey@redhat.com>
1956 * HACKING: Various updates.
1958 2007-01-10 Tom Tromey <tromey@redhat.com>
1960 * java/lang/natDouble.cc (toString): Added parens.
1961 * gnu/gcj/io/shs.h (PROTO): Define.
1962 * link.cc (resolve_pool_entry): Added missing braces.
1964 2007-01-10 H.J. Lu <hongjiu.lu@intel.com>
1967 * sysdep/ia64/locks.h (read_barrier): New.
1968 (write_barrier): New.
1970 2007-01-10 Gary Benson <gbenson@redhat.com>
1972 * java/net/URL.java: Removed.
1973 * sources.am, Makefile.in: Rebuilt.
1975 2007-01-10 Matthias Klose <doko@debian.org>
1977 * Makefile.am (install-exec-hook): Support $(DESTDIR).
1978 * Makefile.in: Regenerated.
1980 2007-01-05 Tom Tromey <tromey@redhat.com>
1982 * testsuite/libjava.loader/loader.exp (gcj_loader_run): Find
1983 dummy.class in srcdir.
1985 2007-01-03 Tom Tromey <tromey@redhat.com>
1987 * testsuite/libjava.cni/cni.exp (gcj_cni_compile_cxx_to_o): Add -I
1990 2007-01-03 Tom Tromey <tromey@redhat.com>
1992 * testsuite/*: Added many .jar and .h files.
1993 * testsuite/libjava.special/special.exp
1994 (gcj_special_try_compiler): New proc.
1995 * testsuite/libjava.loader/loader.exp (gcj_loader_run): Don't
1996 bytecompile source. Search for .jar files.
1997 (gcj_loader_test_one): Don't look for MyLoader.java.
1998 * testsuite/libjava.jvmti/jvmti.exp (gcj_jvmti_test_one): Don't
1999 bytecompile sources or build headers.
2000 (gcj_jvmti_run): Look for .jar files.
2001 * testsuite/libjava.jni/jni.exp (gcj_jni_run): Compile .jar
2003 (gcj_jni_test_one): Don't bytecompile sources or build headers.
2004 Set classpath when invoking gij.
2005 (gcj_jni_invocation_test_one): Likewise.
2006 * testsuite/libjava.cni/cni.exp (gcj_cni_test_one): Don't build
2007 headers or bytecompile sources.
2008 (gcj_cni_run): Use .jar files, not .java files.
2009 * testsuite/libjava.lang/lang.exp: Compile .jar files.
2011 2007-01-02 Tom Tromey <tromey@redhat.com>
2013 * configure: Rebuilt.
2014 * configure.ac: Check for gjar.
2016 2007-01-02 Tom Tromey <tromey@redhat.com>
2018 * testsuite/libjava.jacks/jacks.exp: Removed.
2019 * testsuite/libjava.jacks/jacks.xfail: Removed.