Valgrind and Java

后端 未结 2 680
花落未央
花落未央 2020-12-14 19:02

I want to use Valgrind 3.7.0 to find memory leaks in my Java native code. I\'m using jdk1.6.0._29.

To do that, I have to set the --trace-children=yes flag. Setting

2条回答
  •  南方客
    南方客 (楼主)
    2020-12-14 19:35

    Valgrind traps and emulates (to a degree) the processor, this is seemingly causing the JVM to get confused about your support for SSE and bailing out

    I would suggest your try telling the JVM not to bother with SSE, you should be able to turn this off for hotspot with the JVM flag -XX:UseSSE=0

    Good luck! valgrinding the JVM is a bit hard as they are somewhat hostile to each other

    It might also be your version of valgrind and java I ran your command from above locally and had no problems, using valgrind 3.6.1 and both java 1.6.0_26 and java 1.7.0-b147

提交回复
热议问题