1 2007-05-24 Keith Seitz <keiths@redhat.com>
3 * include/java-interp.h (_Jv_InterpFrame::get_pc): Only deduct
4 one when pc_ptr is non-NULL.
6 * prims.cc (parse_init_args): Enable JVMTI with agentlib
9 * testsuite/lib/libjava.exp (exec_gij): Add new addl_flags
11 * testsuite/libjava.jvmti/jvmti-interp.exp (gij_jvmti_test_one):
12 Pass '-agentlib:dummyagent' when executing gij.
13 (gij_jvmti_run): Build dummy JVMTI agent before running tests,
14 and remove it when finished.
15 * testsuite/libjava.jvmti/dummyagent.c: New file.
17 2007-05-23 Steve Ellcey <sje@cup.hp.com>
19 * Makefile.in: Regenerate.
20 * configure: Regenerate.
21 * aclocal.m4: Regenerate.
22 * gcj/Makefile.in: Regenerate.
23 * include/Makefile.in: Regenerate.
24 * testsuite/Makefile.in: Regenerate.
26 2007-05-17 Kyle Galloway <kgallowa@redhat.com>
28 * classpath/gnu/classpath/jdwp/processor/ReferenceTypeCommandSet.java
29 (executeMethods): Remove cast to ClassReferenceTypeId.
30 * classpath/lib/gnu/classpath/jdwp/processor/
31 ReferenceTypeCommandSet.class: Rebuilt.
33 2007-05-17 Kyle Galloway <kgallowa@redhat.com>
35 * gnu/classpath/jdwp/natVMMethod.cc (getModifiers): Check for native
36 classes and mark methods as native appropriately.
38 2007-05-17 Kyle Galloway <kgallowa@redhat.com>
40 * gnu/classpath/jdwp/VMFrame.java (<init>): Add parameter for "this"
42 * gnu/classpath/jdwp/VMFrame.h: Regenerated.
43 * classpath/lib/gnu/classpath/jdwp/VMFrame.class: Rebuilt.
44 * gnu/classpath/jdwp/natVMVirtualMachine.cc (getFrame): Use new
47 2007-05-16 David Daney <ddaney@avtrex.com>
49 * include/java-stack.h (_Jv_FrameInfo): Remove union definition.
50 (_Jv_StackFrame): Remove commented out code.
51 (_Jv_UnwindState): Remove superfluous 'typedef'.
52 * sun/misc/natUnsafe.cc (spinlock): Add white space to quiet
54 * gnu/java/lang/management/natVMMemoryPoolMXBeanImpl.cc
55 (getCollectionUsage): Don't declare unused parameter n.
56 (getMemoryManagerNames): Same.
57 * gnu/gcj/util/natGCInfo.cc (gc_debug_info): Remove superfluous
60 2007-05-16 Keith Seitz <keiths@redhat.com>
62 * include/java-interp.h (breakpoint_at): Declare.
63 * interpret.cc (breakpoint_at): New function.
64 * gnu/classpath/jdwp/VMVirtualMachine.java (_event_list):
66 * gnu/classpath/jdwp/natVMVirtualMachine.cc (initialize):
67 Initialize _event_list.
68 (handle_single_step): If there is a breakpoint at the
69 location at which we are stopping, do not send the notification.
70 Instead add the event to a list of events that occur at this
72 (jdwpBreakpointCB): If the event list is not empty, send
73 whatever events are in it and the breakpoint event in a single
75 Mark parameter jni_env as MAYBE_UNUSED.
76 * classpath/lib/gnu/classpath/jdwp/VMVirtualMachine.class:
78 * gnu/classpath/jdwp/VMVirtualMachine.h: Regenerated.
80 2007-05-15 David Daney <ddaney@avtrex.com>
82 * classpath/lib/javax/swing/text/html/HTMLEditorKit.class: Regenerate
83 * gnu/java/awt/peer/gtk/ComponentGraphics.h: Same.
85 2007-05-15 Keith Seitz <keiths@redhat.com>
87 * interpret.cc (STOREA): Rewrite using temporary variable to
88 avoid double-macro expansion side-effects.
91 (STOREL)[SIZEOF_VOID_P == 8]: Likewise.
92 (STORED)[SIZEOF_VOID_P == 8]: Likewise.
93 (STOREL)[SIZEOF_VOID_P != 8]: Likewise.
94 (STORED)[SIZEOF_VOID_P != 8]: Likewise.
97 2007-05-12 David Daney <ddaney@avtrex.com>
100 * include/posix-threads.h (_Jv_BlockSigchld): Declare.
101 (_Jv_UnBlockSigchld): Same.
102 * posix-threads.cc: Include posix-threads.h.
103 (block_sigchld) Rename to...
104 (_Jv_BlockSigchld) ... this.
105 (_Jv_UnBlockSigchld): New function.
106 (_Jv_InitThreads): Call _Jv_BlockSigchld in place of block_sigchld.
107 (_Jv_ThreadStart): Same.
108 * java/lang/PosixProcess$ProcessManager.h: Regenerate.
109 * java/lang/PosixProcess.java: Clean up imports.
110 (ProcessManager): Make final.
111 (ProcessManager.queue): Genericise and make private.
112 (ProcessManager.pidToProcess): Remove.
113 (ProcessManager.liveProcesses): New field.
114 (ProcessManager.reaperPID): Remove.
115 (ProcessManager.nativeData): New field.
116 (ProcessManager.removeProcessFromMap): Remove.
117 (ProcessManager.addProcessToMap):Remove.
118 (ProcessManager.addToLiveProcesses): New method.
119 (ProcessManager.run): Rewritten.
120 (ProcessManager.reap): Change method signature,
121 (getErrorStream): Correct formatting.
122 (getInputStream): Same.
123 (spawn): Add process to liveProcesses list.
124 (pid): Make package private.
125 * java/lang/PosixProcess.h: Regenerate.
126 * java/lang/natPosixProcess.cc: Include posix.h and posix-threads.h.
127 Add useing namespace java::lang.
128 (ProcessManagerInternal): New struct.
129 (sigchld_handler): Rewritten.
131 (waitForSignal): Same.
133 (signalReaper): Same.
134 (nativeDestroy): Call kill as ::kill.
135 (nativeSpawn): Correct formatting.
136 * classpath/lib/java/lang/PosixProcess$EOFInputStream.class: Regenerate.
137 * classpath/lib/java/lang/PosixProcess.class: Same.
138 * classpath/lib/java/lang/PosixProcess$ProcessManager.class: Same.
140 2007-05-07 Ian Lance Taylor <iant@google.com>
143 * java/lang/natString.cc (_Jv_FormatInt): Avoid undefined signed
146 2007-05-07 Keith Seitz <keiths@redhat.com>
148 * classpath/lib/gnu/classpath/jdwp/Jdwp.class: Regenerate.
149 * classpath/lib/gnu/classpath/jdwp/Jdwp$1.class: Regenerate.
150 * classpath/lib/gnu/classpath/jdwp/event/Event.class:
152 * classpath/lib/gnu/classpath/jdwp/transport/JdwpConnection.class:
154 * gnu/classpath/jdwp/Jdwp.h: Regenerate.
155 * gnu/classpath/jdwp/event/Event.h: Regenerate.
156 * gnu/classpath/jdwp/transport/JdwpConnection.h: Regenerate.
158 2007-05-04 Kyle Galloway <kgallowa@redhat.com>
160 * gnu/classpath/jdwp/natVMVirtualMachine.cc (getClassMethod): Change
163 2007-05-03 Keith Seitz <keiths@redhat.com>
165 * interpret.cc: Don't include ExceptionEvent.h.
166 * gnu/gcj/jvmti/natExceptionEvent.cc: Remove.
167 * Makefile.am (nat_source_files): Remove natExceptionEvent.cc.
168 * Makefile.in: Regenerated.
170 2007-05-03 Keith Seitz <keiths@redhat.com>
172 * include/jvmti-int.h (_Jv_ReportJVMTIExceptionThrow):
174 * interpret.cc (_Jv_ReportJVMTIExceptionThrow): New function.
175 (find_catch_location): New function.
176 (REPORT_EXCEPTION): New macro.
177 (throw_internal_error): Use REPORT_EXCEPTION.
178 (throw_incompatible_class_change_error): Likewise.
179 (throw_null_pointer_exception): Likewise.
180 (throw_class_format_error): Likewise.
181 * interpret-run.cc (INTERP_REPORT_EXCEPTION)[DEBUG]: Set
183 (INTERP_REPORT_EXCEPTION)[!DEBUG]: Make nop.
184 (insn_new): Use INTERP_REPORT_EXCEPTION.
185 (insn_athrow): Likewise.
186 Remove previous JVMTI exception notifications.
187 Add JVMTI ExceptionCatch notificatin.
188 * jni.cc (_Jv_PopSystemFrame): Notify JVMTI clients of
190 * gnu/gcj/jvmti/ExceptionEvent.java: Removed.
191 * gnu/gcj/jvmti/ExceptionEvent.h: Removed.
192 * classpath/lib/gnu/gcj/jvmti/ExceptionEvent.class: Removed.
193 * gnu/classpath/jdwp/natVMVirtualMachine.cc
194 (jdwpExceptionCB): New function.
195 (jdwpVMInitCB): Set Exception event handler and enable.
196 * sources.am: Regenerated.
197 * Makefile.in: Regenerated.
199 2007-05-03 Thomas Fitzsimmons <fitzsim@redhat.com>
201 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=237304
202 * Makefile.in: Regenerate.
203 * scripts/makemake.tcl (scan_directory): Treat default.css as a
205 * classpath/javax/swing/text/html/default.css: Move to...
206 * classpath/resource/javax/swing/text/html/default.css: New file.
207 * classpath/javax/swing/text/html/HTMLEditorKit.java
208 (getStyleSheet): Throw RuntimeException when style loading fails.
209 * sources.am (property_files): Add
210 classpath/resource/javax/swing/text/html/default.css.
212 2007-05-02 Tom Tromey <tromey@redhat.com>
214 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=238755
215 * java/lang/natCharacter.cc (Character::getType): Handle negative
217 (Character::toLowerCase): Likewise.
218 (Character::toUpperCase): Likewise.
219 (Character::digit): Likewise.
220 (Character::getNumericValue): Likewise.
221 (Character::getDirectionality): Likewise.
222 (Character::toTitleCase): Likewise.
224 2007-04-30 Keith Seitz <keiths@redhat.com>
226 * interpret-run.cc (NEXT_INSN)[DEBUG]: Advance PC before
227 executing the instruction.
228 * include/java-interp.h (_Jv_InterpFrame::get_pc): Subtract
229 one insn from the frame's PC. _Jv_InterpMethod::run et al
230 will advance the PC before executing the instruction.
232 2007-04-27 Keith Seitz <keiths@redhat.com>
234 * classpath/lib/gnu/classpath/jdwp/Jdwp.class: Regenerated.
235 * classpath/lib/gnu/classpath/jdwp/event/EventManager.class:
237 * gnu/classpath/jdwp/event/EventManager.h: Regenerated.
239 2007-04-27 Keith Seitz <keiths@redhat.com>
241 * classpath/lib/gnu/classpath/jdwp/event/filters/
242 LocationOnlyFilter.class: Regenerated;
243 * classpath/lib/gnu/classpath/jdwp/util/Location.class:
245 * gnu/classpath/jdwp/VMMethod.java
246 * classpath/lib/gnu/classpath/jdwp/VMMethod.class:
248 * gnu/classpath/jdwp/VMMethod.h: Regenerated.
249 * gnu/classpath/jdwp/util/Location.h: Regenerated.
251 2007-04-27 Thomas Fitzsimmons <fitzsim@redhat.com>
253 * gnu/java/awt/peer/gtk/CairoGraphics2D.h: Regenerate.
254 * gnu/java/awt/peer/gtk/ComponentGraphics.h: Regenerate.
256 2007-04-25 Kyle Galloway <kgallowa@redhat.com>
258 * gnu/classpath/jdwp/VMIdManager.java (getObjectId): Deal with null
260 (get): Deal with ObjectId of 0.
262 2007-04-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
265 * java/lang/natVMProcess.cc: Include platform.h before jvm.h.
267 2007-04-24 Kyle Galloway <kgallowa@redhat.com>
269 * gnu/classpath/jdwp/natVMVirtualMachine.java
270 (getThreadStatus): Implement.
272 2007-04-24 Keith Seitz <keiths@redhat.com>
274 * headers.txt (gnu/gcj/jvmti/Breakpoint.h)[DIRECT_THREADED]:
275 Add _Jv_RewriteBreakpointInsn friend declaration.
276 * gnu/gcj/jvmti/natBreakpoint.cc (_Jv_RewriteBreakpointInsn)
277 [DIRECT_THREADED]: New function.
278 * gnu/gcj/jvmti/Breakpoint.h: Regenerate.
279 * interpret-run.cc: Define new REWRITE_INSN macro.
280 Changed all occurrences of insn rewriting to call REWRITE_INSN.
282 2007-04-23 Keith Seitz <keiths@redhat.com>
284 * include/no-gc.h (_Jv_IsThreadSuspended): Declare.
285 * include/boehm-gc.h (_Jv_IsThreadSuspended): Likewise.
286 * boehm.cc (_Jv_IsThreadSuspended): New function.
287 * nogc.cc (_Jv_IsThreadSuspended): Likewise.
288 * jvmti.cc (_Jv_JVMTI_GetThreadState): New function.
289 (_Jv_JVMTI_Interface): Define GetThreadState.
291 2007-04-23 Kyle Galloway <kgallowa@redhat.com>
293 * include/java-interp.h (_Jv_InterpFrame): Add pointer to the
295 (<init>): Add a pointer to the interpreter PC as a parameter with
297 (get_pc): New method.
298 * interpret-run.cc: If debugging, pass a pointer to the PC when
299 creating the stack frame.
300 * jvmti.cc (_Jv_JVMTI_GetStackTrace): Call _Jv_InterpFrame::get_pc
303 2007-04-23 Kyle Galloway <kgallowa@redhat.com>
305 * gnu/classpath/jdwp/natVMVirtualMachine.cc (getSourceFile): Check
306 for null source file and throw an exception indicating this.
308 2007-04-20 Keith Seitz <keiths@redhat.com>
310 * gnu/gcj/jvmti/BreakpointManager.java (newBreakpoint):
311 Install the new breakpoint into the bytecode.
312 (deleteBreakpoint): Remove the breakpoint from the bytecode.
313 * classpath/lib/gnu/gcj/jvmti/BreakpointManager.class:
315 * gnu/gcj/jvmti/natBreakpoint.cc (initialize_native):
316 Don't install the breakpoint here.
318 2007-04-19 Keith Seitz <keiths@redhat.com>
320 * interpret-run.cc [insn_breakpoint]: Save the original
321 insn for the breakpoint before posting the JVMTI notification.
323 2007-04-19 Tom Tromey <tromey@redhat.com>
325 * gnu/javax/net/ssl/provider/SSLSocketFactoryImpl.h: Rebuilt.
327 2007-04-18 Tom Tromey <tromey@redhat.com>
329 * Regenerated headers with new gjavah.
331 2007-04-18 Andrew Haley <aph@redhat.com>
333 * java/lang/reflect/natVMProxy.cc (ncode_closure): Add
335 (generateProxyClass): Add field $Proxy0.m. Store methods array in
337 (run_proxy): Retrieve the method to invoke from in $Proxy0.m.
338 * java/lang/Class.h: Remove _Jv_LookupProxyMethod.
339 * java/lang/natClass.cc: Likewise.
340 * headers.txt: Likewise.
341 * java/lang/reflect/Method.h: Likewise.
343 2007-04-16 Andrew Haley <aph@redhat.com>
345 * gnu/gcj/runtime/BootClassLoader.java (getBootURLLoader): New
347 (bootGetResource): Use getBootURLLoader() to load resources.
348 (bootGetResources): Likewise.
350 * java/lang/reflect/natMethod.cc (Method::invoke): In invoke also
351 check that the method's declaring class is accessible.
353 2007-04-10 Keith Seitz <keiths@redhat.com>
355 * sources.am: Regenerate.
356 * Makefile.in: Likewise.
358 2007-04-09 Kyle Galloway <kgallowa@redhat.com>
360 * interpret-run.cc: If debugging, check if args is NULL before
361 getting the "this" pointer.
363 2007-04-09 Kyle Galloway <kgallowa@redhat.com>
365 * classpath/gnu/classpath/jdwp/value/ArrayValue.java: New file.
366 * classpath/lib/gnu/classpath/jdwp/value/ArrayValue.class: New file.
367 * gnu/classpath/jdwp/ArrayValue.h: New file.
368 * gnu/classpath/jdwp/natVMFrame.cc (getValue): Add array case.
371 2007-04-09 David Daney <ddaney@avtrex.com>
374 * java/lang/natPosixProcess.cc (nativeSpawn): Move building of
375 environment before the fork.
376 * testsuite/libjava.lang/Process_7.java: New test.
377 * testsuite/libjava.lang/Process_7.out: Its expected results.
378 * testsuite/libjava.lang/Process_7.jar: Generated file.
380 2007-04-09 H.J. Lu <hongjiu.lu@intel.com>
382 * prims.cc (load_jvmti_agent): Add the missing `,'.
384 2007-04-09 Kyle Galloway <kgallowa@redhat.com>
386 * gij.cc (main): Accept -agentlib and -agentpath options.
387 * prims.cc (parse_init_args): Deal with -agentlib and -agentpath.
388 (load_jvmti_agent): New function.
390 2007-04-04 Tania Bento <tbento@redhat.com>
392 * java/text/DecimalFormatSymbols.java: Added the year 2007 to
393 Copyright information and introduced new variable, currency.
394 (DecimalFormatSymbols(Locale)): Define currency and intlCurrencySymbol
395 to "XXX", currencySymbol to "?" and localCurrency appropriately.
396 (getCurrency): Fixed documentation and return the value of currency.
397 (setCurrency): Fixed documentation and update the value of currency.
398 (setInternationalCurrencySymbol): Fixed documentation and update the
400 * java/util/Currency.java: Introduced two new variables, properties
401 and fractionDigits. In the static block, a properties object is
402 created and the currency resource is loaded.
403 (Currency(Locale)): fractionDigits is defined.
404 (Currency(String)): New method.
405 (getDefaultFractionDigits): Return the value of fractionDigits.
406 (getInstance(String)): Check if String is equal to "XXX".
408 2007-04-04 Kyle Galloway <kgallowa@redhat.com>
410 * classpath/gnu/classpath/jdwp/util/VariableTable.java: Change longs
411 to ints for argCnt and slots.
412 (write): Replace writeLong with writeInt for the above.
414 2007-04-03 Andrew Haley <aph@redhat.com>
416 * testsuite/libjava.lang/ProxyTest.java: New test.
418 2007-04-02 Tom Tromey <tromey@redhat.com>
420 http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=205157
421 * gnu/java/nio/channels/natFileChannelPosix.cc (mapImpl): Extend
422 file, when writing, if it is too short.
424 2007-04-02 Tom Tromey <tromey@redhat.com>
426 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=233406
427 * gnu/java/net/natPlainSocketImplPosix.cc (create): Return if
429 * gnu/java/net/PlainSocketImpl.java (getLocalAddress): Handle case
430 where localport is -1.
431 (create): Now public.
432 * gnu/java/nio/SocketChannelImpl.java (SocketChannelImpl): Call
433 'create' on the socket.
435 2007-04-02 Andrew Haley <aph@redhat.com>
437 * java/lang/reflect/natVMProxy.cc (run_proxy): Use
438 _Jv_LookupProxyMethod to find the Method.
439 If parameter_types->length == 0, pass a null paramameter list,
440 not a zero-length parameter list.
441 * java/lang/natClass.cc (_Jv_LookupProxyMethod): New function.
442 * java/lang/Class.h (_Jv_LookupProxyMethod): Declare.
444 2007-04-02 Kyle Galloway <kgallowa@redhat.com>
446 * interpret-run.cc: Add code to properly set up variable slots
448 * gnu/classpath/jdwp/natVMFrame.cc (checkJVMTIError): New function.
449 (getObjectJVMTI): New function.
450 (setObjectJVMTI): New function.
451 (getIntJVMTI): New function.
452 (setIntJVMTI): New function.
453 (getLongJVMTI): New function.
454 (setLongJVMTI): New function.
455 (getFloatJVMTI): New function.
456 (setFloatJVMTI): New function.
457 (getDoubleJVMTI): New function.
458 (setDoubleJVMTI): New function.
459 (getFrameDepth): New function.
460 (getValue): Implement.
461 (setValue): Implement.
463 2007-04-02 Kyle Galloway <kgallowa@redhat.com>
465 * classpath/gnu/classpath/jdwp/processor/ThreadReferenceCommandSet.java
466 (executeResume): Call VMVirtualMachine.resumeThread.
468 2007-03-29 Tom Tromey <tromey@redhat.com>
471 * java/util/logging/LogManager.java (readConfiguration): Handle
472 comma-separated 'handlers'. Don't try to add a non-existing
475 2007-03-27 Tom Tromey <tromey@redhat.com>
477 * sources.am, Makefile.in: Rebuilt.
478 * scripts/mime.types: Removed.
479 * scripts/MakeDefaultMimeTypes.java: Removed.
480 * gnu/gcj/io/MimeTypes.java: Removed.
481 * gnu/gcj/io/MimeTypes.h: Removed.
482 * gnu/gcj/io/DefaultMimeTypes.java: Removed.
483 * gnu/gcj/io/DefaultMimeTypes.h: Removed.
485 2007-03-27 Keith Seitz <keiths@redhat.com>
487 * gnu/classpath/jdwp/VMFrame.java: Update from upstream
489 * gnu/classpath/jdwp/natVMFrame.cc: Likewise.
490 * gnu/classpath/jdwp/VMVirtualMachine.java: Likewise.
491 * gnu/classpath/jdwp/natVMVirtualMachine.cc: Likewise.
492 (initialize): Fix compiler type-punning warning.
493 (getAllLoadedClasses): Return empty list instead of NULL.
494 (getLoadRequests): Likewise.
495 * gnu/classpath/jdwp/exception/InvalidTagException.h: New file.
496 * gnu/classpath/jdwp/exception/InvalidSlotException.h: New file.
497 * gnu/classpath/jdwp/exception/TypeMismatchException.h: New file.
498 * gnu/classpath/jdwp/VMVirtualMachine.h: Rebuilt.
499 * gnu/classpath/jdwp/value/CharValue.h: New file.
500 * gnu/classpath/jdwp/value/LongValue.h: New file.
501 * gnu/classpath/jdwp/value/ShortValue.h: New file.
502 * gnu/classpath/jdwp/value/Value.h: New file.
503 * gnu/classpath/jdwp/value/BooleanValue.h: New file.
504 * gnu/classpath/jdwp/value/VoidValue.h: New file.
505 * gnu/classpath/jdwp/value/ByteValue.h: New file.
506 * gnu/classpath/jdwp/value/FloatValue.h: New file.
507 * gnu/classpath/jdwp/value/ObjectValue.h: New file.
508 * gnu/classpath/jdwp/value/StringValue.h: New file.
509 * gnu/classpath/jdwp/value/ValueFactory.h: New file.
510 * gnu/classpath/jdwp/value/IntValue.h: New file.
511 * gnu/classpath/jdwp/value/DoubleValue.h: New file.
512 * gnu/classpath/jdwp/VMFrame.h: Rebuilt.
513 * gnu/classpath/jdwp/id/NullObjectId.h: New file.
514 * gnu/classpath/jdwp/util/MethodResult.h: Rebuilt.
515 * gnu/classpath/jdwp/util/NullObject.h: New file.
516 * gnu/classpath/jdwp/util/MonitorInfo.h: New file.
517 * Makefile.in: Rebuilt.
518 * sources.am: Rebuilt.
520 2006-03-26 David Daney <ddaney@avtrex.com>
522 * configure.ac: Remove checks for mktime, alloca, ioctl, gmtime_r,
523 fork, execvp, execinfo.h, pthread_mutexattr_settype,
524 pthread_mutexattr_setkind_np and sys/wait.h.
525 * Makefile.in: Regenerate.
526 * include/Makefile.in: Regenerate.
527 * include/config.h.in: Regenerate.
528 * testsuite/Makefile.in: Regenerate.
529 * configure: Regenerate.
530 * gcj/Makefile.in: Regenerate.
532 2007-03-23 Gary Benson <gbenson@redhat.com>
534 * link.cc (_Jv_Linker::resolve_method_entry):
535 Ensure that the argument types and the return type of the
536 found method match those expected by the calling method.
538 2007-03-22 David Daney <ddaney@avtrex.com>
541 * configure.ac: Add checks for getrlimit and sys/resource.h.
542 * include/posix.h (_Jv_platform_close_on_exec): Remove.
543 * include/config.h.in: Regenerate.
544 * configure: Regenerate.
545 * gnu/java/nio/channels/natFileChannelPosix.cc (open): Remove call to
546 _Jv_platform_close_on_exec;
547 * gnu/java/net/natPlainSocketImplPosix.cc (create): Likewise.
549 * gnu/java/net/natPlainDatagramSocketImplPosix.cc (create):Likewise.
550 * java/lang/natPosixProcess.cc: Include sys/resource.h.
551 (nativeSpawn): Close all file descriptors. Don't set FD_CLOEXEC on
554 2007-03-20 Andrew Haley <aph@redhat.com>
556 * testsuite/libjava.lang/PR31264.java: New test.
558 2007-03-14 Jakub Jelinek <jakub@redhat.com>
560 * Makefile.am (AM_MAKEFLAGS): Pass through mandir.
561 * Makefile.in: Rebuilt.
563 2007-03-13 Keith Seitz <keiths@redhat.com>
565 * include/java-interp.h (_Jv_InterpClass): Declare
566 friend function _Jv_GetInterpClassSourceFile.
567 * java/lang/Class.h (Class): Likewise.
568 * java/lang/natClass.cc (_Jv_GetInterpClassSourceFile):
570 * gnu/classpath/jdwp/natVMVirtualMachine.cc
571 (getSourceFile): Implement.
573 2007-03-13 Thomas Fitzsimmons <fitzsim@redhat.com>
575 * Makefile.am (AM_CXXFLAGS): Define ECJ_JAR_FILE.
576 * classpath/configure.ac: Add --with-ecj-jar configure option.
577 * classpath/gnu/classpath/Configuration.java.in (ECJ_JAR): New
579 * classpath/INSTALL: Document --with-ecj-jar configure option and
580 ecj jar requirement for com.sun.tools.javac support.
581 * classpath/tools/Makefile.am: Build decendents of com and sun
583 * configure.ac: Substitute ECJ_JAR in stub Configuration.java.
584 * gnu/classpath/Configuration.java,
585 gnu/classpath/natConfiguration.cc (ecj): New method.
586 (ECJ_JAR): New field.
587 * scripts/makemake.tcl (scan_packages): Add com directory.
588 * sources.am (property_files): Add
589 classpath/resource/sun/rmi/rmic/messages.properties and
590 classpath/resource/com/sun/tools/javac/messages.properties.
591 * classpath/resource/com, classpath/resource/com/sun,
592 classpath/resource/com/sun/tools,
593 classpath/resource/com/sun/tools/javac, classpath/resource/sun,
594 classpath/resource/sun/rmi, classpath/resource/sun/rmi/rmic,
595 classpath/tools/classes/com, classpath/tools/classes/com/sun,
596 classpath/tools/classes/com/sun/javadoc,
597 classpath/tools/classes/com/sun/tools,
598 classpath/tools/classes/com/sun/tools/doclets,
599 classpath/tools/classes/sun, classpath/tools/classes/sun/rmi,
600 classpath/tools/classes/sun/rmi/rmic, classpath/tools/com,
601 classpath/tools/com/sun, classpath/tools/com/sun/javadoc,
602 classpath/tools/com/sun/tools,
603 classpath/tools/com/sun/tools/doclets,
604 classpath/tools/com/sun/tools/javac, classpath/tools/sun,
605 classpath/tools/sun/rmi, classpath/tools/sun/rmi/rmic: New
607 * classpath/resource/com/sun/tools/javac/messages.properties,
608 classpath/resource/sun/rmi/rmic/messages.properties,
609 classpath/tools/classes/com/sun/javadoc/ClassDoc.class,
610 classpath/tools/classes/com/sun/javadoc/ConstructorDoc.class,
611 classpath/tools/classes/com/sun/javadoc/Doc.class,
612 classpath/tools/classes/com/sun/javadoc/DocErrorReporter.class,
613 classpath/tools/classes/com/sun/javadoc/Doclet.class,
614 classpath/tools/classes/com/sun/javadoc/ExecutableMemberDoc.class,
615 classpath/tools/classes/com/sun/javadoc/FieldDoc.class,
616 classpath/tools/classes/com/sun/javadoc/MemberDoc.class,
617 classpath/tools/classes/com/sun/javadoc/MethodDoc.class,
618 classpath/tools/classes/com/sun/javadoc/PackageDoc.class,
619 classpath/tools/classes/com/sun/javadoc/ParamTag.class,
620 classpath/tools/classes/com/sun/javadoc/Parameter.class,
621 classpath/tools/classes/com/sun/javadoc/ProgramElementDoc.class,
622 classpath/tools/classes/com/sun/javadoc/RootDoc.class,
623 classpath/tools/classes/com/sun/javadoc/SeeTag.class,
624 classpath/tools/classes/com/sun/javadoc/SerialFieldTag.class,
625 classpath/tools/classes/com/sun/javadoc/SourcePosition.class,
626 classpath/tools/classes/com/sun/javadoc/Tag.class,
627 classpath/tools/classes/com/sun/javadoc/ThrowsTag.class,
628 classpath/tools/classes/com/sun/javadoc/Type.class,
629 classpath/tools/classes/com/sun/javadoc/TypeVariable.class,
630 classpath/tools/classes/com/sun/tools/doclets/Taglet.class,
631 classpath/tools/classes/sun/rmi/rmic/Main.class,
632 classpath/tools/classes/sun/rmi/rmic/Messages.class,
633 classpath/tools/com/sun/javadoc/ClassDoc.java,
634 classpath/tools/com/sun/javadoc/ConstructorDoc.java,
635 classpath/tools/com/sun/javadoc/Doc.java,
636 classpath/tools/com/sun/javadoc/DocErrorReporter.java,
637 classpath/tools/com/sun/javadoc/Doclet.java,
638 classpath/tools/com/sun/javadoc/ExecutableMemberDoc.java,
639 classpath/tools/com/sun/javadoc/FieldDoc.java,
640 classpath/tools/com/sun/javadoc/MemberDoc.java,
641 classpath/tools/com/sun/javadoc/MethodDoc.java,
642 classpath/tools/com/sun/javadoc/PackageDoc.java,
643 classpath/tools/com/sun/javadoc/ParamTag.java,
644 classpath/tools/com/sun/javadoc/Parameter.java,
645 classpath/tools/com/sun/javadoc/ProgramElementDoc.java,
646 classpath/tools/com/sun/javadoc/RootDoc.java,
647 classpath/tools/com/sun/javadoc/SeeTag.java,
648 classpath/tools/com/sun/javadoc/SerialFieldTag.java,
649 classpath/tools/com/sun/javadoc/SourcePosition.java,
650 classpath/tools/com/sun/javadoc/Tag.java,
651 classpath/tools/com/sun/javadoc/ThrowsTag.java,
652 classpath/tools/com/sun/javadoc/Type.java,
653 classpath/tools/com/sun/javadoc/TypeVariable.java,
654 classpath/tools/com/sun/tools/doclets/Taglet.java,
655 classpath/tools/com/sun/tools/javac/Main.java,
656 classpath/tools/com/sun/tools/javac/Messages.java,
657 classpath/tools/sun/rmi/rmic/Main.java,
658 classpath/tools/sun/rmi/rmic/Messages.java: New files.
659 * Makefile.in, classpath/Makefile.in, classpath/configure,
660 classpath/doc/Makefile.in, classpath/doc/api/Makefile.in,
661 classpath/examples/Makefile.in, classpath/external/Makefile.in,
662 classpath/external/jsr166/Makefile.in,
663 classpath/external/relaxngDatatype/Makefile.in,
664 classpath/external/sax/Makefile.in,
665 classpath/external/w3c_dom/Makefile.in,
666 classpath/include/Makefile.in, classpath/include/config.h.in,
667 classpath/lib/Makefile.in,
668 classpath/lib/gnu/classpath/Configuration.class,
669 classpath/native/Makefile.in, classpath/native/fdlibm/Makefile.in,
670 classpath/native/jawt/Makefile.in,
671 classpath/native/jni/Makefile.in,
672 classpath/native/jni/classpath/Makefile.in,
673 classpath/native/jni/gconf-peer/Makefile.in,
674 classpath/native/jni/gtk-peer/Makefile.in,
675 classpath/native/jni/java-io/Makefile.in,
676 classpath/native/jni/java-lang/Makefile.in,
677 classpath/native/jni/java-net/Makefile.in,
678 classpath/native/jni/java-nio/Makefile.in,
679 classpath/native/jni/java-util/Makefile.in,
680 classpath/native/jni/midi-alsa/Makefile.in,
681 classpath/native/jni/midi-dssi/Makefile.in,
682 classpath/native/jni/native-lib/Makefile.in,
683 classpath/native/jni/qt-peer/Makefile.in,
684 classpath/native/jni/xmlj/Makefile.in,
685 classpath/native/plugin/Makefile.in,
686 classpath/resource/Makefile.in, classpath/scripts/Makefile.in,
687 classpath/tools/Makefile.in, configure,
688 gnu/classpath/Configuration.h: Regenerate.
690 2007-03-12 Kyle Galloway <kgallowa@redhat.com>
692 * jvmti.cc (_Jv_JVMTI_GetArgumentsSize): Make wide type arrays count
695 2007-03-12 Marco Trudel <mtrudel@gmx.ch>
697 * java/lang/natString.cc (getBytes (jstring enc)):
698 Fixed the loop for multiple cycles, Code cleanup
700 2007-03-09 Tom Tromey <tromey@redhat.com>
702 * sources.am, Makefile.in: Rebuilt.
703 * scripts/makemake.tcl (scan_directory): Allow service files to be
705 Omit all XML-related service files.
707 2007-03-07 Tom Tromey <tromey@redhat.com>
709 * configure: Rebuilt.
710 * configure.ac: Clear vm-tools-packages.
712 2007-03-07 Mohan Embar <gnustuff@thisiscool.com>
714 * java/lang/Win32Process.java: Added nested class EOFInputStream.
715 * java/lang/natWin32Process.cc (ChildProcessPipe): Added DUMMY
716 enum and implementation.
717 (startProcess): Use redirect flag.
718 * classpath/lib/java/lang/Win32Process.class: Regenerated.
719 * classpath/lib/java/lang/Win32Process$EOFInputStream.class: New.
720 * gcj/javaprims.h: Regenerated.
721 * java/lang/Win32Process$EOFInputStream.h: New.
723 2007-03-07 Andrew Haley <aph@redhat.com>
725 * libgcj_bc.c (JvRunMainName): Declare.
727 2007-03-07 Gary Benson <gbenson@redhat.com>
729 * sources.am, Makefile.in: Rebuilt.
731 2007-03-07 Mohan Embar <gnustuff@thisiscool.com>
733 * gcj/javaprims.h: Regenerated.
735 2007-03-07 Alexandre Oliva <aoliva@redhat.com>
737 * include/jvm.h (_Jv_ClosureListFinalizer): New.
738 (_Jv_Linker::create_error_method): Adjust.
739 * boehm.cc (_Jv_ClosureListFinalizer): New.
740 * nogc.cc (_Jv_ClosureListFinalizer): New.
741 * java/lang/Class.h (class _Jv_ClosureList): New.
742 (class java::lang::Class): Declare it as friend.
743 * java/lang/natClass.cc (_Jv_ClosureList::releaseClosures): New.
744 (_Jv_ClosureList::registerClousure): New.
745 * include/execution.h (_Jv_ExecutionEngine): Add get_closure_list.
746 (_Jv_CompiledEngine::do_get_closure_list): New.
747 (_Jv_CompiledEngine::_Jv_CompiledEngine): Use it.
748 (_Jv_IndirectCompiledClass): Add closures.
749 (_Jv_IndirectCompiledEngine::get_aux_info): New.
750 (_Jv_IndirectCompiledEngine::do_allocate_field_initializers): Use
752 (_Jv_IndirectCompiledEngine::do_get_closure_list): New.
753 (_Jv_IndirectCompiledEngine::_Jv_IndirectCompiledEngine): Use it.
754 (_Jv_InterpreterEngine::do_get_closure_list): Declare.
755 (_Jv_InterpreterEngine::_Jv_InterpreterEngine): Use it.
756 * interpret.cc (FFI_PREP_RAW_CLOSURE): Use _loc variants.
757 (node_closure): Add closure list.
758 (_Jv_InterpMethod::ncode): Add jclass argument. Use
759 ffi_closure_alloc and the separate code pointer. Register the
760 closure for finalization.
761 (_Jv_JNIMethod::ncode): Likewise.
762 (_Jv_InterpreterEngine::do_create_ncode): Pass klass to ncode.
763 (_Jv_InterpreterEngine::do_get_closure_list): New.
764 * include/java-interp.h (_Jv_InterpMethod::ncode): Adjust.
765 (_Jv_InterpClass): Add closures field.
766 (_Jv_JNIMethod::ncode): Adjust.
767 * defineclass.cc (_Jv_ClassReader::handleCodeAttribute): Adjust.
768 (_Jv_ClassReader::handleMethodsEnd): Likewise.
769 * link.cc (struct method_closure): Add closure list.
770 (_Jv_Linker::create_error_method): Add jclass argument. Use
771 ffi_closure_alloc and the separate code pointer. Register the
772 closure for finalization.
773 (_Jv_Linker::link_symbol_table): Remove outdated comment about
774 sharing of otable and atable. Adjust.
775 * java/lang/reflect/natVMProxy.cc (ncode_closure): Add closure
777 (ncode): Add jclass argument. Use ffi_closure_alloc and the
778 separate code pointer. Register the closure for finalization.
779 (java::lang::reflect::VMProxy::generateProxyClass): Adjust.
780 * testsuite/libjava.jar/TestClosureGC.java: New.
781 * testsuite/libjava.jar/TestClosureGC.out: New.
782 * testsuite/libjava.jar/TestClosureGC.xfail: New.
783 * testsuite/libjava.jar/TestClosureGC.jar: New.
785 2007-03-06 Kyle Galloway <kgallowa@redhat.com>
787 * classpath/gnu/classpath/jdwp/exception/AbsentInformationException.java: New file.
788 * classpath/lib/gnu/classpath/jdwp/exception/AbsentInformationException.class: Ditto.
789 * gnu/classpath/jdwp/exception/AbsentInformationException.h: Ditto.
790 * gnu/classpath/jdwp/natVMMethod.cc: Add CHECK_INTERP_CLASS macro.
791 (VMMethod::getLineTable): Use new macro.
792 (VMMethod::getVariableTable): Implement.
793 * sources.am: Regenerated.
794 * Makefile.in: Ditto.
796 2007-03-06 Tom Tromey <tromey@redhat.com>
798 * Makefile.in: Rebuilt.
799 * Makefile.am (bin_PROGRAMS): Added gcjh.
800 (gcjh_SOURCES, gcjh_LDFLAGS, gcjh_LINK, gcjh_LDADD,
801 gcjh_DEPENDENCIES): New variables.
803 2007-03-06 Kyle Galloway <kgallowa@redhat.com>
805 * jvmti.cc(_Jv_JVMTI_GetLocalVariableTable): Fix _Jv_Malloc parameters.
806 * testsuite/libjava.jvmti/interp/natgetlocalvartable.cc
807 (do_getlocalvartable_tests): Add Deallocate calls to free strings.
809 2007-03-05 Matthias Klose <doko@debian.org>
811 * Makefile.am (gij_LDFLAGS): Use dbexecdir.
812 * Makefile.in: Regnerate.
814 2007-03-05 Mark Wielaard <mark@klomp.org>
816 * java/lang/Character.java: Re-merged with Classpath.
817 * java/lang/natString.cc (nativeCompareTo): Renamed from
819 * java/lang/StringBuilder.java: Re-merged with Classpath.
820 * java/lang/String.java: Re-merged with Classpath.
821 (nativeCompareTo): Renamed from compareTo.
822 * java/lang/StringBuffer.java: Re-merged with Classpath.
823 * jni.cc (_Jv_JNI_GetAnyMethodID): Split calls to append.
825 2007-03-05 Andrew Haley <aph@redhat.com>
827 * java/lang/reflect/natVMProxy.cc (ncode_closure.meth): Delete.
828 (generateProxyClass): Don't pass method to ncode.
829 (run_proxy): Call _Jv_GetReflectedMethod to find the proxy method.
830 * java/lang/reflect/Method.h: Rebuild.
831 * java/lang/reflect/Method.java (internalGetParameterTypes,
832 internalGetExceptionTypes): New methods.
833 * headers.txt (class java/lang/reflect/Method): Declare
834 _Jv_GetReflectedMethod. Be its friend.
835 * java/lang/natClass.cc (_Jv_GetReflectedMethod): New method.
836 * java/lang/Class.h: Declare it. Be its friend.
838 2007-03-05 Tom Tromey <tromey@redhat.com>
840 * sources.am, Makefile.in: Rebuilt.
841 * scripts/makemake.tcl (emit_package_rule): Don't omit
843 * Makefile.am (nat_source_files): Added natVMProcess.cc.
844 (inner_nat_headers): Added ImmediateEOFInputStream.h.
845 * gcj/javaprims.h: Regenerated.
846 * java/lang/System.java (EnvironmentMap): Now package-private.
847 (EnvironmentMap(Map)): New constructor.
848 (EnvironmentMap.put): New method.
849 * java/lang/natWin32Process.cc (startProcess): Update.
850 * java/lang/Win32Process.java (Win32Process): Added 'redirect'
852 (startProcess): Likewise.
853 * java/lang/EcosProcess.java (EcosProcess): Added 'redirect'
855 * java/lang/natPosixProcess.cc (nativeSpawn): Handle redirection.
856 * java/lang/PosixProcess.java (redirect): New field.
857 (PosixProcess): Added 'redirect' argument.
858 * java/lang/natRuntime.cc (execInternal): Added 'redirect'
859 argument to Process creation.
860 * java/lang/natVMProcess.cc: New file.
861 * java/lang/ProcessBuilder.java: Removed.
862 * java/lang/VMProcess.java: New file.
864 2007-03-03 Andrew Haley <aph@redhat.com>
866 * java/lang/natClass.cc (parseAnnotationElement): Correct long
867 annotations to read JV_CONSTANT_Long, not JV_CONSTANT_Double.
869 2007-03-02 Andrew Haley <aph@redhat.com>
871 * sun/reflect/annotation/AnnotationInvocationHandler.java:
872 Generify in a few places.
873 (equals): Rewrite to use invoke on local proxy.
874 (deepToString): Remove most of it.
875 (toString): Make nonstatic.
876 (arrayClone): Delete.
877 (coerce): New method.
878 (invoke): Rewrite to handle gcj's structures correctly.
879 * java/lang/natClass.cc (getDeclaredAnnotations): Fix test for
881 * sources.am: Regenerate.
882 * Makefile.am: Likewise.
884 2007-03-02 Andrew Haley <aph@redhat.com>
886 * sun/reflect/annotation/AnnotationInvocationHandler.java:
887 Whitespace only changes.
889 2007-03-02 Andrew Haley <aph@redhat.com>
891 * sun/reflect/annotation/AnnotationInvocationHandler.java: Moved
892 from Classpath to libgcj local.
894 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
896 * Makefile.am: Add dummy install-pdf target.
897 * Makefile.in: Regenerate
898 * include/Makefile.in: Regenerate
899 * testsuite/Makefile.in: Regenerate
900 * gcj/Makefile.in: Regenerate
902 2007-02-23 Gary Benson <gbenson@redhat.com>
904 * gnu/gcj/tools/gcj_dbtool/Main.java: Updated copyright year.
906 2007-02-23 Gary Benson <gbenson@redhat.com>
908 * java/lang/VMCompiler.java
909 (compileClass): Don't lose zeros from within the digest.
911 2007-02-22 Jakub Jelinek <jakub@redhat.com>
915 * java/util/VMTimeZone.java (getDefaultTimeZoneId): To read
916 /etc/localtime, use ZoneInfo.readTZFile instead of
917 VMTimeZone.readtzFile. Get better timezone name for /etc/localtime,
918 either if it is a symlink or through /etc/sysconfig/clock.
919 (readSysconfigClockFile): New static method.
920 (readtzFile): Removed.
921 * java/lang/System.java: Add gnu.java.util.zoneinfo.dir to comments.
922 * posix.cc (_Jv_platform_initProperties): Set
923 gnu.java.util.zoneinfo.dir.
924 * sources.am (gnu_java_util_source_files): Add
925 classpath/gnu/java/util/ZoneInfo.java.
926 * Makefile.in: Regenerated.
927 * java/util/VMTimeZone.h: Regenerated.
928 * java/util/TimeZone.h: Regenerated.
929 * gnu/java/util/ZoneInfo.h: Generated.
931 2007-02-22 Mohan Embar <gnustuff@thisiscool.com>
933 * include/win32-threads.h: Added #undef OUT.
935 2007-02-21 Kyle Galloway <kgallowa@redhat.com>
937 * jvmti.cc (_Jv_JVMTI_GetArgumentsSize): New function.
938 * testsuite/libjava.jvmti/interp/getargssize.java: New test.
939 * testsuite/libjava.jvmti/interp/getargssize.h: Ditto.
940 * testsuite/libjava.jvmti/interp/getargssize.jar: Ditto.
941 * testsuite/libjava.jvmti/interp/getargssize.out: Ditto.
942 * testsuite/libjava.jvmti/interp/natgetargssize.cc: Ditto.
944 2007-02-21 Gary Benson <gbenson@redhat.com>
946 * java/util/GregorianCalendar.java: Removed.
947 * sources.am, Makefile.in: Rebuilt.
949 2007-02-20 Keith Seitz <keiths@redhat.com>
951 * gnu/classpath/jdwp/natVMVirtualMachine.cc
952 (jdwpClassPrepareCB): Move class status stuff to ...
953 (getClassStatus): ... here.
955 2007-02-20 Gary Benson <gbenson@redhat.com>
957 * gnu/awt/xlib/XEventLoop.h: Regenerated.
958 * gnu/java/awt/peer/gtk/GThreadMutex.h: Likewise.
959 * gnu/java/rmi/server/ConnectionRunnerPool$ConnectionRunner.h:
961 * gnu/java/rmi/server/UnicastConnectionManager.h: Likewise.
962 * java/lang/SecurityManager.h: Likewise.
963 * java/lang/Thread.h: Likewise.
964 * java/security/VMSecureRandom$Spinner.h: Likewise.
965 * java/util/concurrent/atomic/AtomicBoolean.h: Likewise.
966 * java/util/concurrent/atomic/AtomicInteger.h: Likewise.
967 * java/util/concurrent/atomic/AtomicLong.h: Likewise.
968 * java/util/concurrent/atomic/AtomicReference.h: Likewise.
969 * java/util/concurrent/ConcurrentHashMap$HashEntry.h: Likewise.
970 * java/util/concurrent/ConcurrentHashMap$Segment.h: Likewise.
971 * java/util/concurrent/ConcurrentLinkedQueue.h: Likewise.
972 * java/util/concurrent/ConcurrentLinkedQueue$Node.h: Likewise.
973 * java/util/concurrent/ConcurrentSkipListMap.h: Likewise.
974 * java/util/concurrent/ConcurrentSkipListMap$Index.h: Likewise.
975 * java/util/concurrent/ConcurrentSkipListMap$Node.h: Likewise.
976 * java/util/concurrent/Exchanger.h: Likewise.
977 * java/util/concurrent/Exchanger$Node.h: Likewise.
978 * java/util/concurrent/FutureTask$Sync.h: Likewise.
979 * java/util/concurrent/LinkedBlockingQueue$Node.h: Likewise.
980 * java/util/concurrent/locks/AbstractQueuedLongSynchronizer.h:
982 * java/util/concurrent/locks/AbstractQueuedLongSynchronizer$Node.h:
984 * java/util/concurrent/locks/AbstractQueuedSynchronizer.h: Likewise.
985 * java/util/concurrent/locks/AbstractQueuedSynchronizer$Node.h:
987 * java/util/concurrent/ScheduledThreadPoolExecutor.h: Likewise.
988 * java/util/concurrent/SynchronousQueue.h: Likewise.
989 * java/util/concurrent/SynchronousQueue$TransferQueue.h: Likewise.
990 * java/util/concurrent/SynchronousQueue$TransferQueue$QNode.h:
992 * java/util/concurrent/SynchronousQueue$TransferStack.h: Likewise.
993 * java/util/concurrent/SynchronousQueue$TransferStack$SNode.h:
995 * java/util/concurrent/ThreadPoolExecutor.h: Likewise.
996 * java/util/concurrent/ThreadPoolExecutor$Worker.h: Likewise.
997 * java/util/logging/ErrorManager.h: Likewise.
998 * javax/swing/plaf/basic/BasicSpinnerUI$2.h: Likewise.
999 * javax/swing/plaf/basic/BasicSpinnerUI$4.h: Likewise.
1001 2007-02-16 Keith Seitz <keiths@redhat.com>
1003 * gnu/classpath/jdwp/natVMVirtualMachine.cc
1004 (get_line_table): New function.
1005 (handle_single_step): New function.
1006 (jdwpSingleStepCB): New function.
1007 (jdwpVMInitCB): Define a JVMTI single step
1008 callback, but don't enable it until needed.
1010 2007-02-16 David Daney <ddaney@avtrex.com>
1012 * java/lang/Thread.java (Thread(ThreadGroup, Runnable, String)): Pass
1013 new parameter constructor.
1014 (Thread(ThreadGroup, Runnable, String, long)): Same.
1015 (Thread(String, boolean)): New constructor.
1016 (Thread(Thread, ThreadGroup, Runnable, String): Add parameter
1017 noInheritableThreadLocal, don't call
1018 InheritableThreadLocal.newChildThread if set.
1019 * java/lang/PosixProcess.java(ProcessManager()): Set
1020 noInheritableThreadLocal in super.
1021 * java/lang/natThread.cc (_Jv_AttachCurrentThread): Pass new
1022 parameter to Thread constructor.
1023 (_Jv_AttachCurrentThreadAsDaemon): Same.
1024 * java/lang/Thread.h: Regenerate.
1025 * classpath/lib/java/lang/Thread.class: Same.
1026 * classpath/lib/java/lang/PosixProcess$EOFInputStream.class: Same.
1027 * classpath/lib/java/lang/PosixProcess.class: Same.
1028 * classpath/lib/java/lang/Thread$State.class: Same.
1029 * classpath/lib/java/lang/PosixProcess$ProcessManager.class: Same.
1031 2007-02-16 Kyle Galloway <kgallowa@redhat.com>
1033 * interpret.cc: Add extra DEBUG_LOCALS_INSN calls for multi-slot
1034 variables to maintain type info.
1035 * interpret-run.cc: Add local variable info to frame in the debug
1037 * jvmti.cc (getLocalFrame): New method.
1038 (_Jv_JVMTI_GetLocalObject): New method.
1039 (_Jv_JVMTI_GetLocallInt): New method.
1040 (_Jv_JVMTI_GetLocalFloat): New method.
1041 (_Jv_JVMTI_GetLocalLong): New method.
1042 (_Jv_JVMTI_GetLocalDouble): New method.
1043 (_Jv_JVMTI_SetLocalObject): New method.
1044 (_Jv_JVMTI_SetLocalInt): New method.
1045 (_Jv_JVMTI_SetLocalFloat): New method.
1046 (_Jv_JVMTI_SetLocalLong): New method.
1047 (_Jv_JVMTI_SetLocalDouble): New method.
1049 2007-02-16 Gary Benson <gbenson@redhat.com>
1051 * gnu/gcj/tools/gcj_dbtool/Main.java
1052 (bytesToString): Don't lose zeros from within the digest.
1054 2007-02-15 Andrew Haley <aph@redhat.com>
1056 * Makefile.am (nat_source_files): Remove
1057 java/lang/management/natVMManagementFactory.cc.
1058 * java/lang/Thread.java (getStackTrace): Use reflection to call
1059 the ManagementFactory.
1060 * java/lang/management/VMManagementFactory.java: Remove native
1062 * java/lang/management/natVMManagementFactory.cc: Deleted.
1063 * sources.am: Regnerate.
1064 * scripts/makemake.tcl: Add new "bcheaders" type.
1065 Move java/lang/management and gnu/classpath/management to "bc".
1066 Move gnu/java/lang/management to "bcheaders".
1068 2007-02-15 Kyle Galloway <kgallowa@redhat.com>
1070 * interpret.cc (_Jv_InterpMethod::check_handler): New method.
1071 * interpret-run.cc: Change the catch section to report exception
1072 events and to use the new check_handler method.
1073 * include/java-interp.h (_Jv_InterpMethod): Add check_handler.
1074 * gnu/gcj/jvmti/ExceptionEvent.java: New file.
1075 * gnu/gcj/jvmti/ExceptionEvent.h: New file.
1076 * gnu/gcj/jvmti/natExceptionEvent.cc: New file.
1077 * libjava/classpath/lib/gnu/gcj/jvmti/ExceptionEvent.class: New
1079 * sources.am: Added ExceptionEvent.java.
1080 * Makefile.am: Added natExceptionEvent.cc
1081 * Makefile.in: Regenerated.
1082 * include/Makefile.in: Regenerated.
1083 * gcj/Makefile.in: Regenerated.
1085 2007-02-15 Johannes Schmidt <jschmidt@avtrex.com>
1086 David Daney <ddaney@avtrex.com>
1088 * configure.ac: Create vm-tools-packages file. Add
1089 gnu/gcj/tools/gc_analyze to standard.omit and vm-tools-packages.
1090 Check for /proc/self/maps.
1091 * Makefile.am (bin_PROGRAMS): Added gc-analyze.
1092 (gc_analyze_SOURCES): New.
1093 (gc_analyze_LDFLAGS): New.
1094 (gc_analyze_LINK): New.
1095 (gc_analyze_LDADD): New.
1096 (gc_analyze_DEPENDENCIES): New.
1097 (nat_source_files): Add gnu/gcj/util/natGCInfo.cc.
1098 * Makefile.in: Regenerated.
1099 * configure: Regenerated.
1100 * include/config.h.in: Regenerated.
1101 * sources.am: Regenerated.
1102 * scripts/makemake.tcl: Don't include gc-analyze classes in libgcj.
1103 * gnu/gcj/tools/gc_analyze/SymbolLookup.java: New.
1104 * gnu/gcj/tools/gc_analyze/ObjectMap.java: New.
1105 * gnu/gcj/tools/gc_analyze/MemoryMap.java: New.
1106 * gnu/gcj/tools/gc_analyze/SymbolTable.java: New.
1107 * gnu/gcj/tools/gc_analyze/BlockMap.java: New.
1108 * gnu/gcj/tools/gc_analyze/BytePtr.java: New.
1109 * gnu/gcj/tools/gc_analyze/ItemList.java: New.
1110 * gnu/gcj/tools/gc_analyze/ToolPrefix.java: New.
1111 * gnu/gcj/tools/gc_analyze/MemoryAnalyze.java: New.
1112 * gnu/gcj/util/GCInfo.java: New.
1113 * gnu/gcj/util/GCInfo.h: New.
1114 * gnu/gcj/util/natGCInfo.cc: New.
1115 * gnu/gcj/util/UtilPermission.java: New.
1116 * gnu/gcj/util/UtilPermission.h: New.
1117 * classpath/tools/gnu/gcj/tools/gc_analyze/SymbolTable.class: New.
1118 * classpath/tools/gnu/gcj/tools/gc_analyze/ObjectMap$ObjectItem.class: New.
1119 * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryMap$RangeComparator.class: New.
1120 * classpath/tools/gnu/gcj/tools/gc_analyze/BlockMap$PtrMarks.class: New.
1121 * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryMap$Range.class: New.
1122 * classpath/tools/gnu/gcj/tools/gc_analyze/BlockMap.class: New.
1123 * classpath/tools/gnu/gcj/tools/gc_analyze/BytePtr.class: New.
1124 * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$SubstringComparator.class: New.
1125 * classpath/tools/gnu/gcj/tools/gc_analyze/ItemList.class: New.
1126 * classpath/tools/gnu/gcj/tools/gc_analyze/ToolPrefix.class: New.
1127 * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze.class: New.
1128 * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$1$Info.class: New.
1129 * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$1.class: New.
1130 * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$2.class: New.
1131 * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$3.class: New.
1132 * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$4.class: New.
1133 * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$OptionParser.class: New.
1134 * classpath/tools/gnu/gcj/tools/gc_analyze/BlockMap$SizeKind.class: New.
1135 * classpath/tools/gnu/gcj/tools/gc_analyze/SymbolLookup.class: New.
1136 * classpath/tools/gnu/gcj/tools/gc_analyze/ObjectMap.class: New.
1137 * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryMap.class: New.
1138 * classpath/lib/gnu/gcj/util/GCInfo.class: New.
1139 * classpath/lib/gnu/gcj/util/UtilPermission.class: New.
1141 2007-02-15 David Daney <ddaney@avtrex.com>
1143 * gnu/java/net/PlainSocketImpl.h: Regenerate.
1144 * gnu/classpath/jdwp/VMVirtualMachine.h: Same.
1145 * gnu/classpath/jdwp/VMFrame.h: Same.
1146 * java/net/Socket.h: Same.
1147 * java/util/Collections$UnmodifiableMap$UnmodifiableEntrySet.h: Same.
1149 2007-02-15 Kyle Galloway <kgallowa@redhat.com>
1151 * defineclass.cc (_Jv_ClassReader::read_one_code_attribute):
1152 Added LocalVariableTable attribute handling.
1153 (_Jv_ClassReader::pool_Utf8_to_char_arr): New method.
1154 * jvmti.cc (_Jv_JVMTI_GetLocalVariableTable): New method.
1155 * include/java-interp.h: Added local_var_table and
1156 local_var_table_len fields to _Jv_InterpMethod.
1157 (_Jv_InterpMethod::get_local_var_table): New method.
1158 * testsuite/libjava.jvmti/interp/getlocalvartable.java: New test.
1159 * testsuite/libjava.jvmti/interp/getlocalvartable.jar: New test.
1160 * testsuite/libjava.jvmti/interp/getlocalvartable.out: Output
1162 * testsuite/libjava.jvmti/interp/getlocalvartable.h: New test.
1163 * testsuite/libjava.jvmti/interp/natgetlocalvartable.cc: New test.
1165 2007-02-15 Kyle Galloway <kgallowa@redhat.com>
1167 * gnu/classpath/jdwp/natVMVirtualMachine (getFrames): Implement.
1169 2007-02-13 Keith Seitz <keiths@redhat.com>
1171 * gnu/classpath/jdwp/natVMVirtualMachine.cc
1172 (jdwpBreakpointCB): New function.
1173 (jdwpVMInitCB): Define and enable the breakpoint
1176 2007-02-13 Andrew Haley <aph@redhat.com>
1178 * testsuite/libjava.lang/Divide_2.out
1179 * testsuite/libjava.lang/Divide_2.java: New test.
1181 2007-02-12 Keith Seitz <keiths@redhat.com>
1183 * jvmti.cc (_Jv_JVMTI_GetStackTrace): Remove cast
1184 from jthread to Thread *; it is no longer needed.
1185 (_Jv_JVMTI_GetFrameCount): Likewise.
1186 Fix small formatting typo.
1188 2007-02-12 Tom Tromey <tromey@redhat.com>
1190 * sources.am, Makefile.in: Rebuilt.
1191 * java/lang/Socket.java: Removed override.
1192 * java/lang/DatagramSocket.java: Removed override.
1193 * gnu/java/net/PlainSocketImpl.java (localSocketAddress): New
1195 (getLocalAddress): New method.
1196 * gnu/java/net/PlainDatagramSocketImpl.java
1197 (PlainDatagramSocketImpl): Throws IOException.
1198 * gnu/java/net/natPlainSocketImplPosix.cc (write): Remove
1202 2007-02-09 Jakub Jelinek <jakub@redhat.com>
1204 * java/util/VMTimeZone.java: Rewrite to handle both the old
1205 'TZif\0' format and the new one.
1207 2007-02-10 Andrew Haley <aph@redhat.com>
1210 * gnu/classpath/natVMStackWalker.cc (GET_CALLING_CLASS): New.
1211 (getCallingClass): Call GET_CALLING_CLASS.
1212 (getCallingClassLoader): Likewise.
1214 2007-02-10 Mohan Embar <gnustuff@thisiscool.com>
1216 * configure: Rebuilt.
1217 * configure.ac (GCJH): Reverted second part of patch of 2006-12-20.
1219 2007-02-10 Mohan Embar <gnustuff@thisiscool.com>
1221 * Makefile.in: Rebuilt.
1222 * Makefile.am (BUILD_ECJ1): Unify the command for renaming ecjx to
1223 the host's ecj1 executable.
1225 2007-02-09 Richard Henderson <rth@redhat.com>
1227 * sysdep/alpha/locks.h (read_barrier): New.
1229 2007-02-09 Keith Seitz <keiths@redhat.com>
1231 * gnu/classpath/jdwp/VMVirtualMachine.java
1232 (_stepping_threads): New member.
1233 * classpath/lib/gnu/classpath/jdwp/VMVirtualMachine.class:
1235 * gnu/classpath/jdwp/VMVirtualMachine.h:
1237 * gnu/claspath/jdwp/natVMVirtualMachine.cc
1238 (get_request_step_filter): New function.
1239 (DISABLE_EVENT): New macro.
1240 (initialize): Initialize _stepping_threads.
1241 (registerEvent): Implement EVENT_SINGLE_STEP.
1242 (unregisterEvent): Likewise.
1244 2007-02-08 Keith Seitz <keiths@redhat.com>
1246 * sources.am: Regenerate.
1247 * Makefile.in: Regenerate.
1248 * testsuite/Makefile.in: Regenerate.
1249 * gcj/Makefile.in: Regenerate.
1250 * include/Makefile.in: Regenerate.
1252 * classpath/lib/javax/management/MBeanServerFactory.class:
1255 2007-02-08 Kyle Galloway <kgallowa@redhat.com>
1257 * classpath/gnu/classpath/jdwp/processor/
1258 StackFrameCommandSet.java (executeGetValues): Pass jlong instead
1260 (executeSetValues): Ditto.
1261 (executeThisObject): Ditto.
1262 * classpath/gnu/classpath/jdwp/processor/
1263 StackFrameCommandSet.class: Rebuilt.
1264 * classpath/lib/gnu/classpath/jdwp/VMVirtualMachine.class:
1266 * classpath/lib/gnu/classpath/jdwp/VMFrame.class: Rebuilt.
1267 * classpath/lib/gnu/classpath/jdwp/exception/
1268 InvalidFrameException.java: New file.
1269 * gnu/classpath/jdwp/VMFrame.java: Added field for thread of
1271 (Constructor): New method.
1272 * gnu/classpath/jdwp/VMFrame.h: Regenerated.
1273 * gnu/classpath/jdwp/VMVirtualMachine.java
1274 (getFrame): Changed ByteBuffer to jlong.
1275 * gnu/classpath/jdwp/natVMVirtualMachine.cc
1276 (getFrame): Implement.
1277 * gnu/classpath/jdwp/VMVirtualMachine.h: Regenerated.
1279 2007-02-08 Kyle Galloway <kgallowa@redhat.com>
1281 * include/java-interp.h (_Jv_InterpFrame): obj_ptr field added
1282 to hold "this" pointer for frame.
1283 (_Jv_InterpFrame::get_this_ptr): New method.
1284 * interpret-run.cc: Copy the "this" pointer into obj_ptr.
1286 2007-02-07 Keith Seitz <keiths@redhat.com>
1288 * include/java-interp.h (_Jv_Frame::depth):
1290 * jvmti.cc (_Jv_JVMTI_GetFrameCount): Use _Jv_Frame::depth.
1292 2007-02-07 Kyle Galloway <kgallowa@redhat.com>
1294 * jvmti.cc (CHECK_FOR_NATIVE_METHOD): New macro.
1295 (_Jv_JVMTI_GetMaxLocals): New method.
1296 * include/java-interp.h
1297 (_Jv_InterpMethod::get_max_locals): New method.
1299 2007-02-01 Marco Trudel <mtrudel@gmx.ch>
1301 * jni.cc (_Jv_JNI_DeleteWeakGlobalRef): Check for NULL objects.
1303 2007-02-07 Tom Tromey <tromey@redhat.com>
1305 * testsuite/libjava.jni/init.c: New file.
1306 * testsuite/libjava.jni/init.java: New file.
1307 * testsuite/libjava.jni/init.out: New file.
1308 * testsuite/libjava.jni/init.jar: New file.
1309 * testsuite/libjava.jni/init.h: New file.
1310 * testsuite/libjava.jni/init$NativeClass.h: New file.
1312 2007-02-07 Jakub Jelinek <jakub@redhat.com>
1315 * configure: Regenerate.
1317 2007-02-06 Andrew Haley <aph@redhat.com>
1319 * scripts/makemake.tcl (emit_bc_rule): Set the source filename.
1320 * sources.am: Rebuild.
1322 2007-02-05 Keith Seitz <keiths@redhat.com>
1324 * jvmti.cc (_envListLock): Change type to
1325 ReentrantReadWriteLock.
1326 (_Jv_JVMTI_DisposeEnvironment): Switch to read/write
1328 (check_enabled_event): Likewise.
1329 (_Jv_GetJVMTIEnv): Likewise.
1330 (_Jv_JVMTI_Init): Likewise.
1331 (_Jv_JVMTI_PostEvent): Likewise.
1333 2007-02-05 Keith Seitz <keiths@redhat.com>
1335 * gnu/classpath/jdwp/natVMVirtualMachine.cc
1336 (registerEvent): Implement EVENT_BREAKPOINT.
1337 (unregisterEvent): Likewise.
1338 (get_request_location): New function.
1340 2007-02-05 Matthias Klose <doko@debian.org>
1342 testsuite/Makefile.am (compile-tests): Fix typo.
1343 testsuite/Makefile.in: Regenerate.
1345 2007-02-02 Kyle Galloway <kgallowa@redhat.com>
1347 * gnu/classpath/jdwp/natVMVirtualMachine.cc (getFrameCount):
1350 2007-02-02 Jakub Jelinek <jakub@redhat.com>
1352 * configure.ac (libjava_cv_anon_version_script): New test.
1353 (ANONVERSCRIPT): New AM_CONDITIONAL.
1354 * configure: Rebuilt.
1355 * Makefile.am (extra_ldflags_libjava): Link with -Wl,--version-script
1357 * Makefile.in: Rebuilt.
1358 (libgcj_la_DEPENDENCIES): Depend on libgcj.ver.
1359 * libgcj.ver: New file.
1361 2007-02-01 David Daney <ddaney@avtrex.com>
1363 * scripts/makemake.tcl: Replace gnu/xml build with build of all
1365 * sources.am: Regenerate.
1366 * Makefile.in: Regenerate.
1368 2007-02-01 Tom Tromey <tromey@redhat.com>
1370 * java/lang/ClassLoader.java (getResources): No longer final.
1372 2007-02-01 Tom Tromey <tromey@redhat.com>
1374 * java/util/logging/LogManager.java (loggers): Genericized.
1375 (addLogger): Merged.
1376 (findAncestor): Likewise.
1377 (getLogger): Likewise.
1378 (getLoggerNames): Genericized.
1380 (getLevelProperty): Likewise.
1381 * java/lang/reflect/Method.java (getDeclaringClass): Genericized.
1382 * java/lang/reflect/Constructor.java (getParameterTypes):
1384 (getExceptionTypes): Likewise.
1385 (newInstance): Likewise.
1386 * java/lang/reflect/Array.java (newInstance): Genericized.
1387 * java/lang/Object.java (getClass): Genericized.
1388 * java/nio/charset/spi/CharsetProvider.java (charsets):
1390 * java/text/Collator.java: Implement Comparable<Object>.
1392 2007-02-01 Tom Tromey <tromey@redhat.com>
1394 * java/util/Calendar.java: Implement Comparable<Calendar>. Update
1396 (clear): Call complete.
1397 (setTimeZone): Call computeTime, computeFields.
1398 (compareTo): New method.
1399 * java/nio/charset/Charset.java: Implement Comparable<Charset>.
1400 (availableCharsets): Genericized.
1401 (aliases): Likewise.
1402 (compareTo): Changed argument type.
1403 * java/lang/ClassLoader.java (loadClass): Genericized.
1404 (findClass): Likewise.
1405 (defineClass): Likewise.
1406 (resolveClass): Likewise.
1407 (findSystemClass): Likewise.
1408 (setSigners): Likewise.
1409 (findLoadedClass): Likewise.
1410 (getResources): Likewise.
1411 (findResources): Likewise.
1412 (getSystemResources): Likewise.
1413 (checkInitialized): New method.
1414 * java/lang/Class.java (getCanonicalName): New method.
1416 2007-01-31 Keith Seitz <keiths@redhat.com>
1418 * include/jvmti-int.h (JVMTI): Declare member "enabled".
1419 * jvmti.cc (JVMTI): Add member "enabled".
1420 (_Jv_GetJVMTIEnv): Mark JVMTI enabled.
1421 * interpret.cc (_Jv_InterpMethod::ncode): Use JVMTI::enabled
1422 instead of gnu::classpath::jdwp::Jdwp::isDebugging.
1423 (_Jv_CompileMethod): If JVMTI is enabled, use run_debug
1424 instead of run to compile the method.
1426 * interpret-run.cc [DEBUG] (NEXT_INSN): Add JVMTI single step
1429 2007-01-31 Andreas Tobler <a.tobler@schweiz.org>
1431 * testsuite/libjava.jvmti/jvmti-interp.exp (gij_jvmti_test_one): Add
1432 -shared-libgcc to the cxxflaglist for Darwin.
1434 2007-01-31 Tom Tromey <tromey@redhat.com>
1436 * scripts.am, Makefile.in: Rebuilt.
1437 * scripts/makemake.tcl (gnu/javax/swing/text/html/parser): Build
1439 (emit_ordinary_rule): New proc.
1441 2007-01-31 Keith Seitz <keiths@redhat.com>
1443 * testsuite/libjava.jvmti/getmethodname.h: New file.
1444 * testsuite/libjava.jvmti/getmethodname.jar: New file.
1446 2007-01-31 Andrew Haley <aph@redhat.com>
1448 * prims.cc (_Jv_Abort): fflush (stderr).
1449 * java/lang/natClassLoader.cc (_Jv_CheckABIVersion): Abort.
1451 2007-01-31 Tom Tromey <tromey@redhat.com>
1453 * configure, Makefile.in: Rebuilt.
1454 * configure.ac (JAR): Check for -@ feature.
1455 * Makefile.am (libgcj-$(gcc_version).jar): Use find -prune.
1457 2007-01-31 Tom Tromey <tromey@redhat.com>
1460 * configure, include/config.h.in: Rebuilt.
1461 * configure.ac: Check for magic_t in magic.h.
1462 * java/net/natVMURLConnection.cc: Use HAVE_MAGIC_T.
1464 2007-01-30 Tom Tromey <tromey@redhat.com>
1466 * Makefile.in: Rebuilt.
1467 * Makefile.am (libgcj-$(gcc_version).jar): Rewrote.
1469 2007-01-30 Andreas Tobler <a.tobler@schweiz.org>
1471 * testsuite/libjava.jvmti/natevents.cc (FieldModificationCB): Use a
1472 cast to print it right.
1474 2007-01-29 Kaloian Doganov <kaloian@doganov.org>
1477 * gnu/gcj/convert/BytesToCharsetAdaptor.java (read): Fix call to
1480 2007-01-29 Kyle Galloway <kgallowa@redhat.com>
1482 * include/java-interp.h: Added _Jv_Frame class and its two
1483 subclasses _Jv_InterpFrame and _Jv_NativeFrame. Also moved
1484 _Jv_FrameType from java-stack.h.
1485 * include/java-stack.h: Removed _Jv_FrameType.
1486 * java/lang/Thread.java: Added frame member to hold new
1487 composite frame stack.
1488 * java/lang/Thread.h: Regenerated.
1489 * java/lang/Thread.class: Rebuilt.
1490 * jni.cc (_Jv_JNIMethod::call): Push a frame onto the stack when
1491 calling a JNI method.
1492 * jvmti.cc (_Jv_JVMTI_GetStackTrace): New Method.
1493 (_Jv_JVMTI_GetFrameCount): New method.
1494 * stacktrace.cc (UnwindTraceFn): Modified to use new _Jv_Frame
1496 * testsuite/libjava.jvmti/interp/getstacktrace.jar: New test.
1497 * testsuite/libjava.jvmti/interp/natgetstacktrace.cc: New test.
1498 * testsuite/libjava.jvmti/interp/getstacktrace.h: New test.
1499 * testsuite/libjava.jvmti/interp/getstacktrace.jar: New test.
1500 * testsuite/libjava.jvmti/interp/getstacktrace.out: Output file
1503 2007-01-29 Tom Tromey <tromey@redhat.com>
1505 * interpret.cc (run_debug): Remove comment.
1512 (run_normal_debug): Likewise.
1513 (run_synch_object_debug): Likewise.
1514 (run_class_debug): Likewise.
1515 (run_synch_class_debug): Likewise.
1520 (NULLARRAYCHECK): Likewise.
1521 (ARRAYBOUNDSCHECK): Likewise.
1522 * interpret-run.cc (insn_target) <breakpoint>: Tidy.
1524 2007-01-29 Tom Tromey <tromey@redhat.com>
1526 * configure, Makefile.in: Rebuilt.
1527 * Makefile.am (bin_SCRIPTS): Never install scripts/jar.
1528 * configure.ac (BASH_JAR): Removed conditional.
1529 (JAR): Prefer the jar found by AC_CHECK_PROGS.
1531 2007-01-29 Tom Tromey <tromey@redhat.com>
1533 * Makefile.in: Rebuilt.
1534 * Makefile.am (interpret.lo): New target. Add -fwrap to
1537 2007-01-29 Keith Seitz <keiths@redhat.com>
1539 * include/jvmti_md.h (_CLASSPATH_VM_JVMTI_TYPES_DEFINED):
1541 [__GCJ_JNI_IMPL__]: Define our own JVMTI types when building
1542 gcj. All jvmti object types now are defined to be their
1543 corresponding java classes.
1544 * jvmti.cc (_Jv_JVMTI_SuspendThread): Remove casting from
1546 (_Jv_JVMTI_ResumeThread): Likewise.
1547 (_Jv_JVMTI_InterruptThread): Likewise.
1548 (_Jv_JVMTI_SetEventNotificationMode): Likewise.
1549 * gnu/classpath/jdwp/natVMVirtualMachine.cc
1550 (jdwpClassPrepareCB): Likewise.
1551 (jdwpThreadEndCB): Likewise.
1552 (jdwpThreadStartCB): Likewise.
1553 (jdwpVMInitCB): Likewise.
1555 2007-01-28 Michele Sandri <gpointorama@gmail.com>
1557 * gnu/java/nio/channels/natFileChannelWin32.cc
1558 (lock): Implemented.
1559 (unlock): Implemented.
1561 2007-01-27 Andreas Tobler <a.tobler@schweiz.org>
1564 * configure.host: Add forgottten sysdep_dir to sparc. Add a flag to
1565 libgcj_flags to undefine 'sun' at compile time.
1566 * sysdep/sparc/locks.h (read_barrier): New functions for 32 and 64 bit
1568 (write_barrier): Likewise.
1570 2007-01-27 Keith Seitz <keiths@redhat.com>
1572 * gnu/classpath/jdwp/natVMVirtualMachine.cc
1573 (getAllClassMethods): Move error handling to ...
1574 (throw_jvmti_error): ... here.
1575 (jdwpClassPrepareCB): New function.
1576 (jdwpThreadEndCB): New function.
1577 (jdwpThreadStartCB): New function.
1578 (jdwpVMDeathCB): New function.
1579 (jdwpVMInitCB): Define and enable callbacks for
1580 ClassPrepare, ThreadEnd, ThreadStart, and VMDeath.
1582 2007-01-27 Jakub Jelinek <jakub@redhat.com>
1584 * Makefile.am (generic_header_files): Add $(inner_nat_headers).
1585 * testsuite/Makefile.am (check-dejaGNU): Depend on compile-tests.
1586 (MYGCJH): New variable.
1587 (compile-tests): New goal.
1588 * Makefile.in: Rebuilt.
1589 * testsuite/Makefile.in: Rebuilt.
1591 2007-01-26 Andrew Haley <aph@redhat.com>
1593 * java/lang/natClass.cc (initializeClass): Re-throw
1595 * java/lang/natVMClassLoader.cc (loadClass): checkPackageAccess.
1596 * java/lang/ClassLoader.java: (loadClass): Likewise.
1598 2007-01-26 Tom Tromey <tromey@redhat.com>
1602 2007-01-25 Tom Tromey <tromey@redhat.com>
1605 * gnu/gcj/convert/Convert.java (main): Correctly handle missing
1606 input or output encodings. Removed unused local variables.
1608 2007-01-25 Keith Seitz <keiths@redhat.com>
1610 * include/jvmti-int.h (_Jv_GetJDWP_JVMTIEnv): Declare.
1611 * gnu/classpath/jdwp/natVMVirtualMachine.cc
1612 (_Jv_GetJDWP_JVMTIEnv): New function.
1613 * gnu/classpath/jdwp/natVMMethod.cc (getName): Implement.
1614 (getSignature): Implement.
1615 (getModifiers): Implement.
1617 2007-01-25 Andrew Haley <aph@redhat.com>
1619 * configure, Makefile.in, include/config.h.in: Rebuilt.
1620 * Makefile.am (libgcj_la_LIBADD): Removed $(LIBMAGIC).
1621 * configure.ac: Don't check for libmagic.
1622 * java/net/natVMURLConnection.cc (p_magic_open, p_magic_load,
1623 p_magic_close, p_magic_buffer): New globals.
1624 (init): Look up 'magic' functions.
1625 (guessContentTypeFromBuffer): Updated.
1627 2007-01-25 Keith Seitz <keiths@redhat.com>
1629 * jvmti.cc (_Jv_JVMTI_GetMethodName): New function.
1630 (_Jv_JVMTI_Interface): Define GetMethodName.
1631 * testsuite/libjava.jvmti/getmethodname.java: New file.
1632 * testsuite/libjava.jvmti/natgetmethodname.cc: New file.
1633 * testsuite/libjava.jvmti/getmethodname.out: New file.
1635 2007-01-24 Kyle Galloway <kgallowa@redhat.com>
1637 * libjava/testsuite/libjava.jvmti/jvmti-interp.exp: New file.
1638 * libjava/testsuite/libjava.jvmti/interp: New folder.
1639 * libjava/testsuite/lib/libjava.exp (exec_gij): New Method.
1641 2007-01-24 Keith Seitz <keiths@redhat.com>
1643 * link.cc (_Jv_Linker::wait_for_state): Add JVMTI
1644 CLASS_PREPARE notification.
1646 2007-01-24 Keith Seitz <keiths@redhat.com>
1648 * interpret.cc: Include gnu/gcj/jvmti/Breakpoint.h,
1649 gnu/gcj/jvmti/BreakpointManager.h, jvmti.h, and jvmti-int.h
1650 * interpret-run.cc: Implement insn_breakpoint.
1652 2007-01-24 Keith Seitz <keiths@redhat.com>
1654 * prims.cc (_Jv_RunMain): Send JVMTI event notifications
1655 for VM_INIT and VM_DEATH instead of the JDWP notifications.
1657 2007-01-24 Keith Seitz <keiths@redhat.com>
1659 * gnu/classpath/jdwp/natVMVirtualMachine.cc
1660 (getAllClassMethods): Implement.
1662 2007-01-24 Andrew Haley <aph@redhat.com>
1664 * gnu/classpath/natVMStackWalker.cc: Call InitClass everywhere.
1665 (getClassContext) Add a barrier to prevent GetStackWalkerStack()
1666 from being sibcalled.
1668 2007-01-24 Andrew Haley <aph@redhat.com>
1670 * scripts/makemake.tcl (emit_bc_rule): Set the source filename.
1671 * sources.am: Rebuild.
1673 2007-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
1675 * exception.cc (parse_lsda_header, PERSONALITY_FUNCTION): Replaced
1676 _Unwind_Word with _uleb128_t and _Unwind_SWord with _sleb128_t.
1678 2007-01-23 H.J. Lu <hongjiu.lu@intel.com>
1681 * Makefile.am (ecjx_DEPENDENCIES): Add libgcj_bc.la if needed.
1682 * Makefile.in: Regenerated.
1684 2007-01-22 Keith Seitz <keiths@redhat.com>
1686 * gnu/classpath/jdwp/natVMVirtualMachine.cc
1687 (getClassMethod): Implement.
1689 2007-01-22 Keith Seitz <keiths@redhat.com>
1691 * java/lang/Class.h (_Jv_GetClassStatus): Declare.
1692 * java/lang/natClass.cc (_Jv_GetClassStatus): New function.
1693 * jvmti.cc (_Jv_JVMTI_GetClassStatus): New function.
1694 (_Jv_JVMTI_Interface): Define GetClassStatus.
1696 2007-01-22 Tom Tromey <tromey@redhat.com>
1698 * configure: Rebuilt.
1699 * configure.ac (GCJ): Reverted patch of 2006-12-20.
1701 2007-01-22 Tom Tromey <tromey@redhat.com>
1704 * testsuite/libjava.jni/pr29812.java: New file.
1705 * testsuite/libjava.jni/pr29812_injar.java: New file.
1706 * testsuite/libjava.jni/pr29812_injar.jar: New file.
1707 * testsuite/libjava.jni/pr29812.out: New file.
1708 * testsuite/libjava.jni/pr29812_injar.c: New file.
1709 * testsuite/libjava.jni/pr29812_injar.h: New file.
1710 * testsuite/libjava.jni/pr29812.jar: New file.
1711 * testsuite/libjava.jni/pr29812.c: New file.
1712 * testsuite/libjava.jni/pr29812.h: New file.
1713 * testsuite/libjava.jni/jni.exp (gcj_jni_get_cxxflags_invocation):
1715 (gcj_jni_invocation_test_one): Use it.
1716 (gcj_jni_pr29812): New proc.
1717 (gcj_jni_run): Use it.
1718 * java/lang/natRuntime.cc (_load): Push a new system frame before
1720 * include/jvm.h (_Jv_JNI_PopSystemFrame): Declare.
1721 (_Jv_GetJNIEnvNewFrameWithLoader): Likewise.
1722 * jni.cc (struct _Jv_JNI_LocalFrame) <marker>: Now unsigned char.
1723 <allocated_p>: Now bool.
1724 <loader>: New field.
1725 (_Jv_JNI_EnsureLocalCapacity): Updated.
1726 (_Jv_JNI_NewLocalRef): Likewise.
1727 (_Jv_JNI_NewLocalRef): Likewise.
1728 (_Jv_JNI_PopLocalFrame): Likewise.
1729 (_Jv_JNI_FindClass): Likewise.
1730 (_Jv_GetJNIEnvNewFrame): Likewise.
1731 (_Jv_JNI_AttachCurrentThread): Likewise.
1732 (_Jv_GetJNIEnvNewFrameWithLoader): New function.
1733 (_Jv_GetJNIEnvNewFrame): Use it.
1734 * include/jni_md.h (_CLASSPATH_JNIENV_CONTENTS): Removed 'klass'.
1736 2007-01-22 Tom Tromey <tromey@redhat.com>
1738 * libtool-version: Bump current to 9.
1740 2007-01-22 Andrew Haley <aph@redhat.com>
1742 * sysdep/alpha/locks.h (write_barrier): New.
1744 2007-01-21 Matthias Klose <doko@debian.org>
1746 * Makefile.am (install-exec-hook): Use transformed name.
1747 * Makefile.in: Regenerate.
1749 2007-01-19 Keith Seitz <keiths@redhat.com>
1751 * gnu/classpath/jdwp/natVMVirtualMachine.cc: Mark unused parameters
1752 in methods and reformat.
1754 * gnu/classpath/jdwp/natVMFrame.cc: Mark unused parameters with
1757 2007-01-18 Keith Seitz <keiths@redhat.com>
1759 From Macro Trudel <mtrudel@gmx.ch>:
1760 * gnu/classpath/jdwp/natVMVirtualMachine.cc (jdwpVMInitCB):
1763 2007-01-18 Marco Trudel <mtrudel@gmx.ch>
1765 * jni.cc (_Jv_JNI_FindClass): Initialize class.
1766 * testsuite/libjava.jni/findclass2.jar: New file.
1767 * testsuite/libjava.jni/findclass2.h: New file.
1768 * testsuite/libjava.jni/findclass2.java: New file
1769 * testsuite/libjava.jni/findclass2.c: New file.
1770 * testsuite/libjava.jni/findclass2.out: New file.
1772 2007-01-18 Tom Tromey <tromey@redhat.com>
1774 * configure: Rebuilt.
1775 * configure.ac: Use multi_basedir instead of libgcj_basedir.
1777 2007-01-18 Gary Benson <gbenson@redhat.com>
1779 * gnu/java/nio/natVMPipeEcos.cc:
1780 Renamed from gnu/java/nio/natPipeImplEcos.cc.
1781 * gnu/java/nio/natVMPipePosix.cc:
1782 Renamed from gnu/java/nio/natPipeImplPosix.cc.
1783 * gnu/java/nio/natVMPipeWin32.cc:
1784 Renamed from gnu/java/nio/natPipeImplWin32.cc.
1785 * gnu/java/nio/natVMSelectorEcos.cc:
1786 Renamed from gnu/java/nio/natSelectorImplEcos.cc.
1787 * gnu/java/nio/natVMSelectorPosix.cc:
1788 Renamed from gnu/java/nio/natSelectorImplPosix.cc.
1789 * gnu/java/nio/natVMSelectorWin32.cc:
1790 Renamed from gnu/java/nio/natSelectorImplWin32.cc.
1791 * java/io/natVMObjectInputStream.cc:
1792 Renamed from java/io/natObjectInputStream.cc.
1793 * java/lang/natVMDouble.cc:
1794 Renamed from java/lang/natDouble.cc.
1795 * java/lang/natVMFloat.cc:
1796 Renamed from java/lang/natFloat.cc.
1797 * Makefile.am, configure.ac: Reflect the above.
1798 * Makefile.in, configure: Rebuilt.
1800 2007-01-17 Andrew Haley <aph@redhat.com>
1802 * Makefile.in: Rebuilt.
1803 * Makefile.am (ecjx_LDFLAGS): Pass -fbootclasspath.
1805 2007-01-17 Keith Seitz <keiths@redhat.com>
1807 * java/lang/natThread.cc (finish_): Add JVMTI ThreadEnd notification.
1808 (_Jv_NotifyThreadStart): Add JVMTI ThreadStart notification.
1810 2007-01-16 Jack Howarth <howarth@bromo.med.uc.edu>
1812 * configure.ac: Use multi.m4 from aclocal rather than custom
1813 code. Use multi_basedir instead libgcj_basedir. Test for
1814 /proc/self/exe when not cross-compiling.
1815 * aclocal.m4: Regenerate.
1816 * configure: Regenerate.
1817 * Makefile.in: Regenerate.
1819 2007-01-17 Gary Benson <gbenson@redhat.com>
1821 * java/nio/natVMDirectByteBufferImpl.cc:
1822 Renamed from java/nio/natDirectByteBufferImpl.cc.
1823 * Makefile.am: Reflect the above.
1824 * Makefile.in: Rebuilt.
1826 2007-01-17 Marco Trudel <mtrudel@gmx.ch>
1828 * jvmti.cc (_Jv_JVMTI_GetAllThreads): Now static. Use JNICALL.
1829 Fixed indentation. Removed unused variable.
1831 2007-01-16 Tom Tromey <tromey@redhat.com>
1833 * java/lang/natThread.cc (finalize_native): Remove cast.
1834 (_Jv_GetCurrentJNIEnv): Likewise.
1835 * include/jvm.h (struct natThread) <jni_env>: Declare as
1838 2007-01-16 Keith Seitz <keiths@redhat.com>
1840 * testsuite/libjava.jvmti/natevents.cc (FieldModificationCB): Use
1841 %#llx instead of %d for new_value.
1842 * testsuite/libjava.jvmti/events.out: Update expected output.
1843 * testsuite/libjava.jvmti/events.jar: Regenerate.
1845 2007-01-16 Keith Seitz <keiths@redhat.com>
1847 * gnu/classpath/jdwp/natVMVirtualMachine.cc (DEFINE_CALLBACK):
1849 (ENABLE_EVENT): New macro.
1850 (initialize): Define and enable JVMTI VM_INIT callback.
1851 (jdwpVMInitCB): New function.
1853 2007-01-16 Kyle Galloway <kgallowa@redhat.com>
1855 * jvmti.cc (_Jv_JVMTI_GetAllThreads): New function.
1856 * testsuite/libjava.jvmti/getallthreads.java: New test.
1857 * testsuite/libjava.jvmti/natgetallthreads.cc: Ditto.
1858 * testsuite/libjava.jvmti/getallthreads.out: Ditto.
1859 * testsuite/libjava.jvmti/getallthreads.h: Ditto.
1860 * testsuite/libjava.jvmti/getallthreads.jar: Ditto.
1862 2007-01-15 Keith Seitz <keiths@redhat.com>
1864 * gnu/classpath/jdwp/natVMVirtualMachine.cc (suspendThread): Use
1865 java.lang.StringBuilder instead of java.lang.StringBuffer.
1866 (resumeThread): Likewise.
1868 2007-01-15 Gary Benson <gbenson@redhat.com>
1870 * java/nio/MappedByteBuffer.java: Removed.
1871 * sources.am, Makefile.in: Rebuilt.
1873 2007-01-15 Gary Benson <gbenson@redhat.com>
1875 * java/net/URLClassLoader.java: Removed.
1876 * gnu/java/net/loader/Load_gcjlib.java: New file.
1877 * gnu/gcj/runtime/BootClassLoader.java: Ensure core
1878 URL handler is present in static executables.
1879 * sources.am, Makefile.in: Rebuilt.
1881 2007-01-14 H.J. Lu <hongjiu.lu@intel.com>
1883 * Makefile.am (libgcj_la_LDFLAGS): Add
1884 $(LIBGCJ_LD_SYMBOLIC_FUNCTIONS).
1885 (libgcj_tools_la_LDFLAGS): Likewise.
1886 (libgcj_bc_la_LDFLAGS): Likewise.
1887 * Makefile.in: Regenerated.
1889 * configure.ac: Use ACX_PROG_LD_GNU_SYMBOLIC. Set
1890 LIBGCJ_LD_SYMBOLIC_FUNCTIONS to $SYMBOLIC_LDFLAGS. Set
1891 libgcj_ld_symbolic to $SYMBOLIC_LDFLAGS if it isn't set.
1892 Substitute LIBGCJ_LD_SYMBOLIC_FUNCTIONS.
1893 * configure: Regenerated.
1894 * aclocal.m4: Likewise.
1895 * gcj/Makefile.in: Likewise.
1896 * include/Makefile.in: Likewise.
1897 * testsuite/Makefile.in: Likewise.
1899 2007-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
1901 * sysdep/sh/locks.h (read_barrier): New.
1902 (write_barrier): Likewise.
1904 2007-01-12 Andrew Haley <aph@redhat.com>
1906 * include/i386-signal.h: Rewrite to use rt_sigaction.
1908 2007-01-11 Andrew Haley <aph@redhat.com>
1910 * prims.cc (jdwpOptions) Fix deprecated cast from char[] constant
1912 * include/x86_64-signal.h (HANDLE_DIVIDE_OVERFLOW): Rewrite to fix
1915 2007-01-10 Tom Tromey <tromey@redhat.com>
1917 * gnu/gcj/xlib/*.h: New files.
1918 * gnu/awt/xlib/*.h: Likewise.
1919 * classpath/lib/gnu/gcj/xlib: New class files.
1920 * classpath/lib/gnu/awt/xlib: Likewise.
1922 2007-01-10 Tom Tromey <tromey@redhat.com>
1924 * HACKING: Various updates.
1926 2007-01-10 Tom Tromey <tromey@redhat.com>
1928 * java/lang/natDouble.cc (toString): Added parens.
1929 * gnu/gcj/io/shs.h (PROTO): Define.
1930 * link.cc (resolve_pool_entry): Added missing braces.
1932 2007-01-10 H.J. Lu <hongjiu.lu@intel.com>
1935 * sysdep/ia64/locks.h (read_barrier): New.
1936 (write_barrier): New.
1938 2007-01-10 Gary Benson <gbenson@redhat.com>
1940 * java/net/URL.java: Removed.
1941 * sources.am, Makefile.in: Rebuilt.
1943 2007-01-10 Matthias Klose <doko@debian.org>
1945 * Makefile.am (install-exec-hook): Support $(DESTDIR).
1946 * Makefile.in: Regenerated.
1948 2007-01-05 Tom Tromey <tromey@redhat.com>
1950 * testsuite/libjava.loader/loader.exp (gcj_loader_run): Find
1951 dummy.class in srcdir.
1953 2007-01-03 Tom Tromey <tromey@redhat.com>
1955 * testsuite/libjava.cni/cni.exp (gcj_cni_compile_cxx_to_o): Add -I
1958 2007-01-03 Tom Tromey <tromey@redhat.com>
1960 * testsuite/*: Added many .jar and .h files.
1961 * testsuite/libjava.special/special.exp
1962 (gcj_special_try_compiler): New proc.
1963 * testsuite/libjava.loader/loader.exp (gcj_loader_run): Don't
1964 bytecompile source. Search for .jar files.
1965 (gcj_loader_test_one): Don't look for MyLoader.java.
1966 * testsuite/libjava.jvmti/jvmti.exp (gcj_jvmti_test_one): Don't
1967 bytecompile sources or build headers.
1968 (gcj_jvmti_run): Look for .jar files.
1969 * testsuite/libjava.jni/jni.exp (gcj_jni_run): Compile .jar
1971 (gcj_jni_test_one): Don't bytecompile sources or build headers.
1972 Set classpath when invoking gij.
1973 (gcj_jni_invocation_test_one): Likewise.
1974 * testsuite/libjava.cni/cni.exp (gcj_cni_test_one): Don't build
1975 headers or bytecompile sources.
1976 (gcj_cni_run): Use .jar files, not .java files.
1977 * testsuite/libjava.lang/lang.exp: Compile .jar files.
1979 2007-01-02 Tom Tromey <tromey@redhat.com>
1981 * configure: Rebuilt.
1982 * configure.ac: Check for gjar.
1984 2007-01-02 Tom Tromey <tromey@redhat.com>
1986 * testsuite/libjava.jacks/jacks.exp: Removed.
1987 * testsuite/libjava.jacks/jacks.xfail: Removed.