官术网_书友最值得收藏!

Driving factors

Imagine that you are a GC developer and you are supposed to know all the places where you could locate the code for GC in HotSpot. If this doesn't sound scary enough, imagine how it would feel if you didn't know how to extend it to your specific requirements. Or, imagine that you are a HotSpot developer (not a GC developer), and you can't seem to find a specific code for a GC. We are not done yetnow imagine that you must exclude a specific GC at build time. These cases are represented in the following diagram:

The preceding use cases demonstrate the major factors driving the changes to the code baseby pushing the creation of a clean GC interface.

Even though the code of the GCs was defined in their respective directories (for example, the src/hotspot/share/gc/g1 stored code for G1 GC), some code was defined outside these directories. A typical example of this is the barrier required by most of the GC. Since the barrier code was implemented in the C1 and C2 runtime interpreter, this code was defined in the directories that defined the code for C1 and C2. However, this leads to a fragmented GC code, which is hard to track and locate.

A GC interface introduces a layer of abstraction, taking the burden to track all the GC code off a developer (both GC and HotSpot).

主站蜘蛛池模板: 吉林省| 沾化县| 彰化市| 尖扎县| 南木林县| 朝阳市| 淮北市| 金华市| 额敏县| 潞西市| 富顺县| 中方县| 江门市| 瑞昌市| 灵石县| 晋宁县| 诸城市| 黑龙江省| 康保县| 海南省| 通榆县| 东乡| 陆川县| 洛隆县| 临猗县| 从江县| 灵石县| 古田县| 武安市| 蓝山县| 大宁县| 栖霞市| 丹巴县| 彩票| 盖州市| 拜泉县| 双辽市| 兖州市| 普兰店市| 黎城县| 古交市|