当前位置:网站首页>Learn to record and analyze
Learn to record and analyze
2020-11-08 15:22:00 【Irving the procedural ape】
Learn to record and analyze
Record the difficulties in learning , A little white !
I have not read the source code , Pure Xiaobai , I wrote this article just to improve myself !!! I hope you can point out the mistakes .
Curious, I looked through Integer.valueOf() Method source code
public static Integer valueOf(int i) { if (i >= IntegerCache.low && i <= IntegerCache.high) return IntegerCache.cache[i + (-IntegerCache.low)]; return new Integer(i); }
First of all, the parameters explain :
static final int low = -128;static final int high;static final Integer[] cache;static Integer[] archivedCache;
high No assignment , So we continue to track down high attribute
static { int h = 127; // If you specify -Djava.lang.Integer.IntegerCache.high=XXX( Enter your own data ) Parameters // The following statement will be executed , Then dynamic settings h yes 127 Or set the input data String integerCacheHighPropValue = // The method is by passing a key, Get the value set manually at startup VM.getSavedProperty("java.lang.Integer.IntegerCache.high"); if (integerCacheHighPropValue != null) { try { h = Math.max(parseInt(integerCacheHighPropValue), 127); // // public static int max(int a, int b) { // return (a >= b) ? a : b; // } // Maximum array size is Integer.MAX_VALUE //32 Bit system 2147483647=2^32 h = Math.min(h, Integer.MAX_VALUE - (-low) -1); } catch( NumberFormatException nfe) { // If the property cannot be parsed into an int, ignore it. } } // find high The value of the property is determined by h Local attribute assignment high = h; // Load IntegerCache.archivedCache from archive, if possible VM.initializeFromArchive(IntegerCache.class); int size = (high - low) + 1;// Can be saved 256 Number . // As for why 256? I'm not going to talk about , Suggest yourself to search the computer storage data related concepts ! // Use the archived cache if it exists and is large enough.........
版权声明
本文为[Irving the procedural ape]所创,转载请带上原文链接,感谢
边栏推荐
- AI周报:允许“员工自愿降薪”;公司回应:员工内心高兴满意;虎牙HR将员工抬出公司;瑞典禁用华为中兴5G设备
- 漫画:寻找股票买入卖出的最佳时机(整合版)
- Golang ICMP Protocol detects viable hosts
- Flink: from introduction to Zhenxiang (3. Reading data from collection and file)
- Windows下快递投递柜、寄存柜的软件初探
- Ali tear off the e-commerce label
- 一文剖析2020年最火十大物联网应用|IoT Analytics 年度重磅报告出炉!
- 我用 Python 找出了删除我微信的所有人并将他们自动化删除了
- Golang system ping program to detect the surviving host (any permission)
- 阿里撕下电商标签
猜你喜欢

How to make a correct summary for 7 years?

重返全球第三,小米做对了什么?

Major changes in Huawei's cloud: Cloud & AI rises to Huawei's fourth largest BG with full fire

【Python 1-6】Python教程之——数字

wanxin finance

GopherChina 2020大会

漫画:寻找股票买入卖出的最佳时机(整合版)

Build simple business monitoring Kanban based on Alibaba cloud log service

Improvement of rate limit for laravel8 update

刚刚好,才是最理想的状态
随机推荐
基于阿里云日志服务快速打造简版业务监控看板
Recurrence of Apache kylin Remote Code Execution Vulnerability (cve-2020-1956)
AQS解析
wanxin finance
Flink from introduction to Zhenxiang (7. Sink data output file)
[Python 1-6] Python tutorial 1 -- number
I used Python to find out all the people who deleted my wechat and deleted them automatically
Comics: looking for the best time to buy and sell stocks
Tencent, which is good at to C, how to take advantage of Tencent's cloud market share in these industries?
Major changes in Huawei's cloud: Cloud & AI rises to Huawei's fourth largest BG with full fire
How to write a resume and project
一文读懂机器学习“数据中毒”
The first open source Chinese Bert pre training model in the financial field
. net large data concurrency solution
Introduction to mongodb foundation of distributed document storage database
金融领域首个开源中文BERT预训练模型,熵简科技推出FinBERT 1.0
Stm32uberide download and install - GPIO basic configuration operation - debug (based on CMSIS DAP debug)
学习记录并且简单分析
2035我们将建成这样的国家
打工人,打工魂,抽终身会员,成为人上人!