选择哪种 JVM 进行 GC 黑客攻击?
我有一个 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我认为 Oracle 实验室的 Maxine Research VM 非常适合您的需求。
引用其 wiki 的第一页:
这是一个演示其内存监控实用程序的精彩视频:
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:
Here's an excelent video demonstrating its memory monitoring utilities:
我不知道有哪个没有有内置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?
也许您不需要 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