natVMProxy.cc (ncode_closure): Add method_index.
[gcc.git] / libjava / ChangeLog
1 2007-04-18 Andrew Haley <aph@redhat.com>
2
3 * java/lang/reflect/natVMProxy.cc (ncode_closure): Add
4 method_index.
5 (generateProxyClass): Add field $Proxy0.m. Store methods array in
6 it.
7 (run_proxy): Retrieve the method to invoke from in $Proxy0.m.
8 * java/lang/Class.h: Remove _Jv_LookupProxyMethod.
9 * java/lang/natClass.cc: Likewise.
10 * headers.txt: Likewise.
11
12 2007-04-16 Andrew Haley <aph@redhat.com>
13
14 * gnu/gcj/runtime/BootClassLoader.java (getBootURLLoader): New
15 method.
16 (bootGetResource): Use getBootURLLoader() to load resources.
17 (bootGetResources): Likewise.
18
19 * java/lang/reflect/natMethod.cc (Method::invoke): In invoke also
20 check that the method's declaring class is accessible.
21
22 2007-04-10 Keith Seitz <keiths@redhat.com>
23
24 * sources.am: Regenerate.
25 * Makefile.in: Likewise.
26
27 2007-04-09 Kyle Galloway <kgallowa@redhat.com>
28
29 * interpret-run.cc: If debugging, check if args is NULL before
30 getting the "this" pointer.
31
32 2007-04-09 Kyle Galloway <kgallowa@redhat.com>
33
34 * classpath/gnu/classpath/jdwp/value/ArrayValue.java: New file.
35 * classpath/lib/gnu/classpath/jdwp/value/ArrayValue.class: New file.
36 * gnu/classpath/jdwp/ArrayValue.h: New file.
37 * gnu/classpath/jdwp/natVMFrame.cc (getValue): Add array case.
38 (setValue): Ditto.
39
40 2007-04-09 David Daney <ddaney@avtrex.com>
41
42 PR libgcj/23758
43 * java/lang/natPosixProcess.cc (nativeSpawn): Move building of
44 environment before the fork.
45 * testsuite/libjava.lang/Process_7.java: New test.
46 * testsuite/libjava.lang/Process_7.out: Its expected results.
47 * testsuite/libjava.lang/Process_7.jar: Generated file.
48
49 2007-04-09 H.J. Lu <hongjiu.lu@intel.com>
50
51 * prims.cc (load_jvmti_agent): Add the missing `,'.
52
53 2007-04-09 Kyle Galloway <kgallowa@redhat.com>
54
55 * gij.cc (main): Accept -agentlib and -agentpath options.
56 * prims.cc (parse_init_args): Deal with -agentlib and -agentpath.
57 (load_jvmti_agent): New function.
58
59 2007-04-04 Tania Bento <tbento@redhat.com>
60
61 * java/text/DecimalFormatSymbols.java: Added the year 2007 to
62 Copyright information and introduced new variable, currency.
63 (DecimalFormatSymbols(Locale)): Define currency and intlCurrencySymbol
64 to "XXX", currencySymbol to "?" and localCurrency appropriately.
65 (getCurrency): Fixed documentation and return the value of currency.
66 (setCurrency): Fixed documentation and update the value of currency.
67 (setInternationalCurrencySymbol): Fixed documentation and update the
68 value of currency.
69 * java/util/Currency.java: Introduced two new variables, properties
70 and fractionDigits. In the static block, a properties object is
71 created and the currency resource is loaded.
72 (Currency(Locale)): fractionDigits is defined.
73 (Currency(String)): New method.
74 (getDefaultFractionDigits): Return the value of fractionDigits.
75 (getInstance(String)): Check if String is equal to "XXX".
76
77 2007-04-04 Kyle Galloway <kgallowa@redhat.com>
78
79 * classpath/gnu/classpath/jdwp/util/VariableTable.java: Change longs
80 to ints for argCnt and slots.
81 (write): Replace writeLong with writeInt for the above.
82
83 2007-04-03 Andrew Haley <aph@redhat.com>
84
85 * testsuite/libjava.lang/ProxyTest.java: New test.
86
87 2007-04-02 Tom Tromey <tromey@redhat.com>
88
89 http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=205157
90 * gnu/java/nio/channels/natFileChannelPosix.cc (mapImpl): Extend
91 file, when writing, if it is too short.
92
93 2007-04-02 Tom Tromey <tromey@redhat.com>
94
95 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=233406
96 * gnu/java/net/natPlainSocketImplPosix.cc (create): Return if
97 already created.
98 * gnu/java/net/PlainSocketImpl.java (getLocalAddress): Handle case
99 where localport is -1.
100 (create): Now public.
101 * gnu/java/nio/SocketChannelImpl.java (SocketChannelImpl): Call
102 'create' on the socket.
103
104 2007-04-02 Andrew Haley <aph@redhat.com>
105
106 * java/lang/reflect/natVMProxy.cc (run_proxy): Use
107 _Jv_LookupProxyMethod to find the Method.
108 If parameter_types->length == 0, pass a null paramameter list,
109 not a zero-length parameter list.
110 * java/lang/natClass.cc (_Jv_LookupProxyMethod): New function.
111 * java/lang/Class.h (_Jv_LookupProxyMethod): Declare.
112
113 2007-04-02 Kyle Galloway <kgallowa@redhat.com>
114
115 * interpret-run.cc: Add code to properly set up variable slots
116 when debugging.
117 * gnu/classpath/jdwp/natVMFrame.cc (checkJVMTIError): New function.
118 (getObjectJVMTI): New function.
119 (setObjectJVMTI): New function.
120 (getIntJVMTI): New function.
121 (setIntJVMTI): New function.
122 (getLongJVMTI): New function.
123 (setLongJVMTI): New function.
124 (getFloatJVMTI): New function.
125 (setFloatJVMTI): New function.
126 (getDoubleJVMTI): New function.
127 (setDoubleJVMTI): New function.
128 (getFrameDepth): New function.
129 (getValue): Implement.
130 (setValue): Implement.
131
132 2007-04-02 Kyle Galloway <kgallowa@redhat.com>
133
134 * classpath/gnu/classpath/jdwp/processor/ThreadReferenceCommandSet.java
135 (executeResume): Call VMVirtualMachine.resumeThread.
136
137 2007-03-29 Tom Tromey <tromey@redhat.com>
138
139 PR libgcj/29869:
140 * java/util/logging/LogManager.java (readConfiguration): Handle
141 comma-separated 'handlers'. Don't try to add a non-existing
142 handler.
143
144 2007-03-27 Tom Tromey <tromey@redhat.com>
145
146 * sources.am, Makefile.in: Rebuilt.
147 * scripts/mime.types: Removed.
148 * scripts/MakeDefaultMimeTypes.java: Removed.
149 * gnu/gcj/io/MimeTypes.java: Removed.
150 * gnu/gcj/io/MimeTypes.h: Removed.
151 * gnu/gcj/io/DefaultMimeTypes.java: Removed.
152 * gnu/gcj/io/DefaultMimeTypes.h: Removed.
153
154 2007-03-27 Keith Seitz <keiths@redhat.com>
155
156 * gnu/classpath/jdwp/VMFrame.java: Update from upstream
157 classpath.
158 * gnu/classpath/jdwp/natVMFrame.cc: Likewise.
159 * gnu/classpath/jdwp/VMVirtualMachine.java: Likewise.
160 * gnu/classpath/jdwp/natVMVirtualMachine.cc: Likewise.
161 (initialize): Fix compiler type-punning warning.
162 (getAllLoadedClasses): Return empty list instead of NULL.
163 (getLoadRequests): Likewise.
164 * gnu/classpath/jdwp/exception/InvalidTagException.h: New file.
165 * gnu/classpath/jdwp/exception/InvalidSlotException.h: New file.
166 * gnu/classpath/jdwp/exception/TypeMismatchException.h: New file.
167 * gnu/classpath/jdwp/VMVirtualMachine.h: Rebuilt.
168 * gnu/classpath/jdwp/value/CharValue.h: New file.
169 * gnu/classpath/jdwp/value/LongValue.h: New file.
170 * gnu/classpath/jdwp/value/ShortValue.h: New file.
171 * gnu/classpath/jdwp/value/Value.h: New file.
172 * gnu/classpath/jdwp/value/BooleanValue.h: New file.
173 * gnu/classpath/jdwp/value/VoidValue.h: New file.
174 * gnu/classpath/jdwp/value/ByteValue.h: New file.
175 * gnu/classpath/jdwp/value/FloatValue.h: New file.
176 * gnu/classpath/jdwp/value/ObjectValue.h: New file.
177 * gnu/classpath/jdwp/value/StringValue.h: New file.
178 * gnu/classpath/jdwp/value/ValueFactory.h: New file.
179 * gnu/classpath/jdwp/value/IntValue.h: New file.
180 * gnu/classpath/jdwp/value/DoubleValue.h: New file.
181 * gnu/classpath/jdwp/VMFrame.h: Rebuilt.
182 * gnu/classpath/jdwp/id/NullObjectId.h: New file.
183 * gnu/classpath/jdwp/util/MethodResult.h: Rebuilt.
184 * gnu/classpath/jdwp/util/NullObject.h: New file.
185 * gnu/classpath/jdwp/util/MonitorInfo.h: New file.
186 * Makefile.in: Rebuilt.
187 * sources.am: Rebuilt.
188
189 2006-03-26 David Daney <ddaney@avtrex.com>
190
191 * configure.ac: Remove checks for mktime, alloca, ioctl, gmtime_r,
192 fork, execvp, execinfo.h, pthread_mutexattr_settype,
193 pthread_mutexattr_setkind_np and sys/wait.h.
194 * Makefile.in: Regenerate.
195 * include/Makefile.in: Regenerate.
196 * include/config.h.in: Regenerate.
197 * testsuite/Makefile.in: Regenerate.
198 * configure: Regenerate.
199 * gcj/Makefile.in: Regenerate.
200
201 2007-03-23 Gary Benson <gbenson@redhat.com>
202
203 * link.cc (_Jv_Linker::resolve_method_entry):
204 Ensure that the argument types and the return type of the
205 found method match those expected by the calling method.
206
207 2007-03-22 David Daney <ddaney@avtrex.com>
208
209 PR libgcj/31228
210 * configure.ac: Add checks for getrlimit and sys/resource.h.
211 * include/posix.h (_Jv_platform_close_on_exec): Remove.
212 * include/config.h.in: Regenerate.
213 * configure: Regenerate.
214 * gnu/java/nio/channels/natFileChannelPosix.cc (open): Remove call to
215 _Jv_platform_close_on_exec;
216 * gnu/java/net/natPlainSocketImplPosix.cc (create): Likewise.
217 (accept): Likewise.
218 * gnu/java/net/natPlainDatagramSocketImplPosix.cc (create):Likewise.
219 * java/lang/natPosixProcess.cc: Include sys/resource.h.
220 (nativeSpawn): Close all file descriptors. Don't set FD_CLOEXEC on
221 pipes.
222
223 2007-03-20 Andrew Haley <aph@redhat.com>
224
225 * testsuite/libjava.lang/PR31264.java: New test.
226
227 2007-03-14 Jakub Jelinek <jakub@redhat.com>
228
229 * Makefile.am (AM_MAKEFLAGS): Pass through mandir.
230 * Makefile.in: Rebuilt.
231
232 2007-03-13 Keith Seitz <keiths@redhat.com>
233
234 * include/java-interp.h (_Jv_InterpClass): Declare
235 friend function _Jv_GetInterpClassSourceFile.
236 * java/lang/Class.h (Class): Likewise.
237 * java/lang/natClass.cc (_Jv_GetInterpClassSourceFile):
238 New function.
239 * gnu/classpath/jdwp/natVMVirtualMachine.cc
240 (getSourceFile): Implement.
241
242 2007-03-13 Thomas Fitzsimmons <fitzsim@redhat.com>
243
244 * Makefile.am (AM_CXXFLAGS): Define ECJ_JAR_FILE.
245 * classpath/configure.ac: Add --with-ecj-jar configure option.
246 * classpath/gnu/classpath/Configuration.java.in (ECJ_JAR): New
247 field.
248 * classpath/INSTALL: Document --with-ecj-jar configure option and
249 ecj jar requirement for com.sun.tools.javac support.
250 * classpath/tools/Makefile.am: Build decendents of com and sun
251 directories.
252 * configure.ac: Substitute ECJ_JAR in stub Configuration.java.
253 * gnu/classpath/Configuration.java,
254 gnu/classpath/natConfiguration.cc (ecj): New method.
255 (ECJ_JAR): New field.
256 * scripts/makemake.tcl (scan_packages): Add com directory.
257 * sources.am (property_files): Add
258 classpath/resource/sun/rmi/rmic/messages.properties and
259 classpath/resource/com/sun/tools/javac/messages.properties.
260 * classpath/resource/com, classpath/resource/com/sun,
261 classpath/resource/com/sun/tools,
262 classpath/resource/com/sun/tools/javac, classpath/resource/sun,
263 classpath/resource/sun/rmi, classpath/resource/sun/rmi/rmic,
264 classpath/tools/classes/com, classpath/tools/classes/com/sun,
265 classpath/tools/classes/com/sun/javadoc,
266 classpath/tools/classes/com/sun/tools,
267 classpath/tools/classes/com/sun/tools/doclets,
268 classpath/tools/classes/sun, classpath/tools/classes/sun/rmi,
269 classpath/tools/classes/sun/rmi/rmic, classpath/tools/com,
270 classpath/tools/com/sun, classpath/tools/com/sun/javadoc,
271 classpath/tools/com/sun/tools,
272 classpath/tools/com/sun/tools/doclets,
273 classpath/tools/com/sun/tools/javac, classpath/tools/sun,
274 classpath/tools/sun/rmi, classpath/tools/sun/rmi/rmic: New
275 directories.
276 * classpath/resource/com/sun/tools/javac/messages.properties,
277 classpath/resource/sun/rmi/rmic/messages.properties,
278 classpath/tools/classes/com/sun/javadoc/ClassDoc.class,
279 classpath/tools/classes/com/sun/javadoc/ConstructorDoc.class,
280 classpath/tools/classes/com/sun/javadoc/Doc.class,
281 classpath/tools/classes/com/sun/javadoc/DocErrorReporter.class,
282 classpath/tools/classes/com/sun/javadoc/Doclet.class,
283 classpath/tools/classes/com/sun/javadoc/ExecutableMemberDoc.class,
284 classpath/tools/classes/com/sun/javadoc/FieldDoc.class,
285 classpath/tools/classes/com/sun/javadoc/MemberDoc.class,
286 classpath/tools/classes/com/sun/javadoc/MethodDoc.class,
287 classpath/tools/classes/com/sun/javadoc/PackageDoc.class,
288 classpath/tools/classes/com/sun/javadoc/ParamTag.class,
289 classpath/tools/classes/com/sun/javadoc/Parameter.class,
290 classpath/tools/classes/com/sun/javadoc/ProgramElementDoc.class,
291 classpath/tools/classes/com/sun/javadoc/RootDoc.class,
292 classpath/tools/classes/com/sun/javadoc/SeeTag.class,
293 classpath/tools/classes/com/sun/javadoc/SerialFieldTag.class,
294 classpath/tools/classes/com/sun/javadoc/SourcePosition.class,
295 classpath/tools/classes/com/sun/javadoc/Tag.class,
296 classpath/tools/classes/com/sun/javadoc/ThrowsTag.class,
297 classpath/tools/classes/com/sun/javadoc/Type.class,
298 classpath/tools/classes/com/sun/javadoc/TypeVariable.class,
299 classpath/tools/classes/com/sun/tools/doclets/Taglet.class,
300 classpath/tools/classes/sun/rmi/rmic/Main.class,
301 classpath/tools/classes/sun/rmi/rmic/Messages.class,
302 classpath/tools/com/sun/javadoc/ClassDoc.java,
303 classpath/tools/com/sun/javadoc/ConstructorDoc.java,
304 classpath/tools/com/sun/javadoc/Doc.java,
305 classpath/tools/com/sun/javadoc/DocErrorReporter.java,
306 classpath/tools/com/sun/javadoc/Doclet.java,
307 classpath/tools/com/sun/javadoc/ExecutableMemberDoc.java,
308 classpath/tools/com/sun/javadoc/FieldDoc.java,
309 classpath/tools/com/sun/javadoc/MemberDoc.java,
310 classpath/tools/com/sun/javadoc/MethodDoc.java,
311 classpath/tools/com/sun/javadoc/PackageDoc.java,
312 classpath/tools/com/sun/javadoc/ParamTag.java,
313 classpath/tools/com/sun/javadoc/Parameter.java,
314 classpath/tools/com/sun/javadoc/ProgramElementDoc.java,
315 classpath/tools/com/sun/javadoc/RootDoc.java,
316 classpath/tools/com/sun/javadoc/SeeTag.java,
317 classpath/tools/com/sun/javadoc/SerialFieldTag.java,
318 classpath/tools/com/sun/javadoc/SourcePosition.java,
319 classpath/tools/com/sun/javadoc/Tag.java,
320 classpath/tools/com/sun/javadoc/ThrowsTag.java,
321 classpath/tools/com/sun/javadoc/Type.java,
322 classpath/tools/com/sun/javadoc/TypeVariable.java,
323 classpath/tools/com/sun/tools/doclets/Taglet.java,
324 classpath/tools/com/sun/tools/javac/Main.java,
325 classpath/tools/com/sun/tools/javac/Messages.java,
326 classpath/tools/sun/rmi/rmic/Main.java,
327 classpath/tools/sun/rmi/rmic/Messages.java: New files.
328 * Makefile.in, classpath/Makefile.in, classpath/configure,
329 classpath/doc/Makefile.in, classpath/doc/api/Makefile.in,
330 classpath/examples/Makefile.in, classpath/external/Makefile.in,
331 classpath/external/jsr166/Makefile.in,
332 classpath/external/relaxngDatatype/Makefile.in,
333 classpath/external/sax/Makefile.in,
334 classpath/external/w3c_dom/Makefile.in,
335 classpath/include/Makefile.in, classpath/include/config.h.in,
336 classpath/lib/Makefile.in,
337 classpath/lib/gnu/classpath/Configuration.class,
338 classpath/native/Makefile.in, classpath/native/fdlibm/Makefile.in,
339 classpath/native/jawt/Makefile.in,
340 classpath/native/jni/Makefile.in,
341 classpath/native/jni/classpath/Makefile.in,
342 classpath/native/jni/gconf-peer/Makefile.in,
343 classpath/native/jni/gtk-peer/Makefile.in,
344 classpath/native/jni/java-io/Makefile.in,
345 classpath/native/jni/java-lang/Makefile.in,
346 classpath/native/jni/java-net/Makefile.in,
347 classpath/native/jni/java-nio/Makefile.in,
348 classpath/native/jni/java-util/Makefile.in,
349 classpath/native/jni/midi-alsa/Makefile.in,
350 classpath/native/jni/midi-dssi/Makefile.in,
351 classpath/native/jni/native-lib/Makefile.in,
352 classpath/native/jni/qt-peer/Makefile.in,
353 classpath/native/jni/xmlj/Makefile.in,
354 classpath/native/plugin/Makefile.in,
355 classpath/resource/Makefile.in, classpath/scripts/Makefile.in,
356 classpath/tools/Makefile.in, configure,
357 gnu/classpath/Configuration.h: Regenerate.
358
359 2007-03-12 Kyle Galloway <kgallowa@redhat.com>
360
361 * jvmti.cc (_Jv_JVMTI_GetArgumentsSize): Make wide type arrays count
362 as a sigle slot.
363
364 2007-03-12 Marco Trudel <mtrudel@gmx.ch>
365
366 * java/lang/natString.cc (getBytes (jstring enc)):
367 Fixed the loop for multiple cycles, Code cleanup
368
369 2007-03-09 Tom Tromey <tromey@redhat.com>
370
371 * sources.am, Makefile.in: Rebuilt.
372 * scripts/makemake.tcl (scan_directory): Allow service files to be
373 omitted.
374 Omit all XML-related service files.
375
376 2007-03-07 Tom Tromey <tromey@redhat.com>
377
378 * configure: Rebuilt.
379 * configure.ac: Clear vm-tools-packages.
380
381 2007-03-07 Mohan Embar <gnustuff@thisiscool.com>
382
383 * java/lang/Win32Process.java: Added nested class EOFInputStream.
384 * java/lang/natWin32Process.cc (ChildProcessPipe): Added DUMMY
385 enum and implementation.
386 (startProcess): Use redirect flag.
387 * classpath/lib/java/lang/Win32Process.class: Regenerated.
388 * classpath/lib/java/lang/Win32Process$EOFInputStream.class: New.
389 * gcj/javaprims.h: Regenerated.
390 * java/lang/Win32Process$EOFInputStream.h: New.
391
392 2007-03-07 Andrew Haley <aph@redhat.com>
393
394 * libgcj_bc.c (JvRunMainName): Declare.
395
396 2007-03-07 Gary Benson <gbenson@redhat.com>
397
398 * sources.am, Makefile.in: Rebuilt.
399
400 2007-03-07 Mohan Embar <gnustuff@thisiscool.com>
401
402 * gcj/javaprims.h: Regenerated.
403
404 2007-03-07 Alexandre Oliva <aoliva@redhat.com>
405
406 * include/jvm.h (_Jv_ClosureListFinalizer): New.
407 (_Jv_Linker::create_error_method): Adjust.
408 * boehm.cc (_Jv_ClosureListFinalizer): New.
409 * nogc.cc (_Jv_ClosureListFinalizer): New.
410 * java/lang/Class.h (class _Jv_ClosureList): New.
411 (class java::lang::Class): Declare it as friend.
412 * java/lang/natClass.cc (_Jv_ClosureList::releaseClosures): New.
413 (_Jv_ClosureList::registerClousure): New.
414 * include/execution.h (_Jv_ExecutionEngine): Add get_closure_list.
415 (_Jv_CompiledEngine::do_get_closure_list): New.
416 (_Jv_CompiledEngine::_Jv_CompiledEngine): Use it.
417 (_Jv_IndirectCompiledClass): Add closures.
418 (_Jv_IndirectCompiledEngine::get_aux_info): New.
419 (_Jv_IndirectCompiledEngine::do_allocate_field_initializers): Use
420 it.
421 (_Jv_IndirectCompiledEngine::do_get_closure_list): New.
422 (_Jv_IndirectCompiledEngine::_Jv_IndirectCompiledEngine): Use it.
423 (_Jv_InterpreterEngine::do_get_closure_list): Declare.
424 (_Jv_InterpreterEngine::_Jv_InterpreterEngine): Use it.
425 * interpret.cc (FFI_PREP_RAW_CLOSURE): Use _loc variants.
426 (node_closure): Add closure list.
427 (_Jv_InterpMethod::ncode): Add jclass argument. Use
428 ffi_closure_alloc and the separate code pointer. Register the
429 closure for finalization.
430 (_Jv_JNIMethod::ncode): Likewise.
431 (_Jv_InterpreterEngine::do_create_ncode): Pass klass to ncode.
432 (_Jv_InterpreterEngine::do_get_closure_list): New.
433 * include/java-interp.h (_Jv_InterpMethod::ncode): Adjust.
434 (_Jv_InterpClass): Add closures field.
435 (_Jv_JNIMethod::ncode): Adjust.
436 * defineclass.cc (_Jv_ClassReader::handleCodeAttribute): Adjust.
437 (_Jv_ClassReader::handleMethodsEnd): Likewise.
438 * link.cc (struct method_closure): Add closure list.
439 (_Jv_Linker::create_error_method): Add jclass argument. Use
440 ffi_closure_alloc and the separate code pointer. Register the
441 closure for finalization.
442 (_Jv_Linker::link_symbol_table): Remove outdated comment about
443 sharing of otable and atable. Adjust.
444 * java/lang/reflect/natVMProxy.cc (ncode_closure): Add closure
445 list.
446 (ncode): Add jclass argument. Use ffi_closure_alloc and the
447 separate code pointer. Register the closure for finalization.
448 (java::lang::reflect::VMProxy::generateProxyClass): Adjust.
449 * testsuite/libjava.jar/TestClosureGC.java: New.
450 * testsuite/libjava.jar/TestClosureGC.out: New.
451 * testsuite/libjava.jar/TestClosureGC.xfail: New.
452 * testsuite/libjava.jar/TestClosureGC.jar: New.
453
454 2007-03-06 Kyle Galloway <kgallowa@redhat.com>
455
456 * classpath/gnu/classpath/jdwp/exception/AbsentInformationException.java: New file.
457 * classpath/lib/gnu/classpath/jdwp/exception/AbsentInformationException.class: Ditto.
458 * gnu/classpath/jdwp/exception/AbsentInformationException.h: Ditto.
459 * gnu/classpath/jdwp/natVMMethod.cc: Add CHECK_INTERP_CLASS macro.
460 (VMMethod::getLineTable): Use new macro.
461 (VMMethod::getVariableTable): Implement.
462 * sources.am: Regenerated.
463 * Makefile.in: Ditto.
464
465 2007-03-06 Tom Tromey <tromey@redhat.com>
466
467 * Makefile.in: Rebuilt.
468 * Makefile.am (bin_PROGRAMS): Added gcjh.
469 (gcjh_SOURCES, gcjh_LDFLAGS, gcjh_LINK, gcjh_LDADD,
470 gcjh_DEPENDENCIES): New variables.
471
472 2007-03-06 Kyle Galloway <kgallowa@redhat.com>
473
474 * jvmti.cc(_Jv_JVMTI_GetLocalVariableTable): Fix _Jv_Malloc parameters.
475 * testsuite/libjava.jvmti/interp/natgetlocalvartable.cc
476 (do_getlocalvartable_tests): Add Deallocate calls to free strings.
477
478 2007-03-05 Matthias Klose <doko@debian.org>
479
480 * Makefile.am (gij_LDFLAGS): Use dbexecdir.
481 * Makefile.in: Regnerate.
482
483 2007-03-05 Mark Wielaard <mark@klomp.org>
484
485 * java/lang/Character.java: Re-merged with Classpath.
486 * java/lang/natString.cc (nativeCompareTo): Renamed from
487 compareTo.
488 * java/lang/StringBuilder.java: Re-merged with Classpath.
489 * java/lang/String.java: Re-merged with Classpath.
490 (nativeCompareTo): Renamed from compareTo.
491 * java/lang/StringBuffer.java: Re-merged with Classpath.
492 * jni.cc (_Jv_JNI_GetAnyMethodID): Split calls to append.
493
494 2007-03-05 Andrew Haley <aph@redhat.com>
495
496 * java/lang/reflect/natVMProxy.cc (ncode_closure.meth): Delete.
497 (generateProxyClass): Don't pass method to ncode.
498 (run_proxy): Call _Jv_GetReflectedMethod to find the proxy method.
499 * java/lang/reflect/Method.h: Rebuild.
500 * java/lang/reflect/Method.java (internalGetParameterTypes,
501 internalGetExceptionTypes): New methods.
502 * headers.txt (class java/lang/reflect/Method): Declare
503 _Jv_GetReflectedMethod. Be its friend.
504 * java/lang/natClass.cc (_Jv_GetReflectedMethod): New method.
505 * java/lang/Class.h: Declare it. Be its friend.
506
507 2007-03-05 Tom Tromey <tromey@redhat.com>
508
509 * sources.am, Makefile.in: Rebuilt.
510 * scripts/makemake.tcl (emit_package_rule): Don't omit
511 VMProcess.java.
512 * Makefile.am (nat_source_files): Added natVMProcess.cc.
513 (inner_nat_headers): Added ImmediateEOFInputStream.h.
514 * gcj/javaprims.h: Regenerated.
515 * java/lang/System.java (EnvironmentMap): Now package-private.
516 (EnvironmentMap(Map)): New constructor.
517 (EnvironmentMap.put): New method.
518 * java/lang/natWin32Process.cc (startProcess): Update.
519 * java/lang/Win32Process.java (Win32Process): Added 'redirect'
520 argument.
521 (startProcess): Likewise.
522 * java/lang/EcosProcess.java (EcosProcess): Added 'redirect'
523 argument.
524 * java/lang/natPosixProcess.cc (nativeSpawn): Handle redirection.
525 * java/lang/PosixProcess.java (redirect): New field.
526 (PosixProcess): Added 'redirect' argument.
527 * java/lang/natRuntime.cc (execInternal): Added 'redirect'
528 argument to Process creation.
529 * java/lang/natVMProcess.cc: New file.
530 * java/lang/ProcessBuilder.java: Removed.
531 * java/lang/VMProcess.java: New file.
532
533 2007-03-03 Andrew Haley <aph@redhat.com>
534
535 * java/lang/natClass.cc (parseAnnotationElement): Correct long
536 annotations to read JV_CONSTANT_Long, not JV_CONSTANT_Double.
537
538 2007-03-02 Andrew Haley <aph@redhat.com>
539
540 * sun/reflect/annotation/AnnotationInvocationHandler.java:
541 Generify in a few places.
542 (equals): Rewrite to use invoke on local proxy.
543 (deepToString): Remove most of it.
544 (toString): Make nonstatic.
545 (arrayClone): Delete.
546 (coerce): New method.
547 (invoke): Rewrite to handle gcj's structures correctly.
548 * java/lang/natClass.cc (getDeclaredAnnotations): Fix test for
549 null loader.
550 * sources.am: Regenerate.
551 * Makefile.am: Likewise.
552
553 2007-03-02 Andrew Haley <aph@redhat.com>
554
555 * sun/reflect/annotation/AnnotationInvocationHandler.java:
556 Whitespace only changes.
557
558 2007-03-02 Andrew Haley <aph@redhat.com>
559
560 * sun/reflect/annotation/AnnotationInvocationHandler.java: Moved
561 from Classpath to libgcj local.
562
563 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
564
565 * Makefile.am: Add dummy install-pdf target.
566 * Makefile.in: Regenerate
567 * include/Makefile.in: Regenerate
568 * testsuite/Makefile.in: Regenerate
569 * gcj/Makefile.in: Regenerate
570
571 2007-02-23 Gary Benson <gbenson@redhat.com>
572
573 * gnu/gcj/tools/gcj_dbtool/Main.java: Updated copyright year.
574
575 2007-02-23 Gary Benson <gbenson@redhat.com>
576
577 * java/lang/VMCompiler.java
578 (compileClass): Don't lose zeros from within the digest.
579
580 2007-02-22 Jakub Jelinek <jakub@redhat.com>
581
582 PR libgcj/17002
583 PR classpath/28550
584 * java/util/VMTimeZone.java (getDefaultTimeZoneId): To read
585 /etc/localtime, use ZoneInfo.readTZFile instead of
586 VMTimeZone.readtzFile. Get better timezone name for /etc/localtime,
587 either if it is a symlink or through /etc/sysconfig/clock.
588 (readSysconfigClockFile): New static method.
589 (readtzFile): Removed.
590 * java/lang/System.java: Add gnu.java.util.zoneinfo.dir to comments.
591 * posix.cc (_Jv_platform_initProperties): Set
592 gnu.java.util.zoneinfo.dir.
593 * sources.am (gnu_java_util_source_files): Add
594 classpath/gnu/java/util/ZoneInfo.java.
595 * Makefile.in: Regenerated.
596 * java/util/VMTimeZone.h: Regenerated.
597 * java/util/TimeZone.h: Regenerated.
598 * gnu/java/util/ZoneInfo.h: Generated.
599
600 2007-02-22 Mohan Embar <gnustuff@thisiscool.com>
601
602 * include/win32-threads.h: Added #undef OUT.
603
604 2007-02-21 Kyle Galloway <kgallowa@redhat.com>
605
606 * jvmti.cc (_Jv_JVMTI_GetArgumentsSize): New function.
607 * testsuite/libjava.jvmti/interp/getargssize.java: New test.
608 * testsuite/libjava.jvmti/interp/getargssize.h: Ditto.
609 * testsuite/libjava.jvmti/interp/getargssize.jar: Ditto.
610 * testsuite/libjava.jvmti/interp/getargssize.out: Ditto.
611 * testsuite/libjava.jvmti/interp/natgetargssize.cc: Ditto.
612
613 2007-02-21 Gary Benson <gbenson@redhat.com>
614
615 * java/util/GregorianCalendar.java: Removed.
616 * sources.am, Makefile.in: Rebuilt.
617
618 2007-02-20 Keith Seitz <keiths@redhat.com>
619
620 * gnu/classpath/jdwp/natVMVirtualMachine.cc
621 (jdwpClassPrepareCB): Move class status stuff to ...
622 (getClassStatus): ... here.
623
624 2007-02-20 Gary Benson <gbenson@redhat.com>
625
626 * gnu/awt/xlib/XEventLoop.h: Regenerated.
627 * gnu/java/awt/peer/gtk/GThreadMutex.h: Likewise.
628 * gnu/java/rmi/server/ConnectionRunnerPool$ConnectionRunner.h:
629 Likewise.
630 * gnu/java/rmi/server/UnicastConnectionManager.h: Likewise.
631 * java/lang/SecurityManager.h: Likewise.
632 * java/lang/Thread.h: Likewise.
633 * java/security/VMSecureRandom$Spinner.h: Likewise.
634 * java/util/concurrent/atomic/AtomicBoolean.h: Likewise.
635 * java/util/concurrent/atomic/AtomicInteger.h: Likewise.
636 * java/util/concurrent/atomic/AtomicLong.h: Likewise.
637 * java/util/concurrent/atomic/AtomicReference.h: Likewise.
638 * java/util/concurrent/ConcurrentHashMap$HashEntry.h: Likewise.
639 * java/util/concurrent/ConcurrentHashMap$Segment.h: Likewise.
640 * java/util/concurrent/ConcurrentLinkedQueue.h: Likewise.
641 * java/util/concurrent/ConcurrentLinkedQueue$Node.h: Likewise.
642 * java/util/concurrent/ConcurrentSkipListMap.h: Likewise.
643 * java/util/concurrent/ConcurrentSkipListMap$Index.h: Likewise.
644 * java/util/concurrent/ConcurrentSkipListMap$Node.h: Likewise.
645 * java/util/concurrent/Exchanger.h: Likewise.
646 * java/util/concurrent/Exchanger$Node.h: Likewise.
647 * java/util/concurrent/FutureTask$Sync.h: Likewise.
648 * java/util/concurrent/LinkedBlockingQueue$Node.h: Likewise.
649 * java/util/concurrent/locks/AbstractQueuedLongSynchronizer.h:
650 Likewise.
651 * java/util/concurrent/locks/AbstractQueuedLongSynchronizer$Node.h:
652 Likewise.
653 * java/util/concurrent/locks/AbstractQueuedSynchronizer.h: Likewise.
654 * java/util/concurrent/locks/AbstractQueuedSynchronizer$Node.h:
655 Likewise.
656 * java/util/concurrent/ScheduledThreadPoolExecutor.h: Likewise.
657 * java/util/concurrent/SynchronousQueue.h: Likewise.
658 * java/util/concurrent/SynchronousQueue$TransferQueue.h: Likewise.
659 * java/util/concurrent/SynchronousQueue$TransferQueue$QNode.h:
660 Likewise.
661 * java/util/concurrent/SynchronousQueue$TransferStack.h: Likewise.
662 * java/util/concurrent/SynchronousQueue$TransferStack$SNode.h:
663 Likewise.
664 * java/util/concurrent/ThreadPoolExecutor.h: Likewise.
665 * java/util/concurrent/ThreadPoolExecutor$Worker.h: Likewise.
666 * java/util/logging/ErrorManager.h: Likewise.
667 * javax/swing/plaf/basic/BasicSpinnerUI$2.h: Likewise.
668 * javax/swing/plaf/basic/BasicSpinnerUI$4.h: Likewise.
669
670 2007-02-16 Keith Seitz <keiths@redhat.com>
671
672 * gnu/classpath/jdwp/natVMVirtualMachine.cc
673 (get_line_table): New function.
674 (handle_single_step): New function.
675 (jdwpSingleStepCB): New function.
676 (jdwpVMInitCB): Define a JVMTI single step
677 callback, but don't enable it until needed.
678
679 2007-02-16 David Daney <ddaney@avtrex.com>
680
681 * java/lang/Thread.java (Thread(ThreadGroup, Runnable, String)): Pass
682 new parameter constructor.
683 (Thread(ThreadGroup, Runnable, String, long)): Same.
684 (Thread(String, boolean)): New constructor.
685 (Thread(Thread, ThreadGroup, Runnable, String): Add parameter
686 noInheritableThreadLocal, don't call
687 InheritableThreadLocal.newChildThread if set.
688 * java/lang/PosixProcess.java(ProcessManager()): Set
689 noInheritableThreadLocal in super.
690 * java/lang/natThread.cc (_Jv_AttachCurrentThread): Pass new
691 parameter to Thread constructor.
692 (_Jv_AttachCurrentThreadAsDaemon): Same.
693 * java/lang/Thread.h: Regenerate.
694 * classpath/lib/java/lang/Thread.class: Same.
695 * classpath/lib/java/lang/PosixProcess$EOFInputStream.class: Same.
696 * classpath/lib/java/lang/PosixProcess.class: Same.
697 * classpath/lib/java/lang/Thread$State.class: Same.
698 * classpath/lib/java/lang/PosixProcess$ProcessManager.class: Same.
699
700 2007-02-16 Kyle Galloway <kgallowa@redhat.com>
701
702 * interpret.cc: Add extra DEBUG_LOCALS_INSN calls for multi-slot
703 variables to maintain type info.
704 * interpret-run.cc: Add local variable info to frame in the debug
705 interpreter.
706 * jvmti.cc (getLocalFrame): New method.
707 (_Jv_JVMTI_GetLocalObject): New method.
708 (_Jv_JVMTI_GetLocallInt): New method.
709 (_Jv_JVMTI_GetLocalFloat): New method.
710 (_Jv_JVMTI_GetLocalLong): New method.
711 (_Jv_JVMTI_GetLocalDouble): New method.
712 (_Jv_JVMTI_SetLocalObject): New method.
713 (_Jv_JVMTI_SetLocalInt): New method.
714 (_Jv_JVMTI_SetLocalFloat): New method.
715 (_Jv_JVMTI_SetLocalLong): New method.
716 (_Jv_JVMTI_SetLocalDouble): New method.
717
718 2007-02-16 Gary Benson <gbenson@redhat.com>
719
720 * gnu/gcj/tools/gcj_dbtool/Main.java
721 (bytesToString): Don't lose zeros from within the digest.
722
723 2007-02-15 Andrew Haley <aph@redhat.com>
724
725 * Makefile.am (nat_source_files): Remove
726 java/lang/management/natVMManagementFactory.cc.
727 * java/lang/Thread.java (getStackTrace): Use reflection to call
728 the ManagementFactory.
729 * java/lang/management/VMManagementFactory.java: Remove native
730 methods.
731 * java/lang/management/natVMManagementFactory.cc: Deleted.
732 * sources.am: Regnerate.
733 * scripts/makemake.tcl: Add new "bcheaders" type.
734 Move java/lang/management and gnu/classpath/management to "bc".
735 Move gnu/java/lang/management to "bcheaders".
736
737 2007-02-15 Kyle Galloway <kgallowa@redhat.com>
738
739 * interpret.cc (_Jv_InterpMethod::check_handler): New method.
740 * interpret-run.cc: Change the catch section to report exception
741 events and to use the new check_handler method.
742 * include/java-interp.h (_Jv_InterpMethod): Add check_handler.
743 * gnu/gcj/jvmti/ExceptionEvent.java: New file.
744 * gnu/gcj/jvmti/ExceptionEvent.h: New file.
745 * gnu/gcj/jvmti/natExceptionEvent.cc: New file.
746 * libjava/classpath/lib/gnu/gcj/jvmti/ExceptionEvent.class: New
747 file.
748 * sources.am: Added ExceptionEvent.java.
749 * Makefile.am: Added natExceptionEvent.cc
750 * Makefile.in: Regenerated.
751 * include/Makefile.in: Regenerated.
752 * gcj/Makefile.in: Regenerated.
753
754 2007-02-15 Johannes Schmidt <jschmidt@avtrex.com>
755 David Daney <ddaney@avtrex.com>
756
757 * configure.ac: Create vm-tools-packages file. Add
758 gnu/gcj/tools/gc_analyze to standard.omit and vm-tools-packages.
759 Check for /proc/self/maps.
760 * Makefile.am (bin_PROGRAMS): Added gc-analyze.
761 (gc_analyze_SOURCES): New.
762 (gc_analyze_LDFLAGS): New.
763 (gc_analyze_LINK): New.
764 (gc_analyze_LDADD): New.
765 (gc_analyze_DEPENDENCIES): New.
766 (nat_source_files): Add gnu/gcj/util/natGCInfo.cc.
767 * Makefile.in: Regenerated.
768 * configure: Regenerated.
769 * include/config.h.in: Regenerated.
770 * sources.am: Regenerated.
771 * scripts/makemake.tcl: Don't include gc-analyze classes in libgcj.
772 * gnu/gcj/tools/gc_analyze/SymbolLookup.java: New.
773 * gnu/gcj/tools/gc_analyze/ObjectMap.java: New.
774 * gnu/gcj/tools/gc_analyze/MemoryMap.java: New.
775 * gnu/gcj/tools/gc_analyze/SymbolTable.java: New.
776 * gnu/gcj/tools/gc_analyze/BlockMap.java: New.
777 * gnu/gcj/tools/gc_analyze/BytePtr.java: New.
778 * gnu/gcj/tools/gc_analyze/ItemList.java: New.
779 * gnu/gcj/tools/gc_analyze/ToolPrefix.java: New.
780 * gnu/gcj/tools/gc_analyze/MemoryAnalyze.java: New.
781 * gnu/gcj/util/GCInfo.java: New.
782 * gnu/gcj/util/GCInfo.h: New.
783 * gnu/gcj/util/natGCInfo.cc: New.
784 * gnu/gcj/util/UtilPermission.java: New.
785 * gnu/gcj/util/UtilPermission.h: New.
786 * classpath/tools/gnu/gcj/tools/gc_analyze/SymbolTable.class: New.
787 * classpath/tools/gnu/gcj/tools/gc_analyze/ObjectMap$ObjectItem.class: New.
788 * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryMap$RangeComparator.class: New.
789 * classpath/tools/gnu/gcj/tools/gc_analyze/BlockMap$PtrMarks.class: New.
790 * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryMap$Range.class: New.
791 * classpath/tools/gnu/gcj/tools/gc_analyze/BlockMap.class: New.
792 * classpath/tools/gnu/gcj/tools/gc_analyze/BytePtr.class: New.
793 * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$SubstringComparator.class: New.
794 * classpath/tools/gnu/gcj/tools/gc_analyze/ItemList.class: New.
795 * classpath/tools/gnu/gcj/tools/gc_analyze/ToolPrefix.class: New.
796 * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze.class: New.
797 * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$1$Info.class: New.
798 * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$1.class: New.
799 * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$2.class: New.
800 * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$3.class: New.
801 * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$4.class: New.
802 * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$OptionParser.class: New.
803 * classpath/tools/gnu/gcj/tools/gc_analyze/BlockMap$SizeKind.class: New.
804 * classpath/tools/gnu/gcj/tools/gc_analyze/SymbolLookup.class: New.
805 * classpath/tools/gnu/gcj/tools/gc_analyze/ObjectMap.class: New.
806 * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryMap.class: New.
807 * classpath/lib/gnu/gcj/util/GCInfo.class: New.
808 * classpath/lib/gnu/gcj/util/UtilPermission.class: New.
809
810 2007-02-15 David Daney <ddaney@avtrex.com>
811
812 * gnu/java/net/PlainSocketImpl.h: Regenerate.
813 * gnu/classpath/jdwp/VMVirtualMachine.h: Same.
814 * gnu/classpath/jdwp/VMFrame.h: Same.
815 * java/net/Socket.h: Same.
816 * java/util/Collections$UnmodifiableMap$UnmodifiableEntrySet.h: Same.
817
818 2007-02-15 Kyle Galloway <kgallowa@redhat.com>
819
820 * defineclass.cc (_Jv_ClassReader::read_one_code_attribute):
821 Added LocalVariableTable attribute handling.
822 (_Jv_ClassReader::pool_Utf8_to_char_arr): New method.
823 * jvmti.cc (_Jv_JVMTI_GetLocalVariableTable): New method.
824 * include/java-interp.h: Added local_var_table and
825 local_var_table_len fields to _Jv_InterpMethod.
826 (_Jv_InterpMethod::get_local_var_table): New method.
827 * testsuite/libjava.jvmti/interp/getlocalvartable.java: New test.
828 * testsuite/libjava.jvmti/interp/getlocalvartable.jar: New test.
829 * testsuite/libjava.jvmti/interp/getlocalvartable.out: Output
830 for new test.
831 * testsuite/libjava.jvmti/interp/getlocalvartable.h: New test.
832 * testsuite/libjava.jvmti/interp/natgetlocalvartable.cc: New test.
833
834 2007-02-15 Kyle Galloway <kgallowa@redhat.com>
835
836 * gnu/classpath/jdwp/natVMVirtualMachine (getFrames): Implement.
837
838 2007-02-13 Keith Seitz <keiths@redhat.com>
839
840 * gnu/classpath/jdwp/natVMVirtualMachine.cc
841 (jdwpBreakpointCB): New function.
842 (jdwpVMInitCB): Define and enable the breakpoint
843 callback.
844
845 2007-02-13 Andrew Haley <aph@redhat.com>
846
847 * testsuite/libjava.lang/Divide_2.out
848 * testsuite/libjava.lang/Divide_2.java: New test.
849
850 2007-02-12 Keith Seitz <keiths@redhat.com>
851
852 * jvmti.cc (_Jv_JVMTI_GetStackTrace): Remove cast
853 from jthread to Thread *; it is no longer needed.
854 (_Jv_JVMTI_GetFrameCount): Likewise.
855 Fix small formatting typo.
856
857 2007-02-12 Tom Tromey <tromey@redhat.com>
858
859 * sources.am, Makefile.in: Rebuilt.
860 * java/lang/Socket.java: Removed override.
861 * java/lang/DatagramSocket.java: Removed override.
862 * gnu/java/net/PlainSocketImpl.java (localSocketAddress): New
863 field.
864 (getLocalAddress): New method.
865 * gnu/java/net/PlainDatagramSocketImpl.java
866 (PlainDatagramSocketImpl): Throws IOException.
867 * gnu/java/net/natPlainSocketImplPosix.cc (write): Remove
868 'sizeof'.
869 (read): Likewise.
870
871 2007-02-09 Jakub Jelinek <jakub@redhat.com>
872
873 * java/util/VMTimeZone.java: Rewrite to handle both the old
874 'TZif\0' format and the new one.
875
876 2007-02-10 Andrew Haley <aph@redhat.com>
877
878 PR java/30742
879 * gnu/classpath/natVMStackWalker.cc (GET_CALLING_CLASS): New.
880 (getCallingClass): Call GET_CALLING_CLASS.
881 (getCallingClassLoader): Likewise.
882
883 2007-02-10 Mohan Embar <gnustuff@thisiscool.com>
884
885 * configure: Rebuilt.
886 * configure.ac (GCJH): Reverted second part of patch of 2006-12-20.
887
888 2007-02-10 Mohan Embar <gnustuff@thisiscool.com>
889
890 * Makefile.in: Rebuilt.
891 * Makefile.am (BUILD_ECJ1): Unify the command for renaming ecjx to
892 the host's ecj1 executable.
893
894 2007-02-09 Richard Henderson <rth@redhat.com>
895
896 * sysdep/alpha/locks.h (read_barrier): New.
897
898 2007-02-09 Keith Seitz <keiths@redhat.com>
899
900 * gnu/classpath/jdwp/VMVirtualMachine.java
901 (_stepping_threads): New member.
902 * classpath/lib/gnu/classpath/jdwp/VMVirtualMachine.class:
903 Regenerated.
904 * gnu/classpath/jdwp/VMVirtualMachine.h:
905 Regenerated.
906 * gnu/claspath/jdwp/natVMVirtualMachine.cc
907 (get_request_step_filter): New function.
908 (DISABLE_EVENT): New macro.
909 (initialize): Initialize _stepping_threads.
910 (registerEvent): Implement EVENT_SINGLE_STEP.
911 (unregisterEvent): Likewise.
912
913 2007-02-08 Keith Seitz <keiths@redhat.com>
914
915 * sources.am: Regenerate.
916 * Makefile.in: Regenerate.
917 * testsuite/Makefile.in: Regenerate.
918 * gcj/Makefile.in: Regenerate.
919 * include/Makefile.in: Regenerate.
920
921 * classpath/lib/javax/management/MBeanServerFactory.class:
922 Regenerate.
923
924 2007-02-08 Kyle Galloway <kgallowa@redhat.com>
925
926 * classpath/gnu/classpath/jdwp/processor/
927 StackFrameCommandSet.java (executeGetValues): Pass jlong instead
928 of ByteBuffer.
929 (executeSetValues): Ditto.
930 (executeThisObject): Ditto.
931 * classpath/gnu/classpath/jdwp/processor/
932 StackFrameCommandSet.class: Rebuilt.
933 * classpath/lib/gnu/classpath/jdwp/VMVirtualMachine.class:
934 Rebuilt.
935 * classpath/lib/gnu/classpath/jdwp/VMFrame.class: Rebuilt.
936 * classpath/lib/gnu/classpath/jdwp/exception/
937 InvalidFrameException.java: New file.
938 * gnu/classpath/jdwp/VMFrame.java: Added field for thread of
939 frame.
940 (Constructor): New method.
941 * gnu/classpath/jdwp/VMFrame.h: Regenerated.
942 * gnu/classpath/jdwp/VMVirtualMachine.java
943 (getFrame): Changed ByteBuffer to jlong.
944 * gnu/classpath/jdwp/natVMVirtualMachine.cc
945 (getFrame): Implement.
946 * gnu/classpath/jdwp/VMVirtualMachine.h: Regenerated.
947
948 2007-02-08 Kyle Galloway <kgallowa@redhat.com>
949
950 * include/java-interp.h (_Jv_InterpFrame): obj_ptr field added
951 to hold "this" pointer for frame.
952 (_Jv_InterpFrame::get_this_ptr): New method.
953 * interpret-run.cc: Copy the "this" pointer into obj_ptr.
954
955 2007-02-07 Keith Seitz <keiths@redhat.com>
956
957 * include/java-interp.h (_Jv_Frame::depth):
958 New function.
959 * jvmti.cc (_Jv_JVMTI_GetFrameCount): Use _Jv_Frame::depth.
960
961 2007-02-07 Kyle Galloway <kgallowa@redhat.com>
962
963 * jvmti.cc (CHECK_FOR_NATIVE_METHOD): New macro.
964 (_Jv_JVMTI_GetMaxLocals): New method.
965 * include/java-interp.h
966 (_Jv_InterpMethod::get_max_locals): New method.
967
968 2007-02-01 Marco Trudel <mtrudel@gmx.ch>
969
970 * jni.cc (_Jv_JNI_DeleteWeakGlobalRef): Check for NULL objects.
971
972 2007-02-07 Tom Tromey <tromey@redhat.com>
973
974 * testsuite/libjava.jni/init.c: New file.
975 * testsuite/libjava.jni/init.java: New file.
976 * testsuite/libjava.jni/init.out: New file.
977 * testsuite/libjava.jni/init.jar: New file.
978 * testsuite/libjava.jni/init.h: New file.
979 * testsuite/libjava.jni/init$NativeClass.h: New file.
980
981 2007-02-07 Jakub Jelinek <jakub@redhat.com>
982
983 PR libgomp/28468
984 * configure: Regenerate.
985
986 2007-02-06 Andrew Haley <aph@redhat.com>
987
988 * scripts/makemake.tcl (emit_bc_rule): Set the source filename.
989 * sources.am: Rebuild.
990
991 2007-02-05 Keith Seitz <keiths@redhat.com>
992
993 * jvmti.cc (_envListLock): Change type to
994 ReentrantReadWriteLock.
995 (_Jv_JVMTI_DisposeEnvironment): Switch to read/write
996 lock.
997 (check_enabled_event): Likewise.
998 (_Jv_GetJVMTIEnv): Likewise.
999 (_Jv_JVMTI_Init): Likewise.
1000 (_Jv_JVMTI_PostEvent): Likewise.
1001
1002 2007-02-05 Keith Seitz <keiths@redhat.com>
1003
1004 * gnu/classpath/jdwp/natVMVirtualMachine.cc
1005 (registerEvent): Implement EVENT_BREAKPOINT.
1006 (unregisterEvent): Likewise.
1007 (get_request_location): New function.
1008
1009 2007-02-05 Matthias Klose <doko@debian.org>
1010
1011 testsuite/Makefile.am (compile-tests): Fix typo.
1012 testsuite/Makefile.in: Regenerate.
1013
1014 2007-02-02 Kyle Galloway <kgallowa@redhat.com>
1015
1016 * gnu/classpath/jdwp/natVMVirtualMachine.cc (getFrameCount):
1017 Implment.
1018
1019 2007-02-02 Jakub Jelinek <jakub@redhat.com>
1020
1021 * configure.ac (libjava_cv_anon_version_script): New test.
1022 (ANONVERSCRIPT): New AM_CONDITIONAL.
1023 * configure: Rebuilt.
1024 * Makefile.am (extra_ldflags_libjava): Link with -Wl,--version-script
1025 if ANONVERSCRIPT.
1026 * Makefile.in: Rebuilt.
1027 (libgcj_la_DEPENDENCIES): Depend on libgcj.ver.
1028 * libgcj.ver: New file.
1029
1030 2007-02-01 David Daney <ddaney@avtrex.com>
1031
1032 * scripts/makemake.tcl: Replace gnu/xml build with build of all
1033 its subpackages.
1034 * sources.am: Regenerate.
1035 * Makefile.in: Regenerate.
1036
1037 2007-02-01 Tom Tromey <tromey@redhat.com>
1038
1039 * java/lang/ClassLoader.java (getResources): No longer final.
1040
1041 2007-02-01 Tom Tromey <tromey@redhat.com>
1042
1043 * java/util/logging/LogManager.java (loggers): Genericized.
1044 (addLogger): Merged.
1045 (findAncestor): Likewise.
1046 (getLogger): Likewise.
1047 (getLoggerNames): Genericized.
1048 (reset): Merged.
1049 (getLevelProperty): Likewise.
1050 * java/lang/reflect/Method.java (getDeclaringClass): Genericized.
1051 * java/lang/reflect/Constructor.java (getParameterTypes):
1052 Genericized.
1053 (getExceptionTypes): Likewise.
1054 (newInstance): Likewise.
1055 * java/lang/reflect/Array.java (newInstance): Genericized.
1056 * java/lang/Object.java (getClass): Genericized.
1057 * java/nio/charset/spi/CharsetProvider.java (charsets):
1058 Genericized.
1059 * java/text/Collator.java: Implement Comparable<Object>.
1060
1061 2007-02-01 Tom Tromey <tromey@redhat.com>
1062
1063 * java/util/Calendar.java: Implement Comparable<Calendar>. Update
1064 comments.
1065 (clear): Call complete.
1066 (setTimeZone): Call computeTime, computeFields.
1067 (compareTo): New method.
1068 * java/nio/charset/Charset.java: Implement Comparable<Charset>.
1069 (availableCharsets): Genericized.
1070 (aliases): Likewise.
1071 (compareTo): Changed argument type.
1072 * java/lang/ClassLoader.java (loadClass): Genericized.
1073 (findClass): Likewise.
1074 (defineClass): Likewise.
1075 (resolveClass): Likewise.
1076 (findSystemClass): Likewise.
1077 (setSigners): Likewise.
1078 (findLoadedClass): Likewise.
1079 (getResources): Likewise.
1080 (findResources): Likewise.
1081 (getSystemResources): Likewise.
1082 (checkInitialized): New method.
1083 * java/lang/Class.java (getCanonicalName): New method.
1084
1085 2007-01-31 Keith Seitz <keiths@redhat.com>
1086
1087 * include/jvmti-int.h (JVMTI): Declare member "enabled".
1088 * jvmti.cc (JVMTI): Add member "enabled".
1089 (_Jv_GetJVMTIEnv): Mark JVMTI enabled.
1090 * interpret.cc (_Jv_InterpMethod::ncode): Use JVMTI::enabled
1091 instead of gnu::classpath::jdwp::Jdwp::isDebugging.
1092 (_Jv_CompileMethod): If JVMTI is enabled, use run_debug
1093 instead of run to compile the method.
1094
1095 * interpret-run.cc [DEBUG] (NEXT_INSN): Add JVMTI single step
1096 notification.
1097
1098 2007-01-31 Andreas Tobler <a.tobler@schweiz.org>
1099
1100 * testsuite/libjava.jvmti/jvmti-interp.exp (gij_jvmti_test_one): Add
1101 -shared-libgcc to the cxxflaglist for Darwin.
1102
1103 2007-01-31 Tom Tromey <tromey@redhat.com>
1104
1105 * scripts.am, Makefile.in: Rebuilt.
1106 * scripts/makemake.tcl (gnu/javax/swing/text/html/parser): Build
1107 as 'ordinary'.
1108 (emit_ordinary_rule): New proc.
1109
1110 2007-01-31 Keith Seitz <keiths@redhat.com>
1111
1112 * testsuite/libjava.jvmti/getmethodname.h: New file.
1113 * testsuite/libjava.jvmti/getmethodname.jar: New file.
1114
1115 2007-01-31 Andrew Haley <aph@redhat.com>
1116
1117 * prims.cc (_Jv_Abort): fflush (stderr).
1118 * java/lang/natClassLoader.cc (_Jv_CheckABIVersion): Abort.
1119
1120 2007-01-31 Tom Tromey <tromey@redhat.com>
1121
1122 * configure, Makefile.in: Rebuilt.
1123 * configure.ac (JAR): Check for -@ feature.
1124 * Makefile.am (libgcj-$(gcc_version).jar): Use find -prune.
1125
1126 2007-01-31 Tom Tromey <tromey@redhat.com>
1127
1128 PR libgcj/30606:
1129 * configure, include/config.h.in: Rebuilt.
1130 * configure.ac: Check for magic_t in magic.h.
1131 * java/net/natVMURLConnection.cc: Use HAVE_MAGIC_T.
1132
1133 2007-01-30 Tom Tromey <tromey@redhat.com>
1134
1135 * Makefile.in: Rebuilt.
1136 * Makefile.am (libgcj-$(gcc_version).jar): Rewrote.
1137
1138 2007-01-30 Andreas Tobler <a.tobler@schweiz.org>
1139
1140 * testsuite/libjava.jvmti/natevents.cc (FieldModificationCB): Use a
1141 cast to print it right.
1142
1143 2007-01-29 Kaloian Doganov <kaloian@doganov.org>
1144
1145 PR libgcj/30600:
1146 * gnu/gcj/convert/BytesToCharsetAdaptor.java (read): Fix call to
1147 'limit'.
1148
1149 2007-01-29 Kyle Galloway <kgallowa@redhat.com>
1150
1151 * include/java-interp.h: Added _Jv_Frame class and its two
1152 subclasses _Jv_InterpFrame and _Jv_NativeFrame. Also moved
1153 _Jv_FrameType from java-stack.h.
1154 * include/java-stack.h: Removed _Jv_FrameType.
1155 * java/lang/Thread.java: Added frame member to hold new
1156 composite frame stack.
1157 * java/lang/Thread.h: Regenerated.
1158 * java/lang/Thread.class: Rebuilt.
1159 * jni.cc (_Jv_JNIMethod::call): Push a frame onto the stack when
1160 calling a JNI method.
1161 * jvmti.cc (_Jv_JVMTI_GetStackTrace): New Method.
1162 (_Jv_JVMTI_GetFrameCount): New method.
1163 * stacktrace.cc (UnwindTraceFn): Modified to use new _Jv_Frame
1164 classes.
1165 * testsuite/libjava.jvmti/interp/getstacktrace.jar: New test.
1166 * testsuite/libjava.jvmti/interp/natgetstacktrace.cc: New test.
1167 * testsuite/libjava.jvmti/interp/getstacktrace.h: New test.
1168 * testsuite/libjava.jvmti/interp/getstacktrace.jar: New test.
1169 * testsuite/libjava.jvmti/interp/getstacktrace.out: Output file
1170 for test.
1171
1172 2007-01-29 Tom Tromey <tromey@redhat.com>
1173
1174 * interpret.cc (run_debug): Remove comment.
1175 (STOREA): Reformat.
1176 (STOREI): Likewise.
1177 (STOREF): Likewise.
1178 (STOREL): Likewise.
1179 (STORED): Likewise.
1180 (POKEI): Likewise.
1181 (run_normal_debug): Likewise.
1182 (run_synch_object_debug): Likewise.
1183 (run_class_debug): Likewise.
1184 (run_synch_class_debug): Likewise.
1185 (get1s): Likewise.
1186 (get1u): Likewise.
1187 (get2u): Likewise.
1188 (get4): Likewise.
1189 (NULLARRAYCHECK): Likewise.
1190 (ARRAYBOUNDSCHECK): Likewise.
1191 * interpret-run.cc (insn_target) <breakpoint>: Tidy.
1192
1193 2007-01-29 Tom Tromey <tromey@redhat.com>
1194
1195 * configure, Makefile.in: Rebuilt.
1196 * Makefile.am (bin_SCRIPTS): Never install scripts/jar.
1197 * configure.ac (BASH_JAR): Removed conditional.
1198 (JAR): Prefer the jar found by AC_CHECK_PROGS.
1199
1200 2007-01-29 Tom Tromey <tromey@redhat.com>
1201
1202 * Makefile.in: Rebuilt.
1203 * Makefile.am (interpret.lo): New target. Add -fwrap to
1204 AM_CXXFLAGS.
1205
1206 2007-01-29 Keith Seitz <keiths@redhat.com>
1207
1208 * include/jvmti_md.h (_CLASSPATH_VM_JVMTI_TYPES_DEFINED):
1209 Define.
1210 [__GCJ_JNI_IMPL__]: Define our own JVMTI types when building
1211 gcj. All jvmti object types now are defined to be their
1212 corresponding java classes.
1213 * jvmti.cc (_Jv_JVMTI_SuspendThread): Remove casting from
1214 jthread to Thread*.
1215 (_Jv_JVMTI_ResumeThread): Likewise.
1216 (_Jv_JVMTI_InterruptThread): Likewise.
1217 (_Jv_JVMTI_SetEventNotificationMode): Likewise.
1218 * gnu/classpath/jdwp/natVMVirtualMachine.cc
1219 (jdwpClassPrepareCB): Likewise.
1220 (jdwpThreadEndCB): Likewise.
1221 (jdwpThreadStartCB): Likewise.
1222 (jdwpVMInitCB): Likewise.
1223
1224 2007-01-28 Michele Sandri <gpointorama@gmail.com>
1225
1226 * gnu/java/nio/channels/natFileChannelWin32.cc
1227 (lock): Implemented.
1228 (unlock): Implemented.
1229
1230 2007-01-27 Andreas Tobler <a.tobler@schweiz.org>
1231
1232 PR libgcj/30513
1233 * configure.host: Add forgottten sysdep_dir to sparc. Add a flag to
1234 libgcj_flags to undefine 'sun' at compile time.
1235 * sysdep/sparc/locks.h (read_barrier): New functions for 32 and 64 bit
1236 Sparc.
1237 (write_barrier): Likewise.
1238
1239 2007-01-27 Keith Seitz <keiths@redhat.com>
1240
1241 * gnu/classpath/jdwp/natVMVirtualMachine.cc
1242 (getAllClassMethods): Move error handling to ...
1243 (throw_jvmti_error): ... here.
1244 (jdwpClassPrepareCB): New function.
1245 (jdwpThreadEndCB): New function.
1246 (jdwpThreadStartCB): New function.
1247 (jdwpVMDeathCB): New function.
1248 (jdwpVMInitCB): Define and enable callbacks for
1249 ClassPrepare, ThreadEnd, ThreadStart, and VMDeath.
1250
1251 2007-01-27 Jakub Jelinek <jakub@redhat.com>
1252
1253 * Makefile.am (generic_header_files): Add $(inner_nat_headers).
1254 * testsuite/Makefile.am (check-dejaGNU): Depend on compile-tests.
1255 (MYGCJH): New variable.
1256 (compile-tests): New goal.
1257 * Makefile.in: Rebuilt.
1258 * testsuite/Makefile.in: Rebuilt.
1259
1260 2007-01-26 Andrew Haley <aph@redhat.com>
1261
1262 * java/lang/natClass.cc (initializeClass): Re-throw
1263 SecurityExceptions.
1264 * java/lang/natVMClassLoader.cc (loadClass): checkPackageAccess.
1265 * java/lang/ClassLoader.java: (loadClass): Likewise.
1266
1267 2007-01-26 Tom Tromey <tromey@redhat.com>
1268
1269 * Updated headers.
1270
1271 2007-01-25 Tom Tromey <tromey@redhat.com>
1272
1273 PR libgcj/29594:
1274 * gnu/gcj/convert/Convert.java (main): Correctly handle missing
1275 input or output encodings. Removed unused local variables.
1276
1277 2007-01-25 Keith Seitz <keiths@redhat.com>
1278
1279 * include/jvmti-int.h (_Jv_GetJDWP_JVMTIEnv): Declare.
1280 * gnu/classpath/jdwp/natVMVirtualMachine.cc
1281 (_Jv_GetJDWP_JVMTIEnv): New function.
1282 * gnu/classpath/jdwp/natVMMethod.cc (getName): Implement.
1283 (getSignature): Implement.
1284 (getModifiers): Implement.
1285
1286 2007-01-25 Andrew Haley <aph@redhat.com>
1287
1288 * configure, Makefile.in, include/config.h.in: Rebuilt.
1289 * Makefile.am (libgcj_la_LIBADD): Removed $(LIBMAGIC).
1290 * configure.ac: Don't check for libmagic.
1291 * java/net/natVMURLConnection.cc (p_magic_open, p_magic_load,
1292 p_magic_close, p_magic_buffer): New globals.
1293 (init): Look up 'magic' functions.
1294 (guessContentTypeFromBuffer): Updated.
1295
1296 2007-01-25 Keith Seitz <keiths@redhat.com>
1297
1298 * jvmti.cc (_Jv_JVMTI_GetMethodName): New function.
1299 (_Jv_JVMTI_Interface): Define GetMethodName.
1300 * testsuite/libjava.jvmti/getmethodname.java: New file.
1301 * testsuite/libjava.jvmti/natgetmethodname.cc: New file.
1302 * testsuite/libjava.jvmti/getmethodname.out: New file.
1303
1304 2007-01-24 Kyle Galloway <kgallowa@redhat.com>
1305
1306 * libjava/testsuite/libjava.jvmti/jvmti-interp.exp: New file.
1307 * libjava/testsuite/libjava.jvmti/interp: New folder.
1308 * libjava/testsuite/lib/libjava.exp (exec_gij): New Method.
1309
1310 2007-01-24 Keith Seitz <keiths@redhat.com>
1311
1312 * link.cc (_Jv_Linker::wait_for_state): Add JVMTI
1313 CLASS_PREPARE notification.
1314
1315 2007-01-24 Keith Seitz <keiths@redhat.com>
1316
1317 * interpret.cc: Include gnu/gcj/jvmti/Breakpoint.h,
1318 gnu/gcj/jvmti/BreakpointManager.h, jvmti.h, and jvmti-int.h
1319 * interpret-run.cc: Implement insn_breakpoint.
1320
1321 2007-01-24 Keith Seitz <keiths@redhat.com>
1322
1323 * prims.cc (_Jv_RunMain): Send JVMTI event notifications
1324 for VM_INIT and VM_DEATH instead of the JDWP notifications.
1325
1326 2007-01-24 Keith Seitz <keiths@redhat.com>
1327
1328 * gnu/classpath/jdwp/natVMVirtualMachine.cc
1329 (getAllClassMethods): Implement.
1330
1331 2007-01-24 Andrew Haley <aph@redhat.com>
1332
1333 * gnu/classpath/natVMStackWalker.cc: Call InitClass everywhere.
1334 (getClassContext) Add a barrier to prevent GetStackWalkerStack()
1335 from being sibcalled.
1336
1337 2007-01-24 Andrew Haley <aph@redhat.com>
1338
1339 * scripts/makemake.tcl (emit_bc_rule): Set the source filename.
1340 * sources.am: Rebuild.
1341
1342 2007-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
1343
1344 * exception.cc (parse_lsda_header, PERSONALITY_FUNCTION): Replaced
1345 _Unwind_Word with _uleb128_t and _Unwind_SWord with _sleb128_t.
1346
1347 2007-01-23 H.J. Lu <hongjiu.lu@intel.com>
1348
1349 PR libgcj/30550
1350 * Makefile.am (ecjx_DEPENDENCIES): Add libgcj_bc.la if needed.
1351 * Makefile.in: Regenerated.
1352
1353 2007-01-22 Keith Seitz <keiths@redhat.com>
1354
1355 * gnu/classpath/jdwp/natVMVirtualMachine.cc
1356 (getClassMethod): Implement.
1357
1358 2007-01-22 Keith Seitz <keiths@redhat.com>
1359
1360 * java/lang/Class.h (_Jv_GetClassStatus): Declare.
1361 * java/lang/natClass.cc (_Jv_GetClassStatus): New function.
1362 * jvmti.cc (_Jv_JVMTI_GetClassStatus): New function.
1363 (_Jv_JVMTI_Interface): Define GetClassStatus.
1364
1365 2007-01-22 Tom Tromey <tromey@redhat.com>
1366
1367 * configure: Rebuilt.
1368 * configure.ac (GCJ): Reverted patch of 2006-12-20.
1369
1370 2007-01-22 Tom Tromey <tromey@redhat.com>
1371
1372 PR java/29812:
1373 * testsuite/libjava.jni/pr29812.java: New file.
1374 * testsuite/libjava.jni/pr29812_injar.java: New file.
1375 * testsuite/libjava.jni/pr29812_injar.jar: New file.
1376 * testsuite/libjava.jni/pr29812.out: New file.
1377 * testsuite/libjava.jni/pr29812_injar.c: New file.
1378 * testsuite/libjava.jni/pr29812_injar.h: New file.
1379 * testsuite/libjava.jni/pr29812.jar: New file.
1380 * testsuite/libjava.jni/pr29812.c: New file.
1381 * testsuite/libjava.jni/pr29812.h: New file.
1382 * testsuite/libjava.jni/jni.exp (gcj_jni_get_cxxflags_invocation):
1383 New proc.
1384 (gcj_jni_invocation_test_one): Use it.
1385 (gcj_jni_pr29812): New proc.
1386 (gcj_jni_run): Use it.
1387 * java/lang/natRuntime.cc (_load): Push a new system frame before
1388 calling JNI_OnLoad.
1389 * include/jvm.h (_Jv_JNI_PopSystemFrame): Declare.
1390 (_Jv_GetJNIEnvNewFrameWithLoader): Likewise.
1391 * jni.cc (struct _Jv_JNI_LocalFrame) <marker>: Now unsigned char.
1392 <allocated_p>: Now bool.
1393 <loader>: New field.
1394 (_Jv_JNI_EnsureLocalCapacity): Updated.
1395 (_Jv_JNI_NewLocalRef): Likewise.
1396 (_Jv_JNI_NewLocalRef): Likewise.
1397 (_Jv_JNI_PopLocalFrame): Likewise.
1398 (_Jv_JNI_FindClass): Likewise.
1399 (_Jv_GetJNIEnvNewFrame): Likewise.
1400 (_Jv_JNI_AttachCurrentThread): Likewise.
1401 (_Jv_GetJNIEnvNewFrameWithLoader): New function.
1402 (_Jv_GetJNIEnvNewFrame): Use it.
1403 * include/jni_md.h (_CLASSPATH_JNIENV_CONTENTS): Removed 'klass'.
1404
1405 2007-01-22 Tom Tromey <tromey@redhat.com>
1406
1407 * libtool-version: Bump current to 9.
1408
1409 2007-01-22 Andrew Haley <aph@redhat.com>
1410
1411 * sysdep/alpha/locks.h (write_barrier): New.
1412
1413 2007-01-21 Matthias Klose <doko@debian.org>
1414
1415 * Makefile.am (install-exec-hook): Use transformed name.
1416 * Makefile.in: Regenerate.
1417
1418 2007-01-19 Keith Seitz <keiths@redhat.com>
1419
1420 * gnu/classpath/jdwp/natVMVirtualMachine.cc: Mark unused parameters
1421 in methods and reformat.
1422
1423 * gnu/classpath/jdwp/natVMFrame.cc: Mark unused parameters with
1424 MAYBE_UNUSED.
1425
1426 2007-01-18 Keith Seitz <keiths@redhat.com>
1427
1428 From Macro Trudel <mtrudel@gmx.ch>:
1429 * gnu/classpath/jdwp/natVMVirtualMachine.cc (jdwpVMInitCB):
1430 Use JNICALL.
1431
1432 2007-01-18 Marco Trudel <mtrudel@gmx.ch>
1433
1434 * jni.cc (_Jv_JNI_FindClass): Initialize class.
1435 * testsuite/libjava.jni/findclass2.jar: New file.
1436 * testsuite/libjava.jni/findclass2.h: New file.
1437 * testsuite/libjava.jni/findclass2.java: New file
1438 * testsuite/libjava.jni/findclass2.c: New file.
1439 * testsuite/libjava.jni/findclass2.out: New file.
1440
1441 2007-01-18 Tom Tromey <tromey@redhat.com>
1442
1443 * configure: Rebuilt.
1444 * configure.ac: Use multi_basedir instead of libgcj_basedir.
1445
1446 2007-01-18 Gary Benson <gbenson@redhat.com>
1447
1448 * gnu/java/nio/natVMPipeEcos.cc:
1449 Renamed from gnu/java/nio/natPipeImplEcos.cc.
1450 * gnu/java/nio/natVMPipePosix.cc:
1451 Renamed from gnu/java/nio/natPipeImplPosix.cc.
1452 * gnu/java/nio/natVMPipeWin32.cc:
1453 Renamed from gnu/java/nio/natPipeImplWin32.cc.
1454 * gnu/java/nio/natVMSelectorEcos.cc:
1455 Renamed from gnu/java/nio/natSelectorImplEcos.cc.
1456 * gnu/java/nio/natVMSelectorPosix.cc:
1457 Renamed from gnu/java/nio/natSelectorImplPosix.cc.
1458 * gnu/java/nio/natVMSelectorWin32.cc:
1459 Renamed from gnu/java/nio/natSelectorImplWin32.cc.
1460 * java/io/natVMObjectInputStream.cc:
1461 Renamed from java/io/natObjectInputStream.cc.
1462 * java/lang/natVMDouble.cc:
1463 Renamed from java/lang/natDouble.cc.
1464 * java/lang/natVMFloat.cc:
1465 Renamed from java/lang/natFloat.cc.
1466 * Makefile.am, configure.ac: Reflect the above.
1467 * Makefile.in, configure: Rebuilt.
1468
1469 2007-01-17 Andrew Haley <aph@redhat.com>
1470
1471 * Makefile.in: Rebuilt.
1472 * Makefile.am (ecjx_LDFLAGS): Pass -fbootclasspath.
1473
1474 2007-01-17 Keith Seitz <keiths@redhat.com>
1475
1476 * java/lang/natThread.cc (finish_): Add JVMTI ThreadEnd notification.
1477 (_Jv_NotifyThreadStart): Add JVMTI ThreadStart notification.
1478
1479 2007-01-16 Jack Howarth <howarth@bromo.med.uc.edu>
1480
1481 * configure.ac: Use multi.m4 from aclocal rather than custom
1482 code. Use multi_basedir instead libgcj_basedir. Test for
1483 /proc/self/exe when not cross-compiling.
1484 * aclocal.m4: Regenerate.
1485 * configure: Regenerate.
1486 * Makefile.in: Regenerate.
1487
1488 2007-01-17 Gary Benson <gbenson@redhat.com>
1489
1490 * java/nio/natVMDirectByteBufferImpl.cc:
1491 Renamed from java/nio/natDirectByteBufferImpl.cc.
1492 * Makefile.am: Reflect the above.
1493 * Makefile.in: Rebuilt.
1494
1495 2007-01-17 Marco Trudel <mtrudel@gmx.ch>
1496
1497 * jvmti.cc (_Jv_JVMTI_GetAllThreads): Now static. Use JNICALL.
1498 Fixed indentation. Removed unused variable.
1499
1500 2007-01-16 Tom Tromey <tromey@redhat.com>
1501
1502 * java/lang/natThread.cc (finalize_native): Remove cast.
1503 (_Jv_GetCurrentJNIEnv): Likewise.
1504 * include/jvm.h (struct natThread) <jni_env>: Declare as
1505 _Jv_JNIEnv*.
1506
1507 2007-01-16 Keith Seitz <keiths@redhat.com>
1508
1509 * testsuite/libjava.jvmti/natevents.cc (FieldModificationCB): Use
1510 %#llx instead of %d for new_value.
1511 * testsuite/libjava.jvmti/events.out: Update expected output.
1512 * testsuite/libjava.jvmti/events.jar: Regenerate.
1513
1514 2007-01-16 Keith Seitz <keiths@redhat.com>
1515
1516 * gnu/classpath/jdwp/natVMVirtualMachine.cc (DEFINE_CALLBACK):
1517 New macro.
1518 (ENABLE_EVENT): New macro.
1519 (initialize): Define and enable JVMTI VM_INIT callback.
1520 (jdwpVMInitCB): New function.
1521
1522 2007-01-16 Kyle Galloway <kgallowa@redhat.com>
1523
1524 * jvmti.cc (_Jv_JVMTI_GetAllThreads): New function.
1525 * testsuite/libjava.jvmti/getallthreads.java: New test.
1526 * testsuite/libjava.jvmti/natgetallthreads.cc: Ditto.
1527 * testsuite/libjava.jvmti/getallthreads.out: Ditto.
1528 * testsuite/libjava.jvmti/getallthreads.h: Ditto.
1529 * testsuite/libjava.jvmti/getallthreads.jar: Ditto.
1530
1531 2007-01-15 Keith Seitz <keiths@redhat.com>
1532
1533 * gnu/classpath/jdwp/natVMVirtualMachine.cc (suspendThread): Use
1534 java.lang.StringBuilder instead of java.lang.StringBuffer.
1535 (resumeThread): Likewise.
1536
1537 2007-01-15 Gary Benson <gbenson@redhat.com>
1538
1539 * java/nio/MappedByteBuffer.java: Removed.
1540 * sources.am, Makefile.in: Rebuilt.
1541
1542 2007-01-15 Gary Benson <gbenson@redhat.com>
1543
1544 * java/net/URLClassLoader.java: Removed.
1545 * gnu/java/net/loader/Load_gcjlib.java: New file.
1546 * gnu/gcj/runtime/BootClassLoader.java: Ensure core
1547 URL handler is present in static executables.
1548 * sources.am, Makefile.in: Rebuilt.
1549
1550 2007-01-14 H.J. Lu <hongjiu.lu@intel.com>
1551
1552 * Makefile.am (libgcj_la_LDFLAGS): Add
1553 $(LIBGCJ_LD_SYMBOLIC_FUNCTIONS).
1554 (libgcj_tools_la_LDFLAGS): Likewise.
1555 (libgcj_bc_la_LDFLAGS): Likewise.
1556 * Makefile.in: Regenerated.
1557
1558 * configure.ac: Use ACX_PROG_LD_GNU_SYMBOLIC. Set
1559 LIBGCJ_LD_SYMBOLIC_FUNCTIONS to $SYMBOLIC_LDFLAGS. Set
1560 libgcj_ld_symbolic to $SYMBOLIC_LDFLAGS if it isn't set.
1561 Substitute LIBGCJ_LD_SYMBOLIC_FUNCTIONS.
1562 * configure: Regenerated.
1563 * aclocal.m4: Likewise.
1564 * gcj/Makefile.in: Likewise.
1565 * include/Makefile.in: Likewise.
1566 * testsuite/Makefile.in: Likewise.
1567
1568 2007-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
1569
1570 * sysdep/sh/locks.h (read_barrier): New.
1571 (write_barrier): Likewise.
1572
1573 2007-01-12 Andrew Haley <aph@redhat.com>
1574
1575 * include/i386-signal.h: Rewrite to use rt_sigaction.
1576
1577 2007-01-11 Andrew Haley <aph@redhat.com>
1578
1579 * prims.cc (jdwpOptions) Fix deprecated cast from char[] constant
1580 to char*.
1581 * include/x86_64-signal.h (HANDLE_DIVIDE_OVERFLOW): Rewrite to fix
1582 aliasing violation.
1583
1584 2007-01-10 Tom Tromey <tromey@redhat.com>
1585
1586 * gnu/gcj/xlib/*.h: New files.
1587 * gnu/awt/xlib/*.h: Likewise.
1588 * classpath/lib/gnu/gcj/xlib: New class files.
1589 * classpath/lib/gnu/awt/xlib: Likewise.
1590
1591 2007-01-10 Tom Tromey <tromey@redhat.com>
1592
1593 * HACKING: Various updates.
1594
1595 2007-01-10 Tom Tromey <tromey@redhat.com>
1596
1597 * java/lang/natDouble.cc (toString): Added parens.
1598 * gnu/gcj/io/shs.h (PROTO): Define.
1599 * link.cc (resolve_pool_entry): Added missing braces.
1600
1601 2007-01-10 H.J. Lu <hongjiu.lu@intel.com>
1602
1603 PR libgcj/30424
1604 * sysdep/ia64/locks.h (read_barrier): New.
1605 (write_barrier): New.
1606
1607 2007-01-10 Gary Benson <gbenson@redhat.com>
1608
1609 * java/net/URL.java: Removed.
1610 * sources.am, Makefile.in: Rebuilt.
1611
1612 2007-01-10 Matthias Klose <doko@debian.org>
1613
1614 * Makefile.am (install-exec-hook): Support $(DESTDIR).
1615 * Makefile.in: Regenerated.
1616
1617 2007-01-05 Tom Tromey <tromey@redhat.com>
1618
1619 * testsuite/libjava.loader/loader.exp (gcj_loader_run): Find
1620 dummy.class in srcdir.
1621
1622 2007-01-03 Tom Tromey <tromey@redhat.com>
1623
1624 * testsuite/libjava.cni/cni.exp (gcj_cni_compile_cxx_to_o): Add -I
1625 for srcdir.
1626
1627 2007-01-03 Tom Tromey <tromey@redhat.com>
1628
1629 * testsuite/*: Added many .jar and .h files.
1630 * testsuite/libjava.special/special.exp
1631 (gcj_special_try_compiler): New proc.
1632 * testsuite/libjava.loader/loader.exp (gcj_loader_run): Don't
1633 bytecompile source. Search for .jar files.
1634 (gcj_loader_test_one): Don't look for MyLoader.java.
1635 * testsuite/libjava.jvmti/jvmti.exp (gcj_jvmti_test_one): Don't
1636 bytecompile sources or build headers.
1637 (gcj_jvmti_run): Look for .jar files.
1638 * testsuite/libjava.jni/jni.exp (gcj_jni_run): Compile .jar
1639 files.
1640 (gcj_jni_test_one): Don't bytecompile sources or build headers.
1641 Set classpath when invoking gij.
1642 (gcj_jni_invocation_test_one): Likewise.
1643 * testsuite/libjava.cni/cni.exp (gcj_cni_test_one): Don't build
1644 headers or bytecompile sources.
1645 (gcj_cni_run): Use .jar files, not .java files.
1646 * testsuite/libjava.lang/lang.exp: Compile .jar files.
1647
1648 2007-01-02 Tom Tromey <tromey@redhat.com>
1649
1650 * configure: Rebuilt.
1651 * configure.ac: Check for gjar.
1652
1653 2007-01-02 Tom Tromey <tromey@redhat.com>
1654
1655 * testsuite/libjava.jacks/jacks.exp: Removed.
1656 * testsuite/libjava.jacks/jacks.xfail: Removed.
1657