Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
d14af56a
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
4
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
d14af56a
编写于
3月 08, 2011
作者:
M
mduigou
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
dc859491
32c540e9
变更
7
展开全部
显示空白变更内容
内联
并排
Showing
7 changed file
with
1966 addition
and
1841 deletion
+1966
-1841
src/share/classes/java/util/concurrent/ConcurrentSkipListMap.java
...e/classes/java/util/concurrent/ConcurrentSkipListMap.java
+2
-2
src/share/classes/java/util/concurrent/Exchanger.java
src/share/classes/java/util/concurrent/Exchanger.java
+2
-2
src/share/classes/java/util/concurrent/ForkJoinPool.java
src/share/classes/java/util/concurrent/ForkJoinPool.java
+1120
-941
src/share/classes/java/util/concurrent/ForkJoinTask.java
src/share/classes/java/util/concurrent/ForkJoinTask.java
+383
-195
src/share/classes/java/util/concurrent/ForkJoinWorkerThread.java
...re/classes/java/util/concurrent/ForkJoinWorkerThread.java
+456
-698
test/java/nio/file/DirectoryStream/Basic.java
test/java/nio/file/DirectoryStream/Basic.java
+1
-1
test/java/util/PriorityQueue/NoNulls.java
test/java/util/PriorityQueue/NoNulls.java
+2
-2
未找到文件。
src/share/classes/java/util/concurrent/ConcurrentSkipListMap.java
浏览文件 @
d14af56a
...
@@ -44,8 +44,8 @@ import java.util.concurrent.atomic.*;
...
@@ -44,8 +44,8 @@ import java.util.concurrent.atomic.*;
* creation time, depending on which constructor is used.
* creation time, depending on which constructor is used.
*
*
* <p>This class implements a concurrent variant of <a
* <p>This class implements a concurrent variant of <a
* href="http://
www.cs.umd.edu/~pugh/">SkipLists</a> providing
* href="http://
en.wikipedia.org/wiki/Skip_list" target="_top">SkipLists</a>
* expected average <i>log(n)</i> time cost for the
*
providing
expected average <i>log(n)</i> time cost for the
* <tt>containsKey</tt>, <tt>get</tt>, <tt>put</tt> and
* <tt>containsKey</tt>, <tt>get</tt>, <tt>put</tt> and
* <tt>remove</tt> operations and their variants. Insertion, removal,
* <tt>remove</tt> operations and their variants. Insertion, removal,
* update, and access operations safely execute concurrently by
* update, and access operations safely execute concurrently by
...
...
src/share/classes/java/util/concurrent/Exchanger.java
浏览文件 @
d14af56a
...
@@ -164,8 +164,8 @@ public class Exchanger<V> {
...
@@ -164,8 +164,8 @@ public class Exchanger<V> {
* races between two threads or thread pre-emptions occurring
* races between two threads or thread pre-emptions occurring
* between reading and CASing. Also, very transient peak
* between reading and CASing. Also, very transient peak
* contention can be much higher than the average sustainable
* contention can be much higher than the average sustainable
* levels.
The max limit is decreased on average 50% of the times
* levels.
An attempt to decrease the max limit is usually made
*
that
a non-slot-zero wait elapses without being fulfilled.
*
when
a non-slot-zero wait elapses without being fulfilled.
* Threads experiencing elapsed waits move closer to zero, so
* Threads experiencing elapsed waits move closer to zero, so
* eventually find existing (or future) threads even if the table
* eventually find existing (or future) threads even if the table
* has been shrunk due to inactivity. The chosen mechanics and
* has been shrunk due to inactivity. The chosen mechanics and
...
...
src/share/classes/java/util/concurrent/ForkJoinPool.java
浏览文件 @
d14af56a
此差异已折叠。
点击以展开。
src/share/classes/java/util/concurrent/ForkJoinTask.java
浏览文件 @
d14af56a
此差异已折叠。
点击以展开。
src/share/classes/java/util/concurrent/ForkJoinWorkerThread.java
浏览文件 @
d14af56a
此差异已折叠。
点击以展开。
test/java/nio/file/DirectoryStream/Basic.java
浏览文件 @
d14af56a
...
@@ -69,7 +69,7 @@ public class Basic {
...
@@ -69,7 +69,7 @@ public class Basic {
throw
new
RuntimeException
(
"entry not found"
);
throw
new
RuntimeException
(
"entry not found"
);
// check filtering: f* should match foo
// check filtering: f* should match foo
DirectoryStream
.
Filter
<
Path
>
filter
=
new
DirectoryStream
.
Filter
<>()
{
DirectoryStream
.
Filter
<
Path
>
filter
=
new
DirectoryStream
.
Filter
<
Path
>()
{
private
PathMatcher
matcher
=
private
PathMatcher
matcher
=
dir
.
getFileSystem
().
getPathMatcher
(
"glob:f*"
);
dir
.
getFileSystem
().
getPathMatcher
(
"glob:f*"
);
public
boolean
accept
(
Path
file
)
{
public
boolean
accept
(
Path
file
)
{
...
...
test/java/util/PriorityQueue/NoNulls.java
浏览文件 @
d14af56a
...
@@ -53,7 +53,7 @@ import java.util.concurrent.PriorityBlockingQueue;
...
@@ -53,7 +53,7 @@ import java.util.concurrent.PriorityBlockingQueue;
public
class
NoNulls
{
public
class
NoNulls
{
void
test
(
String
[]
args
)
throws
Throwable
{
void
test
(
String
[]
args
)
throws
Throwable
{
final
Comparator
<
String
>
nullTolerantComparator
final
Comparator
<
String
>
nullTolerantComparator
=
new
Comparator
<>()
{
=
new
Comparator
<
String
>()
{
public
int
compare
(
String
x
,
String
y
)
{
public
int
compare
(
String
x
,
String
y
)
{
return
(
x
==
null
?
-
1
:
return
(
x
==
null
?
-
1
:
y
==
null
?
1
:
y
==
null
?
1
:
...
@@ -65,7 +65,7 @@ public class NoNulls {
...
@@ -65,7 +65,7 @@ public class NoNulls {
nullSortedSet
.
add
(
null
);
nullSortedSet
.
add
(
null
);
final
PriorityQueue
<
String
>
nullPriorityQueue
final
PriorityQueue
<
String
>
nullPriorityQueue
=
new
PriorityQueue
<>()
{
=
new
PriorityQueue
<
String
>()
{
public
Object
[]
toArray
()
{
return
new
Object
[]
{
null
};}};
public
Object
[]
toArray
()
{
return
new
Object
[]
{
null
};}};
final
Collection
<
String
>
nullCollection
=
new
ArrayList
<>();
final
Collection
<
String
>
nullCollection
=
new
ArrayList
<>();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录