成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

小心bug!慎用Java 7

開發(fā) 后端
Java 7 GA 今天發(fā)布了,但是如Uwe Schindler 所述,HotSpot Loop optimizations存在一些非常可怕的默認(rèn)啟用的bug。最好的情況下,這些bug會導(dǎo)致JVM崩潰,最壞的情況下,會導(dǎo)致loops的不正確的執(zhí)行。

Java 7 GA 今天發(fā)布了,但是如Uwe Schindler 所述,HotSpot Loop optimizations存在一些非常可怕的默認(rèn)啟用的bug。***的情況下,這些bug會導(dǎo)致JVM崩潰,最壞的情況下,會導(dǎo)致loops的不正確的執(zhí)行。

除非,除非在你的Java代碼里面不用任何的loops。

附 Uwe Schindler 的郵件:

From: Uwe Schindler

Date: Thu, 28 Jul 2011 23:13:36 +0200

Subject: [WARNING] Index corruption and crashes in Apache Lucene Core / Apache Solr with Java 7

Hello Apache Lucene & Apache Solr users,

Hello users of other Java-based Apache projects,

Oracle released Java 7 today. Unfortunately it contains hotspot compiler

optimizations, which miscompile some loops. This can affect code of several

Apache projects. Sometimes JVMs only crash, but in several cases, results

calculated can be incorrect, leading to bugs in applications (see Hotspot

bugs 7070134 [1], 7044738 [2], 7068051 [3]).

Apache Lucene Core and Apache Solr are two Apache projects, which are

affected by these bugs, namely all versions released until today. Solr users

with the default configuration will have Java crashing with SIGSEGV as soon

as they start to index documents, as one affected part is the well-known

Porter stemmer (see LUCENE-3335 [4]). Other loops in Lucene may be

miscompiled, too, leading to index corruption (especially on Lucene trunk

with pulsing codec; other loops may be affected, too - LUCENE-3346 [5]).

These problems were detected only 5 days before the official Java 7 release,

so Oracle had no time to fix those bugs, affecting also many more

applications. In response to our questions, they proposed to include the

fixes into service release u2 (eventually into service release u1, see [6]).

This means you cannot use Apache Lucene/Solr with Java 7 releases before

Update 2! If you do, please don't open bug reports, it is not the

committers' fault! At least disable loop optimizations using the

-XX:-UseLoopPredicate JVM option to not risk index corruptions.

Please note: Also Java 6 users are affected, if they use one of those JVM

options, which are not enabled by default: -XX:+OptimizeStringConcat or

-XX:+AggressiveOpts

It is strongly recommended not to use any hotspot optimization switches in

any Java version without extensive testing!

In case you upgrade to Java 7, remember that you may have to reindex, as the

unicode version shipped with Java 7 changed and tokenization behaves

differently (e.g. lowercasing). For more information, read

JRE_VERSION_MIGRATION.txt in your distribution package!

On behalf of the Lucene project,

Uwe

[1] http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7070134

[2] http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7044738

[3] http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7068051

[4] https://issues.apache.org/jira/browse/LUCENE-3335

[5] https://issues.apache.org/jira/browse/LUCENE-3346

[6] http://s.apache.org/StQ

原文:http://www.oschina.net/news/20170/java7-bug

【編輯推薦】

  1. Java 7正式發(fā)布
  2. 漫談Java 7的新特性與C# 2.0的相似之處
  3. 揭秘NetBeans 7.0中的Java 7基因
  4. NetBeans IDE 7.0 正式版發(fā)布,面向Java 7
  5. Java走向分裂源于Java 7的到來?
責(zé)任編輯:陳貽新 來源: 開源中國社區(qū)
相關(guān)推薦

2011-08-05 16:20:32

Java 7HotspotBug

2009-09-02 08:55:36

Windows 7硬盤分區(qū)

2017-10-19 17:24:00

iOS 11安全bug私密照

2024-11-26 17:35:56

2022-05-27 07:03:04

JDK場景線程

2010-06-30 10:34:39

女人男人

2016-10-17 19:14:28

2012-02-29 17:29:11

2011-04-07 09:32:49

遞歸

2022-07-13 11:06:21

SSD數(shù)據(jù)故障

2025-06-24 09:36:04

2016-10-17 08:58:23

Windows 7殺毒賬號

2020-06-15 08:39:41

調(diào)試工具

2012-12-28 14:38:15

阿里云百度云騰訊云

2024-04-29 14:39:20

2009-12-25 15:38:46

2023-09-27 10:19:37

類型video函數(shù)

2022-08-31 22:50:13

JavaScript函數(shù)JSON

2010-01-21 08:50:27

2009-08-14 09:04:04

Vista升級Windows 7重啟bug
點贊
收藏

51CTO技術(shù)棧公眾號

主站蜘蛛池模板: 日韩手机在线视频 | 福利视频一二区 | 国产日韩欧美一区二区 | 久久av网 | 日韩在线一区二区 | 亚洲国产精品区 | 成年人免费网站 | 国产精品欧美一区二区三区不卡 | 日韩在线一区二区三区 | 欧美精品v | 中文字幕乱码亚洲精品一区 | 国产精品成人一区二区三区 | 国产精品美女久久久久aⅴ国产馆 | 亚洲一区 中文字幕 | 久久天天躁狠狠躁夜夜躁2014 | 欧美炮房 | 色婷婷精品国产一区二区三区 | 久久久片 | 极品销魂美女一区二区 | 国产黄色av电影 | 精品欧美一区二区三区久久久 | 国产福利资源在线 | 午夜伦4480yy私人影院 | 天天躁天天操 | 日韩精品久久久 | 一级a爱片久久毛片 | 亚洲国产精品久久久久婷婷老年 | 日韩欧美在线观看 | 伊伊综合网 | 毛片免费在线观看 | 成人精品啪啪欧美成 | 日日碰狠狠躁久久躁96avv | 亚洲欧洲精品成人久久奇米网 | 日日摸日日爽 | gogo肉体亚洲高清在线视 | 久久精品视频在线免费观看 | 99精品视频一区二区三区 | 久久久久国产一区二区三区不卡 | 男人天堂手机在线视频 | 国产精品网址 | 色资源在线 |