GC攻击选择哪个JVM? [英] Which JVM to choose for GC hacking?

查看:101
本文介绍了GC攻击选择哪个JVM?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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



有没有人有任何经验知道哪个实现会允许简单的黑客攻击,但仍然有一个内置的GC,可以进行有意义的比较?



编辑:我想要一个有垃圾回收的JVM,因为我想收集使用它的统计数据,然后撕掉他们的GC,把我自己的,并比较。我希望它具有良好的GC,否则这种比较是有意义的,但我想要一些代码不太难处理(HotSpot有很多汇编程序,使任务更加困难)。

解决方案

我认为 Maxine Research VM 来自Oracle Labs的是您的需求的完美搭配。



从他们的 wiki


项目概览 在以多种语言编写的成熟,复杂的生产虚拟机环境中,研究和实验是必不可少的,但不再可行



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

展示其内存监控工具的卓越视频:


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)

解决方案

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:

这篇关于GC攻击选择哪个JVM?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆