没有合适的资源?快使用搜索试试~ 我知道了~
JDK15-java-virtual-machine-guide.pdf
需积分: 5 0 下载量 93 浏览量
2023-08-08
07:24:33
上传
评论
收藏 670KB PDF 举报
温馨提示
试读
75页
JDK15-java-virtual-machine-guide
资源推荐
资源详情
资源评论
Java Platform, Standard Edition
Java Virtual Machine Guide
Release 15
F30925-02
April 2021
Java Platform, Standard Edition Java Virtual Machine Guide, Release 15
F30925-02
Copyright © 1993, 2021, Oracle and/or its affiliates.
This software and related documentation are provided under a license agreement containing restrictions on
use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your
license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license,
transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse
engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is
prohibited.
The information contained herein is subject to change without notice and is not warranted to be error-free. If
you find any errors, please report them to us in writing.
If this is software or related documentation that is delivered to the U.S. Government or anyone licensing it on
behalf of the U.S. Government, then the following notice is applicable:
U.S. GOVERNMENT END USERS: Oracle programs (including any operating system, integrated software,
any programs embedded, installed or activated on delivered hardware, and modifications of such programs)
and Oracle computer documentation or other Oracle data delivered to or accessed by U.S. Government
end users are "commercial computer software" or "commercial computer software documentation" pursuant
to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such,
the use, reproduction, duplication, release, display, disclosure, modification, preparation of derivative works,
and/or adaptation of i) Oracle programs (including any operating system, integrated software, any programs
embedded, installed or activated on delivered hardware, and modifications of such programs), ii) Oracle
computer documentation and/or iii) other Oracle data, is subject to the rights and limitations specified in the
license contained in the applicable contract. The terms governing the U.S. Government’s use of Oracle cloud
services are defined by the applicable contract for such services. No other rights are granted to the U.S.
Government.
This software or hardware is developed for general use in a variety of information management applications.
It is not developed or intended for use in any inherently dangerous applications, including applications that
may create a risk of personal injury. If you use this software or hardware in dangerous applications, then you
shall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure its
safe use. Oracle Corporation and its affiliates disclaim any liability for any damages caused by use of this
software or hardware in dangerous applications.
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of
their respective owners.
Intel and Intel Inside are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks are
used under license and are trademarks or registered trademarks of SPARC International, Inc. AMD, Epyc,
and the AMD logo are trademarks or registered trademarks of Advanced Micro Devices. UNIX is a registered
trademark of The Open Group.
This software or hardware and documentation may provide access to or information about content, products,
and services from third parties. Oracle Corporation and its affiliates are not responsible for and expressly
disclaim all warranties of any kind with respect to third-party content, products, and services unless otherwise
set forth in an applicable agreement between you and Oracle. Oracle Corporation and its affiliates will not
be responsible for any loss, costs, or damages incurred due to your access to or use of third-party content,
products, or services, except as set forth in an applicable agreement between you and Oracle.
Contents
Preface
Audience vi
Documentation Accessibility vi
Related Documents vi
Conventions vi
1
Java Virtual Machine Technology Overview
2
Compiler Control
Writing Directives 2-1
Compiler Control Options 2-2
Writing a Directive File 2-5
Writing a Compiler Directive 2-7
Writing a Method Pattern in a Compiler Directive 2-9
Writing an Inline Directive Option 2-10
Preventing Duplication with the Enable Option 2-10
Understanding Directives 2-11
What Is the Default Directive? 2-12
How Directives are Applied to Code? 2-14
Compiler Control and Backward Compatibility 2-15
Commands for Working with Directive Files 2-16
Compiler Directives and the Command Line 2-16
Compiler Directives and Diagnostic Commands 2-17
Getting Your Java Process Identification Number 2-17
Adding Directives Through Diagnostic Commands 2-17
Removing Directives Through Diagnostic Commands 2-18
Printing Directives Through Diagnostic Commands 2-18
How Directives Are Ordered in the Directives Stack? 2-18
iii
3
Garbage Collection
4
Class Data Sharing
Class Data Sharing 4-1
Application Class-Data Sharing 4-2
Dynamic CDS Archive 4-2
Regenerating the Shared Archive 4-2
Manually Controlling Class Data Sharing 4-3
5
Java HotSpot Virtual Machine Performance Enhancements
Compact Strings 5-1
Tiered Compilation 5-2
Segmented Code Cache 5-2
Graal : a Java-Based JIT Compiler 5-3
Ahead-of-Time Compilation 5-3
Compressed Ordinary Object Pointer 5-4
Zero-Based Compressed Ordinary Object Pointers 5-5
Escape Analysis 5-5
6
JVM Constants API
7
Support for Non-Java Languages
Introduction to Non-Java Language Features 7-1
Static and Dynamic Typing 7-2
Statically-Typed Languages Are Not Necessarily Strongly-Typed Languages 7-3
The Challenge of Compiling Dynamically-Typed Languages 7-3
The invokedynamic Instruction 7-5
Defining the Bootstrap Method 7-6
Specifying Constant Pool Entries 7-7
Example Constant Pool 7-7
Using the invokedynamic Instruction 7-8
8
Signal Chaining
iv
9
Native Memory Tracking
Key Features 9-1
Using Native Memory Tracking 9-1
Enabling NMT 9-1
Accessing NMT Data using jcmd 9-2
Obtaining NMT Data at VM Exit 9-2
10
DTrace Probes in HotSpot VM
Using the hotspot Provider 10-1
VM Lifecycle Probes 10-1
Thread Lifecycle Probes 10-2
Classloading Probes 10-2
Garbage Collection Probes 10-3
Method Compilation Probes 10-4
Monitor Probes 10-5
Application Tracking Probes 10-6
Using the hotspot_jni Provider 10-7
Sample DTrace Probes 10-7
11
Fatal Error Reporting
Error Report Example 11-1
12
Java Virtual Machine Related Resources
Tools 12-1
v
剩余74页未读,继续阅读
资源评论
weixin_40191861_zj
- 粉丝: 63
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功