Simple dynamic language using invokedynamic

Jochen Theodorou blackdrag at gmx.org
Wed Jun 24 07:43:54 PDT 2009


Christian Thalinger schrieb:
[...]
> diff --git a/src/cpu/x86/vm/methodHandles_x86.cpp 
> b/src/cpu/x86/vm/methodHandles_x86.cpp
> --- a/src/cpu/x86/vm/methodHandles_x86.cpp
> +++ b/src/cpu/x86/vm/methodHandles_x86.cpp
> @@ -273,7 +273,7 @@ void trace_method_handle_stub(const char
>                                 intptr_t* entry_sp,
>                                 intptr_t* saved_sp) {
>     // called as a leaf from native code: do not block the JVM!
> -  printf("MH %s "PTR_FORMAT" "PTR_FORMAT" "INTX_FORMAT"\n", 
> adaptername, mh, entry_sp, entry_sp - saved_sp);
> +  printf("MH %s "PTR_FORMAT" "PTR_FORMAT" "INTX_FORMAT"\n", 
> adaptername, (intptr_t) mh, (intptr_t) entry_sp, entry_sp - saved_sp);
>   }
>   #endif //PRODUCT

with this patch I was finally able to make a debug build. And the error 
message is much improved now:

# To suppress the following error report, specify this argument
# after -XX: or in .hotspotrc: 
SuppressErrorAt=/templateInterpreter_x86_64.cpp:170
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error 
(/home/blackdrag/coding/davinci/mlvm/sources/hotspot/src/cpu/x86/vm/templateInterpreter_x86_64.cpp:170), 
pid=18646, tid=140733065480528
#  Error: assert(!unbox,"NYI")
#
# JRE version: 7.0-b01
# Java VM: OpenJDK 64-Bit Server VM (16.0-b03-jvmg mixed mode linux-amd64 )
# An error report file with more information is saved as:
# /home/blackdrag/coding/davinci/tt/hs_err_pid18646.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#

is it possible the demo code does not work on x86, or maybe it is only 
amd64?

bye Jochen

-- 
Jochen "blackdrag" Theodorou
The Groovy Project Tech Lead (http://groovy.codehaus.org)
http://blackdragsview.blogspot.com/




More information about the mlvm-dev mailing list