[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-serviceability-dev
Subject:    PING: Check PerfCounter in core image through JSnap
From:       Yasumasa Suenaga <yasuenag () gmail ! com>
Date:       2016-02-14 12:27:33
Message-ID: 56C072B5.1090001 () gmail ! com
[Download RAW message or body]

Ping: What do you think about this issue?

Yasumasa

On 2016/02/08 19:17, Yasumasa Suenaga wrote:
> Ping: Can I file it to JBS as new issue?
>
> Yasumasa
>
> 2016/01/30 23:08 "Yasumasa Suenaga" <yasuenag@gmail.com <mailto:yasuenag@gmail.com>>:
>
>     Hi all,
>
>     I want to check PerfCounter in core image to analyze state of crashed JVM.
>     When I use JSnap tool, I encountered NPE on Fedora 23 x86_64.
>
>     I checked core image, and I found PerfMemory::_start, _top, etc are set to NULL,
>     however, PerfMemory::_initialized is set to 1.
>
>     PerfMemory::_start is set to NULL in PerfMemory::destroy(), and this function
>     is called at before aborting VM.
>
>     I fixed as below, and it works fine with JSnap:
>     -------------------
>     diff -r edfc9e2316e3 src/share/vm/runtime/perfMemory.cpp
>     --- a/src/share/vm/runtime/perfMemory.cpp       Sun Jan 24 23:20:12 2016 +0900
>     +++ b/src/share/vm/runtime/perfMemory.cpp       Sat Jan 30 22:41:05 2016 +0900
>     @@ -196,12 +196,6 @@
>           //
>           delete_memory_region();
>         }
>     -
>     -  _start = NULL;
>     -  _end = NULL;
>     -  _top = NULL;
>     -  _prologue = NULL;
>     -  _capacity = 0;
>       }
>
>       // allocate an aligned block of memory from the PerfData memory
>     -------------------
>
>     I found JDK-6224040: enhance jstat to extract counter information from core files .
>     At least, we can control shared memory through coredump_filter in modern Linux kernel.
>
>     Should I work this fix in JDK-6224040 ? or another issue ?
>     Please cooperate.
>
>
>     Thanks,
>
>     Yasumasa
>
>
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic