4b22b9337f359bfd063322244f5336cc7c6ffcfarsCopyright (c) 2008, Oracle and/or its affiliates. All rights reserved.
4b22b9337f359bfd063322244f5336cc7c6ffcfarsDO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4b22b9337f359bfd063322244f5336cc7c6ffcfarsThis code is free software; you can redistribute it and/or modify it
4b22b9337f359bfd063322244f5336cc7c6ffcfarsunder the terms of the GNU General Public License version 2 only, as
4b22b9337f359bfd063322244f5336cc7c6ffcfarspublished by the Free Software Foundation.
4b22b9337f359bfd063322244f5336cc7c6ffcfarsThis code is distributed in the hope that it will be useful, but WITHOUT
4b22b9337f359bfd063322244f5336cc7c6ffcfarsANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4b22b9337f359bfd063322244f5336cc7c6ffcfarsFITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
4b22b9337f359bfd063322244f5336cc7c6ffcfarsversion 2 for more details (a copy is included in the LICENSE file that
4b22b9337f359bfd063322244f5336cc7c6ffcfarsaccompanied this code).
4b22b9337f359bfd063322244f5336cc7c6ffcfarsYou should have received a copy of the GNU General Public License version
4b22b9337f359bfd063322244f5336cc7c6ffcfars2 along with this work; if not, write to the Free Software Foundation,
4b22b9337f359bfd063322244f5336cc7c6ffcfarsInc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4b22b9337f359bfd063322244f5336cc7c6ffcfarsPlease contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4b22b9337f359bfd063322244f5336cc7c6ffcfarsor visit www.oracle.com if you need additional information or have any
4b22b9337f359bfd063322244f5336cc7c6ffcfars________________________________________________________________________
4b22b9337f359bfd063322244f5336cc7c6ffcfars'hsdis': A HotSpot plugin for disassembling dynamically generated code.
4b22b9337f359bfd063322244f5336cc7c6ffcfarsThe files in this directory (Makefile, hsdis.[ch], hsdis-demo.c)
4b22b9337f359bfd063322244f5336cc7c6ffcfarsare built independently of the HotSpot JVM.
4b22b9337f359bfd063322244f5336cc7c6ffcfarsTo use the plugin with a JVM, you need a new version that can load it.
4b22b9337f359bfd063322244f5336cc7c6ffcfarsIf the product mode of your JVM does not accept -XX:+PrintAssembly,
4b22b9337f359bfd063322244f5336cc7c6ffcfarsyou do not have a version that is new enough.
copy of the software from http://directory.fsf.org/project/binutils or
The makefile looks for the sources in build/binutils or you can
http://sourceforge.net/projects/mingw-w64. Grab a copy of the
make MINGW=i586-mingw32msvc BINTUILS=build/binutils-2.19.1
install them on your LD_LIBRARY_PATH, or inside of your JRE/JDK. The
1. <home>/jre/lib/<arch>/<vm>/libhsdis-<arch>.so
2. <home>/jre/lib/<arch>/<vm>/hsdis-<arch>.so
3. <home>/jre/lib/<arch>/hsdis-<arch>.so
export LD_LIBRARY_PATH .../hsdis/build/$OS-$LIBARCH:$LD_LIBRARY_PATH
java $dargs -Xbatch CompileCommand=print,*String.hashCode HelloWorld