Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
ec6f65d3
D
dragonwell8_hotspot
项目概览
openanolis
/
dragonwell8_hotspot
通知
2
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_hotspot
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
ec6f65d3
编写于
3月 24, 2011
作者:
J
jcoomes
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
114dcaf7
3dfef6ef
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
12 addition
and
12 deletion
+12
-12
src/os/windows/vm/os_windows.cpp
src/os/windows/vm/os_windows.cpp
+8
-3
src/share/vm/runtime/os.cpp
src/share/vm/runtime/os.cpp
+0
-5
src/share/vm/runtime/osThread.hpp
src/share/vm/runtime/osThread.hpp
+3
-3
src/share/vm/runtime/vmStructs.cpp
src/share/vm/runtime/vmStructs.cpp
+1
-1
未找到文件。
src/os/windows/vm/os_windows.cpp
浏览文件 @
ec6f65d3
...
...
@@ -3297,9 +3297,14 @@ bool os::is_interrupted(Thread* thread, bool clear_interrupted) {
"possibility of dangling Thread pointer"
);
OSThread
*
osthread
=
thread
->
osthread
();
bool
interrupted
;
interrupted
=
osthread
->
interrupted
();
if
(
clear_interrupted
==
true
)
{
bool
interrupted
=
osthread
->
interrupted
();
// There is no synchronization between the setting of the interrupt
// and it being cleared here. It is critical - see 6535709 - that
// we only clear the interrupt state, and reset the interrupt event,
// if we are going to report that we were indeed interrupted - else
// an interrupt can be "lost", leading to spurious wakeups or lost wakeups
// depending on the timing
if
(
interrupted
&&
clear_interrupted
)
{
osthread
->
set_interrupted
(
false
);
ResetEvent
(
osthread
->
interrupt_event
());
}
// Otherwise leave the interrupted state alone
...
...
src/share/vm/runtime/os.cpp
浏览文件 @
ec6f65d3
...
...
@@ -1079,11 +1079,6 @@ bool os::set_boot_path(char fileSep, char pathSep) {
"%/lib/jsse.jar:"
"%/lib/jce.jar:"
"%/lib/charsets.jar:"
// ## TEMPORARY hack to keep the legacy launcher working when
// ## only the boot module is installed (cf. j.l.ClassLoader)
"%/lib/modules/jdk.boot.jar:"
"%/classes"
;
char
*
sysclasspath
=
format_boot_path
(
classpath_format
,
home
,
home_len
,
fileSep
,
pathSep
);
if
(
sysclasspath
==
NULL
)
return
false
;
...
...
src/share/vm/runtime/osThread.hpp
浏览文件 @
ec6f65d3
/*
* Copyright (c) 1997, 201
0
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 201
1
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -65,7 +65,7 @@ class OSThread: public CHeapObj {
OSThreadStartFunc
_start_proc
;
// Thread start routine
void
*
_start_parm
;
// Thread start routine parameter
volatile
ThreadState
_state
;
// Thread state *hint*
jint
_interrupted
;
// Thread.isInterrupted state
volatile
jint
_interrupted
;
// Thread.isInterrupted state
// Note: _interrupted must be jint, so that Java intrinsics can access it.
// The value stored there must be either 0 or 1. It must be possible
...
...
@@ -89,7 +89,7 @@ class OSThread: public CHeapObj {
void
*
start_parm
()
const
{
return
_start_parm
;
}
void
set_start_parm
(
void
*
start_parm
)
{
_start_parm
=
start_parm
;
}
bool
interrupted
()
const
{
return
_interrupted
!=
0
;
}
volatile
bool
interrupted
()
const
{
return
_interrupted
!=
0
;
}
void
set_interrupted
(
bool
z
)
{
_interrupted
=
z
?
1
:
0
;
}
// Printing
...
...
src/share/vm/runtime/vmStructs.cpp
浏览文件 @
ec6f65d3
...
...
@@ -840,7 +840,7 @@ static inline uint64_t cast_uint64_t(size_t x)
/* OSThread */
\
/************/
\
\
nonstatic_field(OSThread,
_interrupted, jint) \
volatile_nonstatic_field(OSThread,
_interrupted, jint) \
\
/************************/
\
/* OopMap and OopMapSet */
\
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录