HotSpot Virtual Machine 翻译 1 Java Virtual Machine Technology Overview

This chapter describes the implementation of the Java Virtual Machine (JVM) and the main features of the Java HotSpot technology:

  • Adaptive compiler: A standard interpreter is used to launch the applications. When the application runs, the code is analyzed to detect performance bottlenecks, or hot spots. The Java HotSpot VM compiles the performance-critical portions of the code for a boost in performance, but does not compile the seldom-used code (most of the application). The Java HotSpot VM uses the adaptive compiler to decide how to optimize compiled code with techniques such as inlining.
  • Rapid memory allocation and garbage collection: Java HotSpot technology provides rapid memory allocation for objects and fast, efficient, state-of-the-art garbage collectors.
  • Thread synchronization: Java HotSpot technology provides a thread-handling capability that is designed to scale for use in large, shared-memory multiprocessor servers.

本章节讲述Java虚拟机的实现和Java HotSpot 技术的主要特性:

  • 自适应编译器:一个用于启动应用程序的标准解释器。在应用程序运行时,代码会被分析来检测性能瓶颈,或者危险区域。Java HotSpot 虚拟机会编译代码的性能关键部分,以提高性能,但是不会编译很少使用的代码(应用程序的大部分)。Java HotSpot 虚拟机使用自适应编译器来决定如何优化编译后的代码,使用如内联等技术。
  • 快速内存分配和垃圾回收:Java HotSpot 技术为对象提供了快速内存分配以及快速、高效、最新的垃圾回收器。
  • 线程同步:Java HotSpot 技术提供了一种线程处理能力,旨在扩展到大型的共享内存的多处理器服务器中的使用。

 

In Oracle Java Runtime Environment (JRE) 8 and earlier, different implementations of the JVM, (the client VM, server VM, and minimal VM) were supported for configurations commonly used as clients, as servers, and for embedded systems. Because most systems can now take advantage of the server VM, the Oracle Java Runtime Environment (JRE) 9 provides only that VM implementation.

在Oracle JRE 8 以及更早版本中,JVM的不同实现(客户端虚拟机、服务器虚拟机和最小化虚拟机)都支持通常用于客户端、服务器和嵌入式系统的配置。因为现在大多数系统都使用服务器虚拟机,因此Oracle JRE 9 只提供了服务器虚拟机实现。

 

来自 <https://docs.oracle.com/javase/10/vm/java-virtual-machine-technology-overview.htm#JSJVM-GUID-982B244A-9B01-479A-8651-CB6475019281>

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值