1 2007-05-30 21:05 twisti
3 * src/vm/jit/powerpc/darwin/md-os.c (thread_restartcriticalsection):
4 Renamed to md_critical_section_restart.
6 2007-05-30 21:04 twisti
8 * src/vm/jit/powerpc/asmpart.S [ENABLE_REPLACEMENT] (L_replace_me)
9 (L_replace_build_execution_state, L_replace_free_safestack): Only if
10 replacement is enabled, otherwise we get a linker error.
12 2007-05-30 20:53 twisti
14 * src/vm/jit/powerpc/darwin/md-abi.c,
15 src/vm/jit/powerpc/darwin/md-abi.h: Removed Contact, Authors, Changes
18 2007-05-30 20:51 twisti
20 * src/vm/signal.c (signal_thread) [!__DARWIN__]: Don't do the
21 GC_signum stuff on Darwin (should also be done on Solaris, but let's
22 wait how the exact-GC is doing).
24 2007-05-30 20:45 twisti
26 * src/vm/builtin.c (math.h): Removed because we don't need it as we
27 include fdlibm.h and it does not work on some OSs, like Darwin.
29 2007-05-30 20:40 twisti
31 * src/mm/boehm-gc/pthread_stop_world.c (GC_signum1, GC_signum2): No it
32 did not work, reverted rev7981.
34 2007-05-30 20:30 twisti
36 * src/threads/native/threads.c (threads_impl_preinit): Initialize
38 (threads_impl_table_init): Removed.
39 (threads_impl_table_init, threads_list_unlock): Fixed debug message.
41 * src/threads/threads-common.h (threads_impl_table_init): Removed.
43 2007-05-30 20:04 twisti
45 * src/vm/resolve.c (resolve_subtype_check): Don't free the memory
48 2007-05-30 20:01 twisti
50 * src/vm/jit/powerpc64/codegen.c (codegen_emit_stub_native): Fixed
53 * src/vm/jit/powerpc64/emit.c [!NDEBUG] (emit_verbosecall_enter)
54 (emit_verbosecall_exit): Only compile conditionally.
56 2007-05-30 19:43 twisti
58 * src/mm/boehm-gc/pthread_stop_world.c (cacao_suspendhandler):
60 (GC_suspend_handler): Commented cacao_suspendhandler call.
61 (GC_signum1, GC_signum2): Define for all configurations (hope that
64 * src/threads/native/threads.c: Commented all critical-sections code,
65 as it does not work anyway and it does not compile everywhere.
67 2007-05-30 16:01 twisti
69 * src/vm/jit/powerpc64/md.c (md_get_method_patch_address): Use
70 vm_abort and fixed warning.
71 (md_codegen_get_pv_from_pc): Likewise.
73 2007-05-30 15:52 twisti
75 * src/vm/jit/powerpc64/codegen.c (codegen_emit): Fixed --disable-debug
78 2007-05-30 14:09 twisti
80 * src/vm/signal.c (mm/boehm-gc/include/gc.h): Added.
81 (GC_suspend_handler): Defined.
82 (GC_restart_handler): Likewise.
83 (signal_thread): Add the Boehm-GC signals to the mask and call the
84 appropriate Boehm-function. This is a workaround for the
85 Boehm-LinuxThreads bug.
87 2007-05-29 12:34 twisti
89 * src/vm/signal.c (signal_init): Changed signature.
90 * src/vm/signallocal.h (signal_init): Likewise.
92 * src/vm/vm.c (vm_create): Call signal_init right after gc_init and
95 2007-05-29 12:22 twisti
97 * src/vm/access.c (string.h): Added.
98 (mm/memory.h): Likewise.
99 (vmcore/field.h): Likewise.
100 (vmcore/method.h): Likewise.
101 (access_check_member): Removed.
102 (access_check_field): New function.
103 (access_check_method): Likewise.
105 * src/vm/access.h (vmcore/field.h): Added.
106 (vmcore/method.h): Likewise.
107 (access_check_member): Removed.
108 (access_check_field): New function.
109 (access_check_method): Likewise.
111 * src/native/vm/gnu/java_lang_reflect_Method.c (invokeNative): Call
112 access_check_method instead of access_check_member.
114 * src/native/vm/gnu/java_lang_reflect_Constructor.c (constructNative):
117 * src/native/vm/gnu/java_lang_reflect_Field.c
118 (cacao_get_field_address): Call access_check_field instead of
123 * src/vm/jit/show.c (vm/vm.h) add missing include,
124 (_no_threads_filterverbosecallctr) fix type: u2 instead of u4
126 2007-05-29 11:30 twisti
128 * src/vm/jit/powerpc64/codegen.c (codegen_emit): Fixed warnings, some
131 2007-05-29 09:03 twisti
133 * src/vm/exceptions.c (exceptions_throw_illegalaccessexception):
135 * src/vm/exceptions.h: Likewise.
137 * src/vm/resolve.c (resolve_class_from_name): Make utf8-string out of
139 (resolve_subtype_check): Likewise.
140 (resolve_field_verifier_checks): Likewise.
141 (resolve_method_verifier_checks): Likewise.
143 2007-05-28 00:05 ajordan
145 * src/vm/jit/sparc64/codegen.h: Removed asserts for stores with sethi.
147 * src/vm/jit/sparc64/codegen.c: Added code to fill with nops when a
148 patcher is right at the
149 end of a basic block.
151 * src/vm/jit/sparc64/asmpart.S (asm_vm_call_method_end): Returning 0
152 when an exception occurs.
154 * src/vm/jit/sparc64/md.c (md_get_method_patch_address): Improved
155 handling of mptr loads when
160 * contrib/vmlog/vmlog.c: Use autoconf define WORDS_BIGENDIAN to
163 2007-05-25 15:23 twisti
165 * src/threads/threads-common.c (threads_thread_start_internal)
166 [WITH_CLASSPATH_CLDC1_1]: Set name to NULL, but this needs a fix.
167 (threads_thread_print_info) [ENABLE_JAVAME_CLDC1_1]: Set name to
170 2007-05-25 15:05 twisti
172 * src/vm/jit/optimizing/ifconv.c (vm/vm.h): Added.
173 (ifconv_static): Fixed warning, use vm_abort.
174 * src/vm/jit/powerpc/md.c (md_get_method_patch_address): Fixed
175 warning, use vm_abort.
177 2007-05-25 15:03 twisti
179 * src/vm/string.c (javastring_new_from_utf_buffer): Made static.
180 * src/vm/stringlocal.h (javastring_new_from_utf_buffer): Removed.
184 * src/vm/jit/show.h (show_filters_init, show_filters_apply,
185 show_filters_test_verbosecall_enter,
186 show_filters_test_verbosecall_exit): Added.
187 * src/vm/jit/show.c: Likewise.
188 * src/vm/jit/jit.c (jit_compile_intern): Honour filters.
189 * src/vm/jit/codegen-common.c (codegen_add_patch_ref,
190 codegen_generate_stub_native): Honour PATCHER_LONGBRANCHES_NOPS if
191 defined, honour filters.
192 * src/vm/builtin.c (builtin_trace_exception,
193 builtin_verbosecall_enter, builtin_verbosecall_exit): Honour filters.
194 * src/vm/signal.c (signal_init): Register SIGILL handler on s390.
195 * src/vm/vm.c: Handle -XXfi, -XXfe, -XXfm commandline options.
196 * src/vm/signallocal.h (md_signal_handler_sigill): Forward declare on
198 * src/threads/none/threads.h (_no_threads_filterverbosecallctr,
199 FILTERVERBOSECALLCTR): Added.
200 * src/threads/native/threads.h (struct threadobject): Added
201 filterverbosecallctr.
202 * src/threads/native/threads.c (threads_impl_thread_new): Initialize
203 filterverbosecallctr.
204 * src/threads/critical.c (critical_comparator): On s390, clear bit 32
205 of pointer when comparing.
206 * src/vmcore/options.h (opt_filter_verbosecall_include,
207 opt_filter_verbosecall_exclude, opt_filter_show_method): Added.
208 * src/vmcore/options.c: Likewise.
209 * src/vmcore/method.h (struct methodinfo): Added filtermatches.
210 * configure.ac: If no NDEBUG and regex.h header is present, define
212 * src/vm/jit/s390/emit.c,
213 src/vm/jit/s390/md.c,
214 src/vm/jit/s390/codegen.c,
215 src/vm/jit/s390/codegen.h,
216 src/vm/jit/s390/tests/dacapo.status,
217 src/vm/jit/s390/patcher.c: Changed a lot.
219 2007-05-24 13:25 michi
221 * src/vmcore/linker.c (link_class_intern) [__ARM_EABI__]: Fixed field
222 alignment bug. Double and Long fields are 8-byte aligned with EABI.
224 2007-05-24 10:23 twisti
226 * src/vm/jit/i386/linux/md-os.c (md_signal_handler_sigsegv): Fixed
229 2007-05-24 10:21 twisti
231 * src/threads/threads-common.c (mm/memory.h): Added.
232 (toolbox/list.h): Likewise.
233 (threads_table): Removed.
234 (list_threads, list_threads_free): Added.
235 (threads_preinit): Initialize lists.
236 (threads_table_init): Removed.
237 (threads_table_add): Likewise.
238 (threads_table_remove): Likewise.
239 (threads_table_get): Likewise.
240 (threads_table_get_threads): Likewise.
241 (threads_table_get_non_daemons): Likewise.
242 (threads_table_first): Likewise.
243 (threads_table_next): Likewise.
244 (threads_table_dump): Likewise.
245 (threads_list_first): New function.
246 (threads_list_next): Likewise.
247 (threads_list_get_non_daemons): Likewise.
248 (threads_thread_new): Likewise.
249 (threads_thread_free): Likewise.
250 (threads_thread_print_info): Added state-assert, print thread index.
251 (threads_thread_state_runnable): New function.
252 (threads_thread_state_waiting): Likewise.
253 (threads_thread_state_timed_waiting): Likewise.
254 (threads_thread_state_terminated): Likewise.
255 (threads_dump): Use threads-list functions.
257 * src/threads/threads-common.h: Likewise.
258 (threads_table_entry_t): Removed.
259 (threads_table_t): Likewise.
261 * src/threads/native/threads.c (mutex_threads_table): Renamed to
263 (threads_cast_sendsignals): Use threads-list functions.
264 (threads_table_lock): Renamed to threads_list_lock.
265 (threads_table_unlock): Renamed to threads_list_unlock.
266 (threads_startup_thread): Use threads-state functions.
267 (threads_detach_thread): Likewise.
268 (threads_wait_with_timeout): Likewise.
269 (threads_join_all_threads): Use threads-list functions.
271 * src/threads/native/threads.h (threadobject): Added linkage.
273 2007-05-23 23:56 ajordan
275 * src/vm/jit/sparc64/Makefile.am: Added missing emit.h.
277 2007-05-23 22:54 ajordan
279 * src/vm/jit/sparc64/Makefile.am:
280 md-asm.h was not properly added to noinst_HEADERS.
282 2007-05-23 22:04 twisti
284 * configure.ac (AM_INIT_AUTOMAKE): Added dist-bzip2.
286 2007-05-23 19:37 twisti
288 * src/threads/threads-common.h (THREAD_STATE_NEW)
289 (THREAD_STATE_RUNNABLE, THREAD_STATE_BLOCKED, THREAD_STATE_WAITING)
290 (THREAD_STATE_TIMED_WAITING, THREAD_STATE_TERMINATED): Start states
291 with 1, so we can catch unset states.
293 2007-05-23 19:11 twisti
295 * src/vm/jit/powerpc64/linux/md-os.c (md_critical_section_restart):
298 2007-05-23 18:28 twisti
300 * src/vm/jit/mips/Makefile.am (DIST_SUBDIRS): Added uclinux.
302 2007-05-23 18:08 twisti
304 * src/vmcore/statistics.c (statistics_print_memory_usage): Smaller
307 2007-05-23 18:05 twisti
309 * src/vm/jit/arm/linux/md-os.c,
310 src/vm/jit/alpha/linux/md-os.c,
311 src/vm/jit/i386/linux/md-os.c,
312 src/vm/jit/powerpc/linux/md-os.c,
313 src/vm/jit/powerpc64/linux/md-os.c,
314 src/vm/jit/x86_64/linux/md-os.c (md_critical_section_restart): Removed
317 2007-05-23 17:58 twisti
319 * src/threads/native/lock.c: Set Id keyword.
320 * src/threads/native/lock.h: Likewise.
322 2007-05-23 17:56 twisti
324 * src/native/vm/gnu/java_lang_VMClassLoader.c (getPrimitiveClass):
325 Return NULL in error case.
327 2007-05-23 17:53 twisti
329 * src/vm/jit/optimizing/profile.c: Set Id keyword.
331 2007-05-23 17:51 twisti
333 * src/vm/jit/optimizing/profile.c (profile_thread): Replaced table-
335 * src/vm/vm.c (vm_create): Use vm_abort for profile_start_thread.
337 2007-05-23 17:46 twisti
339 * src/vm/jit/jit.c (jit_compile_intern): Fixed typo.
341 2007-05-23 16:00 twisti
343 * src/vm/exceptions.c (exceptions_new_hardware_exception): Fixed
346 2007-05-23 15:57 twisti
348 * src/vm/jit/x86_64/md.c (md_get_method_patch_address): Fixed warning.
349 * src/vm/jit/x86_64/linux/md-os.c (md_signal_handler_sigsegv):
352 2007-05-23 15:43 twisti
354 * configure.ac (OPT_CFLAGS): Changed to -O2.
356 2007-05-23 15:25 twisti
358 * src/vm/jit/powerpc64/codegen.c (codegen_emit): ICMD_INSTANCEOF:
359 Removed unused supervftbl.
361 * src/vm/jit/emit-common.h [__POWERPC64__] (emit_bnan): Enabled.
363 2007-05-23 14:15 tbfg
365 * src/vm/jit/powerpc64/emit.c (MCODECHECK): Increase values to fix
367 * src/vm/jit/powerpc64/codegen.c (MCODECHECK): Increase values to fix
370 2007-05-23 13:09 twisti
372 * src/vmcore/linker.c (linker_compute_subclasses): We don't ship the
373 critical-section stuff with this release, since it's broken on some
374 architectures because of boehm.
376 2007-05-23 12:40 twisti
378 * src/vm/exceptions.c (threads/lock-common.h): Added.
379 [ENABLE_THREADS] (threads/native/threads.h): Removed.
380 [!ENABLE_THREADS] (threads/none/threads.h): Likewise.
381 (threads/threads-common.h): Added.
382 (new_exception_message): Removed.
383 (exceptions_throw_classcircularityerror): Use
384 exceptions_throw_utf_utf.
385 (exceptions_throw_classformaterror): Likewise.
386 (classnotfoundexception_to_noclassdeffounderror): Fixed warning.
387 (exceptions_throw_incompatibleclasschangeerror): Use
388 exceptions_throw_utf_utf.
389 (exceptions_throw_internalerror): Likewise.
390 (exceptions_throw_unsupportedclassversionerror): Likewise.
391 (exceptions_throw_verifyerror): Likewise.
392 (exceptions_throw_verifyerror_for_stack): Likewise.
393 (exceptions_new_arithmeticexception): Likewise.
394 (exceptions_new_classcastexception): Use exceptions_new_class_utf.
395 (exceptions_print_exception): Fixed warnings.
397 * src/vmcore/utf8.c (utf_division_by_zero): Added.
398 (utf8_init): Likewise.
400 * src/vmcore/utf8.h (utf_division_by_zero): Likewise.
402 2007-05-23 11:59 twisti
404 * src/vm/exceptions.c (new_exception_int): Removed.
405 * src/vm/exceptions.h (new_exception_int): Likewise.
407 * src/native/native.c (native_new_and_init_int): Likewise.
408 * src/native/native.h (native_new_and_init_int): Likewise.
410 2007-05-23 09:40 tbfg
412 * src/vm/jit/m68k/codegen.c (codegen_emit): Remove NOP after each
414 Add NOP generation at end of basci block when patcher is longer than
415 instruction to be patched.
417 * src/vm/jit/m68k/patcher.c (patcher_get_putfield): Implemented.
419 * src/vm/jit/m68k/codegen.h (COMPILERSTUB_CODESIZE): Correct value.
421 * src/vm/jit/codegen-common.c (codegen_increase): Enable NOP after
422 patcher generation at end of basic block.
424 2007-05-23 09:37 tbfg
426 * src/vm/jit/abi.h (abi_registers_address_name): Added.
427 (abi_registers_address_argument): Likewise.
428 (abi_registers_address_saved): Likewise.
429 (abi_registers_address_temporary): Likewise.
431 2007-05-22 11:18 twisti
433 * src/vm/jit/x86_64/md.c (md_get_method_patch_address): Replaced
434 assert with vm_abort.
436 2007-05-22 10:07 michi
438 * src/vm/jit/arm/codegen.c (codegen_emit_stub_native): Removed
439 obsolete SPLIT-stuff.
441 2007-05-22 07:21 michi
443 * src/vm/jit/arm/emit.c (emit_verbosecall_enter): Removed obsolete
446 2007-05-22 07:00 michi
448 * src/vm/jit/arm/md-abi.c (md_param_alloc): Align stack arguments as
450 * src/vm/jit/arm/asmpart.S (asm_vm_call_method): Use EABI internally.
452 2007-05-21 14:42 twisti
454 * src/vm/jit/arm/md-abi.c (md_param_alloc): Use EABI internally.
457 * src/vm/jit/arm/codegen.c (codegen_emit): Removed SPLIT-stuff.
458 * src/vm/jit/arm/emit.c (emit_store): Likewise.
460 2007-05-21 14:40 twisti
462 * src/vm/global.h (ALIGN_2): Added.
464 2007-05-21 11:45 michi
466 * src/vm/jit/arm/codegen.h (M_EORLE): Added.
468 * src/vm/jit/arm/codegen.c (codegen_emit): Fixed superindex overflow
469 for ICMD_INSTANCEOF and ICMD_CHECKCAST.
471 * src/vm/jit/arm/patcher.c (patcher_checkcast_instanceof_interface):
472 Adapted patcher to above changes.
474 2007-05-21 08:48 twisti
476 * src/native/include/Makefile.am (CLEANFILES): Simply clean an *.h
479 2007-05-21 08:27 twisti
481 * src/native/jni.c (_Jv_jni_CallLongMethodA): New function.
482 (_Jv_jni_CallFloatMethodA): Likewise.
483 (_Jv_jni_CallDoubleMethodA): Likewise.
484 (_Jv_JNI_CallStaticBooleanMethodA): Implemented.
485 (_Jv_JNI_CallStaticByteMethodA): Likewise.
486 (_Jv_JNI_CallStaticCharMethodA): Likewise.
487 (_Jv_JNI_CallStaticShortMethodA): Likewise.
488 (_Jv_JNI_CallStaticIntMethodA): Likewise.
489 (_Jv_JNI_CallStaticLongMethodA): Likewise.
490 (_Jv_JNI_CallStaticFloatMethodA): Likewise.
491 (_Jv_JNI_CallStaticDoubleMethodA): Likewise.
493 2007-05-18 15:05 twisti
495 * src/native/vm/cldc1.1/java_lang_Object.c (getClass): Fixed
498 2007-05-18 14:24 twisti
500 * src/vmcore/statistics.c (count_nstub_len): Renamed to
502 (statistics_print_memory_usage): Likewise.
504 * src/vmcore/statistics.h: Likewise.
506 * src/vm/jit/codegen-common.c (codegen_generate_stub_native):
507 Likewise, moved statistics-calculation after codegen_finish(), so
508 actually something is counted.
510 2007-05-18 14:22 twisti
512 * src/toolbox/list.c (list_create): Use LOCK_INIT_OBJECT_LOCK-macro.
514 2007-05-18 14:17 twisti
516 * src/threads/threads-common.c (threads_thread_get_state): Fixed
518 (threads_thread_is_alive): Likewise.
520 2007-05-18 13:45 twisti
522 * src/native/vm/cldc1.1/java_lang_String.c (methods): Removed
525 * src/native/vm/cldc1.1/java_lang_Throwable.c (fillInStackTrace):
528 2007-05-18 13:12 twisti
530 * src/native/native.c (native_tree_native_methods_comparator): Compare
531 classname, name and descriptor.
532 (native_method_register): Set all structure members.
533 (native_method_find): Changed argument-type to methodinfo.
534 (native_resolve_function): Likewise.
536 * src/native/native.h (native_methods_node_t): Added classname and
537 descriptor, renamed method to function.
539 * src/native/vm/gnu/java_lang_VMClass.c: Updated wrong signatures.
540 * src/native/vm/gnu/java_lang_VMObject.c: Likewise.
541 * src/native/vm/gnu/java_lang_VMThread.c: Likewise.
542 * src/native/vm/gnu/java_lang_reflect_Constructor.c: Likewise.
544 2007-05-16 09:01 twisti
546 * src/native/native.c (native_library_open): New function.
547 (native_hashtable_library_add): Renamed to native_library_add.
548 (native_hashtable_library_find): Renamed to native_library_find.
549 * src/native/native.h: Likewise.
551 * src/native/vm/java_lang_Runtime.c (loadLibrary): Use
554 2007-05-16 08:02 twisti
556 * src/native/native.c: Removed all native-includes.
557 (dummynativetable): Removed.
558 (mainhandle): Likewise.
559 (native_init): Don't dlopen libjvm, initialize the native-methods
561 (native_tree_native_methods_comparator): New function.
562 (native_method_symbol): Likewise.
563 (native_method_find): Likewise.
564 (native_resolve_function): Use native-methods tree for internal native
567 * src/native/native.h (native/jni.h): Added.
568 (NATIVE_METHODS_COUNT): Defined.
569 (native_methods_node_t): New structure.
570 (native_method_register): Added.
572 * src/native/vm/nativevm.c: New file.
573 * src/native/vm/nativevm.h: Likewise.
575 * src/native/vm/Makefile.am (libnativevm_la_SOURCES): Added
578 * src/native/vm/cldc1.1/com_sun_cldc_io_ResourceInputStream.c,
579 src/native/vm/cldc1.1/com_sun_cldc_io_j2me_socket_Protocol.c,
580 src/native/vm/cldc1.1/com_sun_cldchi_io_ConsoleOutputStream.c,
581 src/native/vm/cldc1.1/com_sun_cldchi_jvm_JVM.c,
582 src/native/vm/cldc1.1/java_lang_Class.c,
583 src/native/vm/cldc1.1/java_lang_Double.c,
584 src/native/vm/cldc1.1/java_lang_Float.c,
585 src/native/vm/cldc1.1/java_lang_Math.c,
586 src/native/vm/cldc1.1/java_lang_Object.c,
587 src/native/vm/cldc1.1/java_lang_Runtime.c,
588 src/native/vm/cldc1.1/java_lang_String.c,
589 src/native/vm/cldc1.1/java_lang_System.c,
590 src/native/vm/cldc1.1/java_lang_Thread.c,
591 src/native/vm/cldc1.1/java_lang_Throwable.c,
592 src/native/vm/gnu/gnu_classpath_VMStackWalker.c,
593 src/native/vm/gnu/gnu_classpath_VMSystemProperties.c,
594 src/native/vm/gnu/gnu_java_lang_management_VMClassLoadingMXBeanImpl.c,
595 src/native/vm/gnu/gnu_java_lang_management_VMMemoryMXBeanImpl.c,
596 src/native/vm/gnu/gnu_java_lang_management_VMRuntimeMXBeanImpl.c,
597 src/native/vm/gnu/gnu_java_lang_management_VMThreadMXBeanImpl.c,
598 src/native/vm/gnu/java_lang_VMClass.c,
599 src/native/vm/gnu/java_lang_VMClassLoader.c,
600 src/native/vm/gnu/java_lang_VMObject.c,
601 src/native/vm/gnu/java_lang_VMRuntime.c,
602 src/native/vm/gnu/java_lang_VMString.c,
603 src/native/vm/gnu/java_lang_VMSystem.c,
604 src/native/vm/gnu/java_lang_VMThread.c,
605 src/native/vm/gnu/java_lang_VMThrowable.c,
606 src/native/vm/gnu/java_lang_management_VMManagementFactory.c,
607 src/native/vm/gnu/java_lang_reflect_Constructor.c,
608 src/native/vm/gnu/java_lang_reflect_Field.c,
609 src/native/vm/gnu/java_lang_reflect_Method.c,
610 src/native/vm/gnu/java_lang_reflect_VMProxy.c,
611 src/native/vm/gnu/java_security_VMAccessController.c,
612 src/native/vm/gnu/sun_misc_Unsafe.c: Added methods table and init
613 function to register the native methods.
615 2007-05-15 10:32 tbfg
617 * src/vm/jit/powerpc64/patcher.c
618 (patcher_resolve_classref_to_classinfo): Patch back original code.
620 (patcher_resolve_classref_to_vftbl): Likewise.
621 (patcher_resolve_classref_to_flags): Likewise.
623 * src/vm/jit/powerpc64/asmpart.S (DARWIN): Removed all darwin
624 ifdefed code for readability. Needs to be ported carefully anyways.
626 (asm_vm_call_method): When handling arguments treat address type as
629 2007-05-15 09:55 christian
631 * src/vm/jit/codegen-common.c: (codegen_emit_phi_moves): Added.
633 codegen_insert_phi_moves from codegen.c)
635 * src/vm/jit/codegen-common.h: Function prototype for
636 codegen_emit_phi_moves
639 * src/vm/jit/optimizing/lsra.c: Adapted to new instruction format and
643 * src/vm/jit/optimizing/lsra.h: Likewise.
645 * src/vm/jit/optimizing/ssa.c: Likewise.
647 * src/vm/jit/optimizing/ssa.h: Likewise.
649 * src/vm/jit/optimizing/graph.c: Likewise.
651 * src/vm/jit/optimizing/graph.h: Likewise.
653 * src/vm/jit/optimizing/dominators.c: Likewise.
655 * src/vm/jit/optimizing/lifetimes.c: Likewise and changed lifetime
657 a worklist algorithmus.
659 * src/vm/jit/optimizing/lifetimes.h: Likewise.
661 * src/vm/jit/i386/codegen.c: (codegen_insert_phi_moves): Moved to
662 src/vm/jit/codegen-common.c codegen_emit_phi_moves
663 (codegen_emit): Necessary Adaptions for SSA.
665 * src/toolbox/worklist.c: (wl_reset): Added.
667 * src/toolbox/worklist.h: Function Prototype for wl_reset added.
669 * src/vm/jit/stack.c: Removed old SSA specific code.
671 2007-05-15 09:25 tbfg
673 * builtin.c (builtin_ldiv): Needed when DISABLE_GC.
675 2007-05-14 17:25 twisti
677 * src/native/native.c (native_class_getdeclaredannotations): Removed.
679 2007-05-14 14:11 twisti
681 * src/toolbox/list.c (list_add_first): Call list_add_first_unsynced.
682 (list_add_first_unsynced): New function.
683 * src/toolbox/list.h (list_add_first_unsynced): Added.
685 2007-05-14 13:29 twisti
687 * src/threads/threads-common.c (threads_create_thread): Renamed to
689 (threads_thread_free): New function.
690 (threads_preinit): Renamed threads_create_thread to
692 (threads_thread_start_internal): Likewise.
693 (threads_thread_start): Likewise.
695 * src/threads/threads-common.h (threads_create_thread): Renamed to
697 (threads_thread_free): Added.
698 (threads_init_threadobject): Renamed to threads_impl_thread_new.
699 (threads_impl_thread_free): Added.
701 * src/threads/native/threads.c (toolbox/avl.h): Removed.
702 (threadattr): Likewise.
703 (threads_init_threadobject): Renamed to threads_impl_thread_new.
704 (threads_impl_thread_free): New function.
705 (threads_init): Use local pthread_attr_t.
706 (threads_impl_thread_start): Use pthread_attr_setdetachstate (fixes
707 memory leak), check more return values of pthread-calls.
708 (threads_attach_current_thread): Renamed threads_create_thread to
710 (threads_detach_thread): Removed lock-record pools comment, call
713 2007-05-14 11:15 tbfg
715 * src/vm/jit/dseg.h (dseg_adddata): Removed warning due to typo.
717 * src/vm/jit/m68k/arch.h (SUPPORT_LONG) Defined.
718 (SUPPORT_LONG_ADD): Defined.
719 (SUPPORT_CONST_LOGICAL): Defined.
721 * src/vm/jit/m68k/codegen.c (ICMD_LADD): Implemented.
722 (ICMD_LADDCONST): Implemented.
723 (ICMD_LSUB): Implemented.
724 (ICMD_LSUBCONST): Implemented.
725 (ICMD_LNEG): Implemented.
727 * src/vm/jit/m68k/codegen.h (M_ISUBX): Added.
730 2007-05-11 22:33 twisti
732 * configure.ac (AC_CHECK_HEADERS): Added time.h.
733 (AC_CHECK_FUNCS): Added localtime, localtime_r, time.
735 * src/vmcore/statistics.c [HAVE_TIME_H] (time.h): Added.
736 (statistics_print_date): New function.
737 * src/vmcore/statistics.h (statistics_print_date): Added.
739 * src/mm/memory.c (memory_thread) [ENABLE_STATISTICS]: Call
740 statistics_print_date.
742 2007-05-11 21:18 twisti
744 * src/vmcore/statistics.c (statistics_print_memory_usage): Use
745 log_println instead of printf.
747 2007-05-11 20:35 twisti
749 * src/vm/jit/arm/codegen.c (codegen_emit): Use
750 CODEGEN_CRITICAL_SECTION_* macros.
752 * src/vm/jit/arm/linux/md-os.c (thread_restartcriticalsection):
753 Renamed to md_critical_section_restart.
755 2007-05-11 19:31 twisti
757 * src/threads/threads-common.c (threads_create_thread): Removed
758 lock_init_execution_env.
760 * src/threads/lock-common.h (lock_init_execution_env): Removed.
761 (lock_record_free_pools): Likewise.
763 * src/threads/native/threads.h (threadobject): Removed ee.
765 * src/threads/native/lock.c (vm/finalizer.h): Added.
766 [ENABLE_GC_BOEHM] (mm/boehm-gc/include/gc.h): Likewise.
767 (lock_global_pool): Removed.
768 (lock_global_pool_lock): Likewise.
769 (lock_init): Don't initialize lock_global_pool_lock.
770 (lock_record_init): Removed.
771 (lock_init_execution_env): Likewise.
772 (lock_record_alloc_new_pool): Likewise.
773 (lock_record_alloc_pool): Likewise.
774 (lock_record_free_pools): Likewise.
775 (lock_record_alloc): Likewise.
776 (lock_record_recycle): Likewise.
777 (lock_hashtable_get_lock_record): Renamed to lock_hashtable_get.
778 (lock_record_new): New function.
779 (lock_record_free): Likewise.
780 (lock_hashtable_remove): Likewise.
781 [ENABLE_GC_BOEHM] (lock_record_finalizer): Likewise.
783 * src/threads/native/lock.h (lock_execution_env_t): Removed.
784 (lock_record_pool_header_t): Likewise.
785 (lock_record_pool_t): Likewise.
786 (lock_record_t): Renamed obj to object, removed nextfree.
787 [ENABLE_JVMTI] (lock_global_pool_lock, lock_global_pool): Removed.
789 * src/vmcore/statistics.c (size_lock_record_pool): Renamed to
791 (statistics_print_memory_usage): Likewise.
792 * src/vmcore/statistics.h: Likewise.
794 2007-05-11 18:58 tbfg
796 * src/vm/jit/m68k/linux/md-abi.h (ADR_SAV_CNT): Increased by one
798 (ADR_RES_CNT): Decreased by one (%fp).
800 * src/vm/jit/m68k/linux/md-abi.c (nregdescadr): Declared %fp a
803 * src/vm/jit/m68k/arch.h (SUPPORT_DIVISION): Defined.
806 * src/vm/jit/m68k/asmpart.S (asm_handle_exception): Additional
807 logic to restore %fp when unwinding the stack.
809 2007-05-11 18:23 twisti
811 * src/threads/native/threads.h (threadobject): Removed next and prev.
813 2007-05-11 17:15 tbfg
815 * src/vm/jit/m68k/codegen.c (codegen_emit): Fix stackframesize
816 allocation in not synchronized methods which call a builtin returning
817 a double. Merged with ENABLE_THREADS case.
818 Added code to copy interface registers.
820 * src/vm/jit/m68k/asmpart.S (asm_handle_exception):
821 Save temporary registers, dunno if really needed, but its a
824 2007-05-10 14:34 tbfg
826 * src/vm/jit/m68k/emit.c (emit_verbosecall_enter): Make SOFTFLOAT
828 (emit_verbosecall_exit): Likewise.
830 * src/vm/jit/m68k/asmpart.S (asm_vm_call_method): Mark comment about
833 * src/vm/jit/m68k/codegen.h (M_D2F): Fixed.
836 2007-05-10 14:04 twisti
838 * src/vmcore/options.c (opt_verbosethreads): Added.
839 * src/vmcore/options.h (opt_verbosethreads): Likewise.
841 * src/vm/vm.c (XXusage): Added -verbose:threads.
842 (vm_create): Likewise.
844 * src/threads/threads-common.c (threads_create_thread): Renamed
845 variable thread to t.
846 (threads_thread_print_info): New function.
847 (threads_dump): Use threads_thread_print_info.
849 * src/threads/threads-common.h (threads_thread_print_info): Added.
851 * src/threads/native/threads.c (threads_init) [!NDEBUG]: Added
852 -verbose:threads debug-output.
853 (threads_startup_thread): Likewise.
854 (threads_attach_current_thread): Likewise.
855 (threads_detach_thread): Likewise.
857 2007-05-10 13:27 twisti
859 * src/threads/threads-common.c (threads_thread_start_internal): Set
861 (threads_thread_start): Likewise.
863 * src/threads/native/threads.c (threads_startup_thread): Don't set
866 2007-05-10 12:50 tbfg
868 * src/vm/jit/powerpc64/patcher.c (patcher_checkcast_interface):
869 Fixed not flushing all bytes written.
871 2007-05-09 16:37 tbfg
873 * src/vm/jit/powerpc64/codegen.c (ICMD_CHECKCAST): Use
874 branch_label_* instead of harcoded jump offsets.
876 (ICMD_INSTANCEOF): Likewise.
878 2007-05-09 16:05 twisti
880 * src/lib/Makefile.am (VM_JAVA_FILES): Renamed vm/reference/ to gnu/.
882 * src/lib/vm: Removed.
883 * src/lib/gnu: Added.
884 * src/lib/gnu/java: Likewise.
885 * src/lib/gnu/gnu: Likewise.
887 2007-05-09 08:52 tbfg
889 * src/vm/jit/m68k/linux/md-abi.h (LA_SIZE_IN_POINTERS): Defined 0.
890 (PA_SIZE_IN_POINTERS): Removed.
892 (LA_LR_OFFSET): Removed.
893 (LA_SIZE_ALIGNED): Removed.
895 * src/vm/jit/m68k/emit.c (emit_verbosecall_enter): Removed
896 linking instructions, save only used registers.
898 (emit_verbosecall_exit): Likewise.
900 * src/vm/jit/m68k/arch.h (SUPPORT_FLOAT): Depends on
901 configure option ENABLE_SOFTFLOAT.
903 * src/vm/jit/m68k/codegen.c (codegen_emit): Use M_FSTORE/M_FLOAT
904 to save/restore float registers without converting any values.
905 Fixed offset of IsSync.
907 (codegen_emit_stub_native): Move floating point return values
908 into floating point registers.
910 * src/vm/jit/m68k/asmpart.S (asm_vm_call_method): Save/restore
911 floating point registers.
913 (asm_call_jit_compiler): Save/restore volatile floating point
916 (asm_patcher_wrapper): Likewise.
918 (asm_handle_exception): Use fmovemd instructions to restore
919 floatng point registers without converting.
921 * src/vm/jit/m68k/codegen.h (M_FSTORE): Added.
924 2007-05-09 08:36 tbfg
926 * src/vm/jit/powerpc64/linux/md-os.c (thread_restartcriticalsection):
927 Renamed to md_critical_section_restart.
929 * src/vm/jit/powerpc64/codegen.c (codegen_emit): Use
930 CODEGEN_CRITICAL_SECTION_* macros.
932 2007-05-08 13:03 twisti
934 * src/configure.ac (AC_CHECK_HEADERS): Added string.h.
935 (AC_CHECK_FUNCS): Added strdup.
937 * src/src/vmcore/options.c [HAVE_STRING_H] (string.h): Added #ifdef.
938 (options_get) HAVE_STRDUP]: Added.
940 2007-05-07 21:34 twisti
942 * src/vm/jit/alpha/codegen.c (codegen_emit): Use
943 CODEGEN_CRITICAL_SECTION_* macros.
945 * src/vm/jit/alpha/linux/md-os.c (thread_restartcriticalsection):
946 Renamed to md_critical_section_restart.
948 2007-05-07 21:29 twisti
950 * src/threads/native/threads.c (mainthreadobj): Removed.
951 * src/threads/native/threads.h (mainthreadobj): Likewise.
953 * src/vm/jit/optimizing/profile.c (threads/native/threads.h):
955 (profile_thread): Rewritten thread iteration.
957 2007-05-07 15:07 ajordan
959 * src/vm/jit/sparc64/codegen.c (codegen_emit): Adapted to critical
961 * src/vm/jit/sparc64/linux/md-os.c: Likewise.
963 2007-05-07 14:26 tbfg
965 * src/vm/jit/m68k/codegen.c (ICMD_FNEG): Implemented.
966 (ICMD_DNEG): Implemented.
968 * src/vm/jit/m68k/asmpart.S (asm_call_jit_compiler):
969 Store volatile floatregisters.
970 (asm_patcher_wrapper): Likewise.
971 (asm_handle_exception): Restore float registers.
973 * src/vm/jit/m68k/codegen.h (M_FNEG): Added.
976 2007-05-07 14:23 tbfg
978 * tests/exception_restore_registers.java: New test, tests if
979 variables get restored in case of exceptions.
981 * tests/exception_restore_registers.output: New file, expected
984 * tests/Makefile.am: Added exception_restore_registers target.
986 2007-05-07 14:16 twisti
988 * configure.ac (AC_CONFIG_FILES): Added
989 src/vm/jit/mips/uclinux/Makefile.
991 * src/vm/jit/mips/uclinux: New directory.
992 * src/vm/jit/mips/uclinux/md-os.c: New file.
993 * src/vm/jit/mips/uclinux/Makefile.am: Likewise.
995 2007-05-07 14:13 twisti
997 * src/vm/jit/mips/codegen.c (codegen_emit): Use
998 CODEGEN_CRITICAL_SECTION_* macros.
1000 * src/vm/jit/mips/linux/md-os.c (thread_restartcriticalsection):
1001 Renamed to md_critical_section_restart.
1003 2007-05-07 13:45 twisti
1005 * configure.ac (AC_CHECK_HEADERS): Added sys/mman.h, sys/resource.h.
1006 (AC_CHECK_FUNCS): Added getrusage, mprotect.
1008 * src/vmcore/statistics.c [HAVE_SYS_TIME_H] (sys/time.h): Include
1010 [HAVE_SYS_RESOURCE_H] (sys/resource.h): Likewise.
1011 (getcputime) [!HAVE_GETRUSAGE]: Return 0.
1013 2007-05-07 13:31 twisti
1015 * src/native/vm/java_lang_Thread.h (threads/native/threads.h):
1018 2007-05-07 13:02 tbfg
1020 * src/vm/jit/m68k/arch.h (SUPPORT_FLOAT): Enabled.
1021 (SUPPORT_FLOAT_CMP): Enabled.
1022 (SUPPORT_DOUBLE): Enabled.
1023 (SUPPORT_DOUBLE_CMP): Enabled.
1025 * src/vm/jit/m68k/codegen.c (ICMD_FCMPL): Implemented.
1026 (ICMD_DCMPL): Likewise.
1027 (ICMD_FCMPG): Likewise.
1028 (ICMD_DCMPG): Likewise.
1029 (ICMD_FMUL): Likewise.
1030 (ICMD_DMUL): Likewise.
1031 (ICMD_FDIV): Likewise.
1032 (ICMD_DDIV): Likewise.
1033 (ICMD_FADD): Likewise.
1034 (ICMD_DADD): Likewise.
1035 (ICMD_FSUB): Likewise.
1036 (ICMD_DSUB): Likewise.
1037 (ICMD_F2D): Likewise.
1038 (ICMD_D2F): Likewise.
1039 (ICMD_BUILTIN): Handle float return values.
1040 (codegen_emit_stub_native): Handle float values.
1042 * src/vm/jit/m68k/codegen.h (M_FCMP): Added.
1058 2007-05-07 11:37 twisti
1060 * src/threads/threads-common.c (threads_dump): Typo.
1062 2007-05-07 11:35 twisti
1064 * src/threads/threads-common.c (threads_table_get): Made static and
1066 (threads_dump): Lock threads table.
1068 * src/threads/threads-common.h (threads_table_get): Removed.
1070 * src/threads/native/threads.c (threads_cast_stopworld): Lock threads
1072 (threads_cast_startworld): Likewise.
1074 2007-05-07 01:44 ajordan
1076 * src/vm/jit/sparc64/codegen.c (codegen_emit_stub_native): Fixed fp
1078 * src/vm/jit/sparc64/md-abi.h: Likewise.
1080 * src/vm/jit/sparc64/asmpart.S (asm_vm_call_method): Likewise, but
1081 the other way around.
1082 * src/vm/jit/sparc64/md-asm.h: Likewise.
1084 2007-05-06 22:20 tbfg
1086 * src/vm/jit/m68k/codegen.c (codegen_emit): Allocate 2 additional
1087 words in stackframe for long to double conversion.
1089 * src/vm/jit/m68k/asmpart.S (asm_handle_exception): Copy exception
1090 object into correct register.
1092 * src/vm/jit/m68k/codegen.h (M_FLD): Implemented.
1096 (M_FLTMOVE): Likewise.
1097 (M_INT2FLTMOVE): Likewise.
1098 (M_DBLMOVE): Likewise.
1101 2007-05-06 13:32 ajordan
1103 * src/vm/jit/sparc64/codegen.c: Implemented threads support.
1104 * src/vm/jit/sparc64/machine-instr.h: Likewise.
1105 * src/vm/jit/sparc64/linux/md-os.c: Likewise.
1107 2007-05-05 13:48 tbfg
1109 * src/vm/jit/m68k/emit.c (emit_patcher_stubs): Add thread
1111 (emit_exception_check_areg): Removed dead code.
1113 * src/vm/jit/m68k/codegen.c (codegen_emit): Add thread support.
1115 * src/vm/jit/m68k/asmpart.S (asm_patcher_wrapper): Likewise.
1117 2007-05-05 13:46 tbfg
1119 * linker.c (linker_compute_subclasses):
1120 threads_cast_[start|stop]world only available when using GC.
1124 * contrib/vmlog/Makefile.am (AM_CPPFLAGS): Add include directories
1126 * src/vm/Makefile.am: Likewise.
1128 2007-05-04 10:13 tbfg
1130 * linker.c (linker_compute_subclasses): Only call
1131 threads_cast_[start|stop]world when ENABLE_THREADS.
1133 2007-05-03 23:31 tbfg
1135 * src/vm/jit/m68k/md.c (md_stacktrace_get_returnaddress): Removed
1136 braindead address check and fixed the real bug.
1138 * src/vm/jit/m68k/asmpart.S (asm_vm_call_method): Added float
1140 (asm_call_jit_compiler): Fixed stack offset bug.
1142 2007-05-03 22:32 twisti
1144 * src/vm/jit/x86_64/codegen.c (codegen_emit): Use
1145 CODEGEN_CRITICAL_SECTION_* macros.
1147 * src/vm/jit/x86_64/linux/md-os.c (thread_restartcriticalsection):
1148 Renamed to md_critical_section_restart.
1150 2007-05-03 21:29 twisti
1152 * src/vm/jit/i386/codegen.c (codegen_emit): Use
1153 CODEGEN_CRITICAL_SECTION_* macros.
1155 * src/vm/jit/i386/linux/md-os.c (thread_restartcriticalsection):
1156 Renamed to md_critical_section_restart.
1158 2007-05-03 21:17 twisti
1160 * src/threads/critical.c (critical_compare): Renamed to
1161 critical_comparator.
1162 (critical_find): Removed.
1163 (critical_register_critical_section): Renamed to
1164 critical_section_register.
1165 (critical_find_restart_point): Call avl_find.
1166 (critical_register_asm_critical_sections): Call
1167 critical_section_register.
1169 * src/threads/critical.h (critical_section_node_t): Renamed members.
1170 (thread_restartcriticalsection): Renamed to
1171 md_critical_section_restart.
1173 * src/threads/native/threads.c (threads_cast_darwinstop): Call
1174 md_critical_section_restart.
1175 (threads_sigsuspend_handler): Likewise.
1177 * src/vmcore/linker.c (linker_compute_subclasses): Call
1178 threads_cast_{start,stop}world, removed LOCK_MONITOR_{ENTER,EXIT}.
1180 * src/cacaoh/dummy.c (threads_cast_stopworld): Added.
1181 (threads_cast_startworld): Likewise.
1183 * src/vm/jit/codegen-common.c (codegen_setup): Setup listcritical.
1184 (codegen_reset): Likewise.
1185 (codegen_critical_section_new): New function.
1186 (codegen_critical_section_start): Likewise.
1187 (codegen_critical_section_end): Likwise.
1188 (codegen_critical_section_finish): Likewise.
1189 (codegen_finish): Call codegen_critical_section_finish.
1190 (codegen_threadcritrestart): Removed.
1191 (codegen_threadcritstart): Likewise.
1192 (codegen_threadcritstop): Likewise.
1194 * src/vm/jit/codegen-common.h (codegen_critical_section_t): Renamed to
1195 critical_section_ref_t.
1196 (codegendata): Added listcritical, removed threadcrit,
1197 threadcritcurrent and threadcritcount.
1198 (CODEGEN_CRITICAL_SECTION_NEW, CODEGEN_CRITICAL_SECTION_START)
1199 (CODEGEN_CRITICAL_SECTION_END): Defined.
1201 * src/vm/jit/powerpc/codegen.c (codegen_emit): Use
1202 CODEGEN_CRITICAL_SECTION_* macros.
1204 * src/vm/jit/powerpc/linux/md-os.c (thread_restartcriticalsection):
1205 Renamed to md_critical_section_restart.
1207 2007-05-03 20:58 twisti
1209 * src/mm/boehm-gc/include/gc.h (GC_HAVE_BUILTIN_BACKTRACE): Commented,
1210 we don't need it and uClibc doesn't have it.
1212 2007-05-03 14:53 twisti
1214 * src/toolbox/avl.c (toolbox/logging.h): Added.
1215 (vm/global.h): Likewise.
1216 (vm/vm.h): Likewise.
1217 (avl_insert_intern): Use vm_abort instead of assert.
1218 (avl_insert): Removed debug code.
1219 (avl_dump): Use logging functions.
1221 2007-05-03 13:49 twisti
1223 * src/vm/jit/codegen-common.c (codegen_start_native_call)
1224 [ENABLE_JAVASE]: This has to be ENABLE_JNI.
1225 (codegen_finish_native_call): Likewise.
1227 2007-05-03 12:30 twisti
1229 * src/toolbox/avl.c (avl_insert_intern): Changed order of
1230 comparator-arguments.
1231 (avl_find): Likewise.
1233 * src/toolbox/avl.h (avl_comparator): Renamed arguments, to reflect
1236 * src/vm/jit/codegen-common.c (methodtree_comparator): Likewise.
1238 2007-05-03 08:29 twisti
1240 * src/toolbox/avl.h (avl_tree): Renamed to avl_tree_t.
1241 (avl_node): Renamed to avl_node_t.
1243 * src/toolbox/avl.c: Likewise.
1244 * src/threads/critical.c: Likewise.
1245 * src/vm/jit/codegen-common.c: Likewise.
1247 2007-05-03 08:16 twisti
1249 * contrib/check_dangerous_printf.pl: Removed this file in favor of
1252 2007-05-03 00:33 tbfg
1254 * src/vm/jit/m68k/codegen.c (ICMD_CALOAD): Fixed.
1256 * src/vm/jit/m68k/patcher.c (*): Removed patching back of
1257 old opcodes from patcher_wrapper, moved into each patcher.
1258 (patcher_patch_back): Added.
1260 2007-05-02 22:28 tbfg
1262 * src/vm/jit/m68k/codegen.c (ICMD_IDIVPOW2): Fixed.
1264 (ICMD_LASTORE): Use M_LST.
1265 (ICMD_DASTORE): Use M_LST.
1266 (ICMD_LALOAD): Use M_LLD.
1267 (ICMD_DALOAD): Use M_LLD.
1269 2007-05-02 20:46 twisti
1271 * src/native/vm/cldc1.1/java_lang_Float.c (native/native.h): Removed.
1272 (native/include/java_lang_Float.h): Added.
1274 2007-05-02 20:44 twisti
1276 * src/native/vm/cldc1.1/java_lang_Double.c
1277 (native/include/java_lang_Double.h): Added.
1278 (longBitsToDouble): Fixed return type.
1280 2007-05-02 20:40 twisti
1282 * src/threads/threads-common.c (threads_table_get_threads): New
1285 * src/threads/threads-common.h (threads_table_get_threads): Added.
1287 * src/threads/native/threads.c (threads_cast_sendsignals): Rewritten.
1288 (threads_cast_stopworld): Likewise.
1290 2007-05-02 20:36 tbfg
1292 * java_lang_Double.c (Java_java_lang_Double_doubleToLongBits): Added
1293 missing JNIEnv* argument to signature.
1295 2007-05-02 19:57 twisti
1297 * src/vmcore/class.c (class_load_attributes): Disable annotation
1298 loading for the release.
1300 2007-05-02 16:21 twisti
1302 * src/threads/threads-common.c (threads_preinit): Create and
1303 initialize the main-thread.
1304 (threads_table_init): Changed signature, insert main-thread and
1305 maintain a used list too.
1306 (threads_table_add): Use locking and maintain used list.
1307 (threads_table_remove): Likewise.
1308 (threads_table_get): New function.
1309 (threads_table_get_non_daemons): Likewise.
1310 (threads_table_first): Likewise.
1311 (threads_table_next): Likewise.
1312 [!NDEBUG] (threads_table_dump): Use log_* functions.
1313 (threads_dump): Use threads-table and functions.
1315 * src/threads/threads-common.h (threads_table_entry_t): Made a struct
1316 and renamed nextfree to next.
1317 (threads_table_get): Added
1318 (threads_table_get_non_daemons): Likewise.
1319 (threads_table_first): Likewise.
1320 (threads_table_next): Likewise.
1321 [!NDEBUG] (threads_table_dump): Likewise.
1322 (threads_impl_table_init): Likewise.
1323 (threads_table_lock): Likewise.
1324 (threads_table_unlock): Likewise.
1325 (threads_set_current_threadobject): Likewise.
1327 * src/threads/native/threads.c (threadlistlock): Removed.
1328 (threads_impl_preinit): Removed main-thread initialization code.
1329 (threads_impl_table_init): New function.
1330 (threads_table_lock): New function.
1331 (threads_table_unlock): Likewise.
1332 (threads_init): Get main-thread from threads-table and removed
1334 (threads_attach_current_thread): Likewise.
1335 (threads_detach_thread): Removed thread-list code.
1336 (threads_find_non_daemon_thread): Removed.
1337 (threads_join_all_threads): Use threads_table_get_non_daemons.
1339 2007-05-02 09:57 twisti
1341 * src/vm/jit/powerpc/linux/md-os.c (md_signal_handler_sigsegv): Added
1343 (md_signal_handler_sigtrap): Likewise.
1344 (md_signal_handler_sigusr2): Likewise.
1345 (thread_restartcriticalsection): Likewise.
1349 * src/vm/jit/s390/md.c (md_dump_context): Added. Fatal signals now
1350 print the context and a stacktrace.
1351 * src/vm/jit/s390/emit.h (emit_restore_pv): Added. Fixes bug where
1352 REG_PV recalculation uses dseg value to recalculate REG_PV.
1353 * src/vm/jit/s390/emit.c: Likewise.
1354 * src/vm/jit/s390/codegen.h (N_RI, N_RI2): Test immediate operand for
1356 * src/vm/jit/s390/codegen.c (codegen_emit): Use emit_restore_pv for
1357 REG_PV recalculation/
1358 * src/vm/jit/s390/disass.c (disass_pseudo_instr): Fix formating.
1359 * src/vm/jit/s390/tests/dacapo.status: Added.
1361 2007-05-01 17:35 ajordan
1363 * src/vm/jit/sparc64/codegen.h: Removed unused var_to_reg_int define.
1365 * src/vm/jit/sparc64/codegen.c: Fixed JIT float argument passing via
1368 * src/vm/jit/sparc64/asmpart.S (asm_vm_call): Fixed integer argument
1369 passing via stack args.
1373 * src/vm/jit/s390/codegen.h (gen_bound_check,
1374 gen_nullptr_check_intern, gen_bound_check, N_LONG_0): Remove because
1379 * src/vm/jit/s390/codegen.c (codegen_emit): Use new emit_label and
1380 emit_label_* functions.
1381 * src/vm/jit/s390/disass.c (disass_pseudo_instr): Nicer formatting
1382 for ill pseudo instruction.
1386 * src/vm/jit/emit-common.h (BRANCH_LABEL_6): Added.
1388 2007-05-01 13:00 tbfg
1390 * src/vm/jit/m68k/linux/md-os.c (md_signal_handler_sigill): Support
1391 EXCEPTION_HARDWARE_ARITHMETIC.
1393 * src/vm/jit/m68k/emit.c (emit_mov_imm_reg): Use corret opcode for
1396 * src/vm/jit/m68k/codegen.c (ICMD_IDIVPOW2): Implemented.
1397 (ICMD_IREMPOW2): Implemented.
1398 (ICMD_ISHLCONST): Fixed.
1399 (ICMD_ISHRCONST): Fixed.
1400 (ICMD_IUSHRCONST): Fixed.
1401 (ICMD_SALOAD): Signextension fix.
1402 (ICMD_LALOAD): Implemented.
1403 (ICMD_LASTORE): Fixed.
1404 (ICMD_IASTORE): Fixed.
1405 (ICMD_MULITANEWARRAY): Fixed.
1407 * src/vm/jit/m68k/codegen.h (M_IADDX): Added.
1411 2007-04-30 12:44 tbfg
1413 * src/vm/jit/m68k/asmpart.S (asm_handle_exception): Restore registers
1416 2007-04-30 11:58 twisti
1418 * src/vm/jit/inline/Makefile.am (AM_CPPFLAGS): Added
1419 -I$(top_builddir)/src.
1421 2007-04-30 10:53 tbfg
1423 * src/vm/jit/m68k/emit.c (emit_mov_imm_reg): Fixed.
1424 (emit_arithmetic_check): Implemented.
1426 * src/vm/jit/m68k/md.c (md_get_method_patch_address): Changed invoking
1428 (md_stacktrace_get_returnaddress): Fix for linking words on stack.
1430 * src/vm/jit/m68k/codegen.c (IUSHRCONST): Fix.
1431 (ICMD_IOR): Implemented.
1432 (ICMD_IORCONST): Likewise.
1433 (ICMD_IXOR): Likewise.
1434 (ICMD_IXORCONST): Likewise.
1435 (ICMD_INVOKEVIRTUAL): Changed invoking register.
1436 (ICMD_INVOKEINTERFACE): Likewise.
1438 * src/vm/jit/m68k/patcher.c (patcher_invokevirtual): Changed
1441 * src/vm/jit/m68k/asmpart.S (asm_vm_call_method_exception_handler):
1442 Proper stack restauration.
1443 (L_asm_call_jit_compiler_exception): Implemented.
1444 (asm_patcher_wrapper): Fixses.
1445 (L_asm_patcher_wrapper_exception): Implemented.
1447 * src/vm/jit/m68k/codegen.h (M_IXOR): Added.
1449 (M_IXOR_IMM): Added.
1451 * src/vm/jit/stacktrace.c (stacktrace_create_extern_stackframe):
1452 Comment and further m68k stuff.
1456 * src/vm/jit/s390/emit.c,
1457 src/vm/jit/s390/md-abi.h,
1458 src/vm/jit/s390/md.c,
1459 src/vm/jit/s390/emit.h,
1460 src/vm/jit/s390/codegen.c,
1461 src/vm/jit/s390/machine-instr.h,
1462 src/vm/jit/s390/codegen.h,
1463 src/vm/jit/s390/arch.h,
1464 src/vm/jit/s390/md-asm.h,
1465 src/vm/jit/s390/disass.c,
1466 src/vm/jit/s390/patcher.c,
1467 src/vm/jit/s390/asmpart.S,
1468 src/vm/jit/s390/md-abi.c: Adapted S390 port to changes from
1469 branches/twisti (hardware exceptions, emit_branch, abi_registers_*),
1470 jctest works again. Cleaned up almost all dead x86_64 code.
1472 2007-04-28 12:59 ajordan
1474 * src/vm/jit/sparc64/asmpart.S (asm_call_jit_compiler): Fixed stack
1475 alignement in first save.
1477 2007-04-27 08:43 tbfg
1479 * src/vm/jit/m68k/emit.c (emit_arrayindexoutofbounds_check): Fixed.
1480 * src/vm/jit/m68k/linux/md-os.c (md_signal_handler_sigill): AIOOB
1482 Editor boiler plate added.
1484 * src/vm/jit/m68k/linux/md-os.h: Editor boiler plate.
1486 * src/vm/jit/m68k/linux/md-abi.c: Likewise.
1488 * src/vm/jit/m68k/md.c: Likewise.
1490 * src/vm/jit/m68k/machine-instr.h: Likewise.
1492 * src/vm/jit/m68k/patcher.c: Editor boiler plate.
1493 (patcher_invokeinterface): Implemented.
1494 (patcher_get_putfield): Implemented.
1495 (patcher_resolve_class): Implemented.
1496 (patcher_get_putstatic): Implemented.
1498 * src/vm/jit/m68k/codegen.c: Editor boiler plate.
1499 (ICMD_GETSTATIC): Added patcher.
1500 (ICMD_AASTORE): Fixed.
1502 * src/vm/jit/m68k/asmpart.S: Editor boiler plate.
1503 (asm_vm_call_method_exception_handler): Fixed used register.
1504 Return values in %d0 and %a0 as gcc sometimes expects pointers
1507 2007-04-27 01:37 ajordan
1509 * src/vm/jit/sparc64/emit.c: Keeping stack 16-byte aligned when
1510 calling C/native functions from the stack. (Solaris requires this)
1511 * src/vm/jit/sparc64/codegen.c: Likewise.
1512 * src/vm/jit/sparc64/codegen.h: Likewise.
1514 * src/vm/jit/sparc64/md-abi.c: Removed zero sized abi_register_*
1515 arrays. (not allowed in ISO C)
1517 * src/vm/jit/sparc64/solaris/md-os.c: Preliminary hardware exception
1518 handling. (untested)
1520 2007-04-26 13:43 twisti
1522 * src/vm/jit/inline/inline.h (config.h): Added.
1523 (inline_inline): Likewise.
1525 * src/vm/jit/jit.c (threads/threads-common.h): Added.
1526 [ENABLE_INLINING] (vm/jit/inline/inline.h): Likewise.
1527 [ENABLE_THREADS] (threads/native/threads.h): Removed.
1529 2007-04-26 13:32 twisti
1531 * src/vm/vm.c [ENABLE_THREADS] (threads/native/threads.h): Removed.
1532 (threads/threads-common.h): Added.
1534 2007-04-26 13:07 twisti
1536 * src/native/vm/java_lang_Thread.c: Set Id keyword.
1538 2007-04-26 13:06 twisti
1540 * src/native/vm/java_lang_Thread.c (start): Renamed
1541 threads_start_javathread to threads_thread_start.
1543 2007-04-26 12:48 twisti
1545 * src/threads/threads-common.c (threads_thread_create_internal):
1546 Renamed to threads_thread_start_internal and start the thread.
1547 (threads_start_javathread): Renamed to threads_thread_start.
1548 * src/threads/threads-common.h: Likewise.
1550 * src/threads/native/threads.c (threads_start_thread): Renamed to
1551 threads_impl_thread_start.
1553 * src/mm/memory.c (thread_memory): Removed.
1554 (memory_start_thread): Call threads_thread_start_internal.
1556 * src/vm/finalizer.c (thread_finalizer): Removed.
1557 (finalizer_start_thread): Call threads_thread_start_internal.
1559 * src/vm/signal.c (thread_signal): Removed.
1560 (signal_start_thread): Call threads_thread_start_internal.
1562 * src/vm/jit/optimizing/profile.c (thread_profile): Removed.
1563 (profile_start_thread): Call threads_thread_start_internal.
1565 * src/vm/jit/optimizing/recompile.c (thread_recompile): Removed.
1566 (recompile_start_thread): Call threads_thread_start_internal.
1568 2007-04-26 11:14 twisti
1570 * src/threads/threads-common.c (threads/critical.h): Added.
1571 (threads/native/threads.h): Removed.
1572 (threads_table): Added.
1573 (threads_preinit): New function.
1574 (threads_table_init): Moved from implementation file.
1575 (threads_table_add): Likewise.
1576 (threads_table_remove): Likewise.
1577 (threads_table_dump): Likewise.
1579 * src/threads/threads-common.h (threads_table_entry_t)
1580 (threads_table_t): Added.
1581 (threads_preinit): Likewise.
1582 (threads_table_add): Likewise.
1583 (threads_table_remove): Likewise.
1584 (threads_impl_preinit): Likewise.
1585 (threads_init_threadobject): Likewise.
1587 * src/threads/native/threads.c (threads_table): Removed.
1588 (threads_preinit): Renamed to threads_impl_preinit.
1589 (threads_table_init): Removed.
1590 (threads_table_add): Likewise.
1591 (threads_table_remove): Likewise.
1592 (threads_table_dump): Likewise.
1594 * src/threads/native/threads.h (threads_table_entry_t)
1595 (threads_table_t): Removed.
1596 (threads_preinit): Likewise.
1598 2007-04-25 21:47 stefan
1600 * src/vm/jit/i386/darwin/md-os.c: added threads/threads-common.h,
1601 removed vm/jit/i386/md-abi.h
1603 2007-04-25 21:23 stefan
1605 * src/vm/jit/i386/darwin/md-os.c: attempt at porting the exception
1607 (see r7596 & r7648).
1609 2007-04-25 21:03 twisti
1611 * src/threads/lock-common.h (threads/threads-common.h): Removed that
1612 header again and added a comment about not including thread headers.
1614 * src/threads/threads-common.c (threads_start_javathread): Reverted.
1615 * src/threads/threads-common.h (threads_start_javathread): Likewise.
1617 2007-04-25 20:56 twisti
1619 * src/threads/threads-common.c (threads_dump) [!SIZEOF_VOID_P == 8]:
1622 2007-04-25 20:31 twisti
1624 * src/threads/threads-common.c (threads_start_javathread): Changed
1627 * src/threads/lock-common.h (threads/threads-common.h): Added.
1628 [ENABLE_THREADS]: Only define functions when threads are enabled.
1630 * src/threads/threads-common.h (native/include/java_lang_Thread.h):
1632 [ENABLE_THREADS]: Only define functions when threads are enabled.
1633 (threads_start_javathread): Changed signature.
1635 2007-04-25 20:07 twisti
1637 * src/vm/jit/mips/codegen.c: Changed lock includes.
1638 * src/vm/jit/mips/emit.c: Likewise.
1640 2007-04-25 20:03 twisti
1642 * src/vm/jit/arm/codegen.c: Changed lock include.
1643 * src/vm/jit/arm/emit.c: Likewise.
1645 2007-04-25 20:02 twisti
1647 * src/vm/jit/arm/emit.c (emit_load): Use switch-case instead of
1649 (emit_store): Likewise.
1650 (emit_copy): Likewise.
1652 2007-04-25 19:56 twisti
1654 * src/vm/jit/alpha/emit.c: Set Id keyword.
1656 2007-04-25 19:55 twisti
1658 * src/vm/jit/alpha/codegen.c: Changed lock include.
1659 * src/vm/jit/alpha/emit.c: Likewise.
1661 2007-04-25 19:54 twisti
1663 * src/vm/jit/alpha/codegen.c (codegen_emit_stub_native): Use
1664 md->params to save and restore argument registers.
1666 2007-04-25 19:47 twisti
1668 * src/vm/jit/i386/codegen.c: Changed lock include.
1669 * src/vm/jit/i386/emit.c: Likewise.
1671 2007-04-25 19:42 twisti
1673 * src/vm/jit/powerpc64/codegen.c: Changed lock includes.
1674 * src/vm/jit/powerpc64/emit.c: Likewise.
1676 2007-04-25 19:38 twisti
1678 * src/vm/jit/powerpc/emit.c: Set Id keyword.
1680 2007-04-25 19:37 twisti
1682 * src/vm/jit/powerpc/codegen.c: Fixed lock include.
1683 * src/vm/jit/powerpc/emit.c: Likewise.
1685 2007-04-25 19:36 twisti
1687 * src/vm/jit/powerpc/linux/md-abi.c (abi_registers_float_temporary):
1688 Fixed number of registers.
1690 2007-04-25 19:20 twisti
1692 * src/threads/lock-common.h: New file.
1694 * src/threads/native/lock.h: Removed function prototypes.
1695 * src/threads/none/lock.h (LOCK_INIT_OBJECT_LOCK): Added.
1699 src/native/native.c,
1700 src/native/vm/java_lang_Object.c,
1701 src/native/vm/java_lang_Thread.c,
1702 src/threads/Makefile.am,
1703 src/threads/native/threads.c,
1704 src/threads/threads-common.c,
1706 src/toolbox/hashtable.c,
1710 src/vm/initialize.c,
1711 src/vm/jit/inline/inline.c,
1713 src/vm/jit/optimizing/recompile.c,
1715 src/vm/jit/patcher.h,
1717 src/vm/jit/x86_64/codegen.c,
1718 src/vm/jit/x86_64/emit.c,
1721 src/vmcore/classcache.c,
1722 src/vmcore/linker.c,
1723 src/vmcore/loader.c,
1725 src/vmcore/utf8.c: Updated headers.
1727 2007-04-25 18:51 twisti
1729 * src/mm/memory.h: Updated copyright header.
1731 2007-04-25 18:33 twisti
1733 * src/threads/threads-common.c (threads_create_thread): Renamed to
1734 threads_thread_create_internal and a new function.
1735 (threads_start_javathread): Use threads_create_thread.
1737 * src/threads/threads-common.h (threads_create_thread): Changed
1739 (threads_thread_create_internal): Added.
1741 * src/threads/native/threads.c (threads_set_current_threadobject):
1743 (threads_init_threadobject): Likewise, use threads_create_thread.
1744 (threads_init): Cleanup.
1745 (threads_startup_thread): Likewise.
1746 (threads_attach_current_thread): Use threads_create_thread.
1748 * src/vm/jit/optimizing/profile.c (profile_start_thread): Replaced
1749 threads_create_thread with threads_thread_create_internal.
1750 * src/vm/jit/optimizing/recompile.c (recompile_start_thread):
1752 * src/vm/signal.c (signal_start_thread): Likewise.
1753 * src/vm/finalizer.c (finalizer_start_thread): Likewise.
1754 * src/mm/memory.c (memory_start_thread): Likewise.
1756 2007-04-25 16:39 stefan
1758 * src/vmcore/linker.c (linker_init): added missing
1759 lock_init_object_lock.
1761 2007-04-25 15:14 twisti
1763 * src/threads/native/threads.c (threads_preinit): We always need
1766 2007-04-25 15:12 twisti
1768 * src/native/native.c (native/include/java_lang_Object.h): Include
1770 [ENABLE_JAVAME_CLDC1_1]
1771 (native/include/com_sun_cldc_io_ResourceInputStream.h)
1772 (native/include/com_sun_cldc_io_j2me_socket_Protocol.h): Added.
1774 2007-04-25 14:24 twisti
1776 * contrib: Ignore TAGS.
1777 * contrib/vmlog: Likewise.
1779 2007-04-25 11:54 twisti
1781 * src/threads/native/threads.c (threads_init): Use variable t instead
1782 of mainthreadobj->object, makes code simpler.
1784 2007-04-25 11:47 twisti
1786 * src/threads/threads-common.c (threads_create_thread)
1787 [ENABLE_GC_BOEHM]: Use GCNEW_UNCOLLECTABLE.
1788 (threads_start_javathread) [ENABLE_GC_BOEHM]: Likewise.
1790 * src/threads/native/threads.c (threads_preinit) [ENABLE_GC_BOEHM]:
1792 (threads_init): Removed resizing-of-threadobject code, we don't need
1794 (threads_attach_current_thread) [ENABLE_GC_BOEHM]: Use
1795 GCNEW_UNCOLLECTABLE.
1796 (threads_detach_thread) [ENABLE_GC_BOEHM]: Use GCFREE.
1798 2007-04-24 14:29 twisti
1800 * src/threads/threads-common.c: Set Id keyword.
1801 * src/threads/threads-common.h: Likewise.
1803 2007-04-24 14:23 twisti
1805 * src/threads/threads-common.c (threads_dump): Also print integer
1806 thread id, so it's easier to compare with the ones from gdb.
1808 2007-04-24 10:20 tbfg
1810 * threads.m4: Fixed a typo
1812 2007-04-23 23:51 twisti
1814 * contrib/.cvsignore,
1816 doc/handbook/.cvsignore,
1819 src/cacao/.cvsignore,
1820 src/cacaoh/.cvsignore,
1821 src/fdlibm/.cvsignore,
1824 src/mm/boehm-gc/.cvsignore,
1825 src/mm/boehm-gc/doc/.cvsignore,
1826 src/mm/boehm-gc/include/.cvsignore,
1827 src/mm/cacao-gc/.cvsignore,
1828 src/native/.cvsignore,
1829 src/native/include/.cvsignore,
1830 src/native/jvmti/.cvsignore,
1831 src/native/tools/.cvsignore,
1832 src/native/vm/.cvsignore,
1833 src/native/vm/cldc1.1/.cvsignore,
1834 src/native/vm/gnu/.cvsignore,
1835 src/scripts/.cvsignore,
1836 src/threads/.cvsignore,
1837 src/threads/none/.cvsignore,
1838 src/threads/posix/.cvsignore,
1839 src/toolbox/.cvsignore,
1841 src/vm/jit/.cvsignore,
1842 src/vm/jit/allocator/.cvsignore,
1843 src/vm/jit/alpha/.cvsignore,
1844 src/vm/jit/alpha/freebsd/.cvsignore,
1845 src/vm/jit/alpha/linux/.cvsignore,
1846 src/vm/jit/arm/.cvsignore,
1847 src/vm/jit/arm/linux/.cvsignore,
1848 src/vm/jit/i386/.cvsignore,
1849 src/vm/jit/i386/cygwin/.cvsignore,
1850 src/vm/jit/i386/darwin/.cvsignore,
1851 src/vm/jit/i386/freebsd/.cvsignore,
1852 src/vm/jit/i386/linux/.cvsignore,
1853 src/vm/jit/inline/.cvsignore,
1854 src/vm/jit/intrp/.cvsignore,
1855 src/vm/jit/loop/.cvsignore,
1856 src/vm/jit/m68k/.cvsignore,
1857 src/vm/jit/m68k/linux/.cvsignore,
1858 src/vm/jit/mips/.cvsignore,
1859 src/vm/jit/mips/irix/.cvsignore,
1860 src/vm/jit/mips/linux/.cvsignore,
1861 src/vm/jit/optimizing/.cvsignore,
1862 src/vm/jit/parisc/.cvsignore,
1863 src/vm/jit/parisc/linux/.cvsignore,
1864 src/vm/jit/powerpc/.cvsignore,
1865 src/vm/jit/powerpc/darwin/.cvsignore,
1866 src/vm/jit/powerpc/linux/.cvsignore,
1867 src/vm/jit/powerpc/netbsd/.cvsignore,
1868 src/vm/jit/powerpc64/.cvsignore,
1869 src/vm/jit/powerpc64/linux/.cvsignore,
1870 src/vm/jit/s390/.cvsignore,
1871 src/vm/jit/schedule/.cvsignore,
1872 src/vm/jit/sparc64/.cvsignore,
1873 src/vm/jit/sparc64/linux/.cvsignore,
1874 src/vm/jit/sparc64/solaris/.cvsignore,
1875 src/vm/jit/tools/.cvsignore,
1876 src/vm/jit/verify/.cvsignore,
1877 src/vm/jit/x86_64/.cvsignore,
1878 src/vm/jit/x86_64/freebsd/.cvsignore,
1879 src/vm/jit/x86_64/linux/.cvsignore,
1880 src/vmcore/.cvsignore,
1882 tests/regression/.cvsignore,
1883 tests/regression/codepatching/.cvsignore,
1884 tests/regression/jasmin/.cvsignore,
1885 tests/regression/native/.cvsignore,
1886 tests/stack/.cvsignore: Removed.
1888 2007-04-23 23:39 twisti
1890 * .cvsignore: Removed.
1892 2007-04-23 23:03 twisti
1894 * configure.ac: Removed --enable-threads checks and call instead
1895 AC_CHECK_ENABLE_THREADS.
1896 * m4/threads.m4: New file.
1898 2007-04-23 20:04 twisti
1900 * configure.ac: Removed all classpath related checks and made
1902 * m4/classpath.m4: New file.
1904 2007-04-23 20:03 twisti
1906 * src/vm/builtin.h (md-abi.h): Added.
1908 2007-04-23 14:29 twisti
1910 * src/vm/signal.c (signal_thread): Don't check for an error on
1911 sigwait (revisit this patch with the exact-GC).
1913 2007-04-22 20:02 tbfg
1915 * src/vm/jit/m68k/linux/md-os.c (md_signal_handler_sigsegv):
1917 (md_signal_handler_sigill): More exceptions handled. Some fixes.
1919 * src/vm/jit/m68k/linux/md-os.h
1920 (M68K_EXCEPTION_HARDWARE_NULLPOINTER): Used instead of
1921 EXCEPTION_HARDWARE_NULLPOINTER, because a trap with value #0 will
1924 * src/vm/jit/m68k/emit.c (emit_load_[low|high]): Fixed assertion.
1925 (emit_arrayindexoutofbounds_check): Implemented.
1926 (emit_nullpointer_check): Implemented.
1927 (emit_exception_check_ireg): Renamed emit_exception_check.
1928 (emit_exception_check_areg): Disabled code.
1929 (emit_exception_check): Implemented.
1931 * src/vm/jit/m68k/codegen.c (ICMD_LALOAD): Implemented.
1932 (ICMD_FALOAD): Implemented.
1933 (ICMD_DALOAD): Implemented.
1934 (ICMD_LASTORE): Implemented.
1935 (ICMD_FASTORE): Implemented.
1936 (ICMD_DASTORE): Implemented.
1937 (ICMD_BUILTIN): Exception check enabled.
1938 (ICMD_MULTIANEWARRAY): Implemented.
1939 (codegen_emit_stub_native): Exception check implemented.
1941 * src/vm/jit/m68k/asmpart.S (asm_handle_nat_exception): Symbol
1942 exported and implemented.
1944 * src/vm/jit/stacktrace.c (stacktrace_create_extern_stackframe): More
1947 2007-04-22 15:55 ajordan
1949 * src/vm/jit/sparc64/arch.h: Properly activated all FP features
1950 SPARC64 supports in hardware.
1952 * src/vm/jit/sparc64/asmpart.S: Added functions to read/write the FP
1954 * src/vm/jit/sparc64/md.c: Added prototypes here.
1956 * src/vm/jit/sparc64/codegen.h: Added 'branch on FP condition codes'
1959 * src/vm/jit/sparc64/emit.c (emit_verbosecall_enter): Fixed FP
1962 * src/vm/jit/sparc64/codegen.c (codegen_emit): Fixed FP conversion
1963 functions to (a) use unique slots in the data segment (doh!),
1964 (b) catch the case where NaN is converted to an integer value. (JVMS
1965 and SPARC do not inherently agree here).
1967 2007-04-21 18:56 edwin
1969 * tests/regression/resolving/Makefile.am: Added "-classpath ." to
1971 options so the tests work with ecj out-of-the-box.
1973 2007-04-21 16:42 edwin
1975 * configure.ac: Generate vmlog Makefiles.
1976 * contrib/Makefile.am: Added vmlog to SUBDIRS.
1977 * contrib/vmlog/Makefile.am, contrib/vmlog/t/Makefile.am: New files.
1979 2007-04-21 16:26 edwin
1981 * contrib/vmlog/Makefile: Renamed to maintain.mk.
1983 2007-04-21 12:48 edwin
1985 * contrib/vmlog/vmlog_cacao.patch: Removed. It is no longer needed.
1986 * contrib/vmlog/README: Updated for CACAO's --enable-vmlog.
1988 2007-04-21 12:37 edwin
1990 * configure.ac (--enable-vmlog): New configure option.
1992 * src/vm/jit/Makefile.am, src/vm/Makefile.am,
1993 src/threads/native/Makefile.am (AM_CPPFLAGS): Added -I for vmlog
1996 2007-04-21 10:55 edwin
1998 * src/vm/jit/replace.c, src/vm/jit/intrp/asmpart.c,
1999 src/vm/jit/codegen-common.c, src/vm/builtin.c, src/vm/exceptions.c,
2000 src/vm/vm.c, src/threads/native/lock.c (ENABLE_VMLOG): Applied the
2001 vmlog patch and wrapped all inserted code with
2002 #if defined(ENABLE_VMLOG).
2004 2007-04-20 13:51 twisti
2006 * src/toolbox/list.h (list_t): Added size.
2008 * src/toolbox/list.c (list_create): Initialize size.
2009 (list_create_dump): Likewise.
2010 (list_add_first): Increase size.
2011 (list_add_last_unsynced): Likewise.
2012 (list_add_before): Likewise.
2013 (list_remove_unsynced): Decrease size.
2015 2007-04-20 13:28 twisti
2017 * src/toolbox/list.h (listnode): Renamed to listnode_t.
2018 (list): Renamed to list_t.
2020 * src/toolbox/list.c,
2021 src/vm/jit/codegen-common.c,
2022 src/vm/jit/codegen-common.h,
2023 src/vm/jit/emit-common.c,
2024 src/vm/jit/optimizing/profile.c,
2025 src/vm/jit/optimizing/recompile.c,
2026 src/vm/jit/optimizing/recompile.h,
2027 src/vm/properties.c,
2031 src/vmcore/suck.h: Likewise.
2033 2007-04-20 13:09 twisti
2035 * src/vm/vm.c: Changed header order to prevent a warning.
2037 2007-04-20 13:06 twisti
2039 * src/native/vm/cldc1.1/com_sun_cldchi_jvm_JVM.c (loadLibrary): Fixed
2040 string-internal warnings.
2041 * src/native/vm/cldc1.1/java_lang_System.c (getProperty0): Likewise.
2043 2007-04-20 12:53 twisti
2045 * src/vm/vm.c (version): Print libjvm.so path.
2047 2007-04-20 12:48 twisti
2049 * src/vm/vm.c (vm_create): Print unknown -verbose option.
2051 2007-04-20 12:40 twisti
2053 * src/vm/jit/codegen-common.c (codegen_finish_native_call): #ifdef lrt
2054 and plrt. Don't set lrt, we don't need it.
2056 2007-04-20 11:21 twisti
2058 * src/threads/threads-common.h (native/jni.h): Added.
2060 2007-04-19 21:31 twisti
2062 * src/vm/signal.c (signal_thread): Check return value of sig*
2065 2007-04-19 19:59 twisti
2067 * tests/regression/resolving/Makefile.am (check): Added missing
2070 2007-04-19 19:58 twisti
2072 * configure.ac (AC_INIT): Changed version to 0.98rc.
2074 2007-04-19 19:44 twisti
2076 * src/vm/exceptions.h: Added a comment about the hardware-exception
2077 assert in signal_init.
2079 2007-04-19 19:43 twisti
2081 * src/vm/signal.c (assert.h): Added.
2082 (vm/exceptions.h): Likewise.
2083 [ENABLE_STATISTICS] (vmcore/statistics.h): Likewise.
2084 (signal_init): Added hardware-exception assert.
2086 2007-04-19 19:41 twisti
2088 * src/cacaoh/dummy.c (exceptions_print_current_exception): Added
2090 (exceptions_throw_outofmemoryerror): Removed.
2091 (exceptions_throw_illegalaccessexception): Likewise.
2093 2007-04-19 19:39 twisti
2095 * src/vm/jit/powerpc/darwin/md-abi.h (REG_FA0, REG_FA1): Added.
2096 (REG_A0_A1_PACKED, REG_A2_A3_PACKED): Likewise.
2098 * src/vm/jit/powerpc/darwin/md-os.c [ENABLE_THREADS]
2099 (threads/native/threads.h): Added.
2100 (md_signal_handler_sigsegv): Changed for hardware-exceptions.
2101 (md_signal_handler_sigtrap): New function.
2103 * src/vm/jit/powerpc/darwin/md-abi.c (vm/descriptor.h): Changed to
2104 vmcore/descriptor.h.
2105 (regs): Renamed to abi_registers_integer_name.
2106 (abi_registers_integer_argument): Added.
2107 (abi_registers_integer_saved): Likewise.
2108 (abi_registers_integer_temporary): Likewise.
2109 (abi_registers_float_argument): Likewise.
2110 (abi_registers_float_saved): Likewise.
2111 (abi_registers_float_temporary): Likewise.
2112 (md_param_alloc): Use new register arrays.
2113 (md_param_alloc_native): New function.
2115 2007-04-19 15:01 tbfg
2117 * src/vm/jit/m68k/linux/md-abi.c (abi_registers_integer_saved): Fixed.
2118 (abi_registers_float_saved): Fixed.
2120 * src/vm/jit/m68k/emit.c (emit_classcast_check): Fixed.
2122 * src/vm/jit/m68k/codegen.c (codegen_emit): Temporary hacked
2123 a field for saved adr registers until real patch will be done.
2124 (ICMD_INSTANCEOF): Fixed.
2125 (ICMD_CHECKCAST): Fixed.
2126 (codegen_emit_stub_compiler): Removed useless code.
2128 * src/vm/jit/m68k/asmpart.S (L_asm_handle_exception_not_catched):
2131 * src/vm/jit/m68k/codegen.h (M_BLS): Added.
2133 2007-04-19 12:19 michi
2135 * src/vm/jit/arm/asmpart.S (asm_patcher_wrapper): Use long branch
2137 for exception handling here. This fixes a crash in the following
2139 regression testcase: jasmin/test_verify_fail_areturn_wrong_reftype.
2141 2007-04-19 09:19 twisti
2143 * src/threads/threads-common.c (threads_start_javathread)
2144 [ENABLE_JAVASE]: Check for daemon thread and set the flag.
2146 2007-04-19 09:18 twisti
2148 * src/threads/native/threads.c (threads_start_javathread): Removed.
2149 (threads_detach_thread): Added some comments.
2151 * src/threads/native/threads.h (threads_start_javathread): Removed.
2153 * src/threads/threads-common.c (assert.h): Added.
2154 [ENABLE_STATISTICS] (vmcore/options.h, vmcore/statistics.h): Added.
2155 (threads_start_javathread): Added.
2157 * src/threads/threads-common.h (vm/global.h): Added.
2158 (native/include/java_lang_Thread.h): Likewise.
2159 (threads_start_javathread): Likewise.
2161 2007-04-18 21:04 ajordan
2163 * src/vm/jit/sparc64/emit.c: Migrated to
2164 abi_registers_{integer,float}_argument.
2165 * src/vm/jit/sparc64/codegen.c: Likewise.
2166 * src/vm/jit/sparc64/md-abi.c: Likewise.
2168 2007-04-18 15:31 michi
2170 * src/vm/jit/powerpc64/linux/Makefile.am (AM_CPPFLAGS): Added
2171 -I$(top_builddir)/src.
2173 2007-04-18 14:49 tbfg
2175 * src/vm/jit/powerpc64/codegen.c (sign_ext): Removed from
2176 ICMD_INEG, ICMD_IDIV, ICMD_IREM, ICMD_IMUL, ICMD_IAND and ICMD_IOR
2177 to save the if runtime costs.
2179 (ICMD_IUSHR): Needs sign extension for 0 bit shift case.
2181 2007-04-18 14:11 twisti
2183 * src/threads/native/threads.c (mutex_join, cond_join): Added.
2184 (threads_init_threadobject): Don't initalize join-mutex and cond.
2185 (threads_preinit): Initialize mutex_join and cond_join.
2186 (threads_startup_thread): Added vm_abort.
2187 (threads_detach_thread): Don't reset thread id and use global mutex
2189 (threads_find_non_daemon_thread): Lock thread list.
2190 (threads_join_all_threads): Use global mutex and condition.
2192 * src/threads/native/threads.h (threadobject): Removed joinmutex and
2195 2007-04-18 09:59 twisti
2197 * src/native/vm/java_lang_ClassLoader.c [ENABLE_STATISTICS]
2198 (vmcore/statistics.h): Added.
2200 2007-04-17 23:18 twisti
2202 * src/vm/jit/emit-common.h (emit_copy): Changed signature.
2204 * src/vm/jit/alpha/codegen.c,
2205 src/vm/jit/alpha/emit.c,
2206 src/vm/jit/arm/codegen.c,
2207 src/vm/jit/arm/emit.c,
2208 src/vm/jit/i386/codegen.c,
2209 src/vm/jit/i386/emit.c,
2210 src/vm/jit/m68k/codegen.c,
2211 src/vm/jit/m68k/emit.c,
2212 src/vm/jit/mips/codegen.c,
2213 src/vm/jit/mips/emit.c,
2214 src/vm/jit/powerpc/codegen.c,
2215 src/vm/jit/powerpc/emit.c,
2216 src/vm/jit/powerpc64/codegen.c,
2217 src/vm/jit/powerpc64/emit.c,
2218 src/vm/jit/s390/codegen.c,
2219 src/vm/jit/s390/emit.c,
2220 src/vm/jit/sparc64/codegen.c,
2221 src/vm/jit/sparc64/emit.c,
2222 src/vm/jit/x86_64/codegen.c,
2223 src/vm/jit/x86_64/emit.c: Likewise.
2225 2007-04-17 22:55 twisti
2227 * src/vm/jit/m68k/emit.c: boilerplate added.
2229 2007-04-17 22:50 twisti
2231 * src/vm/jit/m68k/codegen.c: Boilerplate added.
2233 2007-04-17 22:06 twisti
2235 * src/vm/jit/alpha/codegen.c (codegen_emit): Fixed bug in
2236 float-argument passing.
2238 2007-04-17 21:37 twisti
2240 * tests/regression/resolving/Makefile.am (check): Use LD_LIBRARY_PATH
2243 2007-04-17 21:30 edwin
2245 * src/vm/jit/stack.c (stack_init_javalocals): Use "type" as variable
2247 (stack_analyse): Likewise.
2249 2007-04-17 21:25 edwin
2251 * src/vm/jit/stack.c (stack_analyse): Do not abuse poor "i" for types,
2252 use a separate variable for that.
2254 2007-04-17 21:11 edwin
2256 * src/vm/jit/stack.c (stack_reanalyse_block, stack_analyse): Renamed
2257 variable "j" to a more obvious "varindex".
2259 2007-04-17 21:01 edwin
2261 * src/vm/jit/verify/typecheck.c: More variable renaming for clarity.
2263 2007-04-17 20:59 twisti
2265 * src/vm/builtintable.inc (builtintable_function) [ENABLE_JIT]: We
2266 need the entries only for JIT.
2268 2007-04-17 20:54 twisti
2270 * tests/regression/jasmin/Makefile.am (check): Set LD_LIBRARY_PATH.
2272 2007-04-17 20:53 edwin
2274 * src/vm/jit/stack.c, src/vm/jit/verify/typecheck-common.c,
2275 src/vm/jit/verify/typeinfo.c, src/vm/jit/inline/inline.c,
2276 src/vm/jit/allocator/simplereg.c: Clarification: Renamed variables
2277 that are indices into jd->var to "varindex". Renamed variables that
2278 are bytecode variable indices to "javaindex".
2280 2007-04-17 20:37 edwin
2282 * src/vm/jit/stack.c, src/vm/jit/show.c, src/vm/jit/inline/inline.c,
2283 src/vm/jit/replace.c, src/vm/jit/jit.h: Fix and use the new macros
2284 for calculating javalocals values representing returnAddresses.
2286 2007-04-17 20:30 edwin
2288 * src/vm/jit/jit.h (basicblock): Document the javalocal array.
2289 (JAVALOCAL_FROM_RETADDR): New macro.
2290 (RETADDR_FROM_JAVALOCAL): Likewise.
2292 2007-04-17 20:25 twisti
2294 * src/threads/native/threads.c (threads_init): Fixed string-internal
2296 (threads_attach_current_thread): Likewise.
2298 2007-04-17 20:17 twisti
2300 * src/threads/threads-common.c (threads_print_stacktrace): Renamed to
2301 threads_thread_print_stacktrace.
2302 (threads_print_stacktrace): New function.
2303 (threads_dump): Use threads_thread_print_stacktrace.
2305 * src/threads/threads-common.h: Likewise.
2307 * src/vm/jit/codegen-common.c (codegen_get_pv_from_pc): Use new
2308 threads_print_stacktrace.
2310 2007-04-17 20:06 edwin
2312 * src/vm/jit/jit.h (jitdata): Cleaned up comments for local_map.
2314 2007-04-17 19:57 edwin
2316 * src/vm/jit/stack.c (stack_javalocals_store): Added an assert.
2318 2007-04-17 19:24 edwin
2320 * src/vm/jit/stack.c (stack_analyse): The javalocals array can have
2321 negative values != UNUSED (these values < UNUSED represent
2322 returnAddresses of local subroutines). Thus >= 0 must be used to
2323 check for normal indices.
2325 2007-04-17 18:47 edwin
2327 * src/vm/jit/parse.c (parse): Small cleanup of local variable
2331 2007-04-17 11:15 twisti
2333 * src/vm/jit/x86_64/codegen.c (codegen_emit_stub_native): Use simpler
2334 code to save and restore argument registers.
2336 2007-04-16 22:56 twisti
2338 * src/vm/jit/x86_64/codegen.c (codegen_emit): Made argument passing
2341 2007-04-16 22:24 twisti
2343 * src/vm/jit/codegen-common.c (codegen_setup): Removed maxstack stuff.
2344 * src/vm/jit/codegen-common.h (codegendata): Likewise.
2346 * src/vm/jit/inline/inline.c: Fixed includes.
2347 (inline_jit_compile): Removed maxstack stuff.
2348 (inline_transform): Removed basicblockindex.
2350 2007-04-16 21:09 twisti
2352 * src/vm/jit/Makefile.am (DIST_SUBDIRS): Added m68k.
2353 * src/mm/cacao-gc/Makefile.am (libgc_la_SOURCES): Removed heap.c.
2355 2007-04-16 21:07 twisti
2357 * src/vm/jit/powerpc64/linux/md-abi.c: Argument register changes
2359 * src/vm/jit/powerpc64/emit.c: Likewise.
2360 * src/vm/jit/powerpc64/codegen.c: Likewise.
2362 2007-04-16 15:57 twisti
2364 * src/native/jni.c (_Jv_JNI_DefineClass): Fixed string-internal
2366 (_Jv_JNI_NewStringUTF): Likewise.
2367 (_Jv_JNI_GetStringUTFChars): Likewise.
2369 2007-04-16 15:53 twisti
2371 * src/native/vm/java_lang_Class.c (forName): Fixed string-internal
2373 (getDeclaredFields): Likewise.
2374 (getDeclaredMethods): Likewise.
2375 (getEnclosingMethod): Likewise.
2376 (getClassSignature): Likewise.
2378 2007-04-16 15:49 twisti
2380 * src/native/vm/java_lang_ClassLoader.c (defineClass): Fixed
2381 string-internal warnings.
2383 * src/native/vm/java_lang_Runtime.c (loadLibrary): Likewise.
2385 * src/native/vm/gnu/java_lang_reflect_Field.c (getSignature):
2388 * src/native/vm/gnu/java_lang_reflect_Constructor.c (getSignature):
2391 * src/native/vm/gnu/java_lang_VMThrowable.c (getStackTrace): Likewise.
2393 2007-04-16 15:29 twisti
2395 * src/native/vm/gnu/java_lang_reflect_Method.c (getSignature): Fixed
2396 string-internal warnings.
2398 2007-04-16 15:26 twisti
2400 * src/native/vm/gnu/java_lang_VMRuntime.c (mapLibraryName): Fixed
2401 string-internal warnings.
2403 2007-04-16 15:23 twisti
2405 * src/native/vm/gnu/java_lang_VMClassLoader.c (loadClass): Fixed
2406 string-internal warnings.
2407 (nativeGetResources): Likewise.
2408 (findLoadedClass): Likewise.
2410 2007-04-16 14:29 twisti
2412 * src/vmcore/utf8.c (utf_get_number_of_u2s): Return 0 instead of NULL.
2414 2007-04-16 14:28 twisti
2416 * src/threads/threads-common.c (native/include/java_lang_String.h):
2418 (threads_create_thread): Fixed string-internal warnings.
2419 (threads_dump): Likewise.
2421 2007-04-16 14:11 twisti
2423 * src/vm/builtin.c (builtin_print_argument): Removed java_lang_String
2424 until we know what we do with strings internally (more patches to
2427 2007-04-15 21:49 twisti
2429 * src/vm/jit/reg.c (reg_setup): Removed arg{int,flt}regs stuff.
2430 * src/vm/jit/reg.h (registerdata): Removed arg{int,flt}regs.
2432 * src/vm/jit/stack.c (stack_analyse): regoff now contains the register
2433 number instead of an offset.
2435 * src/vm/jit/allocator/simplereg.c: Use
2436 abi_registers_{integer,float}_argument instead of arg{int,flt}regs.
2438 * src/vm/jit/alpha/codegen.c,
2439 src/vm/jit/alpha/emit.c,
2440 src/vm/jit/alpha/md-abi.c,
2441 src/vm/jit/arm/codegen.c,
2442 src/vm/jit/arm/emit.c,
2443 src/vm/jit/arm/md-abi.c,
2444 src/vm/jit/arm/md-abi.h,
2445 src/vm/jit/i386/codegen.c,
2446 src/vm/jit/i386/md-abi.c,
2447 src/vm/jit/mips/codegen.c,
2448 src/vm/jit/mips/emit.c,
2449 src/vm/jit/mips/md-abi.c,
2450 src/vm/jit/powerpc/codegen.c,
2451 src/vm/jit/powerpc/emit.c,
2452 src/vm/jit/powerpc/linux/md-abi.c,
2453 src/vm/jit/powerpc/linux/md-abi.h,
2454 src/vm/jit/x86_64/codegen.c,
2455 src/vm/jit/x86_64/emit.c,
2456 src/vm/jit/x86_64/md-abi.c: A lot of changes like the ones above.
2458 2007-04-15 21:13 twisti
2460 * src/vm/jit/mips/emit.c (emit_load): Bugfix: Added missing float
2462 (emit_store): Likewise.
2464 2007-04-15 12:17 michi
2466 * src/vm/jit/i386/md-abi.c (abi_registers_integer_argument): Fixed.
2468 2007-04-15 12:15 michi
2470 * src/vm/jit/i386/md-abi.c (abi_registers_integer_argument): Added.
2471 (abi_registers_integer_saved): Likewise.
2472 (abi_registers_integer_temporary): Likewise.
2474 2007-04-15 11:55 michi
2476 * src/vm/jit/i386/codegen.c (codegen_emit_stub_native): Fixed
2477 calculation of stackframesize.
2479 2007-04-15 11:37 twisti
2481 * tests/regression/resolving/Makefile.am: Added GNU header and fixed
2483 * tests/regression/resolving/classes1/Makefile.am: Likewise.
2484 * tests/regression/resolving/classes2/Makefile.am: Likewise.
2485 * tests/regression/resolving/classes3/Makefile.am: Likewise.
2487 2007-04-13 11:48 twisti
2489 * src/vm/jit/mips/codegen.c (codegen_emit): ICMD_LDIV, ICMD_LREM: Use
2490 REG_Ax_Ax_PACKED defines.
2492 2007-04-13 10:42 twisti
2494 * src/vm/jit/mips/md-abi.c (md_param_alloc): Code beautified.
2496 2007-04-13 10:12 twisti
2498 * src/cacao/cacao.c (main): Save the error message of the first
2499 lt_dlopenext and print it too when the second fails (thanks Dalibor).
2500 Although there's still a problem, when the first fails for some reason
2501 and the second picks up and old installed one silently.
2503 2007-04-12 19:49 twisti
2505 * src/vm/jit/stack.c (stack_analyse): Removed USEBUILTINTABLE, always
2506 check for automatic-builtins (compile this is not affected).
2508 * src/vm/jit/alpha/arch.h,
2509 src/vm/jit/arm/arch.h,
2510 src/vm/jit/i386/arch.h,
2511 src/vm/jit/m68k/arch.h,
2512 src/vm/jit/mips/arch.h,
2513 src/vm/jit/powerpc/arch.h,
2514 src/vm/jit/powerpc64/arch.h,
2515 src/vm/jit/s390/arch.h,
2516 src/vm/jit/sparc64/arch.h,
2517 src/vm/jit/x86_64/arch.h (USEBUILTINTABLE): Removed.
2519 2007-04-12 15:35 tbfg
2521 * src/vm/jit/powerpc64/emit.c (emit_patcher_stubs): Removed dead code.
2523 * src/vm/jit/powerpc64/codegen.c (ICMD_ISUB): Fixed evil bug.
2524 (ICMD_LSHR): Fixed a bug.
2525 (createnativestub): Use emit_patcher_stub.
2527 * src/vm/jit/powerpc64/patcher.c (patcher_resolve_native): Fixed.
2529 2007-04-12 14:47 twisti
2531 * src/vm/jit/codegen-common.c (codegen_createnativestub): Renamed to
2532 codegen_generate_stub_native and call codegen_finish.
2534 * src/vm/jit/codegen-common.h (codegen_createnativestub): Removed.
2535 (codegen_generate_stub_native): Added.
2536 * src/vm/jit_interface.h: Likewise.
2537 * src/cacaoh/dummy.c: Likewise.
2539 * src/vmcore/loader.c (load_newly_created_array): Renamed
2540 codegen_createnativestub to codegen_generate_stub_native and changed
2542 * src/vm/jit/jit.c (jit_compile_intern): Likewise.
2544 * src/vm/jit/arm/codegen.c,
2545 src/vm/jit/powerpc/codegen.c,
2546 src/vm/jit/sparc64/codegen.c,
2547 src/vm/jit/alpha/codegen.c,
2548 src/vm/jit/s390/codegen.c,
2549 src/vm/jit/mips/codegen.c,
2550 src/vm/jit/m68k/codegen.c,
2551 src/vm/jit/powerpc64/codegen.c,
2552 src/vm/jit/i386/codegen.c,
2553 src/vm/jit/x86_64/codegen.c (createnativestub): Renamed to
2554 codegen_emit_stub_native and changed signature, don't call
2557 2007-04-12 12:45 twisti
2559 * src/vm/jit/codegen-common.c (codegen_generate_stub_compiler): New
2562 * src/vm/jit/codegen-common.h (createcompilerstub): Removed.
2563 (codegen_generate_stub_compiler): Added.
2564 * src/vm/jit_interface.h: Likewise.
2565 * src/cacaoh/dummy.c: Likewise.
2567 * src/vmcore/linker.c (link_class_intern): Replaced createcompilerstub
2568 with codegen_generate_stub_compiler.
2570 * src/vm/jit/alpha/codegen.c,
2571 src/vm/jit/arm/codegen.c,
2572 src/vm/jit/i386/codegen.c,
2573 src/vm/jit/m68k/codegen.c,
2574 src/vm/jit/mips/codegen.c,
2575 src/vm/jit/powerpc/codegen.c,
2576 src/vm/jit/powerpc64/codegen.c,
2577 src/vm/jit/s390/codegen.c,
2578 src/vm/jit/sparc64/codegen.c,
2579 src/vm/jit/x86_64/codegen.c (COMPILERSTUB_DATASIZE)
2580 (COMPILERSTUB_SIZE): Removed.
2581 (createcompilerstub): Renamed to codegen_emit_stub_compiler and
2584 * src/vm/jit/alpha/codegen.h,
2585 src/vm/jit/arm/codegen.h,
2586 src/vm/jit/i386/codegen.h,
2587 src/vm/jit/m68k/codegen.h,
2588 src/vm/jit/mips/codegen.h,
2589 src/vm/jit/powerpc/codegen.h,
2590 src/vm/jit/powerpc64/codegen.h,
2591 src/vm/jit/s390/codegen.h,
2592 src/vm/jit/sparc64/codegen.h,
2593 src/vm/jit/x86_64/codegen.h (COMPILERSTUB_CODESIZE): Added.
2595 2007-04-12 11:56 twisti
2597 * src/vm/jit/arm/linux/md-os.c (mm/memory.h): Removed.
2598 [ENABLE_THREADS] (threads/native/threads.h): Added.
2600 2007-04-11 16:39 tbfg
2602 * src/vm/jit/powerpc64/arch.h (SUPPORT_LONG_SHIFT): Enabled.
2604 * src/vm/jit/powerpc64/codegen.c (ICMD_LSHLCONST): Implemented.
2605 (ICMD_LSHRCONST): Likewise.
2606 (ICMD_LUSHRCONST): Likewise.
2607 (ICMD_LSHL): Likewise.
2608 (ICMD_LSHR): Likewise.
2609 (ICMD_LUSHR): Likewise.
2610 (ICMD_IUSHR): Fixed.
2611 (ICMD_IUSHRCONST): Fixed.
2613 * src/vm/jit/powerpc64/codegen.h (M_SRL): Use 64bit opcode.
2615 (M_SRA_IMM): Likewise.
2616 (M_SRL_IMM): Likewise.
2617 (M_SSL_IMM): Likewise.
2619 (M_CLR_HIGH): Added.
2621 2007-04-11 08:21 twisti
2623 * src/toolbox/logging.c (log_finish): Also print a \n in the log-file.
2625 2007-04-11 08:11 twisti
2627 * src/vm/jit/codegen-common.c (codegen_generate): Added re-generating
2630 2007-04-10 21:37 twisti
2632 * src/vm/jit/mips/linux/md-os.c (md_signal_handler_sigsegv): We only
2633 need to check the cause for pre glibc-2.5.
2635 2007-04-10 21:24 twisti
2637 * src/vm/jit/mips/codegen.c (codegen_emit): Fixed ICMD_IF_Lxx
2638 instructions for 64-bit.
2640 2007-04-10 12:22 twisti
2642 * src/vm/jit/mips/linux/md-os.c (md_signal_handler_sigsegv): Set val
2647 * src/vm/jit/s390/emit.c,
2648 src/vm/jit/s390/md-abi.h,
2649 src/vm/jit/s390/codegen.c,
2650 src/vm/jit/s390/codegen.h,
2651 src/vm/jit/s390/arch.h,
2652 src/vm/jit/s390/asmpart.S,
2653 src/vm/jit/s390/tests/tests.java.pp: Changed very much.
2655 2007-04-09 21:17 twisti
2657 * src/vm/jit/alpha/emit.c (emit_copy): Check src-type, not dst-type.
2659 2007-04-09 17:23 twisti
2661 * src/vm/jit/alpha/asmpart.S: Use % instead of @ for progbits as ARM's
2662 assembler uses @ as comment character.
2663 * src/vm/jit/arm/asmpart.S: Likewise.
2664 * src/vm/jit/i386/asmpart.S: Likewise.
2665 * src/vm/jit/mips/asmpart.S: Likewise.
2666 * src/vm/jit/powerpc/asmpart.S: Likewise.
2667 * src/vm/jit/powerpc64/asmpart.S: Likewise.
2668 * src/vm/jit/s390/asmpart.S: Likewise.
2669 * src/vm/jit/sparc64/asmpart.S: Likewise.
2670 * src/vm/jit/x86_64/asmpart.S: Likewise.
2672 2007-04-09 11:51 twisti
2674 * src/vm/jit/mips/codegen.h (BRANCH_NOPS): Added long-branches case.
2676 * src/vm/jit/mips/emit.c (emit_load): Use switch-case instead of
2678 (emit_store): Likewise.
2679 (emit_copy): Likewise.
2680 (emit_branch): Implemented conditional long-branches.
2682 2007-04-08 21:14 twisti
2684 * src/native/vm/cldc1.1/java_lang_Object.c (notifyAll): Implemented.
2685 * src/native/vm/cldc1.1/java_lang_String.c (lastIndexOf__I): Likewise.
2687 2007-04-05 14:23 michi
2689 * src/vm/global.h (compiler_lock, compiler_unlock): Removed.
2690 * src/cacaoh/dummy.c (compiler_lock, compiler_unlock): Removed.
2691 * src/threads/native/threads.c (compiler_lock, compiler_unlock):
2694 * src/vmcore/linker.h (linker_classrenumber_lock): Added.
2695 * src/vmcore/linker.c (linker_classrenumber_lock): Added.
2696 (linker_compute_subclasses): Uses above lock object instead of
2699 * src/vm/jit/intrp/asmpart.c (intrp_asm_getclassvalues_atomic):
2702 2007-04-05 13:22 michi
2704 * src/vm/jit/codegen-common.c (codegen_get_pv_from_pc): Inserted
2706 compiler error with disabled threads.
2708 2007-04-05 12:06 twisti
2710 * src/vm/exceptions.c (exceptions_throw_nosuchmethoderror)
2711 [!ENABLE_JAVASE]: Throw an error.
2713 2007-04-05 11:57 twisti
2715 * src/threads/threads-common.c (threads_get_state): Renamed to
2716 threads_thread_get_state.
2717 (threads_thread_is_alive): New function.
2719 * src/threads/threads-common.h: Likewise.
2721 * src/native/vm/java_lang_Thread.c (isAlive): New function.
2722 (getState): Renamed threads_get_state to threads_thread_get_state.
2724 * src/native/vm/java_lang_Thread.h (isAlive): Added.
2726 * src/native/vm/cldc1.1/java_lang_Thread.c (isAlive): New function.
2728 2007-04-05 11:39 twisti
2730 * src/native/vm/java_lang_Thread.c [ENABLE_THREADS]
2731 (threads/native/threads.h): Removed.
2732 (threads/threads-common.h): Added.
2733 (vm/stringlocal.h): Likewise.
2735 (getState): Implemented.
2737 * src/threads/threads-common.c (vm/vm.h): Added.
2738 (threads_get_state): New function.
2739 (threads_dump): Print thread state.
2741 * src/threads/threads-common.h (THREAD_STATE_NEW)
2742 (THREAD_STATE_RUNNABLE, THREAD_STATE_BLOCKED, THREAD_STATE_WAITING)
2743 (THREAD_STATE_TIMED_WAITING, THREAD_STATE_TERMINATED): Defined.
2744 (threads_get_state): Added.
2746 * src/threads/native/threads.c (threads_init): Set thread-state.
2747 (threads_startup_thread): Likewise.
2748 (threads_attach_current_thread): Likewise.
2749 (threads_detach_thread): Likewise.
2750 (threads_wait_with_timeout): Likewise.
2752 * src/threads/native/threads.h (threadobject): Added state field.
2754 * src/native/native.c (dummynativetable) [ENABLE_JAVASE]: Added
2755 Java_java_lang_VMThread_getState.
2757 2007-04-05 00:14 twisti
2759 * src/threads/threads-common.c (threads_print_stacktrace): Removed
2760 !ENABLE_THREADS code, since this file is only compiled with
2763 2007-04-04 22:29 twisti
2765 * src/vm/jit/verify/typecheck-stackbased.c: Use block directly instead
2767 * src/vm/jit/verify/typecheck-stackbased-gen.inc: Newly generated.
2769 2007-04-04 22:14 twisti
2771 * src/vm/jit/parse.c (BYTECODEINDEX_TO_BASICBLOCK): Added.
2772 (parsedata_t): Removed instructionstart, added bytecodestart,
2773 basicblockstart, bytecodemap, instructionmap.
2774 (parse_setup): Allocate new arrays.
2775 (parse_bytecodeindex_to_basicblock): New function.
2776 (parse_mark_exception_boundaries): Pass parsedata_t.
2777 (parse_resolve_exception_table): Likewise.
2778 (parse): Completely rewritten so we are able to have basic block
2779 boundaries on IR instruction level. We now also resolve basic block
2780 pointers in this pass.
2782 * src/vm/jit/parse.h (MARK_BASICBLOCK): Pass parsedata_t.
2783 (BLOCK_OF): Removed.
2785 * src/vm/jit/jit.h (jitdata): Removed basicblockindex.
2787 * src/vm/jit/show.c (SHOW_TARGET): Print block instead of insindex.
2788 (show_icmd): Likewise.
2790 * src/vm/jit/stack.c (BRANCH_TARGET): Directly use block.
2791 (stack_analyse): Likewise.
2792 * src/vm/jit/verify/icmds.c: Likewise.
2793 * src/vm/jit/verify/typecheck-stackbased.c: Likewise.
2795 2007-04-04 14:16 twisti
2797 * src/native/vm/gnu/sun_misc_Unsafe.c: Header changes.
2799 * src/native/native.c [ENABLE_JAVASE]
2800 (native/include/sun_misc_Unsafe.h): Added.
2801 [ENABLE_JAVASE] (dummynativetable): Added
2802 Java_sun_misc_Unsafe_objectFieldOffset and
2803 Java_sun_misc_Unsafe_compareAndSwapInt.
2805 2007-04-03 22:29 twisti
2807 * src/vm/jit/alpha/asmpart.S: Replaced __GNU__ with __linux__ for
2809 * src/vm/jit/arm/asmpart.S: Likewise.
2810 * src/vm/jit/i386/asmpart.S: Likewise.
2811 * src/vm/jit/mips/asmpart.S: Likewise.
2812 * src/vm/jit/powerpc/asmpart.S: Likewise.
2813 * src/vm/jit/powerpc64/asmpart.S: Likewise.
2814 * src/vm/jit/s390/asmpart.S: Likewise.
2815 * src/vm/jit/sparc64/asmpart.S: Likewise.
2816 * src/vm/jit/x86_64/asmpart.S: Likewise.
2818 2007-04-03 21:30 twisti
2820 * src/vm/jit/i386/linux/md-os.c (threads/threads-common.h): Added.
2822 2007-04-03 18:02 twisti
2824 * src/vm/jit/mips/md-abi.h (REG_FA0, REG_FA1, REG_FA2): Defined.
2826 2007-04-03 16:06 twisti
2828 * src/threads/threads-common.c (threads_print_stacktrace): Pass
2829 stackframeinfo to stacktrace_create.
2831 * src/vm/jit/codegen-common.c (threads/native/threads.h): Removed.
2832 (threads/threads-common.h): Added.
2833 (codegen_get_pv_from_pc): Replaced stacktrace_dump_trace with
2834 threads_print_stacktrace.
2836 * src/vm/jit/stacktrace.h (stacktrace_print_trace_from_buffer): Added.
2838 2007-04-03 15:51 twisti
2840 * src/vm/jit/stacktrace.c (stacktrace_create): Changed signature.
2842 (stacktrace_fillInStackTrace): Pass stackframeinfo to
2844 (stacktrace_getClassContext): Likewise.
2845 (stacktrace_getCurrentClass): Likewise.
2846 (stacktrace_getStack): Likewise.
2847 (stacktrace_dump_trace): Removed.
2849 * src/vm/jit/stacktrace.h (threads/native/threads.h)
2850 (threads/none/threads.h): Removed.
2851 (stacktrace_create): Added.
2852 (stacktrace_dump_trace): Removed.
2854 * src/threads/native/threads.c (threads_dump): Removed.
2855 * src/threads/native/threads.h (threads_dump): Likewise.
2857 * src/threads/threads-common.c (vm/jit/stacktrace.h): Added.
2858 (threads_dump): Added.
2859 (threads_print_stacktrace): Likewise.
2861 * src/threads/threads-common.h (threads_dump): Added.
2862 (threads_print_stacktrace): Likewise.
2864 2007-04-03 15:29 twisti
2866 * src/vm/jit/replace.c (threads/threads-common.h): Added.
2868 * src/vm/jit/replace.h: Moved empty defines to the top of the file to
2869 see what's happening when !defined(ENABLE_REPLACEMENT).
2871 2007-04-03 15:22 twisti
2873 * src/vm/jit/x86_64/linux/md-os.c (md_signal_handler_sigfpe): Use
2874 exceptions_new_hardware_exception.
2875 * src/vm/exceptions.c (exceptions_fillinstacktrace)
2876 [ENABLE_JAVAME_CLDC1_1]: fillInStackTrace has another signature in
2879 2007-04-03 14:34 twisti
2881 * src/vm/jit/arm/emit.c (emit_exception_stubs): Removed.
2883 * src/vm/jit/arm/md.c (md_codegen_patch_branch): Likewise.
2884 (md_stacktrace_get_returnaddress): Removed debug code.
2886 2007-04-03 14:23 twisti
2888 * src/threads/native/threads.h (STACKFRAMEINFO): Return stackframeinfo
2889 instead of a pointer to it.
2890 * src/threads/none/threads.h (STACKFRAMEINFO): Likewise.
2892 * src/vm/jit/codegen-common.c (codegen_finish_native_call):
2893 STACKFRAMEINFO changes.
2895 * src/vm/jit/replace.c (replace_recover_source_state): Likewise.
2897 * src/vm/jit/stacktrace.c (stacktrace_create_stackframeinfo):
2899 (stacktrace_create_extern_stackframeinfo): Likewise.
2900 (stacktrace_create_native_stackframeinfo): Likewise.
2901 (stacktrace_remove_stackframeinfo): Likewise.
2903 2007-04-03 14:00 twisti
2905 * src/vm/jit/stacktrace.c (stacktrace_create_inline_stackframeinfo):
2907 (stacktrace_inline_arithmeticexception): Likewise.
2908 (stacktrace_inline_arrayindexoutofboundsexception): Likewise.
2909 (stacktrace_inline_arraystoreexception): Likewise.
2910 (stacktrace_inline_classcastexception): Likewise.
2911 (stacktrace_inline_nullpointerexception): Likewise.
2912 (stacktrace_inline_fillInStackTrace): Likewise.
2913 (stacktrace_hardware_arithmeticexception): Likewise.
2914 (stacktrace_hardware_nullpointerexception): Likewise.
2916 * src/vm/jit/stacktrace.h: Likewise.
2918 2007-04-03 13:48 twisti
2920 * configure.ac: Added armv4 architecture.
2922 2007-04-03 13:47 twisti
2924 * src/vm/jit/arm/linux/md-os.c (md_signal_handler_sigsegv): Use
2925 exceptions_new_hardware_exception.
2926 [ENABLE_THREADS] (md_signal_handler_sigusr2): New function.
2928 2007-04-03 13:14 twisti
2930 * src/vm/jit/i386/linux/md-os.c (md_signal_handler_sigfpe): Use
2931 exceptions_new_hardware_exception.
2933 2007-04-03 12:10 twisti
2935 * src/vm/jit/jit.h: Includes alpha-sorted.
2937 2007-04-03 11:56 twisti
2939 * src/vm/jit/replace.c (native/include/java_lang_String.h): Removed.
2940 (java_value_print): Don't cast to java_lang_String.
2942 2007-04-03 11:46 twisti
2944 * src/vm/jit/allocator/simplereg.c (simplereg_make_statistics): Fixed
2947 2007-04-03 11:37 twisti
2949 * src/vm/jit/x86_64/emit.c (emit_replacement_stubs): Removed unused
2952 2007-04-03 11:35 twisti
2954 * src/vmcore/statistics.c (statistics_print_memory_usage): Prevent
2955 compiler warning on 64-bit machines.
2957 2007-04-02 23:13 michi
2959 * src/vm/jit/replace.c: Added include to fix crash on x86_64.
2961 2007-04-02 21:24 twisti
2963 * src/vm/jit/alpha/linux/md-os.c [ENABLE_THREADS]
2964 (threads/native/threads.h): Added.
2965 [ENABLE_THREADS] (md_signal_handler_sigusr2): Added #ifdef.
2967 2007-04-02 20:58 twisti
2969 * src/vm/jit/alpha/md-abi.c (abi_registers_integer_argument): Added.
2970 (abi_registers_integer_saved): Likewise.
2971 (abi_registers_integer_temporary): Likewise.
2973 2007-04-02 20:04 michi
2975 * src/vm/jit/stacktrace.c (stacktrace_create): Returns NULL if there
2977 stacktrace available for the given thread. Fixed comments.
2979 2007-04-02 19:56 twisti
2981 * src/vm/jit/x86_64/md-abi.c (abi_registers_integer_argument): Added.
2982 (abi_registers_integer_saved): Likewise.
2983 (abi_registers_integer_temporary): Likewise.
2985 2007-04-02 19:45 twisti
2987 * src/vm/jit/parse.c (parse): JAVA_GOTO_W must be converted to a
2990 2007-04-02 18:56 twisti
2992 * src/vm/jit/jit.h (INS_FLAG_BASICBLOCK): Defined.
2993 (INS_FLAG_ID_SHIFT): Changed to 5.
2994 (INSTRUCTION_STARTS_BASICBLOCK): Added.
2996 * src/vm/jit/parse.c (parse): Changed basic block determination. Now
2997 basic blocks can start at IR instruction level. This is required for
2998 slow-fast path builtins.
3000 2007-04-02 16:09 twisti
3002 * src/vm/jit/stack.c (stack_reach_next_block): Reformatted comments.
3003 (stack_analyse): Likewise.
3005 2007-04-02 13:45 twisti
3007 * src/vm/jit/stack.c (stack_mark_reached): Added assert on b.
3008 (stack_mark_reached_from_outvars): Likewise.
3009 (stack_reach_next_block): Use NULL instead of !.
3010 (stack_analyse): Indent.
3012 2007-04-01 22:53 ajordan
3014 * src/vm/jit/sparc64/codegen.c: Implemented float argument passing
3016 * src/vm/jit/sparc64/codegen.h: Likewise.
3018 2007-04-01 16:18 stefan
3020 * src/vm/jit/powerpc/darwin/md-asm.h,
3021 src/vm/jit/i386/darwin/md-asm.h: added missing symbol
3022 asm_vm_call_method_end.
3024 2007-04-01 10:50 edwin
3026 * contrib/vmlog: Committed vmlog 0.0.5.
3027 * THIRDPARTY: Added copyright notice for vmlog.
3029 2007-03-30 11:41 twisti
3031 * src/vm/jit/parse.c (parse_realloc_instructions): Renamed ipc to
3033 (parse): Renamed ipc to icount, set method variables at the very end
3034 and use local variables before.
3036 * src/vm/jit/parse.h (INSTRUCTIONS_CHECK): Renamed ipc to icount.
3038 (OP_PREPARE_FLAGS): Likewise.
3040 2007-03-29 23:22 twisti
3042 * src/vm/jit/powerpc/linux/md-os.c (md_signal_handler_sigsegv): Fixed
3043 address check (thanks Michi).
3045 2007-03-29 23:01 ajordan
3047 * src/vm/jit/sparc64/codegen.c (codegen_emit): Fixed ICMD_IREMPOW2.
3048 Added ICMD_L2F and ICMD_L2D.
3049 Fixed constant creation in IF_L* compares.
3051 2007-03-29 21:56 michi
3053 * src/mm/nogc.c: Fixed merging conflict which was commited to that
3056 2007-03-29 21:37 ajordan
3058 * src/vm/jit/sparc64/md.c (md_get_pv_from_pc): Implemented sethi
3061 * src/vm/jit/sparc64/codegen.c (createnativestub): Fixed window/stack
3062 handling in case of exception.
3063 * src/vm/jit/sparc64/asmpart.S (asm_call_jit_compiler): Likewise.
3065 2007-03-29 11:04 twisti
3067 * src/vm/jit/powerpc/linux/md-os.c (md_signal_handler_sigsegv): Check
3068 for addr == NULL in NPE case.
3072 * src/vm/jit/s390/md-abi.h,
3073 src/vm/jit/s390/emit.c,
3074 src/vm/jit/s390/emit.h,
3075 src/vm/jit/s390/codegen.c,
3076 src/vm/jit/s390/codegen.h,
3077 src/vm/jit/s390/arch.h: Changed a lot.
3079 2007-03-28 22:59 twisti
3081 * src/vm/exceptions.h (exceptionptr): Removed.
3082 (_no_threads_exceptionptr): Likewise.
3084 2007-03-28 22:32 twisti
3088 2007-03-28 22:25 michi
3090 * AUTHORS: Added myself to the list of authors (finally).
3092 2007-03-28 21:05 twisti
3094 * Merged in twisti-branch.
3096 2007-03-28 20:50 twisti
3098 Initialized merge tracking via "svnmerge" with revisions "1-6085"
3100 file:///ahome/cacao/svn/cacao/branches/twisti
3102 2007-03-28 20:28 twisti
3104 Initialized merge tracking via "svnmerge" with revisions "1-6086"
3106 svn+ssh://c1.complang.tuwien.ac.at/ahome/cacao/svn/cacao/branches/twisti
3108 2007-03-28 20:22 twisti
3110 Initialized merge tracking via "svnmerge" with revisions "1-7592"
3112 svn+ssh://c1.complang.tuwien.ac.at/ahome/cacao/svn/cacao/branches/twisti
3114 2007-03-28 13:29 twisti
3116 * src/vm/exceptions.c (throw_exception_exit_intern): Removed.
3117 (throw_exception): Likewise.
3118 (throw_exception_exit): Likewise.
3119 (throw_main_exception): Likewise.
3120 (throw_main_exception_exit): Likewise.
3121 (throw_cacao_exception_exit): Likewise.
3122 (exceptions_print_stacktrace): New function.
3123 * src/vm/exceptions.h: Likewise.
3125 * src/vm/vm.c (vm_create): Use vm_abort or exceptions_print_stacktrace
3126 instead of throw_main_exception_exit.
3128 (vm_exit): Likewise.
3129 (vm_get_mainclass_from_jar): Likewise.
3131 * src/threads/native/threads.c (threads_init): Use return instead of
3132 throw_exception_exit.
3133 (threads_startup_thread): Use vm_abort.
3137 * src/vm/jit/s390/emit.c,
3138 src/vm/jit/s390/md-abi.h,
3139 src/vm/jit/s390/md.c,
3140 src/vm/jit/s390/emit.h,
3141 src/vm/jit/s390/codegen.c,
3142 src/vm/jit/s390/codegen.h,
3143 src/vm/jit/s390/tests/tests.java.pp,
3144 src/vm/jit/s390/patcher.c,
3145 src/vm/jit/s390/md-abi.c: Chaned a lot.
3147 2007-03-25 20:30 twisti
3149 Reverted patch 7268.
3151 * src/vm/jit/code.c: Reverted.
3152 * src/vm/jit/code.h: Likewise.
3153 * src/vm/jit/jit.c: Likewise.
3154 * src/vm/jit/jit.h: Likewise.
3155 * src/vmcore/loader.c: Likewise.
3156 * src/vmcore/method.h: Likewise.
3158 2007-03-25 18:55 twisti
3160 * src/native/native.c (native_get_parametertypes): Removed.
3161 (native_get_exceptiontypes): Likewise.
3162 * src/native/native.h: Likewise.
3164 * src/vmcore/method.c (vm/builtin.h): Added.
3165 (vm/resolve.h): Likewise.
3166 (method_get_parametertypearray): New function.
3167 (method_get_exceptionarray): Likewise.
3168 * src/vmcore/method.h (method_get_parametertypearray): Added.
3169 (method_get_exceptionarray): Likewise.
3171 * src/cacaoh/dummy.c (builtin_anewarray): Added.
3172 (resolve_class_from_typedesc): Likewise.
3174 * src/native/vm/gnu/java_lang_reflect_Method.c (getParameterTypes):
3175 Use method function.
3176 (getExceptionTypes): Likewise.
3177 * src/native/vm/gnu/java_lang_reflect_Constructor.c
3178 (getParameterTypes): Likewise.
3179 (getExceptionTypes): Likewise.
3181 2007-03-23 21:33 twisti
3183 * src/vm/builtin.c (builtin_isanysubclass): Removed.
3184 (builtin_instanceof): Replaced builtin_isanysubclass with
3185 class_isanysubclass.
3186 (builtin_descriptorscompatible): Likewise.
3188 * src/vm/builtin.h (builtin_isanysubclass): Removed.
3190 * src/vm/access.c (access_is_accessible_member): Replaced
3191 builtin_isanysubclass with class_isanysubclass.
3192 * src/native/vm/java_lang_Class.c (isAssignableFrom): Likewise.
3194 * src/vm/jit/asmpart.h (castinfo): Removed.
3196 * src/vmcore/class.c (vm/jit/asmpart.h): Added.
3197 (class_isanysubclass): New function.
3199 * src/vmcore/class.h (castinfo): Added.
3200 (class_isanysubclass): Likewise.
3202 * src/cacaoh/dummy.c (asm_getclassvalues_atomic): New function.
3203 (intrp_asm_getclassvalues_atomic): Likewise.
3205 2007-03-23 20:38 twisti
3207 * src/vm/builtin.c (builtin_isanysubclass_vftbl): Removed.
3208 (builtin_descriptorscompatible): Use builtin_isanysubclass instead of
3209 builtin_isanysubclass_vftbl.
3211 2007-03-23 19:10 twisti
3213 * src/vm/global.h (ACC_CLASS_PRIMITIVE): Defined.
3215 * src/vm/builtin.c (builtin_isanysubclass): Check for primitive
3218 * src/vmcore/linker.c (link_primitivetype_table): Set primitive flag.
3220 2007-03-23 18:51 twisti
3222 * src/vmcore/classcache.c (classcache_add_constraint)
3223 [CLASSCACHE_VERBOSE]: Started to use log-functions.
3224 (classcache_debug_dump): Likewise.
3226 2007-03-23 11:56 twisti
3228 * src/vm/jit/powerpc/emit.c (emit_load): Use switch-case instead of
3230 (emit_store): Likewise.
3231 (emit_copy): Likewise.
3233 2007-03-22 13:55 michi
3235 * src/vm/jit/arm/codegen.c (codegen) [!ENABLE_SOFTFLOAT]: Fixed
3237 soft null pointer checks in PUTFIELD and GETFIELD.
3239 2007-03-21 14:26 twisti
3241 * src/vmcore/statistics.c (size_lock_record_pool): Added.
3242 (statistics_print_memory_usage): Print new variable.
3244 * src/vmcore/statistics.h (size_lock_record_pool): Added.
3246 * src/threads/native/lock.c (lock_record_alloc_new_pool): Added
3249 2007-03-21 13:27 twisti
3251 * src/vmcore/statistics.c (size_threadobject, size_lock_hashtable)
3252 (size_lock_waiter): Added.
3253 (statistics_print_memory_usage): Print new variables.
3255 * src/vmcore/statistics.h (size_threadobject, size_lock_hashtable)
3256 (size_lock_waiter): Added.
3258 * src/threads/native/lock.c (vmcore/options.h): Added.
3259 [ENABLE_STATISTICS] (vmcore/statistics.h): Added.
3260 (lock_hashtable_init): Added statistics.
3261 (lock_hashtable_grow): Likewise.
3262 (lock_record_add_waiter): Likewise.
3263 (lock_record_remove_waiter): Likewise.
3265 * src/threads/native/threads.c [ENABLE_STATISTICS]
3266 (vmcore/statistics.h): Added.
3267 (threads_preinit): Added statistics.
3268 (threads_init): Likewise.
3269 (threads_start_javathread): Likewise.
3270 (threads_attach_current_thread): Likewise.
3271 (threads_detach_thread): Likewise.
3273 2007-03-21 13:19 twisti
3275 * src/vmcore/zip.c (zip_get): Don't assign in if-statement, this makes
3276 debugging a bit easier.
3278 2007-03-21 13:18 twisti
3280 * src/vmcore/linker.c (link_primitivetype_table): Set super class
3282 (linker_compute_subclasses): Indent.
3284 2007-03-20 00:25 ajordan
3286 * src/vm/jit/sparc64/md-abi.c (md_param_alloc_native): using this for
3287 native param allocation. No need for my own version of this anymore.
3288 * src/vm/jit/sparc64/codegen.c: Likewise.
3290 2007-03-17 13:12 twisti
3292 * src/vm/builtin.h (builtin_isanysubclass_vftbl): Removed, made
3295 2007-03-17 13:11 twisti
3297 * src/vm/builtin.c (builtin_isanysubclass): Code cleanup.
3298 (builtin_isanysubclass_vftbl): Likewise.
3300 2007-03-17 13:10 twisti
3302 * src/native/vm/gnu/java_lang_reflect_Method.c (vm/resolve.h): Added.
3304 2007-03-17 12:57 twisti
3306 * src/vm/builtin.c (builtin_isanysubclass): Cleanup and comments.
3310 * src/vm/exceptions.c (exceptions_handle_exception): 31 bit address
3311 comparison for S390. These address comparison macros need to be moved
3313 * src/vm/jit/s390/emit.c,
3314 src/vm/jit/s390/md.c,
3315 src/vm/jit/s390/codegen.c,
3316 src/vm/jit/s390/codegen.h,
3317 src/vm/jit/s390/arch.h,
3318 src/vm/jit/s390/patcher.c,
3319 src/vm/jit/s390/md-abi.c,
3320 src/vm/jit/s390/tests/tests.java.pp,
3321 src/vm/jit/s390/tests/Makefile: Changed a lot.
3323 2007-03-15 09:28 twisti
3325 * src/native/jni.c (_Jv_jni_invokeNative): Release memory in exception
3330 * src/vm/jit/s390/tests/tests.java.pp: added INT2CHAR test testing
3335 * src/vm/jit/s390/codegen.c,
3336 src/vm/jit/s390/codegen.h: Changed a lot.
3337 * src/vm/jit/s390/tests,
3338 src/vm/jit/s390/tests/tests.java.pp,
3339 src/vm/jit/s390/tests/Makefile: Added opcode tests in java.
3341 2007-03-14 21:54 twisti
3343 * src/vmcore/statistics.c (size_string): Added.
3344 (statistics_print_memory_usage): Likewise.
3345 * src/vmcore/statistics.h (size_string): Likewise.
3347 * src/vm/string.c (vmcore/statistics.h): Added.
3348 (literalstring_u2): Added statistics.
3350 2007-03-14 21:18 twisti
3352 * src/vm/jit/alpha/emit.c (emit_load): Use switch-case instead of
3354 (emit_store): Likewise.
3355 (emit_copy): Likewise.
3357 2007-03-14 21:16 twisti
3359 * src/vm/jit/alpha/md.c (vm/jit/codegen-common.h): Added temporarily.
3361 2007-03-14 17:31 michi
3363 * src/vm/jit/arm/codegen.c (codegen): All the long compares have a
3367 2007-03-14 16:44 michi
3369 * src/vm/jit/arm/emit.c (emit_verbosecall_enter): Fixed bug with
3371 arguments, which caused some crashes with verbose-calls.
3373 2007-03-14 12:00 michi
3375 * src/mm/nogc.c: Fixed includes and exceptions.
3377 2007-03-13 20:31 twisti
3379 * src/vm/jit/i386/emit.c (emit_load): Use switch-case instead of
3381 (emit_store): Likewise.
3382 (emit_copy): Likewise.
3383 * src/vm/jit/i386/codegen.c (codegen): Fixed compiler warning.
3385 2007-03-13 16:32 michi
3387 * src/vm/jit/arm/codegen.c (codegen): Long branches are implemented
3390 * src/vm/jit/arm/codegen.h (M_COMPARE): Easier macros without
3392 (M_MOVEQ_IMM, M_MOVGT_IMM, M_ADDHI_IMM, M_SUBLO_IMM, M_CMPEQ_IMM):
3395 2007-03-13 13:19 michi
3397 * src/vm/jit/arm/linux/Makefile.am: Fixed include path to care about
3400 2007-03-12 13:34 twisti
3402 * src/vm/jit/codegen.c (codegen): Change the operand direction of some
3403 macros. Started to implement long-compares differently.
3405 * src/vm/jit/codegen.h (M_AND, M_ORR, M_EOR, M_AND_IMM, M_MOVEQ)
3406 (M_MOVVS_IMM, M_MOVNE_IMM, M_MOVLT_IMM, M_MOVLS_IMM): Changed operand
3408 (M_ORR_S, M_CMPEQ, M_CMPLE): New macro.
3410 2007-03-12 13:17 twisti
3412 * src/vm/jit/arm/md.c (vm/jit/codegen-common.h): Added.
3414 2007-03-12 10:11 twisti
3416 * src/native/vm/cldc1.1/com_sun_cldc_io_ResourceInputStream.c
3418 (open): Call vm_abort.
3420 * src/native/vm/cldc1.1/com_sun_cldc_io_j2me_socket_Protocol.c
3422 (readByte): New function.
3423 (writeBuf): Likewise.
3424 (available0): Likewise.
3427 2007-03-09 21:26 twisti
3429 * tests/regression/resolving (svn:ignore): Added.
3430 * tests/regression/resolving/classes1: Likewise.
3431 * tests/regression/resolving/classes2: Likewise.
3432 * tests/regression/resolving/classes3: Likewise.
3434 2007-03-08 02:59 michi
3436 * src/threads/native/threads.c (threads_init) [!ENABLE_GC_CACAO]:
3438 lost java.lang.Thread object of mainthread with BoehmGC.
3440 * src/native/vm/java_lang_Thread.c: Fixed includes to prevend
3443 2007-03-07 14:05 twisti
3445 * src/vm/jit/mips/md.c (vm/jit/codegen-common.h): Temporarily added.
3447 2007-03-07 13:12 twisti
3449 * src/vm/jit/x86_64/emit.c (emit_call_reg): Call emit_rex with size 0.
3451 2007-03-07 12:37 twisti
3453 * src/vm/jit/x86_64/asmpart.S (asm_compare_and_swap): New function.
3454 (asm_memory_barrier): Likewise.
3456 2007-03-07 11:47 michi
3458 * src/threads/native/threads.h (threadobject): This structure is no
3460 instance of java.lang.Thread, but contains a reference to it.
3462 * src/threads/native/threads.c (threads_start_javathread): Added.
3464 * src/threads/threads-common.c: Adapted to above changes.
3465 * src/threads/native/threads.c: See above.
3466 * src/native/vm/java_lang_Thread.c: See above.
3468 2007-03-07 00:32 ajordan
3470 * src/vm/jit/sparc64/md-abi.h: increased number of JIT float argument
3472 * src/vm/jit/sparc64/md-asm.h: likewise.
3473 * src/vm/jit/sparc64/md-abi.c: likewise.
3475 * src/vm/jit/sparc64/asmpart.S: added floating point argument
3476 handling in asm_vm_call.
3478 2007-03-06 18:55 ajordan
3480 * src/vm/jit/sparc64/emit.c: emit_{load,store,copy} changed to
3481 switch/case for handling different types.
3483 * src/vm/jit/sparc64/codegen.h: fixed f2d and d2f conversion.
3485 * src/vm/jit/sparc64/md-abi.c: removed md_native_reg_setup(), not
3488 * src/vm/jit/sparc64/codegen.c: implemented ICMD_MULTIANEWARRAY.
3489 fixed FRETURN, DRETURN.
3490 repaired native float arg passing.
3492 2007-03-06 17:01 twisti
3494 * src/vm/signal.c (arch.h): Added.
3495 * src/vm/vm.c (vm_create): Reenabled signal-thread. This only works on
3496 NPTL-threads and NOT with linuxthreads!
3498 * src/vm/signal.c (signal_init): Reenabled blocking for SIGINT and
3501 2007-03-06 11:12 twisti
3503 * src/vmcore/statistics.c (vm/jit/code.h): Added for codeinfo.
3504 (vmcore/class.h): Added.
3505 (vmcore/field.h): Likewise.
3506 (vmcore/method.h): Likewise.
3508 * src/vm/jit/optimizing/recompile.c (vm/jit/code.h): Likewise.
3509 (vm/jit/jit.h): Likewise.
3511 * src/vm/jit/x86_64/md.c (vm/jit/codegen-common.h): Likewise.
3512 * src/vm/jit/x86_64/md-abi.c (vm/jit/jit.h): Likewise.
3514 2007-03-06 00:27 edwin
3516 * src/vm/jit_interface.h: Added Id keyword.
3518 2007-03-06 00:26 edwin
3520 * src/vmcore/resolve.c: Moved back to src/vm/resolve.c.
3521 * src/vmcore/resolve.h: Moved back to src/vm/resolve.h.
3522 * src/vm/jit/code.h (codeinfo): Moved typedef to method.h.
3523 (code_get_methodinfo_for_pv): Added prototype.
3524 * src/vmcore/method.h (codeinfo): Moved typedef here.
3526 * src/vm/jit_interface.h: New file.
3528 * src/vm/Makefile.am: Added resolve.[ch] and jit_interface.h.
3529 * src/vmcore/Makefile.am: Removed resolve.[ch].
3531 * src/vmcore/class.c: Include "arch.h", but don't include "resolve.h".
3533 * src/vmcore/method.c (method_vftbl_lookup):
3534 Use code_get_methodinfo_for_pv.
3536 * src/vmcore/linker.c (resolve_classref_or_classinfo_eager): Added
3537 copy of prototype to avoid bootstrapping issues.
3539 * src/cacaoh/dummy.c (code_get_methodinfo_for_pv): New dummy.
3540 (resolve_classref_or_classinfo_eager): Simple implementation that does
3541 not use resolve.c code.
3542 (typeinfo_init_class): Removed dummy.
3543 (typeinfo_init_classinfo): Likewise.
3544 (typeinfo_is_assignable_to_class): Likewise.
3545 (typeinfo_print): Likewise.
3547 * many other files: Changed #include "vmcore/resolve.h" to
3550 2007-03-06 00:02 edwin
3552 * src/vmcore/linker.c (link_class_intern):
3553 Use resolve_classref_or_classinfo_eager.
3555 2007-03-05 23:56 edwin
3557 * src/cacaoh/headers.c: Don't include asmpart.h.
3559 2007-03-05 23:50 edwin
3561 * src/native/native.c (native_get_exceptiontypes):
3562 Use resolve_classref_or_classinfo_eager.
3564 2007-03-05 17:44 edwin
3566 * src/native/vm/java_lang_Class.c (_Jv_java_lang_Class_getSuperclass),
3567 (_Jv_java_lang_Class_getDeclaringClass)
3568 (_Jv_java_lang_Class_getDeclaredClasses):
3569 Use resolve_classref_or_classinfo_eager.
3571 2007-03-05 17:34 edwin
3573 * src/vm/builtin.h (builtintable_replace_function): Don't use
3574 instruction * to avoid bootstrapping problems.
3575 * src/vm/builtin.c (builtintable_replace_function): Likewise.
3577 2007-03-05 17:32 edwin
3579 * src/vm/jit/code.c (code_get_methodinfo_from_pv): New function.
3581 2007-03-05 16:53 edwin
3583 * src/vmcore/resolve.h, src/vmcore/resolve.c
3584 (resolve_classref_or_classinfo_eager): New function.
3588 * src/vm/jit/s390/md-abi.h,
3589 src/vm/jit/s390/emit.c,
3590 src/vm/jit/s390/emit.h,
3591 src/vm/jit/s390/codegen.c,
3592 src/vm/jit/s390/codegen.h,
3593 src/vm/jit/s390/patcher.c: Changed a lot.
3595 2007-03-04 20:10 edwin
3597 * src/vm/jit/replace.c: Handle countdown traps. Request optimization
3598 of hot methods and their callers.
3600 * src/vm/jit/jit.c (jit_compile): Set JITDATA_FLAG_COUNTDOWN for
3602 (jit_recompile): Set JITDATA_FLAG_INLINE for inlining.
3604 2007-03-04 19:13 edwin
3606 * src/vmcore/options.h, src/vmcore/options.c, src/vmcore/method.c,
3607 src/vmcore/linker.c: Replayed lost parts of commit 7228.
3609 * src/vm/jit/intrp/intrp.h: Added missing #include to make it compile.
3611 * src/vm/jit/inline/inline.c: Fixed names of vmcore/ #include files.
3613 2007-03-04 18:07 twisti
3615 * src/vm/jit/x86_64/emit.c (emit_load): Use switch-case instead of
3617 (emit_store): Likewise.
3618 (emit_copy): Likewise.
3620 2007-03-04 14:46 edwin
3622 * src/vm/jit/i386/codegen.c (codegen): Emit code for countdown traps.
3624 * src/vm/jit/i386/emit.c (emit_replacement_stubs): Add jump reference
3625 for countdown traps.
3627 2007-03-04 14:22 edwin
3629 * src/vmcore/method.h (methodinfo): Added hitcountdown field. (Only
3630 if ENABLE_REPLACEMENT).
3632 * src/vmcore/loader.c (loader_load_method): Initialize hitcountdown
3635 2007-03-04 14:02 edwin
3637 * src/vm/jit/inline/inline.c: Committed breadth-first inlining code.
3639 2007-03-04 12:32 edwin
3641 * tests/regression/resolving/test_return_subtype_ok.java: New test.
3643 * tests/regression/resolving/Makefile.am: Added new test.
3645 2007-03-04 12:28 edwin
3647 * tests/regression/resolving/test_return_subtype_violated.java:
3650 * tests/regression/resolving/Makefile.am: Added new test.
3654 * src/vm/jit/s390/emit.c,
3655 src/vm/jit/s390/codegen.c,
3656 src/vm/jit/s390/codegen.h,
3657 src/vm/jit/s390/md-asm.h,
3658 src/vm/jit/s390/patcher.c,
3659 src/vm/jit/s390/asmpart.S: Changed a lot in S390 codegen.
3661 2007-03-02 19:45 edwin
3663 * src/vmcore/classcache.c: Print debug messages to stdout.
3665 2007-03-02 19:44 edwin
3667 * configure.ac: Added Makefiles of resolving test suite.
3669 2007-03-02 19:42 edwin
3671 * tests/regression/resolving: Added resolving test suite. These tests
3672 check lazy loading, classloader handling, loading & subtype
3675 2007-03-01 13:49 edwin
3677 * src/vmcore/resolve.h, src/vmcore/resolve.c
3678 (resolve_class_eager_no_access_check): New function.
3680 * src/vm/jit/powerpc/patcher.c: Use
3681 resolve_class_eager_no_access_check.
3682 * src/vm/jit/arm/patcher.c: Likewise.
3683 * src/vm/jit/sparc64/patcher.c: Likewise.
3684 * src/vm/jit/alpha/patcher.c: Likewise.
3685 * src/vm/jit/s390/patcher.c: Likewise.
3686 * src/vm/jit/mips/patcher.c: Likewise.
3687 * src/vm/jit/powerpc64/patcher.c: Likewise.
3688 * src/vm/jit/i386/patcher.c: Likewise.
3689 * src/vm/jit/x86_64/patcher.c: Likewise.
3691 2007-03-01 12:39 twisti
3693 * src/native/vm/Makefile.am [ENABLE_JAVASE] (CLASSLOADER_SOURCES):
3695 (libnativevm_la_SOURCES): Use CLASSLOADER_SOURCES.
3697 * src/native/vm/java_lang_ClassLoader.c (native/jni.h): Added.
3699 2007-03-01 12:32 edwin
3701 * src/vmcore/resolve.c (resolve_classref_or_classinfo): Always use
3702 refmethod->class as the referring class, if it is available.
3704 2007-02-28 23:57 twisti
3706 * src/vmcore/classcache.c (toolbox/logging.h): Added.
3707 (classcache_merge_class_entries): Replace log_text with log_println.
3708 (classcache_store): Likewise.
3709 (classcache_store_defined): Likewise.
3711 2007-02-28 23:39 twisti
3713 * src/cacaoh/dummy.c (typeinfo_print): Added.
3715 2007-02-28 23:27 edwin
3717 * src/vm/jit/verify/typecheck.c (handle_basic_block): Move the
3719 of the block to a point where jd->var is already valid.
3721 2007-02-28 23:20 edwin
3723 * src/vm/jit/stack.c (stack_analyse): Minor STACK_VERBOSE
3726 2007-02-28 22:50 edwin
3729 tests/regression/jasmin/test_verify_ok_local_as_retaddr_and_reference.j:
3731 * tests/regression/jasmin/Makefile.am: Added new test.
3733 2007-02-28 22:31 twisti
3735 * src/vm/vm.c (vm_create): Changed initialization order. Call
3736 properties_postinit later, since it puts a pointer to
3737 _Jv_bootclasspath into the properties list.
3739 2007-02-28 22:30 edwin
3741 * src/vm/jit/stack.c (stack_analyse): Fix: reset TYPE_VOID to
3742 TYPE_ADR at the end of stack_analyse.
3744 2007-02-28 22:00 twisti
3746 * src/vm/access.h (access_check_caller): Renamed to
3747 access_check_member.
3749 2007-02-28 20:07 twisti
3751 * src/vm/access.c (access_check_caller): Renamed to
3752 access_check_member. Don't call access_is_accessible_class, this is
3755 * src/native/vm/gnu/java_lang_reflect_Constructor.c (constructNative):
3756 Use access_check_member.
3758 * src/native/vm/gnu/java_lang_reflect_Field.c (CHECKFIELDACCESS):
3760 (cacao_get_field_address): Use access_check_member.
3762 * src/native/vm/gnu/java_lang_reflect_Method.c (invokeNative):
3765 2007-02-28 13:25 twisti
3767 * src/native/vm/java_lang_ClassLoader.c (vm/stringlocal.h): Added.
3769 2007-02-28 13:23 twisti
3771 * src/native/vm/java_lang_ClassLoader.c (defineClass): Added
3772 loader-variable for convenience.
3776 * src/vm/jit/s390/codegen.c (codegen): Added ICMD_AASTORE.
3777 * src/vm/jit/s390/asmpart.S (asm_patcher_wrapper): Added exception
3779 * src/vm/jit/s390/asmpart.S (asm_call_jit_compiler): Likewise.
3781 2007-02-27 21:13 twisti
3783 * src/vm/jit/sparc64/solaris: Set ignore-properties.
3785 2007-02-27 02:07 ajordan
3787 * configure.ac: added solaris specific stuff: arch defines, libintl
3788 dependency and solaris subdir makefile.
3790 * src/vm/jit/stacktrace.h: declared SPARC specific functions.
3792 * src/vm/jit/sparc64/emit.c: fixed call to builtin_verbosecall_exit.
3794 * src/vm/jit/sparc64/solaris/md-os.c: signal handling disabled, can't
3797 2007-02-26 22:11 twisti
3799 * src/native/vm/java_lang_ClassLoader.c: New file.
3800 * src/native/vm/java_lang_ClassLoader.h: Likewise.
3802 * src/native/vm/gnu/java_lang_VMClassLoader.c
3803 (native/vm/java_lang_ClassLoader.h): Added.
3804 (defineClass): Removed code and call
3805 _Jv_java_lang_ClassLoader_defineClass.
3807 * src/native/vm/Makefile.am (libnativevm_la_SOURCES): Added
3808 java_lang_ClassLoader.[ch].
3810 * src/native/jni.c [ENABLE_JAVASE]
3811 (native/vm/java_lang_ClassLoader.h): Added.
3812 (_Jv_JNI_DefineClass): Removed env and NULL arguments.
3816 * src/vm/jit/s390/codegen.c (codegen): Fixed ICMD_IF_ACMPNE
3817 * src/vm/jit/s390/asmpart.S (asm_call_jit_compiler): Handling NULL
3818 return value of jit_asm_compile.
3822 * src/vm/jit/s390/asmpart.S (asm_getclassvalues_atomic,
3823 asm_criticalsections): Added.
3827 * src/vm/jit/codegen-common.c (methodtree_comparator): Fixed S390
3829 * src/vm/jit/s390/codegen.h: Fixed M_JSR macro, did not store RA.
3830 * src/vm/jit/s390/md-asm.h: Added (LOAD|STORE)_TEMPORARY_REGISTERS
3831 and (LOAD|STORE)_ARGUMENT_REGISTERS macros.
3832 * src/vm/jit/s390/asmpart.S: Implemented asm_handle_exception and
3833 asm_vm_call_method_exception_handler.
3834 * src/vm/jit/s390/md-abi.c (abi_registers_integer_temporary): did not
3837 2007-02-24 14:47 twisti
3839 * src/vmcore/zip.c (errno.h): Added.
3840 (vm/vm.h): Likewise.
3841 (zip_get): Replaced asserts with vm_abort.
3843 2007-02-23 22:57 michi
3845 * src/vm/jit/replace.c: Renamed regs to abi_registers_integer_name.
3847 2007-02-21 23:26 twisti
3849 * src/vm/global.h (ACC_CLASS_SOFT_REFERENCE, ACC_CLASS_WEAK_REFERENCE)
3850 (ACC_CLASS_PHANTOM_REFERENCE): Added.
3852 * src/vmcore/class.c (class_create_classinfo) [ENABLE_JAVASE]: Check
3853 if the class is a reference class and flag it.
3855 * src/vmcore/loader.c (load_class_from_classbuffer): OR the flags
3858 * src/vmcore/utf8.c (utf_java_lang_ref_SoftReference)
3859 (utf_java_lang_ref_WeakReference, utf_java_lang_ref_PhantomReference):
3861 (utf8_init): Initialize added variables.
3862 * src/vmcore/utf8.h: Likewise.
3864 2007-02-21 23:23 twisti
3866 * src/vm/exceptions.c (exceptions_throw_noclassdeffounderror): Abort
3867 when VM is initializing.
3871 * src/vm/jit/s390/codegen.c (codegen): allocate register save area
3872 required by C abi for builtin calls
3873 * src/vm/jit/s390/codegen.c (createnativestub): fix errornous code
3874 generated for return, fix datasp argument to
3875 codegen_finish_native_call
3877 2007-02-21 22:17 twisti
3879 * m4/jni.m4: Added ENABLE_JNI AM_CONDITIONAL.
3881 * src/vm/vm.c (vm_createjvm): Replaced some ENABLE_JAVASE with
3883 (vm_create): Likewise.
3885 * src/native/Makefile.am: Likewise.
3887 * src/native/jni.c (jni_init) [ENABLE_JAVASE]: ifdef'ed Java SE stuff.
3888 (_Jv_JNI_DefineClass) [!ENABLE_JAVASE]: Abort.
3889 (_Jv_JNI_FindClass): Likewise.
3890 (_Jv_JNI_FromReflectedMethod): Likewise.
3891 (_Jv_JNI_FromReflectedField): Likewise.
3892 (_Jv_JNI_NewDirectByteBuffer): Likewise.
3893 (_Jv_JNI_GetDirectBufferAddress): Likewise.
3894 (_Jv_JNI_GetDirectBufferCapacity): Likewise.
3895 (_Jv_JNI_IsAssignableFrom): Call _Jv_java_lang_Class_isAssignableFrom.
3896 (_Jv_JNI_IsInstanceOf): Call _Jv_java_lang_Class_isInstance.
3897 (_Jv_JNI_EnsureLocalCapacity): Removed debug output.
3899 2007-02-21 20:24 twisti
3901 * src/vm/jit/Makefile.am [!WITH_BINUTILS_DISASSEMBLER]
3902 (DISASS_SOURCES): Removed.
3904 * src/vm/jit/disass-common.c: Removed WITH_BINUTILS_DISASSEMBLER
3905 ifdefs, since it's compiled conditionally.
3907 2007-02-21 18:20 twisti
3909 * src/vm/jit/x86_64/md-abi.c (regs): Renamed to
3910 abi_registers_integer_name.
3911 (md_param_alloc): Made code more clear.
3912 (md_param_alloc_native): New function.
3914 2007-02-21 18:19 twisti
3916 * src/vm/jit/abi-asm.h: Cosmetic changes.
3918 2007-02-20 01:23 twisti
3920 * src/native/vm/cldc1.1/com_sun_cldchi_jvm_JVM.c (vm/exceptions.h):
3922 (vm/stringlocal.h): Likewise.
3923 (loadLibrary): Throw error in case.
3925 2007-02-20 00:42 twisti
3927 * src/native/vm/java_lang_Runtime.c (loadLibrary): Different signature
3928 for _Jv_java_lang_Runtime_loadLibrary depending on ENABLE_JNI.
3929 * src/native/vm/java_lang_Runtime.h: Likewise.
3930 * src/native/vm/cldc1.1/com_sun_cldchi_jvm_JVM.c: Likewise.
3931 * src/native/vm/gnu/java_lang_VMRuntime.c: Likewise.
3933 2007-02-20 00:38 twisti
3935 * configure.ac (AC_CHECK_ENABLE_JAVA): Added.
3936 (AC_CHECK_ENABLE_JIT): Likewise.
3937 (AC_CHECK_ENABLE_JNI): Likewise.
3939 * m4/jni.m4: New file.
3940 * m4/java.m4: Likewise.
3941 * m4/jit.m4: Likewise.
3943 2007-02-19 23:47 twisti
3945 * src/native/vm/cldc1.1/com_sun_cldchi_jvm_JVM.c: New file.
3947 * src/native/vm/cldc1.1/Makefile.am (libnativevmcore_la_SOURCES):
3948 Added com_sun_cldchi_jvm_JVM.c.
3950 * src/native/vm/java_lang_Runtime.c [!WITH_STATIC_CLASSPATH] (ltdl.h):
3952 (native/jni.h): Likewise.
3953 (native/native.h): Likewise.
3954 (native/include/java_lang_String.h): Likewise.
3955 (toolbox/logging.h): Likewise.
3956 (vm/exceptions.h): Likewise.
3957 (vm/stringlocal.h): Likewise.
3958 (vmcore/options.h): Likewise.
3959 (loadLibrary): New function.
3961 * src/native/vm/java_lang_Runtime.h (native/jni.h): Added.
3962 (native/include/java_lang_String.h): Likewise.
3964 * src/native/vm/gnu/java_lang_VMRuntime.c [!WITH_STATIC_CLASSPATH]
3966 (native/native.h): Likewise.
3967 (toolbox/logging.h): Likewise.
3968 (vmcore/options.h): Likewise.
3969 (nativeLoad): Call _Jv_java_lang_Runtime_loadLibrary.
3971 * src/native/include/Makefile.am (JAVAME_CLDC1_1_HEADER_FILES): Added
3972 com_sun_cldchi_jvm_JVM.h.
3976 * src/vm/jit/s390/patcher.c (patcher_wrapper): Formatting changes.
3977 * src/vm/jit/s390/asmpart.S (asm_patcher_wrapper): Did not remove
3978 stack frame created by patcher stubs.
3980 2007-02-16 17:56 twisti
3982 * src/vmcore/statistics.c (mm/gc-common.h): Added.
3983 (statistics_print_gc_memory_usage): New function.
3984 * src/vmcore/statistics.h (statistics_print_gc_memory_usage):
3987 * src/cacaoh/dummy.c (gc_get_heap_size): New stub.
3988 (gc_get_free_bytes): Likewise.
3989 (gc_get_total_bytes): Likewise.
3990 (gc_get_max_heap_size): Likewise.
3992 * src/mm/memory.c (memory_thread): Call
3993 statistics_print_gc_memory_usage.
3997 * src/vm/jit/s390/md.c,
3998 src/vm/jit/s390/codegen.c,
3999 src/vm/jit/s390/codegen.h,
4000 src/vm/jit/s390/patcher.c,
4001 src/vm/jit/s390/asmpart.S,
4002 src/vm/jit/s390/md-abi.c: Changed a lot. Mostly adapted to changes in
4005 2007-02-15 19:48 twisti
4007 * src/cacaoh/dummy.c (intrp_asm_abstractmethoderror): New stub.
4008 (print_dynamic_super_statistics): Likewise.
4010 * src/vm/jit/intrp/engine.c (mm/memory.h): Added.
4011 * src/vm/jit/intrp/dynamic-super.c [!ENABLE_THREADS]
4012 (threads/none/lock.h): Likewise.
4014 2007-02-15 19:42 twisti
4016 * src/Makefile.am [ENABLE_THREADS] (THREADS_DIR): Added.
4017 (SUBDIRS): Added THREADS_DIR.
4019 * src/threads/Makefile.am (SUBDIRS): Set always to native.
4021 * src/threads/threads-common.c (threads/none/threads.h): Removed.
4022 [ENABLE_THREADS] (threads_create_thread): Removed ifdef.
4023 (threads_get_current_tid) [ENABLE_THREADS]: Removed.
4027 * src/threads/threads-common.c (threads_get_current_tid): Return 0 if
4028 compiled with --enable-threads=none
4030 2007-02-14 11:35 twisti
4032 * src/vm/jit/intrp/peephole.c: Updated to current codebase.
4033 * src/vm/jit/intrp/intrp.h: Likewise.
4034 * src/vm/jit/intrp/codegen.c: Likewise.
4035 * src/vm/jit/intrp/engine.c: Likewise.
4036 * src/vm/jit/intrp/asmpart.c: Likewise.
4037 * src/vm/jit/intrp/dynamic-super.c: Likewise.
4038 * src/vm/jit/intrp/patcher.c: Likewise.
4039 * src/vm/jit/intrp/java.vmg: Likewise.
4041 2007-02-13 23:14 twisti
4043 * src/vm/jit/arm/codegen.c (createnativestub) [!__ARM_EABI__]:
4044 #ifdef'ed split-stuff.
4045 * src/vm/jit/arm/md-abi.c (md_param_alloc_native) [!__ARM_EABI__]:
4046 Added GNU EABI stuff.
4048 2007-02-13 22:11 ajordan
4050 * configure.ac: Added support for compiling on Solaris.
4052 * src/vm/jit/sparc64/*: Added os subdir, changes for compiling on
4055 2007-02-13 21:32 twisti
4057 * src/vm/jit/mips/md-abi.c (regs): Renamed to
4058 abi_registers_integer_name.
4059 (md_param_alloc_native): New function.
4060 * src/vm/jit/mips/disass.c (disassinstr): Replaced regs with
4061 abi_registers_integer_name.
4063 2007-02-13 21:30 twisti
4065 * src/vm/jit/mips/emit.c (emit_verbosecall_exit): Fixed argument
4066 passing, but I think there's still something left to fix.
4067 * src/vm/jit/mips/md-abi.h (REG_A2_A3_PACKED): Added.
4069 2007-02-13 15:15 twisti
4071 * src/threads/native/lock.c (vm/vm.h): Added.
4072 (lock_record_add_waiter): New function.
4073 (lock_record_remove_waiter): Free the waiter data structure.
4074 (lock_record_wait): Use lock_record_add_waiter.
4075 * src/threads/native/lock.h: Cosmetic changes.
4077 2007-02-13 14:15 twisti
4079 * src/cacaoh/dummy.c (mem_alloc): Arghhhh, fixed arguments.
4081 2007-02-13 14:13 twisti
4083 * src/cacaoh/dummy.c (mem_alloc): Use calloc instead of malloc.
4085 2007-02-13 13:23 twisti
4087 * src/threads/threads-common.c (threads_get_current_tid): Check if
4088 thread is NULL and return 0.
4090 2007-02-13 13:04 twisti
4092 * src/threads/threads-common.c (threads_get_current_tid): New
4094 * src/threads/threads-common.h (threads_get_current_tid): Added.
4096 * src/toolbox/logging.c (log_start): Use threads_get_current_tid.
4098 * src/cacaoh/dummy.c (threads_get_current_threadobject): Removed.
4099 (threads_get_current_tid): Added.
4101 2007-02-13 12:23 ajordan
4103 * src/vm/jit/Makefile.am: Reverted duplicate changes.
4105 * src/vm/signal.c: Reverted one duplicate header include.
4107 2007-02-13 02:36 ajordan
4109 * src/vm/jit/stacktrace.c (stacktrace_create_extern_stackframeinfo):
4110 SPARC specific retrieval of the PV.
4111 (stacktrace_create): SPARC specific stack walking.
4113 * src/vm/jit/Makefile.am: Not compiling verifier source when disabled.
4115 * src/vm/jit/codegen-common.c (codegen_add_patch_ref): Included
4116 __SPARC_64__ in ifdef to add patcher NOPs from here.
4118 * src/vm/signal.c: Added include statements and/or ifdefs to fix
4119 compiling without threads.
4120 * src/vm/exceptions.c: Likewise.
4121 * src/vm/finalizer.c: Likewise.
4122 * src/native/jni.c: Likewise.
4123 * src/threads/none/threads.h: Likewise.
4124 * src/threads/threads-common.c: Likewise.
4125 * src/threads/critical.c: Likewise.
4127 2007-02-13 02:12 ajordan
4129 * src/vm/jit/sparc64/md-abi.h: set TRACE_ARGS_NUM to 6.
4130 * src/vm/jit/sparc64/emit.c: using the 6 available integer argument
4131 regs for call tracing.
4133 * src/vm/jit/sparc64/md-abi.c: added abi register names.
4134 Added md_param_alloc_native(), but still using the existing
4137 2007-02-13 00:51 twisti
4139 * src/mm/memory.c (memory_thread) [ENABLE_STATISTICS]: #ifdef'ed
4140 statistics_print_memory_usage call.
4142 2007-02-13 00:40 twisti
4144 * src/vm/vm.c (vm_create) [ENABLE_STATISTICS]: #ifdef opt_stat.
4146 2007-02-13 00:37 twisti
4148 * src/vm/vm.c (vm_create): Set opt_stat also true for -verbose:memory.
4149 * src/mm/memory.c [ENABLE_THREADS] (threads/threads-common.h): Added.
4150 (memory_thread): Call statistics_print_memory_usage.
4152 2007-02-13 00:17 twisti
4154 * src/vm/jit/optimizing/profile.c (native/jni.h): Removed.
4155 (native/include/java_lang_Thread.h): Likewise.
4156 (native/include/java_lang_VMThread.h): Likewise.
4157 (threads/threads-common.h): Added.
4158 (thread_profile): Changed type to threadobject.
4159 (profile_start_thread): Use threads_create_thread.
4160 * src/vm/jit/optimizing/recompile.c: Likewise.
4161 * src/vm/signal.c: Likewise.
4162 * src/vm/finalizer.c: Likewise.
4164 * src/vm/jit/asmpart.h (threads/native/critical.h): Removed.
4165 (threads/critical.h): Added.
4167 * src/vmcore/options.c (opt_verbosememory): Added.
4168 * src/vmcore/options.h: Likewise.
4170 * src/vm/vm.c (XXusage): Added -verbose:memory.
4171 (vm_create): Likewise. Start memory thread.
4173 * src/cacao/Makefile.am (THREAD_LIB): Changed to
4174 $(top_builddir)/src/threads/libthreads.la.
4176 * src/mm/memory.c [ENABLE_THREADS] (thread_memory): Added.
4177 [ENABLE_THREADS] (memory_thread): New function.
4178 [ENABLE_THREADS] (memory_start_thread): Likewise.
4179 * src/mm/memory.h [ENABLE_THREADS] (memory_start_thread): Added.
4181 * src/threads/native/critical.c: Removed.
4182 * src/threads/native/critical.h: Likewise.
4183 * src/threads/critical.c: Added.
4184 * src/threads/critical.h: Likewise.
4186 * src/threads/threads-common.c: New file.
4187 * src/threads/threads-common.h: Likewise.
4188 * src/threads/Makefile.am (AM_CPPFLAGS): Added.
4190 [ENABLE_THREADS] (THREAD_LIB): Likewise.
4191 (noinst_LTLIBRARIES): Likewise.
4192 (libthreads_la_SOURCES): Likewise.
4193 (libthreads_la_LIBADD): Likewise.
4195 * src/threads/.cvsignore: New file.
4197 * src/threads/native/threads.c (include "threads/threads-common.h):
4199 * src/threads/native/threads.h (MIN_PRIORITY, NORM_PRIORITY)
4200 (MAX_PRIORITY): Removed.
4202 * src/threads/native/Makefile.am (noinst_LTLIBRARIES): Changed to
4205 2007-02-13 00:05 twisti
4207 * src/vmcore/annotation.c
4208 (annotation_load_attribute_runtimevisibleannotations): Renamed aa to
4211 2007-02-12 13:28 twisti
4213 * src/vm/jit/emit-common.h (_EMIT_H): Renamed to _EMIT_COMMON_H.
4215 (vm/jit/codegen-common.h): Likewise.
4216 [SIZEOF_VOID_P == 4] (IS_IMM16): Added.
4218 2007-02-12 10:43 twisti
4220 * src/vm/jit/alpha/md-abi.c (regs): Renamed to
4221 abi_registers_integer_name.
4222 (md_param_alloc_native): New function.
4224 * src/vm/jit/alpha/disass.c (vm/jit/abi.h): Added.
4225 (disassinstr): Replaced regs with abi_registers_integer_name.
4227 2007-02-12 00:34 twisti
4229 * src/vm/jit/i386/md-abi.c (regs): Renamed to
4230 abi_registers_integer_name.
4231 (md_param_alloc_native): New function.
4233 2007-02-11 22:17 twisti
4235 * src/vm/jit/arm/disass.c (stdio.h): Added.
4237 * src/vm/jit/arm/md-abi.c (abi_registers_integer_name): Added.
4238 (md_param_alloc_native): Likewise.
4240 2007-02-11 21:44 twisti
4242 * src/vm/jit/codegen-common.c (vm/jit/abi.h): Added.
4244 2007-02-11 21:41 twisti
4246 * src/vm/jit/disass.h (regs): Removed.
4248 * src/vm/jit/show.c (vm/jit/abi.h): Added.
4249 (show_allocation): Renamed regs to abi_registers_integer_name.
4251 2007-02-11 21:39 twisti
4253 * src/vm/jit/codegen-common.c (codegen_createnativestub): Call
4254 md_param_alloc_native instead of md_param_alloc.
4256 * src/vm/jit/powerpc/linux/md-abi.c (assert.h): Added.
4257 (regs): Renamed to abi_registers_integer_name.
4258 (abi_registers_integer_argument, abi_registers_integer_saved)
4259 (abi_registers_integer_temporary, abi_registers_float_name)
4260 (abi_registers_float_argument, abi_registers_float_saved)
4261 (abi_registers_float_temporary): Added.
4262 (md_param_alloc): Reformatted.
4263 (md_param_alloc_native): New function.
4265 2007-02-11 21:24 twisti
4267 * src/vmcore/descriptor.c (vm/jit/abi.h): Added.
4268 * src/vmcore/descriptor.h (md_param_alloc): Removed.
4270 * src/vm/jit/abi.h (abi_registers_integer_name)
4271 (abi_registers_integer_argument, abi_registers_integer_saved)
4272 (abi_registers_integer_temporary, abi_registers_float_name)
4273 (abi_registers_float_argument, abi_registers_float_saved)
4274 (abi_registers_float_temporary): Added.
4275 (md_param_alloc): Likewise.
4276 (md_param_alloc_native): Likewise.
4278 2007-02-11 21:22 twisti
4280 * src/native/native.c (native_get_returntype): Removed.
4281 * src/native/native.h: Likewise.
4283 * src/native/vm/gnu/java_lang_reflect_Method.c (getReturnType): Moved
4284 code from native_get_returntype.
4286 2007-02-11 20:16 twisti
4288 * src/vm/jit/codegen-common.c (vm/jit/md.h): Added.
4290 2007-02-11 20:10 twisti
4292 * src/vm/jit/arm/emit.c (emit_verbosecall_enter): Keep stack 8-byte
4294 (emit_verbosecall_exit): Added comment.
4295 * src/vm/jit/arm/asmpart.S (asm_call_jit_compiler): Keep stack 8-byte
4300 * src/vm/jit/stacktrace.c (stacktrace_create_extern_stackframeinfo):
4301 On s390 get return address from stack also in leaf methods.
4302 * src/vm/jit/codegen-common.c (methodtree_comparator): On s390
4303 compare addresses as 31 bit integers.
4304 * src/vm/jit/s390/md.c,
4305 src/vm/jit/s390/codegen.c,
4306 src/vm/jit/s390/codegen.h,
4307 src/vm/jit/s390/patcher.c,
4308 src/vm/jit/s390/asmpart.S: Changed a lot, working on s390 port.
4310 2007-02-11 10:15 michi
4312 * src/vm/jit/replace.c: Fixed includes for options.h and classcache.h
4314 * src/vm/jit/replace.h: Added forward typedef for rplalloc.
4316 2007-02-11 09:21 michi
4318 * src/vm/jit/replace.h: Fixed include for method.h header.
4320 2007-02-11 00:02 twisti
4322 * src/vm/jit/x86_64/emit.c (emit_verbosecall_enter): Renamed
4323 builtin_trace_args to builtin_verbosecall_enter.
4324 (builtin_verbosecall_exit): Renamed builtin_displaymethodstop to
4325 builtin_verbosecall_exit and changed signature.
4327 * src/vm/jit/x86_64/md-abi.h (REG_FA0, REG_FA1): Added.
4329 2007-02-10 19:06 twisti
4331 * src/vm/builtin.c (builtin_trace_args): Renamed to
4332 builtin_verbosecall_enter.
4333 (builtin_trace_args): Renamed to builtin_verbosecall_enter.
4334 (builtin_displaymethodstop): Renamed to builtin_verbosecall_exit and
4336 * src/vm/builtin.h: Likewise.
4338 * src/vm/jit/arm/emit.c (emit_verbosecall_enter): Likewise.
4339 (builtin_verbosecall_exit): Likewise.
4340 * src/vm/jit/alpha/emit.c: Likewise.
4341 * src/vm/jit/i386/emit.c: Likewise.
4342 * src/vm/jit/mips/emit.c: Likewise.
4343 * src/vm/jit/powerpc/emit.c: Likewise.
4345 * src/vm/jit/alpha/md-abi.h (REG_FA0, REG_FA1, REG_FA2): Added.
4346 * src/vm/jit/mips/md-abi.h: Removed multiple defines.
4347 * src/vm/jit/powerpc/linux/md-abi.h (REG_FA0, REG_FA1): Added.
4348 (REG_A0_A1_PACKED): Likewise.
4350 * src/vm/jit/mips/linux/Makefile.am (AM_CPPFLAGS): Added
4351 -I$(top_builddir)/src.
4352 * src/vm/jit/mips/irix/Makefile.am: Likewise.
4354 2007-02-10 15:11 ajordan
4356 * src/vm/jit/sparc64/codegen.c (createnativestub): Fixed stack
4359 * src/vm/jit/sparc64/*: Adapted includes to new cacao structure.
4363 * s390/codegen.c: fix: ICMD_FCMPL generated wrong branch offset
4364 * s390/codegen.h: likewise
4365 * s390/asmpart.S: fix: asm_call_jit_compiler did not remove stack
4370 Continued work on S390 codegen. Affected files:
4378 2007-02-09 13:20 twisti
4380 * src/vm/jit/powerpc64/linux/md-os.c: Fixed includes.
4381 * src/vm/jit/powerpc64/linux/md-abi.c: Likewise.
4382 * src/vm/jit/powerpc64/md.c: Likewise.
4383 * src/vm/jit/powerpc64/codegen.c: Likewise.
4384 * src/vm/jit/powerpc64/patcher.c: Likewise.
4386 2007-02-09 13:00 twisti
4388 * src/vm/jit/i386/asmpart.S (asm_compare_and_swap): Added ; after
4389 lock, Darwin's assembler requires that.
4390 (asm_compare_and_swap): Likewise.
4392 2007-02-09 12:51 twisti
4394 * src/mm/boehm.c [ENABLE_THREADS] (threads/native/threads.h): Removed.
4396 2007-02-09 12:49 twisti
4398 * src/vm/jit/powerpc/linux/Makefile.am (AM_CPPFLAGS): Added
4399 -I$(top_builddir)/src.
4400 * src/vm/jit/powerpc/darwin/Makefile.am: Likewise.
4401 * src/vm/jit/powerpc/netbsd/Makefile.am: Likewise.
4403 2007-02-09 12:47 twisti
4405 * src/vmcore/class.h (dummy_java_lang_Class): Added.
4406 (classinfo): Use dummy_java_lang_Class.
4407 * src/vm/vm.c (vm_create): Check dummy_java_lang_Class size.
4409 2007-02-09 11:25 twisti
4411 * src/native/vm/java_lang_Runtime.c [ENABLE_JAVASE]
4412 (runFinalizersOnExit): Added.
4413 * src/native/vm/java_lang_Runtime.h: Likewise.
4415 * src/native/vm/gnu/java_lang_VMRuntime.c (exit): Renamed argument
4417 (runFinalizersOnExit): Call _Jv_java_lang_Runtime_runFinalizersOnExit.
4419 2007-02-09 11:08 twisti
4421 * src/vm/exceptions.c (exceptions_throw_unsatisfiedlinkerror)
4422 [!ENABLE_JAVASE]: Generate a java.lang.Error.
4424 * src/native/vm/cldc1.1/java_lang_Class.c (isInstance): Added.
4425 (isAssignableFrom): Likewise.
4426 (isInterface): Likewise.
4427 (isArray): Likewise.
4429 * src/native/vm/cldc1.1/java_lang_Object.c (hashCode): Likewise.
4433 * src/native/vm/cldc1.1/java_lang_String.c (hashCode): Smaller
4434 implementation changes.
4435 (indexOf__II): Likewise.
4436 (lastIndexOf__II): Likewise.
4437 (indexOf__I): Added.
4439 * src/native/vm/cldc1.1/java_lang_Thread.c: Header updated.
4441 * src/native/vm/cldc1.1/java_lang_Runtime.c (exitInternal): Fixed
4443 (freeMemory): Added.
4444 (totalMemory): Likewise.
4447 * src/native/vm/cldc1.1/com_sun_cldc_io_ResourceInputStream.c: New
4449 * src/native/vm/cldc1.1/com_sun_cldc_io_j2me_socket_Protocol.c:
4451 * src/native/vm/cldc1.1/Makefile.am (libnativevmcore_la_SOURCES):
4452 Added com_sun_cldc_io_ResourceInputStream.c and
4453 com_sun_cldc_io_j2me_socket_Protocol.c.
4455 * src/native/vm/java_lang_Runtime.c: New file.
4456 * src/native/vm/java_lang_Runtime.h: Likewise.
4457 * src/native/vm/Makefile.am (libnativevm_la_SOURCES): Added
4458 java_lang_Runtime.c and java_lang_Runtime.h.
4461 * src/native/vm/java_lang_Class.c: Un-ifdef some functions for CLDC.
4462 * src/native/vm/java_lang_Class.h: Likewise.
4464 * src/native/vm/gnu/java_lang_VMRuntime.c
4465 (native/vm/java_lang_Runtime.h): Added.
4466 (exit): Call _Jv_java_lang_Runtime function.
4467 (freeMemory): Likewise.
4468 (totalMemory): Likewise.
4471 * src/native/vm/java_lang_Object.h [ENABLE_JAVASE]
4472 (native/include/java_lang_Cloneable.h): Only available for JavaSE
4475 * src/native/include/Makefile.am (JAVAME_CLDC1_1_HEADER_FILES): Added
4476 com_sun_cldc_io_ResourceInputStream.h and
4477 com_sun_cldc_io_j2me_socket_Protocol.h.
4479 * src/native/native.c (dummynativetable) [ENABLE_JAVAME_CLDC1_1]:
4480 Added new functions.
4482 2007-02-09 10:35 twisti
4484 * src/vm/jit/alpha/md.c (vm/options.h): Changed to vmcore/options.h.
4486 * src/vm/jit/alpha/linux/Makefile.am (AM_CPPFLAGS): Added
4487 -I$(top_builddir)/src.
4488 * src/vm/jit/alpha/freebsd/Makefile.am: Likewise.
4490 2007-02-08 12:29 michi
4492 * src/vm/jit/i386/cygwin/Makefile.am: Changed to unix fileformat.
4493 * src/vm/jit/i386/cygwin/ucontext.h,
4494 src/vm/jit/i386/cygwin/ucontext.c,
4495 src/vm/jit/i386/cygwin/md-os.c, src/vm/jit/i386/cygwin/md-asm.h:
4498 2007-02-08 12:14 twisti
4500 * src/vm/jit/i386/linux/Makefile.am (AM_CPPFLAGS) Added
4501 -I$(top_builddir)/src.
4502 * src/vm/jit/i386/cygwin/Makefile.am: Likewise.
4503 * src/vm/jit/i386/freebsd/Makefile.am: Likewise.
4507 Continued work on S390 port.
4508 java.lang.ClassLoader.getSystemClassLoader is now compiled, patched,
4509 called and the patcher trigger compilation of another method.
4511 * jit/s390/emit.c: Likiwise.
4512 * jit/s390/codegen.c: Likewise.
4513 * jit/s390/codegen.h: Likewise.
4514 * jit/s390/md-asm.h: Likewise.
4515 * jit/s390/patcher.c: Likewise.
4516 * jit/s390/asmpart.S: Likewise.
4517 * jit/codegen-common.c: Likewise.
4519 2007-02-06 12:17 twisti
4521 * src/native/vm/cldc1.1/Makefile.am: Updated header.
4523 2007-02-06 10:25 twisti
4525 * src/native/vm/cldc1.1/java_lang_String.c (hashCode): Implemented.
4526 (indexOf__II): Likewise.
4527 (lastIndexOf__II): Likewise.
4529 2007-02-06 09:11 twisti
4531 * src/threads/native/Makefile.am (AM_CPPFLAGS): Added
4532 -I$(top_builddir)/src.
4533 * src/vm/jit/x86_64/Makefile.am: Likewise.
4534 * src/vm/jit/x86_64/linux/Makefile.am: Likewise.
4535 * src/vm/jit/x86_64/freebsd/Makefile.am: Likewise.
4537 2007-02-06 08:58 twisti
4539 * src/vm/jit/powerpc/codegen.c (codegen) [ENABLE_PROFILING]: #ifdef
4542 2007-02-06 08:50 twisti
4544 * src/native/vm/Makefile.am (DIST_SUBDIRS): Added missing \.
4546 2007-02-06 08:49 twisti
4548 * src/vm/jit/tools/genoffsets.c (vm/jit/stacktrace.h): Not required,
4551 2007-02-06 08:48 twisti
4553 * src/vm/jit/tools/Makefile.am: Cosmetic changes.
4555 2007-02-06 08:47 twisti
4557 * src/vm/jit/optimizing/Makefile.am (AM_CPPFLAGS): Added
4558 -I$(top_builddir)/src.
4559 * src/vm/jit/Makefile.am: Likewise.
4560 * src/vm/Makefile.am: Likewise.
4561 * src/mm/Makefile.am: Likewise.
4563 2007-02-06 06:37 twisti
4565 * src/vm/jit/linux/md-os.c (thread_restartcriticalsection): Added
4566 missing cast and pass pc to critical_find_restart_point.
4567 * src/vm/jit/freebsd/md-os.c (thread_restartcriticalsection):
4570 2007-02-05 02:04 twisti
4572 * src/cacaoh/dummy.c (builtin_clone, builtin_isanysubclass)
4573 (builtin_new): Keep compiler happy and return a value.
4575 2007-02-05 01:07 twisti
4577 * src/vm/signallocal.h (vm/types.h): Added.
4578 (vm/global.h): Likewise.
4580 2007-02-05 01:06 twisti
4582 * configure.ac (AC_CONFIG_FILES): Added
4583 src/vm/jit/x86_64/freebsd/Makefile.
4585 * src/vm/jit/x86_64/Makefile.am (DIST_SUBDIRS): Added freebsd.
4587 * src/vm/jit/x86_64/freebsd/md-os.c: New file.
4588 * src/vm/jit/x86_64/freebsd/Makefile.am: Likewise.
4589 * src/vm/jit/x86_64/freebsd/.cvsignore: Likewise.
4591 2007-02-05 00:52 twisti
4593 * configure.ac (AC_CONFIG_FILES): Added
4594 src/vm/jit/x86_64/linux/Makefile.
4596 * src/vm/jit/x86_64/Makefile.am (DIST_SUBDIRS): Added.
4597 (SUBDIRS): Likewise.
4598 (libarch_la_LIBADD): Likewise.
4600 * src/vm/jit/x86_64/md.c (md_signal_handler_sigsegv)
4601 (md_signal_handler_sigfpe, md_signal_handler_sigusr2)
4602 (thread_restartcriticalsection): Removed.
4604 * src/vm/jit/x86_64/linux/md-os.c: New file.
4605 * src/vm/jit/x86_64/linux/Makefile.am: Likewise.
4606 * src/vm/jit/x86_64/linux/.cvsignore: Likewise.
4610 * jit/codegen-common.h: Enabled dseg_adddata for s390.
4611 * jit/dseg.c: Likewise.
4612 * jit/s390/md-abi.h: Continued work on s390 port.
4613 * jit/s390/emit.c: Likewise.
4614 * jit/s390/md.c: Likewise.
4615 * jit/s390/codegen.c: Likewise.
4616 * jit/s390/codegen.h: Likewise.
4617 * jit/s390/md-asm.h: Likewise.
4618 * jit/s390/asmpart.S: Likewise.
4619 * jit/s390/md-abi.c: Likewise.
4621 2007-02-04 16:08 twisti
4623 * src/native/jni.c (_Jv_JNI_ExceptionDescribe): Fixed typo.
4625 2007-02-03 19:51 twisti
4627 * src/vm/jit/x86_64/codegen.c (codegen) [ENABLE_PROFILING]: #ifdef
4628 instrumentation code.
4629 (createnativestub) [ENABLE_PROFILING]: Likewise.
4631 * src/vm/jit/x86_64/codegen.h [ENABLE_PROFILING] (PROFILE_CYCLE_START)
4632 (PROFILE_CYCLE_STOP): Added #ifdef.
4634 2007-02-03 19:34 twisti
4636 * src/vm/builtin.c [ENABLE_THREADS] (threads/native/threads.h):
4638 [ENABLE_THREADS] (threads/native/lock.h): Added.
4639 (builtin_throw_exception): Use exceptions_set_exception.
4641 * src/vm/finalizer.c (finalizer_run): Likewise.
4643 * src/vm/signal.c (signal_start_thread): Use #warning instead of
4644 #error (temporarily).
4646 * src/native/jni.c (_Jv_jni_invokeNative): Use
4647 exceptions_get_exception, and exceptions_clear_exception.
4648 (_Jv_JNI_ExceptionDescribe): Likewise.
4649 (_Jv_JNI_IsAssignableFrom): Use exceptions_set_exception.
4650 (_Jv_JNI_ExceptionOccurred): Use exceptions_get_exception.
4651 (_Jv_JNI_ExceptionCheck): Likewise.
4652 (_Jv_JNI_ExceptionClear): Use exceptions_clear_exception.
4654 2007-02-02 12:53 twisti
4656 * src/vm/jit/i386/codegen.c (codegen) [ENABLE_PROFILING]: Profiling
4658 (createnativestub): Likewise.
4660 2007-02-02 12:39 twisti
4662 * src/native/vm/java_lang_Object.c [ENABLE_JAVAME_CLDC1_1]
4663 (native/include/java_lang_String.h): Added.
4665 2007-02-02 12:28 twisti
4667 * src/native/vm/java_lang_Class.h (native/include/java_lang_String.h):
4668 Required by java_lang_Class.h for Java ME.
4670 2007-02-02 11:58 michi
4672 * src/vm/jit/arm/md-abi.h: Renamed REG_IP to REG_PV (special favor
4674 * src/vm/jit/arm/emit.c, src/vm/jit/arm/codegen.c,
4675 src/vm/jit/arm/codegen.h:
4676 Adapted to the above change.
4678 2007-02-02 00:20 twisti
4680 * src/vm/jit/jit.c (jit_compile_intern) [ENABLE_PROFILING]: Call
4681 reorder only when profiling.
4683 2007-02-02 00:10 twisti
4685 * src/vm/jit/code.h (codeinfo) [ENABLE_PROFILING]: Made frequency,
4686 bbfrequency, and cycles conditional.
4688 * src/vm/jit/jit.c (jit_compile) [ENABLE_PROFILING]: Likewise.
4689 (jit_compile_intern) [ENABLE_PROFILING]: Likewise.
4691 2007-02-02 00:06 twisti
4693 * src/vm/jit/optimizing/Makefile.am [ENABLE_PROFILING]
4694 (REORDER_SOURCES): Moved here till we have something better.
4696 2007-02-01 15:35 twisti
4698 * src/vmcore/suck.c (assert.h): Added.
4699 (suck_float): Use assert instead of an exception.
4700 (suck_double): Likewise.
4702 2007-02-01 15:27 twisti
4704 * src/vmcore/linker.c (link_class_intern): Also align double and s8
4705 fields to 4-bytes for ARM.
4707 2007-02-01 12:58 twisti
4709 * src/vmcore/utf8.c (utf_java_lang_InvocationTargetException): Is
4710 actually called utf_java_lang_reflect_InvocationTargetException.
4711 (utf8_init): Likewise.
4713 * src/vmcore/utf8.h (utf_java_lang_InvocationTargetException):
4716 * src/vm/exceptions.c (exceptions_throw_invocationtargetexception):
4719 2007-02-01 12:29 twisti
4721 * src/vm/jit/code.c [ENABLE_THREADS] (threads/native/lock.h): Added.
4723 2007-02-01 12:02 twisti
4725 * src/vmcore/method.h (methodinfo): Removed member object.
4726 * src/vm/jit/code.h (codeinfo): Added member object.
4728 * src/vmcore/loader.c (loader_load_method): Removed
4729 lock_init_object_lock.
4730 (load_newly_created_array): Likewise.
4731 * src/vm/jit/code.c (code_codeinfo_new): Added lock_init_object_lock.
4733 * src/vm/jit/jit.c (jit_jitdata_new): Changed signature.
4734 (jit_compile): Use codeinfo lock object instead of methodinfo.
4735 (jit_recompile): Changed signature.
4736 * src/vm/jit/jit.h (jit_jitdata_new): Likewise.
4738 2007-01-31 17:45 twisti
4740 * src/cacaoh/dummy.c (pthread.h): Added.
4742 2007-01-31 17:02 twisti
4744 * src/toolbox/logging.c (log_start): Uncommented thread pointer stuff.
4745 * src/cacaoh/dummy.c (threads_get_current_threadobject): Added.
4747 2007-01-31 17:00 twisti
4749 * src/native/jni.c (_Jv_JNI_ThrowNew): Fixed warnings.
4751 2007-01-31 14:05 twisti
4753 * src/native/vm/gnu/gnu_classpath_VMSystemProperties.c: Updated year.
4755 2007-01-31 14:04 twisti
4757 * src/native/vm/gnu/gnu_classpath_VMSystemProperties.c (string.h):
4759 (mm/memory.h): Likewise.
4761 2007-01-31 10:59 twisti
4763 * src/vmcore/loader.c (load_newly_created_array) [ENABLE_JAVASE]:
4764 Fixed interfacescount.
4766 2007-01-31 10:00 twisti
4768 * src/vm/exceptions.c [ENABLE_JAVAME_CLDC1_1](exceptions_new_error):
4770 (exceptions_asm_new_abstractmethoderror) [!ENABLE_JAVASE]: Use
4771 exceptions_new_error.
4772 (exceptions_throw_virtualmachineerror): Removed.
4773 * src/vm/exceptions.h (exceptions_throw_virtualmachineerror):
4776 2007-01-31 09:51 twisti
4778 * src/vm/jit/Makefile.am: Fixed !ENABLE_VERIFER build.
4780 2007-01-30 13:58 twisti
4782 * src/vm/jit/arm/emit.c (mm/memory.h): Added.
4783 (vm/global.h): Likewise.
4784 (emit_patcher_stubs): Align stack to 8-byte.
4785 (emit_verbosecall_exit): Smaller optimizations.
4787 * src/vm/jit/arm/md-abi.h (config.h): Added.
4788 (REG_A1_A2_PACKED): Defined.
4790 * src/vm/jit/arm/md.c: Fixed includes.
4791 (md_codegen_get_pv_from_pc): Use vm_abort.
4793 * src/vm/jit/arm/codegen.c: Fixed includes.
4794 (codegen): Align stack to 8-byte.
4795 (createnativestub): Likewise.
4797 * src/vm/jit/arm/codegen.h (M_ADD_IMM_EXT_MUL4): Added do-while.
4798 (M_SUB_IMM_EXT_MUL4): Likewise.
4800 * src/vm/jit/arm/patcher.c: Fixed includes.
4801 (patcher_wrapper): Align stack to 8-byte.
4802 * src/vm/jit/arm/asmpart.S (asm_patcher_wrapper): Likewise.
4804 * src/vm/jit/arm/md-abi.c: Fixed includes.
4806 2007-01-30 13:53 twisti
4808 * src/vm/signal.c (signal_init): Disable signal-thread handling
4810 * src/vm/vm.c (vm_create): Likewise.
4812 2007-01-29 23:07 twisti
4814 * src/vm/string.c (native/jni.h): Added.
4815 * src/vm/properties.c (native/jni.h): Likewise.
4817 * src/native/vm/cldc1.1/java_lang_Runtime.c: Includes fixed for
4819 * src/native/vm/cldc1.1/java_lang_Class.c: Likewise.
4821 * src/native/vm/java_lang_Class.c [ENABLE_JAVAME_CLDC1_1]
4822 (native/include/java_lang_String.h): Added.
4823 (forName): #ifdef'd loader variable.
4825 * src/vmcore/class.c (class_resolveclassmethod): Removed Java ME
4826 exception handling, we do that in the exception function itself.
4827 (class_resolveinterfacemethod): Likewise.
4828 * src/vmcore/resolve.c (resolve_method_invokespecial): Likewise.
4830 * src/vmcore/utf8.c [ENABLE_JAVASE]
4831 (utf_java_lang_AbstractMethodError, utf_java_lang_NoSuchFieldError)
4832 (utf_java_lang_NoSuchMethodError): Removed ifdef.
4833 * src/vmcore/utf8.h: Likewise.
4835 2007-01-29 21:47 ajordan
4837 * src/vm/jit/sparc64/codegen.h: Fixed double register number packing
4838 and fp compare instruction macros.
4839 * src/vm/jit/sparc64/codegen.c: Fixed fp compares.
4841 Fixed fp argument saving in createnativestub().
4843 * src/vm/jit/sparc64/patcher.c: Implemented get/put field patcher.
4845 * src/vm/jit/sparc64/md.c: Removed printf.
4847 2007-01-29 21:39 twisti
4849 * src/vm/jit/i386/emit.c: Includes fixed for cacaoh-changes.
4850 * src/vm/jit/i386/md.c: Likewise.
4851 * src/vm/jit/i386/codegen.c: Likewise.
4852 * src/vm/jit/i386/patcher.c: Likewise.
4853 * src/vm/jit/i386/md-abi.c: Likewise.
4855 2007-01-29 21:38 twisti
4857 * src/vm/jit/i386/asmpart.S (asm_compare_and_swap): New function.
4858 (asm_memory_barrier): Likewise.
4860 2007-01-29 21:37 twisti
4862 * src/vm/jit/alpha/asmpart.S (asm_compare_and_swap): Changed comment.
4864 2007-01-29 21:09 twisti
4866 * src/vm/jit/mips/emit.c: Include fixes for cacaoh-changes.
4867 * src/vm/jit/mips/md.c: Likewise.
4868 * src/vm/jit/mips/codegen.c: Likewise
4869 * src/vm/jit/mips/linux/md-os.c: Likewise
4870 * src/vm/jit/mips/disass.c: Likewise
4871 * src/vm/jit/mips/patcher.c: Likewise
4872 * src/vm/jit/mips/md-abi.c: Likewise
4874 2007-01-29 20:24 twisti
4876 * src/vm/jit/alpha/emit.c: Fixed includes for cacaoh-changes.
4877 * src/vm/jit/alpha/codegen.c: Likewise.
4878 * src/vm/jit/alpha/linux/md-os.c: Likewise.
4879 * src/vm/jit/alpha/patcher.c: Likewise.
4880 * src/vm/jit/alpha/md-abi.c: Likewise.
4882 2007-01-29 19:34 twisti
4884 * src/native/include/.cvsignore: Ignore all *.h files.
4886 2007-01-29 19:32 twisti
4888 * src/vm/jit/x86_64/md.c: Fixed includes for cacaoh-changes.
4890 2007-01-29 19:28 twisti
4892 * src/vm/jit/x86_64/emit.c: Fixed includes for cacaoh-changes.
4893 * src/vm/jit/x86_64/codegen.c: Likewise.
4894 * src/vm/jit/x86_64/patcher.c: Likewise.
4895 * src/vm/jit/x86_64/md-abi.c: Likewise.
4897 2007-01-29 19:15 twisti
4899 * src/vmcore/stackmap.c [ENABLE_STATISTICS] (vmcore/statistics.h):
4901 * src/vm/jit/jit.c: Likewise.
4902 * src/vm/jit/emit-common.c: Likewise.
4904 2007-01-29 18:49 twisti
4906 * This is a rather huge commit, which changes the build order of
4907 various parts to be able to bootstrap cacaoh without any dependencies
4908 on a generated header file. I include the file list from SVN, so we
4909 can see what happened to the files.
4911 Here we go (D-files were mostly moved to src/vmcore):
4913 D src/vm/hashtable.h
4915 M src/vm/properties.h
4924 D src/vm/rt-timing.c
4926 D src/vm/annotation.c
4929 D src/vm/descriptor.c
4930 D src/vm/annotation.h
4931 D src/vm/rt-timing.h
4934 D src/vm/descriptor.h
4935 M src/vm/finalizer.c
4938 D src/vm/references.h
4939 D src/vm/classcache.c
4940 D src/vm/statistics.c
4941 D src/vm/classcache.h
4942 D src/vm/statistics.h
4943 M src/vm/initialize.c
4946 M src/vm/jit/powerpc/linux/md-abi.c
4947 M src/vm/jit/powerpc/emit.c
4948 M src/vm/jit/powerpc/md.c
4949 M src/vm/jit/powerpc/codegen.c
4950 M src/vm/jit/powerpc/patcher.c
4951 M src/vm/jit/codegen-common.h
4953 M src/vm/jit/stack.c
4954 M src/vm/jit/optimizing/profile.c
4955 M src/vm/jit/optimizing/recompile.c
4956 M src/vm/jit/optimizing/ifconv.c
4957 M src/vm/jit/optimizing/ifconv.h
4959 M src/vm/jit/tools/genoffsets.c
4963 M src/vm/jit/verify/typeinfo.h
4964 M src/vm/jit/verify/typecheck-typeinferer.c
4965 M src/vm/jit/verify/typecheck.c
4966 M src/vm/jit/verify/typecheck-stackbased.c
4967 M src/vm/jit/verify/typeinfo.c
4969 M src/vm/jit/loop/loop.h
4970 M src/vm/jit/loop/graph.h
4971 M src/vm/jit/allocator/simplereg.c
4972 M src/vm/jit/parse.c
4973 M src/vm/jit/asmpart.h
4974 M src/vm/jit/stacktrace.c
4975 M src/vm/jit/emit-common.c
4977 M src/vm/jit/stacktrace.h
4978 M src/vm/jit/codegen-common.c
4980 M src/vm/initialize.h
4984 M src/vm/exceptions.c
4988 M src/vm/exceptions.h
4989 M src/vm/stringlocal.h
4992 M src/vm/Makefile.am
4994 D src/vm/hashtable.c
4997 M src/vm/properties.c
4998 M src/vm/signallocal.h
4999 M src/cacao/Makefile.am
5001 M src/native/vm/java_lang_Class.c
5002 M src/native/vm/gnu/gnu_java_lang_management_VMThreadMXBeanImpl.c
5003 M src/native/vm/gnu/gnu_java_lang_management_VMMemoryMXBeanImpl.c
5004 M src/native/vm/gnu/java_security_VMAccessController.c
5005 M src/native/vm/gnu/java_lang_VMClassLoader.c
5006 M src/native/vm/gnu/java_lang_management_VMManagementFactory.c
5007 M src/native/vm/gnu/gnu_java_lang_management_VMRuntimeMXBeanImpl.c
5008 M src/native/vm/gnu/java_lang_VMClass.c
5009 M src/native/vm/gnu/java_lang_VMThread.c
5010 M src/native/vm/gnu/gnu_classpath_VMSystemProperties.c
5011 M src/native/vm/gnu/java_lang_reflect_Method.c
5012 M src/native/vm/gnu/java_lang_VMRuntime.c
5013 M src/native/vm/gnu/java_lang_reflect_Field.c
5014 M src/native/vm/gnu/gnu_classpath_VMStackWalker.c
5016 src/native/vm/gnu/gnu_java_lang_management_VMClassLoadingMXBeanImpl.c
5017 M src/native/vm/gnu/java_lang_reflect_Constructor.c
5018 M src/native/vm/gnu/java_lang_VMThrowable.c
5019 M src/native/vm/java_lang_Object.c
5020 M src/native/vm/java_lang_Thread.c
5021 D src/native/include/java_lang_Thread.h
5022 D src/native/include/java_lang_Throwable.h
5023 D src/native/include/java_util_Properties.h
5024 D src/native/include/java_lang_VMThread.h
5025 D src/native/include/java_lang_VMThrowable.h
5026 D src/native/include/java_lang_ClassLoader.h
5027 M src/native/include/Makefile.am
5028 D src/native/include/java_lang_Cloneable.h
5029 D src/native/include/java_lang_ThreadGroup.h
5030 D src/native/include/java_lang_Class.h
5031 D src/native/include/java_lang_Object.h
5032 D src/native/include/java_lang_String.h
5034 M src/native/native.c
5035 M src/native/native.h
5036 A src/toolbox/hashtable.h
5037 M src/toolbox/list.c
5039 M src/toolbox/logging.c
5040 M src/toolbox/Makefile.am
5041 M src/toolbox/logging.h
5042 A src/toolbox/hashtable.c
5043 M src/mm/gc-common.h
5044 M src/mm/Makefile.am
5048 M src/threads/none/threads.h
5049 M src/threads/none/lock.h
5050 M src/threads/native/threads.h
5051 M src/threads/native/lock.c
5052 M src/threads/native/threads.c
5054 A src/vmcore/options.h
5057 A src/vmcore/class.c
5058 A src/vmcore/loader.c
5060 A src/vmcore/annotation.c
5062 A src/vmcore/class.h
5063 A src/vmcore/rt-timing.c
5064 A src/vmcore/loader.h
5065 A src/vmcore/descriptor.c
5066 A src/vmcore/resolve.c
5067 A src/vmcore/annotation.h
5068 A src/vmcore/rt-timing.h
5069 A src/vmcore/method.c
5070 A src/vmcore/descriptor.h
5071 A src/vmcore/resolve.h
5072 A src/vmcore/method.h
5073 A src/vmcore/references.h
5074 A src/vmcore/classcache.c
5075 A src/vmcore/statistics.c
5076 A src/vmcore/.cvsignore
5077 A src/vmcore/classcache.h
5078 A src/vmcore/statistics.h
5079 A src/vmcore/stackmap.c
5080 A src/vmcore/stackmap.h
5081 A src/vmcore/field.c
5082 A src/vmcore/linker.c
5084 A src/vmcore/field.h
5085 A src/vmcore/Makefile.am
5086 A src/vmcore/linker.h
5087 A src/vmcore/options.c
5089 M src/cacaoh/cacaoh.c
5090 M src/cacaoh/headers.h
5091 M src/cacaoh/Makefile.am
5092 M src/cacaoh/headers.c
5093 A src/cacaoh/dummy.c
5096 2007-01-29 11:52 twisti
5098 * src/vm/jit/arm/emit.c [ENABLE_SOFTFLOAT] (emit_load): Implemented.
5099 (emit_store): Changed implementation to be more clear.
5100 (emit_copy): Likewise.
5102 2007-01-29 10:19 twisti
5104 * src/vm/jit/arm/codegen.c (codegen): ICMD_DASTORE: bugfix for
5107 2007-01-28 23:35 twisti
5109 * src/vm/jit/mips/codegen.c (createcompilerstub): Don't generate a
5112 2007-01-28 22:57 twisti
5114 * src/vm/jit/arm/codegen.c (createcompilerstub): Don't generate a
5117 2007-01-27 15:52 twisti
5119 * configure.ac: Use AC_CHECK_SOFTFLOAT, AC_CHECK_SOFT_FLOAT_CMP and
5120 AC_CHECK_SOFT_DOUBLE_CMP.
5121 * m4/soft.m4: New file.
5123 * src/vm/builtin.c [!SUPPORT_FLOAT_CMP] (builtin_fcmpl): Added
5125 [!SUPPORT_DOUBLE_CMP] (builtin_dcmpl): Likewise.
5127 * src/vm/builtintable.inc (builtintable_automatic):
5128 [!SUPPORT_FLOAT_CMP] (BUILTIN_fcmpl): Added.
5129 [!SUPPORT_DOUBLE_CMP] (BUILTIN_dcmpl): Likewise.
5130 (builtintable_function): [__MIPS__ && SIZEOF_VOID_P != 4]
5131 (BUILTIN_arraycopy): Added.
5133 * src/vm/jit/mips/codegen.c (codegen): Added SUPPORT_FLOAT_CMP for
5134 ICMD_FCMPx, and SUPPORT_DOUBLE_CMP for ICMD_DCMPx.
5136 * src/vm/jit/arm/arch.h (SUPPORT_FLOAT_CMP, SUPPORT_DOUBLE_CMP):
5138 * src/vm/jit/powerpc/arch.h: Likewise.
5139 * src/vm/jit/sparc64/arch.h: Likewise.
5140 * src/vm/jit/alpha/arch.h: Likewise.
5141 * src/vm/jit/s390/arch.h: Likewise.
5142 * src/vm/jit/mips/arch.h: Likewise.
5143 * src/vm/jit/parisc/arch.h: Likewise.
5144 * src/vm/jit/m68k/arch.h: Likewise.
5145 * src/vm/jit/i386/arch.h: Likewise.
5146 * src/vm/jit/powerpc64/arch.h: Likewise.
5147 * src/vm/jit/x86_64/arch.h: Likewise.
5149 * src/vm/jit/mips/patcher.c (vm/jit/md.h): Added.
5151 2007-01-27 13:01 twisti
5153 * src/vm/loader.c (load_newly_created_array): c->interfacescount was
5154 always set to 0, fixed.
5156 2007-01-27 00:58 ajordan
5158 * src/vm/jit/sparc64/emit.c: Moved exception check generation to emit
5160 * src/vm/jit/sparc64/codegen.h: Likewise.
5161 * src/vm/jit/sparc64/codegen.c: Likewise.
5163 * src/vm/jit/sparc64/md.c: Added SPARC specific functions for getting
5164 JIT information from the stack frame.
5166 * src/vm/jit/sparc64/linux/md-os.c: Fixed icache flushing when start
5167 address is not doubleword aligned.
5169 2007-01-23 13:05 twisti
5171 * src/vm/jit/mips/emit.c (emit_patcher_stubs): Use
5172 dseg_add_functionptr instead of dseg_add_address.
5174 2007-01-22 20:16 twisti
5176 * src/native/vm/gnu/gnu_classpath_VMSystemProperties.c (postInit):
5177 Added missing file://.
5179 2007-01-22 17:25 twisti
5181 * src/cacao/cacao.c (main): Fixed typo.
5183 2007-01-22 17:22 twisti
5185 * src/lib/vm/reference/gnu/classpath/VMSystemProperties.java: New
5188 * src/lib/Makefile.am (VM_JAVA_FILES): Added
5189 gnu/classpath/VMSystemProperties.java.
5190 (VM_CLASS_FILES): Likewise.
5192 * src/native/include/Makefile.am (VM_ZIP): Added.
5193 (DO_HEADER_FILES): Depend on VM_ZIP.
5195 2007-01-22 17:03 twisti
5197 * src/vm/properties.c (properties_get): Search list forward, as we
5198 don't have duplicate entries anymore.
5199 (properties_system_add): New function.
5200 * src/vm/properties.h (properties_system_add): Added.
5202 * src/native/vm/gnu/gnu_classpath_VMSystemProperties.c (postInit): New
5205 2007-01-22 15:59 twisti
5207 * src/vm/jit/mips/md.c (md_get_method_patch_address): Fixed compiler
5210 2007-01-22 14:02 twisti
5212 * src/cacao/cacao.c (main): Fixed compiler warning.
5214 2007-01-22 11:45 twisti
5216 * src/vm/jit/arm/codegen.c (vm/jit/md.h): Added.
5217 * src/vm/jit/arm/patcher.c (vm/jit/md.h): Likewise.
5219 2007-01-22 01:43 ajordan
5221 * src/vm/jit/sparc64/codegen.h: Fixed big disp handling.
5222 * src/vm/jit/sparc64/codegen.c: Likewise.
5224 2007-01-22 00:58 twisti
5226 * src/vm/jit/jit.h (md_init, md_get_method_patch_address,)
5227 (md_cacheflush, md_icacheflush, md_dcacheflush, intrp_md_init):
5230 * src/vm/jit/md.h: New file.
5231 * src/vm/jit/Makefile.am (noinst_HEADERS): Added md.h.
5233 * src/vm/jit/jit.c (vm/jit/md.h): Added.
5234 * src/vm/jit/codegen-common.c (vm/jit/md.h): Likewise.
5235 * src/vm/vm.c (vm/jit/md.h): Likewise.
5237 2007-01-19 01:13 edwin
5239 * src/vm/options.h, src/vm/method.c, src/vm/jit/inline/inline.c,
5240 src/vm/jit/jit.c, src/vm/vm.c, src/vm/linker.c, src/vm/options.c,
5241 src/cacaoh/headers.c: Cleaned up inlining options.
5243 * src/vm/exceptions.c: Removed a left-over use of "useinlining".
5245 * configure.ac: New configure flag --enable-inlining-debug.
5247 2007-01-18 13:21 twisti
5249 * src/vm/jit/arm/md-asm.h: Renamed argument defines to start with 0.
5250 * src/vm/jit/arm/asmpart.S: Likewise.
5252 2007-01-18 13:11 twisti
5254 * src/vm/vm.c (usage): Removed CACAO options.
5255 (XXusage): New function.
5256 (vm_create): Handle OPT_XX.
5258 2007-01-18 12:55 twisti
5260 * src/vm/jit/powerpc/asmpart.S (asm_compare_and_swap): New function.
5261 (asm_memory_barrier): Likewise.
5263 2007-01-18 11:43 twisti
5265 * src/vm/jit/mips/md-asm.h (RESTORE_ARGUMENT_REGISTERS)
5266 (RESTORE_ARGUMENT_REGISTERS, SAVE_TEMPORARY_REGISTERS)
5267 (RESTORE_TEMPORARY_REGISTERS): Added missing float registers.
5269 * src/vm/jit/mips/asmpart.S (asm_patcher_wrapper): Changed stack size
5270 for float registers.
5274 Initial import of s390 codegen, codebase is copyed from x86_64.
5276 2007-01-16 12:59 twisti
5278 * src/cacaoh/headers.c (asm_compare_and_swap): Added.
5279 (asm_memory_barrier): Likewise.
5281 2007-01-16 12:52 twisti
5283 * src/vm/jit/x86_64/asmpart.S (asm_patcher_wrapper): Removed unused
5286 2007-01-16 09:54 twisti
5288 * src/vm/jit/asmpart.h (asm_compare_and_swap): Added.
5289 (asm_memory_barrier): Likewise.
5291 * src/vm/jit/alpha/asmpart.S (asm_compare_and_swap): New function.
5292 (asm_memory_barrier): Likewise.
5294 2007-01-15 10:28 twisti
5296 * src/vm/jit/powerpc64/codegen.c (codegen): Ported replacement.
5298 2007-01-13 22:54 edwin
5300 * src/vm/jit/verify/typecheck-typeinferer.c: Check basic types in
5303 2007-01-13 22:44 edwin
5305 * src/vm/jit/verify/generate.pl: Further changes for the type inferer.
5307 * src/vm/jit/verify/typecheck-typeinferer-gen.inc: Regenerated.
5309 2007-01-13 22:39 edwin
5311 * src/vm/rt-timing.h: Fixed position of #include "config.h".
5312 (rt_timing_diff_usec): Export.
5314 * src/vm/rt-timing.c (rt_timing_diff_usec): Export.
5316 2007-01-13 22:37 edwin
5318 * src/vm/jit/jit.c (jit_compile_intern): Removed unused code and fixed
5321 2007-01-13 22:30 edwin
5323 * src/vm/jit/inline/inline.c: Better inlining decisions. Implemented
5324 knapsack heuristics. More statistics. Refactoring and fixes.
5326 * src/vm/jit/inline/inline_debug.inc: Fixed to make it compile.
5328 2007-01-13 16:52 ajordan
5330 * src/vm/jit/sparc64/md-abi.h: The JIT stackframes now also includes
5331 the 6 parameter slots required when doing a ABI compliant C call.
5332 * src/vm/jit/sparc64/emit.c: Likewise.
5333 * src/vm/jit/sparc64/codegen.c: Likewise.
5334 * src/vm/jit/sparc64/patcher.c: Likewise.
5335 * src/vm/jit/sparc64/asmpart.S: Likewise.
5337 * src/vm/jit/sparc64/codegen.h: Added include.
5339 * src/vm/jit/sparc64/md.c: Added method, to get framepointer from
5340 saved register window. (for temporary fix in JIT stack walking)
5342 2007-01-12 17:13 twisti
5344 * src/vm/jit/arm/linux/md-os.c (md_signal_handler_sigsegv): Use
5345 codegen_get_pv_from_pc.
5347 2007-01-11 22:39 twisti
5349 * src/vm/jit/mips/md-abi.h: Merged MIPS32 code.
5350 * src/vm/jit/mips/emit.c: Likewise.
5351 * src/vm/jit/mips/codegen.c: Likewise.
5352 * src/vm/jit/mips/codegen.h: Likewise.
5353 * src/vm/jit/mips/linux/md-os.c: Likewise.
5354 * src/vm/jit/mips/asmpart.S: Likewise.
5355 * src/vm/jit/mips/md-abi.c: Likewise.
5357 2007-01-11 22:36 twisti
5359 * src/mm/memory.c (mem_realloc): Fixed compiler warning.
5361 2007-01-11 14:59 twisti
5363 * file:///ahome/cacao/svn/cacao-m68k/trunk: Moved to...
5364 * file:///ahome/cacao/svn/cacao/trunk/src/vm/jit/m68k: ...here.
5366 2007-01-11 14:28 twisti
5368 * src/vm/exceptions.c (exceptions_throw_internalerror): Don't return a
5370 (exceptions_throw_outofmemoryerror): Likewise.
5372 2007-01-11 14:22 twisti
5374 * src/vm/jit/arm/emit.c (emit_exception_stubs): Renamed eref to er,
5375 use md_codegen_patch_branch.
5377 * src/vm/jit/arm/codegen.c (codegen): Use codegen_resolve_branchrefs,
5378 use exceptions_throw_internalerror.
5380 * src/vm/jit/arm/codegen.h (M_STACK_LOAD_FLT_TYPED): Removed.
5381 (M_STACK_STORE_FLT_TYPED): Likewise.
5383 2007-01-11 14:19 twisti
5385 * configure.ac [ENABLE_STATICVM] (AC_CHECK_LIB(dl)): Only perform the
5386 check if we want a static VM.
5387 (AC_CONFIG_FILES): Added src/vm/jit/arm/Makefile and
5388 src/vm/jit/arm/linux/Makefile.
5389 * src/vm/jit/Makefile.am (DIST_SUBDIRS): Added arm.
5391 2007-01-11 13:58 twisti
5393 * Moved loaded arm files.
5395 2007-01-10 10:08 twisti
5397 * src/vm/builtin.c (builtin_newarray): Removed debug output.
5399 2007-01-10 10:03 twisti
5401 * src/vm/suck.c (suck_add): Use vm_abort instead of
5402 throw_cacao_exception_exit.
5403 (suck_float, suck_double): Use exceptions_throw_internalerror.
5405 * src/vm/loader.c (load_class_bootstrap): Use vm_abort instead of
5406 throw_cacao_exception_exit.
5407 * src/vm/jit/sparc64/emit.c (emit_patcher_stubs): Likewise.
5408 * src/vm/jit/mips/md.c (md_patch_replacement_point): Likewise.
5409 * src/vm/vm.c (vm_create): Likewise.
5411 * src/vm/builtin.c (builtin_newarray): Use
5412 exceptions_throw_outofmemoryerror.
5414 * src/vm/descriptor.c (descriptor_pool_lookup_classref): Use
5415 exceptions_throw_internalerror.
5416 * src/vm/classcache.c (classcache_store_unique): Likewise.
5417 * src/vm/jit/powerpc/codegen.c (codegen): Likewise.
5418 * src/vm/jit/sparc64/codegen.c (codegen): Likewise.
5419 * src/vm/jit/alpha/codegen.c (codegen): Likewise.
5420 * src/vm/jit/mips/codegen.c (codegen): Likewise.
5421 * src/vm/jit/i386/codegen.c (codegen): Likewise.
5422 * src/vm/jit/powerpc64/codegen.c (codegen): Likewise.
5423 * src/vm/jit/intrp/codegen.c (codegen): Likewise.
5424 * src/vm/jit/x86_64/codegen.c (codegen): Likewise.
5425 * src/vm/jit/stack.c (stack_reanalyse_block): Likewise.
5426 (stack_analyse): Likewise.
5427 * src/vm/jit/verify/typeinfo.c (typeinfos_init_from_methoddesc):
5429 (typeinfo_init_component): Likewise.
5430 * src/vm/jit/verify/typecheck-builtins.inc: Likewise.
5431 * src/vm/jit/allocator/lsra.c (lsra_scan_registers_canditates):
5433 * src/vm/jit/allocator/simplereg.c (simplereg_allocate_temporaries):
5435 * src/vm/jit/allocator/liveness.c
5436 (liveness_scan_registers_canditates): Likewise.
5438 * src/vm/exceptions.c (exceptions_throw_outofmemory_exit): Removed.
5439 (new_internalerror): Removed.
5440 (exceptions_throw_internalerror): Rewritten.
5441 (exceptions_throw_outofmemoryerror): Added.
5443 * src/vm/exceptions.h: Likewise.
5445 * src/vm/utf8.c (utf_get_number_of_u2s): Use
5446 exceptions_throw_internalerror instead of throw_cacao_exception_exit.
5448 * src/native/native.c (native_init): Changed debug output.
5450 * src/mm/memory.c (memory_checked_alloc): Use vm_abort instead of
5451 exceptions_throw_outofmemory_exit.
5452 (mem_realloc): Changed debug output.
5453 * src/mm/boehm.c (gc_out_of_memory): Use vm_abort and
5454 exceptions_throw_outofmemoryerror.
5456 * src/cacaoh/cacaoh.c (cacaoh_abort): Added.
5457 (main): Use cacaoh_abort.
5459 * src/cacaoh/headers.c (throw_cacao_exception_exit): Removed.
5460 (exceptions_throw_outofmemory_exit): Likewise.
5461 (new_internalerror): Renamed to exceptions_throw_internalerror.
5462 (exceptions_throw_outofmemoryerror): Added.
5464 * src/vm/jit/tools/genoffsets.c (main): Don't print
5467 2007-01-10 09:28 twisti
5469 * src/vm/jit/parisc/linux/Makefile.am (libmd_la_SOURCES): Commented.
5471 2007-01-08 23:49 twisti
5473 * configure.ac: Added GPL header.
5475 2007-01-08 23:48 twisti
5477 * src/vm/vm.c (vm_create): Fixed off-by-one bug.
5479 2007-01-08 16:56 ajordan
5481 * src/vm/jit/sparc64/codegen.c: Fixed argument passing via the stack
5484 2007-01-07 20:56 ajordan
5486 * src/vm/jit/sparc64/codegen.c: Implemented INSTANCEOF and CHECKCAST
5488 * src/vm/jit/sparc64/patcher.c: and their respective patchers.
5490 * src/vm/jit/sparc64/codegen.h: Added comparison instructions.
5492 * src/vm/jit/sparc64/linux/md-os.c: Implemented instruction cache
5494 * src/vm/jit/sparc64/md.c: Likewise.
5496 2007-01-06 14:29 twisti
5498 * configure.ac: Check for libdl.
5500 2007-01-06 14:27 twisti
5502 * src/cacao/cacao.c (main): Print function name in error output.
5504 2007-01-06 01:27 edwin
5506 * src/vm/jit/inline/inline.c: Many refactorings and comments.
5508 2007-01-04 21:48 twisti
5510 * src/mm/memory.c (mem_realloc): Use vm_abort.
5512 2007-01-03 22:39 edwin
5514 * src/vm/jit/verify/typecheck-typeinferer.c: New type inference pass.
5515 * src/vm/jit/verify/typecheck-typeinferer.h: Likewise.
5517 * src/vm/jit/verify/typecheck-common.c: Moved code from typecheck.c
5518 that can be shared between the variables-based verifier and the
5519 type inference pass to this file.
5520 * src/vm/jit/verify/typecheck-common.h: Likewise.
5522 * src/vm/jit/verify/typecheck-multianewarray.inc: Moved code for
5523 type checking/infering MULTIANEWARRAY to this file.
5525 * src/vm/jit/verify/icmds.c: Adapted for generating the type
5527 * src/vm/jit/verify/typecheck-invoke.inc: Likewise.
5528 * src/vm/jit/verify/typecheck-fields.inc: Likewise.
5529 * src/vm/jit/verify/typecheck.c: Likewise.
5530 * src/vm/jit/verify/Makefile.am: Likewise.
5531 * src/vm/jit/verify/typecheck-builtins.inc: Likewise.
5533 * src/vm/jit/verify/typecheck-typeinferer-gen.inc: Generated.
5535 * src/vm/jit/verify/typecheck-stackbased-gen.inc: Regenerated.
5536 * src/vm/jit/verify/typecheck-variablesbased-gen.inc: Regenerated.
5538 2007-01-03 22:22 edwin
5540 * src/vm/jit/verify/icmds.c: Added comments.
5542 * src/vm/jit/verify/typecheck-stackbased-gen.inc,
5543 src/vm/jit/verify/typecheck-variablesbased-gen.inc: Regenerated.
5545 2007-01-03 22:20 edwin
5547 * src/vm/method.c, src/vm/method.h (method_count_implementations):
5550 2007-01-03 22:08 edwin
5552 * src/vm/jit/verify/generate.pl: Added options --typeinferer and
5553 --debug. Prepared for generating the type inference pass.
5555 2007-01-02 21:52 twisti
5557 * configure.ac (AC_CONFIG_FILES): Added
5558 src/vm/jit/parisc/linux/Makefile.
5559 * src/vm/jit/parisc/Makefile.am (SUBDIRS): Set to $(OS_DIR).
5560 * src/vm/jit/parisc/linux/Makefile.am: New file.
5562 2007-01-02 21:12 edwin
5564 * src/vm/jit/emit-common.h (emit_replacement_stubs): Only declare
5565 prototype if ENABLE_REPLACEMENT.
5567 2007-01-02 21:11 edwin
5569 * src/vm/jit/mips/codegen.c (codegen): Use REPLACEMENT_ macros.
5571 2007-01-02 20:50 edwin
5573 * src/vm/jit/jit.c (jit_invalidate_code): Require ENABLE_REPLACEMENT.
5575 2007-01-02 20:40 edwin
5577 * configure.ac: Added option --enable-replacement.
5579 * src/vm/jit/Makefile.am: Compile replace.c only for
5582 * src/vm/jit/replace.h: Define empty macros unless ENABLE_REPLACEMENT.
5584 * src/vm/jit/powerpc/emit.c: Enclosed replacement-specific code in
5585 #if ENABLE_REPLACEMENT.
5586 * src/vm/jit/powerpc/md.c: Likewise.
5587 * src/vm/jit/powerpc/asmpart.S: Likewise.
5588 * src/vm/jit/codegen-common.h: Likewise.
5589 * src/vm/jit/sparc64/emit.c: Likewise.
5590 * src/vm/jit/sparc64/md.c: Likewise.
5591 * src/vm/jit/alpha/emit.c: Likewise.
5592 * src/vm/jit/alpha/md.c: Likewise.
5593 * src/vm/jit/alpha/asmpart.S: Likewise.
5594 * src/vm/jit/code.c: Likewise.
5595 * src/vm/jit/code.h: Likewise.
5596 * src/vm/jit/tools/genoffsets.c: Likewise.
5597 * src/vm/jit/show.c: Likewise.
5598 * src/vm/jit/mips/emit.c: Likewise.
5599 * src/vm/jit/mips/md.c: Likewise.
5600 * src/vm/jit/mips/asmpart.S: Likewise.
5601 * src/vm/jit/powerpc64/md.c: Likewise.
5602 * src/vm/jit/powerpc64/asmpart.S: Likewise.
5603 * src/vm/jit/i386/emit.c: Likewise.
5604 * src/vm/jit/i386/md.c: Likewise.
5605 * src/vm/jit/i386/asmpart.S: Likewise.
5606 * src/vm/jit/asmpart.h: Likewise.
5607 * src/vm/jit/x86_64/emit.c: Likewise.
5608 * src/vm/jit/x86_64/md.c: Likewise.
5609 * src/vm/jit/x86_64/asmpart.S: Likewise.
5610 * src/vm/jit/codegen-common.c: Likewise.
5611 * src/vm/jit/jit.h: Likewise.
5613 2007-01-02 19:40 edwin
5615 * src/vm/jit/i386/codegen.c (codegen): Cleaned up to use REPLACEMENT_
5618 2007-01-02 16:20 twisti
5620 * tests/regression/jctest.java: Print hex numbers too.
5621 * tests/regression/jctest.output: Updated.