Mercurial > hg > truffle
diff src/share/vm/graal/graalRuntime.cpp @ 9232:bb2447c64055
strings used in compiled stubs are lowered to malloc'ed C strings so that there are no embedded oops (for the strings) in the resulting installed code
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 22 Apr 2013 17:59:14 +0200 |
parents | c3657d00e343 |
children | 0266549ff6e0 |
line wrap: on
line diff
--- a/src/share/vm/graal/graalRuntime.cpp Mon Apr 22 17:09:02 2013 +0200 +++ b/src/share/vm/graal/graalRuntime.cpp Mon Apr 22 17:59:14 2013 +0200 @@ -565,6 +565,12 @@ tty->print(buf, v1, v2, v3); JRT_END +JRT_LEAF(void, GraalRuntime::stub_printf(JavaThread* thread, jlong format, jlong v1, jlong v2, jlong v3)) + ResourceMark rm; + char *buf = (char*) (address) format; + tty->print(buf, v1, v2, v3); +JRT_END + JRT_ENTRY(void, GraalRuntime::log_primitive(JavaThread* thread, jchar typeChar, jlong value, jboolean newline)) union { jlong l;