Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
2e172f84
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看板
提交
2e172f84
编写于
4月 05, 2013
作者:
Z
zgu
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
1bb676bc
c3c99cd2
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
35 addition
and
23 deletion
+35
-23
src/os/bsd/vm/perfMemory_bsd.cpp
src/os/bsd/vm/perfMemory_bsd.cpp
+10
-7
src/os/linux/vm/perfMemory_linux.cpp
src/os/linux/vm/perfMemory_linux.cpp
+10
-7
src/os/solaris/vm/perfMemory_solaris.cpp
src/os/solaris/vm/perfMemory_solaris.cpp
+10
-7
src/os/windows/vm/perfMemory_windows.cpp
src/os/windows/vm/perfMemory_windows.cpp
+5
-2
未找到文件。
src/os/bsd/vm/perfMemory_bsd.cpp
浏览文件 @
2e172f84
...
...
@@ -672,15 +672,15 @@ static int open_sharedmem_file(const char* filename, int oflags, TRAPS) {
RESTARTABLE
(
::
open
(
filename
,
oflags
),
result
);
if
(
result
==
OS_ERR
)
{
if
(
errno
==
ENOENT
)
{
THROW_MSG_
0
(
vmSymbols
::
java_lang_IllegalArgumentException
(),
"Process not found"
);
THROW_MSG_
(
vmSymbols
::
java_lang_IllegalArgumentException
(),
"Process not found"
,
OS_ERR
);
}
else
if
(
errno
==
EACCES
)
{
THROW_MSG_
0
(
vmSymbols
::
java_lang_IllegalArgumentException
(),
"Permission denied"
);
THROW_MSG_
(
vmSymbols
::
java_lang_IllegalArgumentException
(),
"Permission denied"
,
OS_ERR
);
}
else
{
THROW_MSG_
0
(
vmSymbols
::
java_io_IOException
(),
strerror
(
errno
)
);
THROW_MSG_
(
vmSymbols
::
java_io_IOException
(),
strerror
(
errno
),
OS_ERR
);
}
}
...
...
@@ -828,7 +828,7 @@ static void mmap_attach_shared(const char* user, int vmid, PerfMemory::PerfMemor
char
*
mapAddress
;
int
result
;
int
fd
;
size_t
size
;
size_t
size
=
0
;
const
char
*
luser
=
NULL
;
int
mmap_prot
;
...
...
@@ -899,9 +899,12 @@ static void mmap_attach_shared(const char* user, int vmid, PerfMemory::PerfMemor
if
(
*
sizep
==
0
)
{
size
=
sharedmem_filesize
(
fd
,
CHECK
);
assert
(
size
!=
0
,
"unexpected size"
);
}
else
{
size
=
*
sizep
;
}
assert
(
size
>
0
,
"unexpected size <= 0"
);
mapAddress
=
(
char
*
)
::
mmap
((
char
*
)
0
,
size
,
mmap_prot
,
MAP_SHARED
,
fd
,
0
);
// attempt to close the file - restart if it gets interrupted,
...
...
src/os/linux/vm/perfMemory_linux.cpp
浏览文件 @
2e172f84
...
...
@@ -672,15 +672,15 @@ static int open_sharedmem_file(const char* filename, int oflags, TRAPS) {
RESTARTABLE
(
::
open
(
filename
,
oflags
),
result
);
if
(
result
==
OS_ERR
)
{
if
(
errno
==
ENOENT
)
{
THROW_MSG_
0
(
vmSymbols
::
java_lang_IllegalArgumentException
(),
"Process not found"
);
THROW_MSG_
(
vmSymbols
::
java_lang_IllegalArgumentException
(),
"Process not found"
,
OS_ERR
);
}
else
if
(
errno
==
EACCES
)
{
THROW_MSG_
0
(
vmSymbols
::
java_lang_IllegalArgumentException
(),
"Permission denied"
);
THROW_MSG_
(
vmSymbols
::
java_lang_IllegalArgumentException
(),
"Permission denied"
,
OS_ERR
);
}
else
{
THROW_MSG_
0
(
vmSymbols
::
java_io_IOException
(),
strerror
(
errno
)
);
THROW_MSG_
(
vmSymbols
::
java_io_IOException
(),
strerror
(
errno
),
OS_ERR
);
}
}
...
...
@@ -828,7 +828,7 @@ static void mmap_attach_shared(const char* user, int vmid, PerfMemory::PerfMemor
char
*
mapAddress
;
int
result
;
int
fd
;
size_t
size
;
size_t
size
=
0
;
const
char
*
luser
=
NULL
;
int
mmap_prot
;
...
...
@@ -899,9 +899,12 @@ static void mmap_attach_shared(const char* user, int vmid, PerfMemory::PerfMemor
if
(
*
sizep
==
0
)
{
size
=
sharedmem_filesize
(
fd
,
CHECK
);
assert
(
size
!=
0
,
"unexpected size"
);
}
else
{
size
=
*
sizep
;
}
assert
(
size
>
0
,
"unexpected size <= 0"
);
mapAddress
=
(
char
*
)
::
mmap
((
char
*
)
0
,
size
,
mmap_prot
,
MAP_SHARED
,
fd
,
0
);
// attempt to close the file - restart if it gets interrupted,
...
...
src/os/solaris/vm/perfMemory_solaris.cpp
浏览文件 @
2e172f84
...
...
@@ -687,15 +687,15 @@ static int open_sharedmem_file(const char* filename, int oflags, TRAPS) {
RESTARTABLE
(
::
open
(
filename
,
oflags
),
result
);
if
(
result
==
OS_ERR
)
{
if
(
errno
==
ENOENT
)
{
THROW_MSG_
0
(
vmSymbols
::
java_lang_IllegalArgumentException
(),
"Process not found"
);
THROW_MSG_
(
vmSymbols
::
java_lang_IllegalArgumentException
(),
"Process not found"
,
OS_ERR
);
}
else
if
(
errno
==
EACCES
)
{
THROW_MSG_
0
(
vmSymbols
::
java_lang_IllegalArgumentException
(),
"Permission denied"
);
THROW_MSG_
(
vmSymbols
::
java_lang_IllegalArgumentException
(),
"Permission denied"
,
OS_ERR
);
}
else
{
THROW_MSG_
0
(
vmSymbols
::
java_io_IOException
(),
strerror
(
errno
)
);
THROW_MSG_
(
vmSymbols
::
java_io_IOException
(),
strerror
(
errno
),
OS_ERR
);
}
}
...
...
@@ -843,7 +843,7 @@ static void mmap_attach_shared(const char* user, int vmid, PerfMemory::PerfMemor
char
*
mapAddress
;
int
result
;
int
fd
;
size_t
size
;
size_t
size
=
0
;
const
char
*
luser
=
NULL
;
int
mmap_prot
;
...
...
@@ -914,9 +914,12 @@ static void mmap_attach_shared(const char* user, int vmid, PerfMemory::PerfMemor
if
(
*
sizep
==
0
)
{
size
=
sharedmem_filesize
(
fd
,
CHECK
);
assert
(
size
!=
0
,
"unexpected size"
);
}
else
{
size
=
*
sizep
;
}
assert
(
size
>
0
,
"unexpected size <= 0"
);
mapAddress
=
(
char
*
)
::
mmap
((
char
*
)
0
,
size
,
mmap_prot
,
MAP_SHARED
,
fd
,
0
);
// attempt to close the file - restart if it gets interrupted,
...
...
src/os/windows/vm/perfMemory_windows.cpp
浏览文件 @
2e172f84
...
...
@@ -1581,7 +1581,7 @@ static void open_file_mapping(const char* user, int vmid,
ResourceMark
rm
;
void
*
mapAddress
=
0
;
size_t
size
;
size_t
size
=
0
;
HANDLE
fmh
;
DWORD
ofm_access
;
DWORD
mv_access
;
...
...
@@ -1652,9 +1652,12 @@ static void open_file_mapping(const char* user, int vmid,
if
(
*
sizep
==
0
)
{
size
=
sharedmem_filesize
(
rfilename
,
CHECK
);
assert
(
size
!=
0
,
"unexpected size"
);
}
else
{
size
=
*
sizep
;
}
assert
(
size
>
0
,
"unexpected size <= 0"
);
// Open the file mapping object with the given name
fmh
=
open_sharedmem_object
(
robjectname
,
ofm_access
,
CHECK
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录