选择哪种 JVM 进行 GC 黑客攻击?

发布于 2024-12-04 00:18:39 字数 238 浏览 0 评论 0原文

我有一个 GC 算法的设计,我想为 JVM 实现它,以允许进行基准测试。

有谁有过关于哪种实现可以轻松黑客攻击的经验,但哪种实现仍然具有内置的 GC 可以进行有意义的比较?

编辑:我想要一个具有垃圾收集功能的 JVM,因为我想使用它收集统计信息,然后撕掉他们的 GC,放入我自己的 GC,然后进行比较。我希望它有一个好的 GC,否则比较是有意义的,但我想要一些代码不太难使用的东西(HotSpot 有很多汇编程序,使任务更加困难)

I have a design for a GC algorithm that I would like to implement for a JVM, to allow benchmarking.

Does anyone have any experience as to which implementation would allow the easy hacking, but which still has a built in GC that would make for a meaningful comparison?

Edited: I want a JVM that has garbage collection, as I want to collect stats using it, then rip out their GC, put my own in, and the compare. I want it to have a good GC, as otherwise the comparison is meaning, but I want something with code that is not too difficult to work with (HotSpot has a lot of assembler, making the task more difficult)

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

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

发布评论

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

评论(3

没︽人懂的悲伤 2024-12-11 00:18:39

我认为 Oracle 实验室的 Maxine Research VM 非常适合您的需求。

引用其 wiki 的第一页:

项目概述

在这个现代托管语言时代,我们对虚拟机的要求越来越高:更好的性能、更高的可扩展性以及对最新语言的支持。 研究和实验是必要的,但在用多种语言编写的成熟、复杂的生产虚拟机的背景下不再实用

Maxine VM 是下一代平台,在该研究领域建立了新的生产力标准。它完全用 Java 编写,与现代 Java IDE 和标准 JDK 完全兼容,具有模块化架构,允许插入 GC 和编译等子系统的替代实现,并附有专用开发工具(Maxine Inspector)用于调试和可视化虚拟机运行时状态的几乎所有方面。

这是一个演示其内存监控实用程序的精彩视频:

I think that the Maxine Research VM from Oracle Labs would be a perfect match for your needs.

Quote from the first page of their wiki:

Project Overview

In this era of modern, managed languages we demand ever more from our virtual machines: better performance, more scalability, and support for the latest new languages. Research and experimentation is essential but no longer practical in the context of mature, complex, production VMs written in multiple languages.

The Maxine VM is a next generation platform that establishes a new standard of productivity in this area of research. It is written entirely in Java, completely compatible with modern Java IDEs and the standard JDK, features a modular architecture that permits alternate implementations of subsystems such as GC and compilation to be plugged in, and is accompanied by a dedicated development tool (the Maxine Inspector) for debugging and visualizing nearly every aspect of the VM's runtime state.

Here's an excelent video demonstrating its memory monitoring utilities:

伴我心暖 2024-12-11 00:18:39

我不知道有哪个没有有内置GC;没有 Java 就不算什么了。为什么不从 OpenJDK 或 Harmony 开始呢?

I'm not aware of any that don't have a built-in GC; not much of a Java without one. Why not start with OpenJDK or Harmony?

所谓喜欢 2024-12-11 00:18:39

也许您不需要 JVM,但虚拟机就足以测试您的算法。除非您必须使用 JVM,否则您可以使用 APache Harmony,否则我会推荐另一个在名为 VmKit。您可以看一下并浏览源代码

maybe you don't need a JVM but a virtual machine would be sufficient for testing your algorithm. Unless, you are obliged to use a JVM, you can use APache Harmony or I would recommend another VM that was created on a phd thesis called VmKit. You can take a look at it and browse the source

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