[prev in list] [next in list] [prev in thread] [next in thread]
List: openjdk-serviceability-dev
Subject: Re: measuring object size in Java
From: Laurence Cable <larry.cable () oracle ! com>
Date: 2023-09-29 15:31:40
Message-ID: a356640c-7d6b-aaa1-043c-8abb0167c35a () oracle ! com
[Download RAW message or body]
On 9/28/23 10:38 PM, Alan Bateman wrote:
>
>
> On 28/09/2023 21:42, daniel.daugherty@oracle.com wrote:
>> java.lang.instrument is owned by the Serviceability Team so I'm
>> redirecting this
>> message to that alias...
>
> This doesn't look like a JDK issue, instead it looks like
> |com.github.jelmerk.ObjectSizeFetcher has an Instrumentation field
> that is null. SO is a reasonable place to discuss usage issues like
> this although I see one of the answers about agents getting its own
> class loader is confusing as the agent class is loaded by the
> application class loader, the VM doesn't create a class loader for
> agents.|
>
perhaps the next step is to test the example 'standalone' as opposed to
being executed from maven plugin...
> -Alan.
[Attachment #3 (text/html)]
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<br>
<br>
<div class="moz-cite-prefix">On 9/28/23 10:38 PM, Alan Bateman
wrote:<br>
</div>
<blockquote type="cite" \
cite="mid:53d4922d-7410-b6bd-d739-28b922e3c791@oracle.com">
<br>
<br>
<div class="moz-cite-prefix">On 28/09/2023 21:42, <a \
class="moz-txt-link-abbreviated moz-txt-link-freetext" \
href="mailto:daniel.daugherty@oracle.com" \
moz-do-not-send="true">daniel.daugherty@oracle.com</a> wrote:<br> </div>
<blockquote type="cite" \
cite="mid:09ae3f73-b676-45df-a1e5-6995a2f81821@oracle.com"> <font \
face="monospace">java.lang.instrument is owned by the Serviceability Team so I'm \
redirecting this<br> message to that alias...<br>
</font></blockquote>
<br>
This doesn't look like a JDK issue, instead it looks like <code \
class="gmail-hljs gmail-language-java" \
style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font- \
weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;font-kerni \
ng:inherit;font-feature-settings:inherit;vertical-align:baseline;box-sizing:inherit;ba \
ckground-color:transparent;white-space:inherit">com.github.jelmerk.ObjectSizeFetcher \
has an Instrumentation field that is null. SO is a reasonable place to discuss usage \
issues like this although I see one of the answers about agents getting its own \
class loader is confusing as the agent class is loaded by the application class
loader, the VM doesn't create a class loader for agents.</code><br>
<br>
</blockquote>
<br>
perhaps the next step is to test the example 'standalone' as opposed
to being executed from maven plugin...<br>
<br>
<blockquote type="cite" \
cite="mid:53d4922d-7410-b6bd-d739-28b922e3c791@oracle.com"> -Alan.<br> </blockquote>
<br>
</body>
</html>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic