VisualVM 中的美元符号

发布于 2024-07-22 05:36:00 字数 186 浏览 1 评论 0原文

我正在尝试分析一个应用程序,并且有很多类型为 sim.core.EndPoint$2 的实例,

当我检查这些实例时,我验证它们不是 sim.core.EndPoint 类型,它们似乎是一个带有更多类型的 EndPoint不应该存在的东西。

VisualVM 中类型名称后面的美元符号是什么意思?

谢谢。

I am trying to profile an application and I have a lot of instances of type sim.core.EndPoint$2

When I inspect those instances I verify they are not of type sim.core.EndPoint, they seem to be an EndPoint with a few more things that shouldn't be there.

What does a dollar sign mean after the name of a type in visualVM?

Thank you.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

北城半夏 2024-07-29 05:36:00

这意味着它是 EndPoint.java 中定义的匿名内部类。

顺便说一句,ClassName$AnotherName 是 JVM 中指定内部类的约定。

查看 EndPoint 定义了哪些匿名类。

That means it's an anonymous inner class defined in EndPoint.java.

By the way, ClassName$AnotherName is a convention for specifying inner classes in JVM.

Look which anonumous classes does EndPoint define.

微暖i 2024-07-29 05:36:00

它肯定是一个编译器工件(对您来说是隐藏的,但这是工作所必需的)。

如果不是匿名类,则可能是匿名对象引用封闭类的方式。 您在匿名类中引用的“外部”是否有任何最终对象?

It is most certainly a compiler artifact (something hidden to you but necessary for this to work).

If it is not an anonymous class, it may be the way for the anonymous object to refer to the enclosing class. Do you have any final objects on the "outside" that you refer to from within your anonoymous class?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文