cacao.git
17 years ago* src/vm/loader.c (load_class_from_classloader): Add call to jvmti
motse [Wed, 14 Jun 2006 18:36:22 +0000 (18:36 +0000)]
* src/vm/loader.c (load_class_from_classloader): Add call to jvmti
Class Load and Prepare event.

* src/native/jni.c (RegisterNatives): Add comment for calling jvmti
Native Method Bind event.

* src/native/vm/VMClassLoader.c (defineClass): Add call to jvmti
Class File Load Hook event.

* src/native/vm/VMObject.c (wait): Add call to jvmti Monitor Wait
and Waited event.

* src/native/native.c (native_resolve_function): Add call to jvmti
Native Method Bind event.

* src/native/jvmti/cacaodbg.c (jvmti_ClassFileLoadHook): new function
to supprt event.
(jvmti_ClassLoadPrepare): idem
(jvmti_MonitorContendedEntering): idem
(jvmti_MonitorWaiting): idem
(jvmti_ThreadStartEnd): idem
(jvmti_NativeMethodBind): idem

* src/native/jvmti/cacaodbg.h: Add function headers for
jvmti_ClassFileLoadHook, jvmti_ClassLoadPrepare,
jvmti_MonitorContendedEntering, jvmti_MonitorWaiting,
jvmti_ThreadStartEnd, jvmti_NativeMethodBind.

* src/native/jvmti/jvmti.c (execute_callback): Add support for Class
File Load Hook event.
(GetOwnedMonitorInfo): Adapt lock record iteration to new
data structure.
(GetCurrentContendedMonitor): idem

* src/threads/native/lock.c (lock_monitor_enter): Add call to jvmti
Monitor Contended Enter and Entered event

* src/threads/native/threads.c (threads_startup_thread): replace
breakpoint by direct call to jvmti Thread Start/End event

* src/cacaoh/headers.c add dummy functions jvmti_ThreadStartEnd,
jvmti_ClassLoadPrepare and jvmti_MonitorContendedEntering

17 years ago* src/lib/vm/reference/java/lang/VMThread.java: Updated and removed
twisti [Tue, 13 Jun 2006 10:41:05 +0000 (10:41 +0000)]
* src/lib/vm/reference/java/lang/VMThread.java: Updated and removed
our old thread variables.
* src/native/include/java_lang_VMThread.h: Regenerated.

17 years ago* src/vm/jit/stack.c (new_stack_analyze): Fixed warnings about
edwin [Mon, 12 Jun 2006 21:34:04 +0000 (21:34 +0000)]
* src/vm/jit/stack.c (new_stack_analyze): Fixed warnings about
directive in macro argument.

17 years ago* src/vm/jit/show.c (new_show_basicblock): Fixed warnings.
edwin [Mon, 12 Jun 2006 21:27:33 +0000 (21:27 +0000)]
* src/vm/jit/show.c (new_show_basicblock): Fixed warnings.
(new_show_stackvar): Likewise.

17 years ago* src/vm/jit/stack.c (new_stack_analyse): Set dst field for IINC.
edwin [Mon, 12 Jun 2006 21:14:29 +0000 (21:14 +0000)]
* src/vm/jit/stack.c (new_stack_analyse): Set dst field for IINC.

* src/vm/jit/show.c (new_show_method): Use jitdata.new_rd.
Only show locals and interfaces if available.
(new_show_basicblock): Changed basicblock output format.
(new_show_stackvar): Copied&pasted full stackvar printing.
(new_show_icmd): Show some more ICMD operands.

* src/vm/jit/allocator/simplereg.c (new_reg_mark_copy): Fixed
bug for the case nthrough != 0.

17 years ago* src/vm/jit/allocator/simplereg.h, src/vm/jit/allocator/simplereg.c
edwin [Mon, 12 Jun 2006 18:50:13 +0000 (18:50 +0000)]
* src/vm/jit/allocator/simplereg.h, src/vm/jit/allocator/simplereg.c
(new_regalloc): New function for new instruction format.
(new_allocate_scratch_registers): Likewise.

* src/vm/jit/show.c (new_show_stackvar): Show allocated register
for stage SHOW_REGS and above.

* src/vm/jit/jit.h (jitdata): Added field new_rd for testing the
new simplereg allocator.

17 years ago* src/vm/jit/stack.c (new_stack_analyse): Fixed new stack analysis
edwin [Mon, 12 Jun 2006 14:23:28 +0000 (14:23 +0000)]
* src/vm/jit/stack.c (new_stack_analyse): Fixed new stack analysis
for ICMD_JSR.

* src/vm/jit/show.c (new_show_icmd): Show operands of new instruction
format.
(new_show_basicblock): Removed obsolete stack display.

17 years ago* src/vm/jit/stack.c (IF_INTRP): New macro.
edwin [Sat, 10 Jun 2006 14:53:54 +0000 (14:53 +0000)]
* src/vm/jit/stack.c (IF_INTRP): New macro.
(IF_JIT): New macro.
(STATISTICS_STACKDEPTH_DISTRIBUTION): New macro.
(new_stack_analyse): New function. Implemented stack analysis for
new instruction format. (Not used, yet.)

* src/vm/jit/stack.h (NEWSTACK): Enclosed in do { } while(0).

* src/vm/jit/show.h, src/vm/jit/show.c (new_show_method): New function.
(new_show_basicblock): New function.
(new_show_icmd): New function.

* src/vm/jit/parse.c (new_fillextable): New function.
(parse): Parsing of JSR changed. Fixed bptr->icount setting.

* src/vm/jit/jit.h (new_instruction): New field s3.jsrtarget.
New field dst.dupslots.

17 years ago* tests/regression/codepatching/test.java (aastoreconst): Fixed skip
twisti [Thu, 8 Jun 2006 07:26:29 +0000 (07:26 +0000)]
* tests/regression/codepatching/test.java (aastoreconst): Fixed skip
case.

17 years ago* src/vm/suck.c (suck_add_from_property): Always set namelist to NULL
twisti [Wed, 7 Jun 2006 12:51:50 +0000 (12:51 +0000)]
* src/vm/suck.c (suck_add_from_property): Always set namelist to NULL
before scandir.

17 years ago* src/vm/global.h (bool): Changed to `unsigned int', as the MIPS Pro
twisti [Wed, 7 Jun 2006 12:19:27 +0000 (12:19 +0000)]
* src/vm/global.h (bool): Changed to `unsigned int', as the MIPS Pro
compiler complains about signed bit fields. And I think that warning
is really ok.

* src/vm/suck.c (scandir_filter): Changed the signature define, as
only linux seems to use const.

17 years ago* src/vm/suck.c (suck_add_from_property): Check for scandir return
twisti [Wed, 7 Jun 2006 12:10:17 +0000 (12:10 +0000)]
* src/vm/suck.c (suck_add_from_property): Check for scandir return
value in error case, as on some systems, like Linux, it returns NULL.

17 years agosrc/native/vm/VMVirtualMachine.c (unregisterEvent): print error message
motse [Tue, 6 Jun 2006 21:13:41 +0000 (21:13 +0000)]
src/native/vm/VMVirtualMachine.c (unregisterEvent): print error message

src/native/jvmti/cacaodbg.c (jvmti_cacao_debug_init): set  variable jvmti

src/native/jvmti/VMjdwp.c: add jmethodID and jclass cache variables. Add new callback functions to jvmti_jdwp_EventCallbacks
(ThreadStart/ThreadEnd/ClassPrepare/Breakpoint): add ThreadStart/ThreadEnd event callbackes implementation who notify jdwp.
(Exception/MethodEntry): dummy implementation. There are no jdwp exeception/MethodEntry events in gnu classpath yet.
(setup_jdwp_thread): use cache variables.
FINDCLASSWITHEXCEPTION/GETMIDWITHEXCEPTION: helper macros to ease jni findclass and getmethodid.
(fillidcache): new function that fills valid jmethodIDs and jclasses in the cache variables.
(VMInit): add call to fillidcache.
(Agent_OnLoad): do not enable all jvmti callbacks anymore. Only enable needed VMInit callback. The other callbacks will be enable with VMVirtualMachine.registerEvent by need.

src/native/jvmti.c (dofireEvent): check if a valid event callback is available before executing it.
(SetEventNotificationMode): ThreadStart/End event are no more implemented as breakpoints but have direct function calls to dofireEvent.
(SuspendThread/ResumeThread/getcacaostacktrace): sketch for further implementation of this function. Final threads_suspend* functions are not yet available.
(GetArgumentsSize):  new implementation using parsed descriptors.
(GetMethodLocation): add checks for JVMTI_ERROR_NATIVE_METHOD (Samuel Vinson). And return -1 as return values for this dummy implementation.
(GetJLocationFormat): JLocationFormat probably will be JVMTI_JLOCATION_OTHER

src/native/jvmti/VMjdwp.h: add jdwpthread which stores the thread object for the jdwp listening thread.

src/threads/native/threads.h: remove jvmti_get_threads_breakpoints beacause ThreadStart/End events are implemented as direct function calls by now.

src/threads/native/threads.c (threads_startup_thread): replace ThreadStart/End event implementation.
(jvmti_get_threads_breakpoints): removed.

src/cacaoh/headers.c (jvmti_fireEvent): added dummy implementation to enable linking of cacaoh.

17 years ago* tests/regression/extest.java: Get the maximum heap size and use it
twisti [Tue, 6 Jun 2006 18:51:08 +0000 (18:51 +0000)]
* tests/regression/extest.java: Get the maximum heap size and use it
for OOM checks.
* tests/regression/extest.2output: Updated.

17 years ago* src/vm/jit/alpha/arch.h (SUPPORT_LONG_DIV_POW2)
twisti [Tue, 6 Jun 2006 18:05:16 +0000 (18:05 +0000)]
* src/vm/jit/alpha/arch.h (SUPPORT_LONG_DIV_POW2)
(SUPPORT_LONG_REM_POW2): Added, as we probably support these two
instructions while the architecture does not support long division.
* src/vm/jit/i386/arch.h: Likewise.
* src/vm/jit/mips/arch.h: Likewise.
* src/vm/jit/powerpc/arch.h: Likewise.
* src/vm/jit/x86_64/arch.h: Likewise.

* src/vm/jit/stack.c (stack_analyse): Use SUPPORT_LONG_DIV_POW2 and
SUPPORT_LONG_REM_POW2 instead of SUPPORT_LONG_DIV.

17 years ago* doc/handbook/arm.tex: Added.
michi [Tue, 6 Jun 2006 14:32:01 +0000 (14:32 +0000)]
* doc/handbook/arm.tex: Added.
* doc/handbook/arm-double-memory.png: Image describing doubles in memory.
* doc/handbook/cacao.tex, doc/handbook/Makefile.am: Added arm.tex.

17 years ago* tests/regression/Makefile.am (JAVAFLAGS): Use flat vm classes and
twisti [Tue, 6 Jun 2006 13:13:46 +0000 (13:13 +0000)]
* tests/regression/Makefile.am (JAVAFLAGS): Use flat vm classes and
CLASSPATH_GLIBJ_ZIP.
* tests/regression/codepatching/Makefile.am: Likewise.
* tests/regression/native/Makefile.am: Likewise.

17 years ago* .externalToolBuilders/CacaoConfigure.launch: Updated to new
twisti [Tue, 6 Jun 2006 12:17:18 +0000 (12:17 +0000)]
* .externalToolBuilders/CacaoConfigure.launch: Updated to new
configure options.

17 years ago* configure.ac (VM_ZIP_STRING): Removed.
twisti [Tue, 6 Jun 2006 11:22:56 +0000 (11:22 +0000)]
* configure.ac (VM_ZIP_STRING): Removed.
(--with-vm-zip): Added.
(--with-classpath-glibj-zip): Added.
(--with-flat-classpath): Removed.

* contrib/setenvinstalled.in (BOOTCLASSPATH): Use hardcoded vm.zip and
@CLASSPATH_GLIBJ_ZIP@.
* contrib/setenvsource.in: Likewise.

* src/vm/global.h (CACAO_VM_ZIP_PATH): Removed.
(CLASSPATH_GLIBJ_ZIP_PATH): Likewise.
* src/vm/vm.c (CACAO_VM_ZIP_PATH): Replaced with CACAO_VM_ZIP.
(CLASSPATH_GLIBJ_ZIP_PATH): Replaced with CLASSPATH_GLIBJ_ZIP.
* src/cacaoh/cacaoh.c: Likewise.

* src/lib/Makefile.am (GLIBJ_ZIP): Removed and replaced with
CLASSPATH_GLIBJ_ZIP.
* src/native/include/Makefile.am (VM_ZIP): Removed and replaced with
flat classes in builddir.
(GLIBJ_ZIP): Removed and replaced with CLASSPATH_GLIBJ_ZIP.
* src/native/Makefile.am: Likewise.

17 years ago* src/vm/jit/stack.h (NEW_CHECKOVERFLOW): New macro.
edwin [Thu, 1 Jun 2006 22:53:52 +0000 (22:53 +0000)]
* src/vm/jit/stack.h (NEW_CHECKOVERFLOW): New macro.

17 years ago* src/vm/jit/parse.c (new_parse): Use temporary fields in jitdata,
edwin [Thu, 1 Jun 2006 22:52:44 +0000 (22:52 +0000)]
* src/vm/jit/parse.c (new_parse): Use temporary fields in jitdata,
instead of methodinfo fields. Check exceptions for MONITORENTER/EXIT.
Cleaned up.

17 years ago* src/vm/jit/parse.h (new_block_insert): New macro.
edwin [Thu, 1 Jun 2006 22:49:31 +0000 (22:49 +0000)]
* src/vm/jit/parse.h (new_block_insert): New macro.

17 years ago* src/vm/jit/jit.h (jitdata): Added temporary fields for development
edwin [Thu, 1 Jun 2006 22:46:54 +0000 (22:46 +0000)]
* src/vm/jit/jit.h (jitdata): Added temporary fields for development
of new instruction format.
(NEW_INSTRUCTION_GET_METHODDESC): New macro.

17 years ago* src/vm/resolve.c (new_resolve_field_lazy): New method. This will
edwin [Thu, 1 Jun 2006 16:00:18 +0000 (16:00 +0000)]
* src/vm/resolve.c (new_resolve_field_lazy): New method. This will
become the resolve_field_lazy for the new instruction format.
(new_resolve_method_lazy): New method. This will
become the resolve_method_lazy for the new instruction format.
(new_create_unresolved_field): New method. This will
become the create_unresolved_field for the new instruction format.
(new_create_unresolved_method): New method. This will
become the create_unresolved_method for the new instruction format.

* src/vm/jit/parse.c (new_parse): Further work for new format.

* src/vm/jit/jit.h (NEW_INSTRUCTION_GET_FIELDREF): New macro.
(NEW_INSTRUCTION_GET_METHODREF): New macro.

17 years ago* src/vm/jit/jit.c (jcommandsize): Reformatted prettily. Use comments
edwin [Thu, 1 Jun 2006 15:09:24 +0000 (15:09 +0000)]
* src/vm/jit/jit.c (jcommandsize): Reformatted prettily. Use comments
instead of duplicated #defines.

17 years ago* src/vm/jit/jit.h (ICMD_CHECKNULL_POP): New ICMD.
edwin [Thu, 1 Jun 2006 14:36:38 +0000 (14:36 +0000)]
* src/vm/jit/jit.h (ICMD_CHECKNULL_POP): New ICMD.
* src/vm/jit/jit.c (ICMD_CHECKNULL_POP): Likewise.

* src/vm/jit/parse.c (new_parse): Further work on parsing for new
instruction format. Zero flags where necessary. Clarify policy of
at most one instruction per byte of original bytecode. Use the new
ICMD_CHECKNULL_POP for MONITORENTER/EXIT without threads.

17 years ago* src/vm/jit/parse.h: Reworked and documented macros for new
edwin [Thu, 1 Jun 2006 13:00:33 +0000 (13:00 +0000)]
* src/vm/jit/parse.h: Reworked and documented macros for new
instruction set.

17 years ago* src/vm/jit/jit.h: Whitespace cleanup and comments.
edwin [Wed, 31 May 2006 23:18:30 +0000 (23:18 +0000)]
* src/vm/jit/jit.h: Whitespace cleanup and comments.

17 years ago* src/vm/jit/parse.c (parse): Removed unnecessary variable `s4ptr`.
edwin [Wed, 31 May 2006 23:03:35 +0000 (23:03 +0000)]
* src/vm/jit/parse.c (parse): Removed unnecessary variable `s4ptr`.

17 years ago* src/vm/jit/parse.c (new_parse): Implement LOOKUPSWITCH and
edwin [Wed, 31 May 2006 22:56:17 +0000 (22:56 +0000)]
* src/vm/jit/parse.c (new_parse): Implement LOOKUPSWITCH and
TABLESWITCH for the new instruction format.

* src/vm/jit/jit.h (branch_target_t): New union.
(lookup_target_t): New struct.
(s3_operand_t): lookupdefault is now a branch_target_t.
(dst_operand_t): Changed some field names and types.

17 years ago* src/native/jvmti/Makefile.am (INCLUDES): Renamed to AM_CPPFLAGS.
twisti [Wed, 31 May 2006 22:07:13 +0000 (22:07 +0000)]
* src/native/jvmti/Makefile.am (INCLUDES): Renamed to AM_CPPFLAGS.
(LIBS): Added, required for darwin.
(libjdwp_la_SOURCES): Removed trailing \.

17 years ago* src/vm/jit/ifconv/ifconv.c (show.h): Include this instead of
edwin [Wed, 31 May 2006 21:31:29 +0000 (21:31 +0000)]
* src/vm/jit/ifconv/ifconv.c (show.h): Include this instead of
stack.h.
* src/vm/jit/verify/typecheck.c (show.h): Likewise.
* src/vm/jit/inline/inline.c (show.h): Include.
* src/vm/jit/jit.c (show.h): Include.

17 years ago* src/vm/jit/show.c (show_init): Do not define this function for
edwin [Wed, 31 May 2006 21:10:40 +0000 (21:10 +0000)]
* src/vm/jit/show.c (show_init): Do not define this function for
NDEBUG.

17 years ago* src/vm/jit/show.h: New file.
edwin [Wed, 31 May 2006 20:28:27 +0000 (20:28 +0000)]
* src/vm/jit/show.h: New file.
* src/vm/jit/show.c: New file.

* src/vm/jit/stack.h (stack_show_method): Moved to show.h, renamed to
show_method.
(stack_show_basicblock): Moved to show.h, renamed to show_basicblock.
(stack_show_icmd): Moved to show.h, renamed to show_icmd.

* src/vm/jit/stack.c (lock_stack_show_icmd): Moved to show.c, renamed
to show_global_lock.
(stack_show_method): Moved to show.c, renamed to show_method.
(stack_show_basicblock): Moved to show.c, renamed to show_basicblock.
(stack_show_icmd): Moved to show.c, renamed to show_icmd.
(stack_init): This function is now empty.

* src/vm/jit/ifconv/ifconv.c (stack_show_basicblock): Renamed to
show_basicblock.

* src/vm/jit/inline/inline.c (stack_show_method): Renamed to
show_method.
(stack_show_icmd): Renamed to show_icmd.

* src/vm/jit/inline/inline_debug.inc (stack_show_icmd): Renamed to
show_icmd.

* src/vm/jit/jit.c (jit_init): Call show_init.
(stack_show_method): Renamed to show_method.

* src/vm/jit/Makefile.am (show.c): Added.
(show.h): Added.

* src/threads/native/lock.h (pthread.h): Included.

17 years ago* src/vm/jit/jit.h (s3_operant_t): Typo fixed to s3_operand_t. Thanks, twisti.
edwin [Wed, 31 May 2006 19:25:46 +0000 (19:25 +0000)]
* src/vm/jit/jit.h (s3_operant_t): Typo fixed to s3_operand_t. Thanks, twisti.

17 years agosrc/native/vm/VMVirtualMachine.c (suspendThread): print error message with printjvmti...
motse [Wed, 31 May 2006 13:53:16 +0000 (13:53 +0000)]
src/native/vm/VMVirtualMachine.c (suspendThread): print error message with printjvmtierror
(resumeThread): idem
(getAllLoadedClassCount): idem
(getAllLoadedClasses): idem
(getClassStatus): idem
(getAllClassMethods): idem
(getFrameCount): idem
(getThreadStatus): idem
(getSourceFile): idem
(registerEvent): idem

src/native/vm/VMMethod.c (printjvmtierror): new helper function for getting and print error messages
(getName): print error message with printjvmtierror, remove signature, generic signature
(getSignature): print error message with printjvmtierror, remove name, generic signature
(getModifiers): print error message with printjvmtierror
(getlinetable): idem
(fillVariableTable): new function for converting jvmtiLocalVariableEntry to arguments for gnu.classpath.jdwp.util.VariableTable constructor
(getVariableTable): new implementation. tries to get local variable table and return gnu.classpath.jdwp.util.VariableTable.

src/native/include/Makefile.am: add VariableTable

src/native/jvmti/VMjdwp.c (printjvmtierror) new function (duplicate) - this is a work around
(VMInit): print error message with printjvmtierror

src/native/jvmti/jvmti.c (InterruptThread): new implentation
(GetThreadInfo): switch form using javastring_tochar (uses malloc) to javastring_toutf/utf_sprint_convert_to_latin1
(GetOwnedMonitorInfo): fix error handling
(GetFrameLocation): idem
(DestroyRawMonitor): use heap_free
(GetClassSignature): fix error handling
(GetSourceFileName): use utf_bytes
(GetFieldName): fix error handling
(GetFieldDeclaringClass): add error handling
(GetFieldModifiers): idem
(GetMethodName): fix error handling
(GetClassLoaderClasses): idem
(GenerateEvents): add CHECK_CAPABILITY can_generate_compiled_method_load_events

src/native/jvmti/VMjdwp.h add printjvmtierror

17 years ago* src/vm/jit/x86_64/md-emit.h (IS_IMM8, IS_IMM32): Removed.
twisti [Wed, 31 May 2006 13:10:49 +0000 (13:10 +0000)]
* src/vm/jit/x86_64/md-emit.h (IS_IMM8, IS_IMM32): Removed.
* src/vm/jit/emit.h (IS_IMM8, IS_IMM32): Added.

17 years ago* src/vm/jit/x86_64/emit.c: Use new emit methods, saves about 6k code
twisti [Wed, 31 May 2006 12:33:40 +0000 (12:33 +0000)]
* src/vm/jit/x86_64/emit.c: Use new emit methods, saves about 6k code
size.
(emit_membase32): New method.
(emit_memindex): Likewise.
* src/vm/jit/x86_64/md-emit.h (emit_membase32): Removed.
(emit_memindex): Likewise.

17 years ago* src/vm/jit/parse.c (new_parse): Worked on implementing parsing for
edwin [Tue, 30 May 2006 23:38:32 +0000 (23:38 +0000)]
* src/vm/jit/parse.c (new_parse): Worked on implementing parsing for
the new instruction format. (Not used, yet.)
* src/vm/jit/parse.h: Likewise.

* src/vm/jit/jit.h (INS_FLAG_UNRESOLVED, INS_FLAG_CLASS)
(INS_FLAG_ARRAY, INS_FLAG_NOCHECK): Added flag constants for new
instruction format.

17 years ago* src/vm/jit/parse.h (new_instruction): Moved `bte` field to s3.
edwin [Tue, 30 May 2006 12:24:51 +0000 (12:24 +0000)]
* src/vm/jit/parse.h (new_instruction): Moved `bte` field to s3.
* src/vm/jit/jit.h: Likewise.

17 years ago* src/vm/jit/jit.h (subroutineinfo): Removed unused typedef.
edwin [Mon, 29 May 2006 23:59:19 +0000 (23:59 +0000)]
* src/vm/jit/jit.h (subroutineinfo): Removed unused typedef.

17 years ago* src/vm/jit/parse.h: New macros for new instruction format (not used,
edwin [Mon, 29 May 2006 23:47:07 +0000 (23:47 +0000)]
* src/vm/jit/parse.h: New macros for new instruction format (not used,
yet).

* src/vm/jit/jit.h (new_instruction, ...): Further development of new
instruction format (not used, yet).

17 years ago* src/vm/jit/parse.h: Reordered and commented macros. No functional
edwin [Mon, 29 May 2006 22:37:02 +0000 (22:37 +0000)]
* src/vm/jit/parse.h: Reordered and commented macros. No functional
changes.
(Changes): Added my name.

17 years ago* src/vm/jit/parse.c (new_parse): New function. This will become the
edwin [Mon, 29 May 2006 21:48:50 +0000 (21:48 +0000)]
* src/vm/jit/parse.c (new_parse): New function. This will become the
parse function for the new instruction format.
(parse): Removed obsolete variable `gp`. (Was used for old inlining).

* src/vm/jit/jit.h (jitdata): Added temporary fields
`new_instructions` and `new_instructioncount` for parallel
development of the new instruction format.

17 years ago* src/vm/jit/jit.h (new_instruction): Committed the new instruction
edwin [Mon, 29 May 2006 20:22:58 +0000 (20:22 +0000)]
* src/vm/jit/jit.h (new_instruction): Committed the new instruction
struct (with name `new_instruction` so it can co-exist with the old
format `instruction`).
(resolve.h): Include for new instruction format.

* src/vm/resolve.h (typeinfo.h): Include to resolve dependencies.

* src/vm/jit/parse.h: Added a reminder comment.

17 years ago* Tagging 0.96.
twisti [Mon, 29 May 2006 19:47:42 +0000 (19:47 +0000)]
* Tagging 0.96.

17 years ago* configure.ac (AC_INIT): Changed to 0.96+svn.
twisti [Mon, 29 May 2006 19:28:31 +0000 (19:28 +0000)]
* configure.ac (AC_INIT): Changed to 0.96+svn.
(CFLAGS): Changed to -O0.

17 years ago* ChangeLog: Updated.
twisti [Mon, 29 May 2006 18:53:56 +0000 (18:53 +0000)]
* ChangeLog: Updated.

17 years ago* configure.ac (AC_INIT): Changed to version 0.96.
twisti [Mon, 29 May 2006 18:52:35 +0000 (18:52 +0000)]
* configure.ac (AC_INIT): Changed to version 0.96.
(CFLAGS): Changed to -O2.
* NEWS: Changed date.

17 years ago* src/vm/vm.c (usage): Removed new-line.
twisti [Mon, 29 May 2006 15:51:35 +0000 (15:51 +0000)]
* src/vm/vm.c (usage): Removed new-line.

17 years ago* src/vm/vm.c (OPT_GLIBJ): Added.
twisti [Mon, 29 May 2006 15:37:11 +0000 (15:37 +0000)]
* src/vm/vm.c (OPT_GLIBJ): Added.
(Xusage): Added help for -Xglibj.
(version): Changed signature for conditional exit.
(main): Added OPT_GLIBJ. Print version after all commandline arguments
have been handled.

17 years ago* src/vm/linker.c (link_class_intern): On i386 align all fields to
edwin [Mon, 29 May 2006 15:21:46 +0000 (15:21 +0000)]
* src/vm/linker.c (link_class_intern): On i386 align all fields to
just 4 bytes as gcc does. This makes the offsets of Java fields match
the offset of native headers. This fixes a bug (java.lang.Double.value
had been at offset 16, but java_lang_Double.value is offset 12).

17 years ago* src/threads/native/critical.h (signal.h): Added, build fix for some
twisti [Mon, 29 May 2006 15:17:35 +0000 (15:17 +0000)]
* src/threads/native/critical.h (signal.h): Added, build fix for some
older Darwin systems.

17 years ago* NEWS: Added a lot of stuff.
twisti [Mon, 29 May 2006 14:32:26 +0000 (14:32 +0000)]
* NEWS: Added a lot of stuff.

17 years ago* src/cacao/Makefile.am: Renamed libcacaovm.so to libjvm.so to be
twisti [Mon, 29 May 2006 14:31:12 +0000 (14:31 +0000)]
* src/cacao/Makefile.am: Renamed libcacaovm.so to libjvm.so to be
binary compatible with Sun.

17 years agosrc/native/jni.c: removed jvmti.h included cacaodbg.h for GetEnv - jvmti
motse [Mon, 29 May 2006 09:41:02 +0000 (09:41 +0000)]
src/native/jni.c: removed jvmti.h included cacaodbg.h for GetEnv - jvmti
src/native/vm/VMVirtualMachine.c: formatting changes/removed debug statements
src/native/vm/VMMethod.c: (getName/getSignature/getModifiers/getLineTable): (Samuel Vinson) new implementation. (partially changed by motse)
src/native/jvmti/cacaodbg.h: removed unused function declarations
src/native/jvmti/jvmti.c (getcacaostacktrace): new implementation - does not yet handle traces of not current threads correctly.
(GetMethodName): fix: return JVMTI_ERROR_NULL_POINTER only on method == NULL
(GetFrameCount/GetStackTrace): fixed check for valid thread argument.

18 years ago* src/toolbox/logging.h (stdarg.h): Include it here, instead of in logging.c.
edwin [Fri, 26 May 2006 16:24:58 +0000 (16:24 +0000)]
* src/toolbox/logging.h (stdarg.h): Include it here, instead of in logging.c.
* src/toolbox/logging.c: See above.

18 years ago* src/vm/jit/powerpc/linux/md-os.c (thread_restartcriticalsection):
twisti [Fri, 26 May 2006 12:58:40 +0000 (12:58 +0000)]
* src/vm/jit/powerpc/linux/md-os.c (thread_restartcriticalsection):
Removed assert.
* src/vm/jit/powerpc/darwin/md-os.c (thread_restartcriticalsection):
Compile fix. Removed assert.

18 years ago* NEWS: Added unicode cleanup.
edwin [Fri, 26 May 2006 12:46:03 +0000 (12:46 +0000)]
* NEWS: Added unicode cleanup.

18 years ago* NEWS: Added tasuki locks and other news.
edwin [Fri, 26 May 2006 12:44:23 +0000 (12:44 +0000)]
* NEWS: Added tasuki locks and other news.

18 years agosrc/native/jvmti/jvmti.c (GetClassStatus): bugfix - only compare class state
motse [Fri, 26 May 2006 12:31:23 +0000 (12:31 +0000)]
src/native/jvmti/jvmti.c (GetClassStatus): bugfix - only compare class state

18 years ago* src/vm/jit/stacktrace.c (stacktrace_remove_stackframeinfo): Commented.
edwin [Fri, 26 May 2006 12:26:41 +0000 (12:26 +0000)]
* src/vm/jit/stacktrace.c (stacktrace_remove_stackframeinfo): Commented.

18 years ago* src/vm/jit/powerpc/linux/md-os.c (thread_restartcriticalsection):
twisti [Fri, 26 May 2006 12:25:51 +0000 (12:25 +0000)]
* src/vm/jit/powerpc/linux/md-os.c (thread_restartcriticalsection):
Implemented.
* src/vm/jit/powerpc/darwin/md-os.c: Likewise.

18 years ago* src/vm/builtin.c (builtin_init): Documented.
edwin [Fri, 26 May 2006 12:19:43 +0000 (12:19 +0000)]
* src/vm/builtin.c (builtin_init): Documented.
(builtin_trace_args): Documented.
(builtin_displaymethodstop): Documented.

* src/vm/jit/alpha/md-abi.c (md_param_alloc): Documented.

* src/vm/jit/allocator/simplereg.c (allocate_scratch_registers):
Documented.

* src/vm/jit/codegen-common.c (methodtree_comparator): Documented.
(codegen_insertmethod): Documented.

* src/toolbox/util.c (getcwd): Documented.

18 years ago* src/vm/loader.h: Comment update.
edwin [Fri, 26 May 2006 12:09:29 +0000 (12:09 +0000)]
* src/vm/loader.h: Comment update.

* src/vm/jit/verify/typecheck.c (verify_basic_block): Removed obsolete
inlining check.

* src/vm/jit/replace.c: Typo fixed.

* src/vm/jit/reg.c: Avoid XXX as wildcard in comments.
* src/vm/jit/jit.h: Likewise.

18 years ago* src/vm/properties.c (properties_system_add): Changed
twisti [Fri, 26 May 2006 11:57:20 +0000 (11:57 +0000)]
* src/vm/properties.c (properties_system_add): Changed
javastring_new_from_ascii to javastring_new_from_utf_string.

* src/native/jni.c (ThrowNew): Use a variable for clazz.
(JNI_CreateJavaVM): Release allocated memory if vm_create fails.

* src/threads/native/threads.c: Comments reformatted.

18 years ago* src/vm/class.c (class_resolveclassmethod): Removed obsolete XXX comments.
edwin [Fri, 26 May 2006 11:48:10 +0000 (11:48 +0000)]
* src/vm/class.c (class_resolveclassmethod): Removed obsolete XXX comments.
(class_resolveinterfacemethod): Likewise.
(class_resolvefield): Likewise.

* src/vm/classcache.h: Removed obsolete XXX comment.

* src/vm/jit/allocator/lsra.h: Changed TYPE_XXX to TYPE_* in comments.
* src/vm/jit/jit.c: Likewise.

* src/native/vm/VMObject.c (Java_java_lang_VMObject_clone):
Removed obsolete XXX comment.

* src/mm/memory.c (dump_release): Removed obsolete debugging code.

18 years ago* src/native/jni.c (DefineClass): Use javastring_new_from_utf_string.
edwin [Fri, 26 May 2006 11:22:08 +0000 (11:22 +0000)]
* src/native/jni.c (DefineClass): Use javastring_new_from_utf_string.
(ThrowNew): Likewise.

18 years ago* src/mm/boehm.c (stackcall_malloc_atomic): Removed.
twisti [Fri, 26 May 2006 09:30:22 +0000 (09:30 +0000)]
* src/mm/boehm.c (stackcall_malloc_atomic): Removed.
(stackcall_malloc_uncollectable): Likewise.
(heap_alloc_uncollectable): Use macros directly.
(heap_allocate): Likewise.

* src/vm/vm.c: Added -jvm options, which is available on darwin.

* src/vm/suck.c (scandir_filter): Changed signature for darwin.

18 years agosrc/vm/vm.c(usage): added information for jvmti agent for jdwp
motse [Thu, 25 May 2006 21:59:49 +0000 (21:59 +0000)]
src/vm/vm.c(usage): added information for jvmti agent for jdwp
(vm_create): jdwp code move to jvmti agent for jdwp (VMjdwp.c)
src/cacao/cacao.c (main): jdwp code move to jvmti agent for jdwp. execute jvmti_set_phase only if needed
src/native/jvmti/cacaodbg.c (setup_jdwp_thread): jdwp code move to jvmti agent for jdwp
src/native/jvmti/VMjdwp.c: change this to a jvmti complaint agent by using jni/jvmti function instead of cacao specific functions and implement a Agent_OnLoad as main entry point. Include setup_jdwp_thread function.
src/native/jvmti/Makefile.am: add libjdwp.so
src/native/jvmti/cacaodbg.h: remove no more needed global jdwp related variables
src/native/jvmti/jvmti.c: (Resume/SuspendThread(List)): add temporary implementation for trying jdwp
(jvmti_agentload): bugfix in getting/passing libname/arguments

18 years ago* vm/jit/intrp/intrp.h (global_sp): Added space, yeah, whatever...
twisti [Thu, 25 May 2006 12:28:51 +0000 (12:28 +0000)]
* vm/jit/intrp/intrp.h (global_sp): Added space, yeah, whatever...
* vm/jit/intrp/dynamic-super.c (vm/builtin.h): Added.
(vm/jit/disass.h): Likewise.
(gen_inst): Fixed compiler warnings.
* vm/jit/intrp/java.vmg: Fixed compiler warnings with
stacktrace_create_stackframeinfo.
* threads/native/threads.h (threadobject): Changed type of _global_sp
to u1*.

18 years ago* NEWS: Sorry.
twisti [Thu, 25 May 2006 12:22:01 +0000 (12:22 +0000)]
* NEWS: Sorry.

18 years ago* src/vm/vm.c (HEAP_MAXSIZE): Changed to 128MB.
twisti [Thu, 25 May 2006 12:21:23 +0000 (12:21 +0000)]
* src/vm/vm.c (HEAP_MAXSIZE): Changed to 128MB.
(STACK_SIZE): Changed to 64kB.
(Xusage): Calculate default sizes.

* NEWS: New stuff added.

18 years ago* src/vm/jit/x86_64/md-emit.h (emit_movl_reg_reg): Added.
twisti [Thu, 25 May 2006 11:29:32 +0000 (11:29 +0000)]
* src/vm/jit/x86_64/md-emit.h (emit_movl_reg_reg): Added.

18 years ago* configure.ac: Disable inlining and lsra by default.
edwin [Thu, 25 May 2006 11:24:37 +0000 (11:24 +0000)]
* configure.ac: Disable inlining and lsra by default.

18 years ago* src/threads/native/threads.c (threads_startup_thread): Allocate Java
twisti [Wed, 24 May 2006 14:11:16 +0000 (14:11 +0000)]
* src/threads/native/threads.c (threads_startup_thread): Allocate Java
stack on Java heap instead of hardware stack.

18 years ago* configure.ac: Added INTRP_CFLAGS.
twisti [Wed, 24 May 2006 14:08:56 +0000 (14:08 +0000)]
* configure.ac: Added INTRP_CFLAGS.
* src/vm/jit/intrp/Makefile.am (CFLAGS): Set to INTRP_CFLAGS.

18 years agosrc/vm/vm.c (vm_exit): only set JVMTI_PHASE_DEAD if a jvmti agent or a jvmti environm...
motse [Wed, 24 May 2006 11:00:38 +0000 (11:00 +0000)]
src/vm/vm.c (vm_exit): only set JVMTI_PHASE_DEAD if a jvmti agent or a jvmti environment is loaded.
src/native/jvmti/cacaodbg.c (jvmti_cacaodbgserver_quit): bugfix: set dbgcom = NULL only if all environments have been disposed.
src/native/jvmti/jvmti.c (GetLoadedClasses): remove debug statement

18 years agosrc/vm/classcache.c: export CLASSCACHE_LOCK/UNLOCK and lock_hashtable_classcache
motse [Tue, 23 May 2006 19:52:47 +0000 (19:52 +0000)]
src/vm/classcache.c: export CLASSCACHE_LOCK/UNLOCK and lock_hashtable_classcache
src/vm/classcache.h: idem
src/native/jvmti/jvmti.c (GetLoadedClasses) implemented (sv/motse)
(GetClassSignature) fixed

18 years agosrc/vm/vm.c (vm_create): rename jvmti function calls
motse [Tue, 23 May 2006 15:31:19 +0000 (15:31 +0000)]
src/vm/vm.c (vm_create): rename jvmti function calls

src/cacao/cacao.c (main): rename jvmti function calls

src/native/jni.c (GetEnv): rename jvmti function calls. jvmti version changed to JVMTI_VERSION_INTERFACE_JVMTI

src/native/vm/VMVirtualMachine.c (getAllLoadedClassesCount): (Samuel Vinson) implemented.
(getAllLoadedClassesCount): jvmti Deallocate call added. (sv): CallObjectMethod fix
(getAllClassMethods): (Samuel Vinson) implemented.
(getClassMethod): (Samuel Vinson) implemented.

src/native/jvmti/jvmti.h: added JVMTI_VERSION interface and mask

src/native/jvmti/cacaodbgserver.h: msg queue/shared mem related things removed. gdb related defines added.

src/native/jvmti/dbg.h: remove ptrace related things

src/native/jvmti/cacaodbg.c change setsysbrkpt name to jvmti_set_system_breakpoint, addbrkpt to jvmti_add_breakpoint, allthreads to jvmti_get_all_threads
(jvmti_cacao_debug_init): new function where fork/exec of cacaodbgserver takes place
(jvmti_set_system_breakpoint): added functionality for brkpt delete and asm label for cacaodbgserver support
(jvmti_cacaodbgserver_quit): new function for killing cacaodbgserver properly
(jvmti_cacao_generic_breakpointhandler): new function. This is the entry point for every breakpointhandler and start for a new jvmti event
(jvmti_cacao_debug_init): new function for starting up cacaodbgserver process.

src/native/jvmti/VMjdwp.c (jvmti_VMjdwpInit): function renamed

src/native/jvmti/Makefile.am: delete dbg.c. (sv) add compile/install support for cacaodbgserver.

src/native/jvmti/cacaodbg.h: breakpoint counter added to struct _brkpt. change setsysbrkpt name to jvmti_set_system_breakpoint, addbrkpt to jvmti_add_breakpoint, allthreads to jvmti_get_all_threads, fireEvent to jvmti_fireEvent, agentload to jvmti_agentload agentunload to jvmti_agentunload, getcurrentthread to jvmti_get_current_thread, set_jvmti_phase to jvmti_set_phase, new_jvmtienv to jvmti_new_environment, VMjdwpinit to jvmti_VMjdwpInit. added breakpoint table constants. removed global jdwp, jvmti, suspend, transport, agentarg variables

src/native/jvmti/jvmti.c all jvmti-environment function changed to static functions. execcallback renamed to execute_callback. fireEvent renamed to jvmti_fireEvent.
(execute_callback): add phase checks
(GetClassMethods): bugfix in copying jmethodIDs
(DisposeEnvironment): relocate work to jvmti_cacaodbgserver_quit
(jvmti_new_environment) : relocate forking new process to jvmti_cacao_debug_init
(CHECK_ADD_CAPABILITY): bugfix in adding capabilities
(GetClassMethods): bugfix coping methodinfo pointers
(SetEventNotificationMode): setsysbrkpt calls added.
rename jvmti function names.

src/native/jvmti/cacaodbgserver.c changed to support gdb insted of using ptrace directly.
(getchildprocptrace): removed
(waitloop): removed
(startgdb): new function. start a new gdb session.
(getgdboutput): new helper function for getting gdb output.
(dataevaluate): new helper function for getting value for a given expression
(commonbreakpointhandler): new function which handles SIGTRAPs and gdb breakpoint hits.
(controlloop) : new function handle communication with gdb
(main): removed old code. added calls to startgdb and controlloop

src/native/jvmti/dbg.c removed

src/threads/native/threads.h: removed threads_set_current_threadobject. added jvmti_get_threads_breakpoints

src/threads/native/threads.c: (threads_startup_thread) add thread start/end asm lables
(threads_set_current_threadobject): removed jvmti thread start support.
(jvmti_get_threads_breakpoints) new function that gets addresses of asm lables.

src/threads/native/lock.h: added definition of lock_global_pool_lock and lock_global_pool

18 years ago* src/vm/jit/x86_64/codegen.c: Changed the code generator to produce
twisti [Tue, 23 May 2006 08:51:33 +0000 (08:51 +0000)]
* src/vm/jit/x86_64/codegen.c: Changed the code generator to produce
RISC-like code. These are way too much changes to name them.
(createnativestub): Bugfix in argument saving.
* src/vm/jit/x86_64/codegen.h: Likewise.
* src/vm/jit/x86_64/emit.c: Likewise.
* src/vm/jit/x86_64/md-emit.h: Likewise.

18 years ago* src/vm/options.c (opt_heapmaxsize, opt_heapstartsize): Added.
twisti [Tue, 23 May 2006 08:42:46 +0000 (08:42 +0000)]
* src/vm/options.c (opt_heapmaxsize, opt_heapstartsize): Added.
* src/vm/options.h: Likewise.

* src/vm/vm.c (version): Print heap and stack information.
(vm_create): Use global option variables.

18 years ago* src/vm/jit/x86_64/emit.c (emit_movl_reg_reg): New function.
twisti [Tue, 23 May 2006 08:25:14 +0000 (08:25 +0000)]
* src/vm/jit/x86_64/emit.c (emit_movl_reg_reg): New function.

* src/vm/jit/x86_64/codegen.c (ICMD_L2I): Only move the low
32-bit. Otherwise this may cause a bug with e.g. array accesses, as
the index registers are treated as 64-bit.

* src/vm/jit/x86_64/codegen.h (gen_bound_check): Bugfix: only read
32-bit.
(M_IMOV): Added.
(M_ICMP_MEMBASE): Likewise.

18 years ago* configure.ac: Added --with-classpath-includedir.
twisti [Mon, 22 May 2006 16:14:19 +0000 (16:14 +0000)]
* configure.ac: Added --with-classpath-includedir.

18 years ago* NEWS: Some news.
twisti [Mon, 22 May 2006 09:07:15 +0000 (09:07 +0000)]
* NEWS: Some news.

18 years ago* src/vm/vm.c (vm_abort): New method.
twisti [Mon, 22 May 2006 09:06:44 +0000 (09:06 +0000)]
* src/vm/vm.c (vm_abort): New method.
* src/vm/vm.h: Likewise.
* src/cacaoh/headers.c: Likewise.

* src/toolbox/logging.c (log_vprint): Made non-static.
* src/toolbox/logging.h (log_vprint): Added.

* src/threads/native/threads.c (threads_sem_init): Use vm_abort.
(threads_sem_wait): Likewise.
(threads_sem_post): Likewise.
(threads_current_time_is_earlier_than): Likewise.
(threads_init): Check for pthread_attr_init error.
(threads_start_thread): Check for errors of pthread calls. Set the
threads stack size.

18 years ago* src/threads/native/lock.h, src/threads/native/lock.c: Tasuki lock
edwin [Thu, 18 May 2006 14:33:32 +0000 (14:33 +0000)]
* src/threads/native/lock.h, src/threads/native/lock.c: Tasuki lock
implementation (without lock deflation). This is a straight-forward
implementation that uses an extra word in java_objectheader for the
FLC (flat lock contention) bit.

* src/vm/global.h (java_objectheader): Added field `flcword`.

* src/threads/native/lock.h (Authors): Changed to myself, as there
is none of the old code remaining in this file.

* src/vm/jit/powerpc/codegen.c, src/vm/jit/alpha/codegen.c,
src/vm/jit/mips/codegen.c, src/vm/jit/i386/codegen.c,
src/vm/jit/x86_64/codegen.c (codegen, createnativestub): Add the
FLC word when creating the fake object header for patcher
synchronization.

18 years ago* src/vm/properties.c (properties_get): Search the list backwards to
twisti [Thu, 18 May 2006 14:06:58 +0000 (14:06 +0000)]
* src/vm/properties.c (properties_get): Search the list backwards to
get the newest entry.

18 years ago* src/vm/vm.c (version): Print default and runtime classpath
twisti [Thu, 18 May 2006 12:50:32 +0000 (12:50 +0000)]
* src/vm/vm.c (version): Print default and runtime classpath
variables.
(vm_create): Add a default java.endorsed.dirs property.

18 years ago* configure.ac: Don't export BOOTCLASSPATH, that makes problems.
twisti [Wed, 17 May 2006 22:06:38 +0000 (22:06 +0000)]
* configure.ac: Don't export BOOTCLASSPATH, that makes problems.

18 years ago* src/vm/jit/powerpc/codegen.c (createnativestub): Fixed bug and
twisti [Wed, 17 May 2006 12:10:25 +0000 (12:10 +0000)]
* src/vm/jit/powerpc/codegen.c (createnativestub): Fixed bug and
changed argument saving and restoring.

* src/vm/jit/powerpc/asmpart.S (asm_vm_call_method): Partially
implemented Darwin bits. Still some bugs with testarguments.

18 years ago* src/vm/jit/powerpc/codegen.c (codegen): Bugfix: use REG_ITMP3 in
twisti [Tue, 16 May 2006 13:08:30 +0000 (13:08 +0000)]
* src/vm/jit/powerpc/codegen.c (codegen): Bugfix: use REG_ITMP3 in
ICMD_L{DIV,REM} for function address. This fixes
gnu.testlet.java.math.BigInteger.divide.

18 years ago* src/threads/native/lock.c: Fixed comment formatting.
edwin [Tue, 16 May 2006 01:49:29 +0000 (01:49 +0000)]
* src/threads/native/lock.c: Fixed comment formatting.

18 years ago* src/vm/jit/i386/machine-instr.h (compare_and_swap): Fixed comment.
edwin [Mon, 15 May 2006 23:37:14 +0000 (23:37 +0000)]
* src/vm/jit/i386/machine-instr.h (compare_and_swap): Fixed comment.

18 years ago* configure.ac: Export BOOTCLASSPATH for javac check.
twisti [Mon, 15 May 2006 23:31:56 +0000 (23:31 +0000)]
* configure.ac: Export BOOTCLASSPATH for javac check.
* src/cacao/Makefile.am (cacao_SOURCES)Removed cacao.h.
* src/vm/jit/inline/Makefile.am (libinline_la_SOURCES): Added
inline_debug.inc.
* src/vm/jit/powerpc/Makefile.am (DIST_SUBDIRS): Added netbsd.

18 years ago* src/vm/jit/inline/inline_debug.c: Renamed to src/vm/jit/inline/inline_debug.inc.
edwin [Mon, 15 May 2006 23:22:48 +0000 (23:22 +0000)]
* src/vm/jit/inline/inline_debug.c: Renamed to src/vm/jit/inline/inline_debug.inc.

* src/vm/jit/inline/inline.c: #include changed to src/vm/jit/inline/inline_debug.inc.

* src/vm/resolve.c: Typo fixed.

--HG--
rename : src/vm/jit/inline/inline_debug.c => src/vm/jit/inline/inline_debug.inc

18 years ago* src/threads/native/lock.c (lock_record_remove_waiter): Made static.
edwin [Mon, 15 May 2006 21:48:44 +0000 (21:48 +0000)]
* src/threads/native/lock.c (lock_record_remove_waiter): Made static.
(lock_monitor_wait): Likewise.

18 years ago* src/threads/native/lock.h, src/threads/native/lock.c
edwin [Mon, 15 May 2006 21:32:09 +0000 (21:32 +0000)]
* src/threads/native/lock.h, src/threads/native/lock.c
(lock_does_thread_hold_lock): Renamed to lock_is_held_by_current_thread
and removed thread argument, as reliable checking is only possible for
the current thread, anyway.

* src/native/vm/VMThread.c (lock_does_thread_hold_lock): Changed to
lock_is_held_by_current_thread.

* src/native/jvmti/jvmti.c (lock_does_thread_hold_lock): Changed to
lock_is_held_by_current_thread.

18 years ago* configure.ac (src/threads/green/Makefile): Removed from AC_CONFIG_FILES.
edwin [Mon, 15 May 2006 18:24:24 +0000 (18:24 +0000)]
* configure.ac (src/threads/green/Makefile): Removed from AC_CONFIG_FILES.

18 years ago* src/threads/native/lock.h (lock_record_pool_header_t): Documented.
edwin [Mon, 15 May 2006 15:06:06 +0000 (15:06 +0000)]
* src/threads/native/lock.h (lock_record_pool_header_t): Documented.
(lock_record_pool_t): Documented.

* src/threads/native/lock.c: Minor whitespace cleanup.