JMH perfasm doesn't detect PrintAssembly output
Aleksey Shipilev
shade at redhat.com
Tue Jan 17 20:32:17 UTC 2017
Hi,
On 01/17/2017 09:10 PM, Bartosz Skrzypczak wrote:
> I'm trying to use JMH perfasm option on linux. I was able to
> successfully use it a few months ago, but since that time I updated
> several packages, including java, and switched to oracle JVM. Now I
> can't get perfasm working at all. I confirmed that PrintAssembly JVM
> option works, but I'm still getting the following error:
Confirmed how? Do you see the assembly listing when you run some application
with -XX:+PrintAssembly? When it does not work, it prints the warning message at
the beginning, and then happily proceeds.
JVM library loading is very sensitive to paths and names. This is a handy alias
I use to seed JDKs with hsdis:
$ alias hsdis
alias hsdis='cp ~/Install/libhsdis-amd64.so
jre/lib/amd64/server/libhsdis-amd64.so; cp ~/Install/libhsdis-amd64.so
lib/amd64/server/libhsdis-amd64.so; cp ~/Install/libhsdis-i386.so
lib/i386/server/libhsdis-i386.so;'
> java version "1.8.0_112"
> Java(TM) SE Runtime Environment (build 1.8.0_112-b15)
> Java HotSpot(TM) 64-Bit Server VM (build 25.112-b15, mixed mode)
>
> I don't have any idea what could possibly cause this. What am I doing wrong?
Both 8u101 and 8u121 work fine for me on Linux x86_64.
Thanks,
-Aleksey
More information about the jmh-dev
mailing list