FYI: Shark debug LLVM 2.6 API fix and Shark debugging tips.
Xerxes Rånby
xerxes at zafena.se
Thu Sep 17 04:51:01 PDT 2009
The attached and committed patch fixed the following Shark compile error
during debug builds when using LLVM 2.6 or later.
/home/xerxes/icedtea6-1.6/openjdk-ecj/hotspot/src/share/vm/shark/sharkBuilder.cpp:
In member function 'llvm::CallInst* SharkBuilder::CreateDump(llvm::Value*)':
/home/xerxes/icedtea6-1.6/openjdk-ecj/hotspot/src/share/vm/shark/sharkBuilder.cpp:518:
error: 'class llvm::StringRef' has no member named 'c_str'
make[7]: *** [sharkBuilder.o] Error 1
If you want to create a Shark debug build then apply the mixtec-hacks.patch found in
http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2009-April/005361.html
it enables some more shark specific debug options like:
-XX:+SharkTraceInstalls that will print when compiled methods are inserted into the jvm
-XX:SharkPrintBitcodeOf=methodName displays the llvm ir for the method
-XX:SharkPrintAsmOf=methodName displays the generated asm for the compiled method
... and makes shark generally more debugger friendly.
Cheers
Xerxes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 081f65658c7e.patch
Type: text/x-patch
Size: 1338 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20090917/5737c6fc/081f65658c7e.patch
More information about the distro-pkg-dev
mailing list