RFR(XXS): 8199752: NMT: Memory allocated by Unsafe.allocateMemory should be tagged as mtOther

Zhengyu Gu zgu at redhat.com
Sat Mar 17 13:14:39 UTC 2018


Hi Thomas,

Thanks for reviewing.

On 03/17/2018 02:20 AM, Thomas Stüfe wrote:
> Hi Zhengyu,
> 
> looks good.
> 
> The only other user of mtOther is TestChunkedList, which seems a bit of 
> a misfit (test/hotspot/gtest/utilities/test_chunkedList.cpp). Maybe we 
> should make this mtInternal? Not that it really matters, since it is 
> just a test.
> 
> Were you able to figure out why we do not see callstacks for the native 
> JDK frames calling Unsafe.AllocateMemory?

The frame is generated stub, we don't go there.

-Zhengyu

> 
> Best Regards, Thomas
> 
> 
> 
> 
> 
> On Fri, Mar 16, 2018 at 9:04 PM, Zhengyu Gu <zgu at redhat.com 
> <mailto:zgu at redhat.com>> wrote:
> 
>     Hi All,
> 
>     Please review this trivial change. mtOther is the category for
>     memory allocation *not* by JVM.
> 
>     Bug: https://bugs.openjdk.java.net/browse/JDK-8199752
>     <https://bugs.openjdk.java.net/browse/JDK-8199752>
>     Webrev: http://cr.openjdk.java.net/~zgu/8199752/webrev.00/index.html
>     <http://cr.openjdk.java.net/~zgu/8199752/webrev.00/index.html>
> 
> 
>     Test:
>        hotspot_runtime on Linux 64
> 
> 
>     Thanks,
> 
>     -Zhengyu
> 
> 


More information about the hotspot-runtime-dev mailing list