Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
49ddd83e
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看板
提交
49ddd83e
编写于
11月 13, 2012
作者:
C
coleenp
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
096d3481
22dc1d9b
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
19 addition
and
10 deletion
+19
-10
src/share/vm/classfile/symbolTable.hpp
src/share/vm/classfile/symbolTable.hpp
+3
-8
src/share/vm/runtime/arguments.cpp
src/share/vm/runtime/arguments.cpp
+6
-0
src/share/vm/runtime/globals.hpp
src/share/vm/runtime/globals.hpp
+1
-1
src/share/vm/runtime/os.cpp
src/share/vm/runtime/os.cpp
+3
-1
src/share/vm/utilities/globalDefinitions.hpp
src/share/vm/utilities/globalDefinitions.hpp
+6
-0
未找到文件。
src/share/vm/classfile/symbolTable.hpp
浏览文件 @
49ddd83e
...
@@ -262,19 +262,14 @@ public:
...
@@ -262,19 +262,14 @@ public:
// The string table
// The string table
static
StringTable
*
the_table
()
{
return
_the_table
;
}
static
StringTable
*
the_table
()
{
return
_the_table
;
}
// Size of one bucket in the string table. Used when checking for rollover.
static
uint
bucket_size
()
{
return
sizeof
(
HashtableBucket
<
mtSymbol
>
);
}
static
void
create_table
()
{
static
void
create_table
()
{
assert
(
_the_table
==
NULL
,
"One string table allowed."
);
assert
(
_the_table
==
NULL
,
"One string table allowed."
);
_the_table
=
new
StringTable
();
_the_table
=
new
StringTable
();
}
}
static
void
create_table
(
HashtableBucket
<
mtSymbol
>*
t
,
int
length
,
int
number_of_entries
)
{
assert
(
_the_table
==
NULL
,
"One string table allowed."
);
assert
((
size_t
)
length
==
StringTableSize
*
sizeof
(
HashtableBucket
<
mtSymbol
>
),
"bad shared string size."
);
_the_table
=
new
StringTable
(
t
,
number_of_entries
);
}
// GC support
// GC support
// Delete pointers to otherwise-unreachable objects.
// Delete pointers to otherwise-unreachable objects.
static
void
unlink
(
BoolObjectClosure
*
cl
);
static
void
unlink
(
BoolObjectClosure
*
cl
);
...
...
src/share/vm/runtime/arguments.cpp
浏览文件 @
49ddd83e
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
#include "precompiled.hpp"
#include "precompiled.hpp"
#include "classfile/javaAssertions.hpp"
#include "classfile/javaAssertions.hpp"
#include "classfile/symbolTable.hpp"
#include "compiler/compilerOracle.hpp"
#include "compiler/compilerOracle.hpp"
#include "memory/allocation.inline.hpp"
#include "memory/allocation.inline.hpp"
#include "memory/cardTableRS.hpp"
#include "memory/cardTableRS.hpp"
...
@@ -1844,6 +1845,11 @@ bool Arguments::check_vm_args_consistency() {
...
@@ -1844,6 +1845,11 @@ bool Arguments::check_vm_args_consistency() {
status
=
status
&&
verify_percentage
(
MinHeapFreeRatio
,
"MinHeapFreeRatio"
);
status
=
status
&&
verify_percentage
(
MinHeapFreeRatio
,
"MinHeapFreeRatio"
);
status
=
status
&&
verify_percentage
(
MaxHeapFreeRatio
,
"MaxHeapFreeRatio"
);
status
=
status
&&
verify_percentage
(
MaxHeapFreeRatio
,
"MaxHeapFreeRatio"
);
// Divide by bucket size to prevent a large size from causing rollover when
// calculating amount of memory needed to be allocated for the String table.
status
=
status
&&
verify_interval
(
StringTableSize
,
defaultStringTableSize
,
(
max_uintx
/
StringTable
::
bucket_size
()),
"StringTable size"
);
if
(
MinHeapFreeRatio
>
MaxHeapFreeRatio
)
{
if
(
MinHeapFreeRatio
>
MaxHeapFreeRatio
)
{
jio_fprintf
(
defaultStream
::
error_stream
(),
jio_fprintf
(
defaultStream
::
error_stream
(),
"MinHeapFreeRatio ("
UINTX_FORMAT
") must be less than or "
"MinHeapFreeRatio ("
UINTX_FORMAT
") must be less than or "
...
...
src/share/vm/runtime/globals.hpp
浏览文件 @
49ddd83e
...
@@ -3593,7 +3593,7 @@ class CommandLineFlags {
...
@@ -3593,7 +3593,7 @@ class CommandLineFlags {
diagnostic(bool, PrintDTraceDOF, false, \
diagnostic(bool, PrintDTraceDOF, false, \
"Print the DTrace DOF passed to the system for JSDT probes") \
"Print the DTrace DOF passed to the system for JSDT probes") \
\
\
product(uintx, StringTableSize,
1009,
\
product(uintx, StringTableSize,
defaultStringTableSize,
\
"Number of buckets in the interned String table") \
"Number of buckets in the interned String table") \
\
\
develop(bool, TraceDefaultMethods, false, \
develop(bool, TraceDefaultMethods, false, \
...
...
src/share/vm/runtime/os.cpp
浏览文件 @
49ddd83e
...
@@ -576,7 +576,9 @@ void* os::malloc(size_t size, MEMFLAGS memflags, address caller) {
...
@@ -576,7 +576,9 @@ void* os::malloc(size_t size, MEMFLAGS memflags, address caller) {
// if NULL is returned the calling functions assume out of memory.
// if NULL is returned the calling functions assume out of memory.
size
=
1
;
size
=
1
;
}
}
if
(
size
>
size
+
space_before
+
space_after
)
{
// Check for rollover.
return
NULL
;
}
NOT_PRODUCT
(
if
(
MallocVerifyInterval
>
0
)
check_heap
());
NOT_PRODUCT
(
if
(
MallocVerifyInterval
>
0
)
check_heap
());
u_char
*
ptr
=
(
u_char
*
)
::
malloc
(
size
+
space_before
+
space_after
);
u_char
*
ptr
=
(
u_char
*
)
::
malloc
(
size
+
space_before
+
space_after
);
...
...
src/share/vm/utilities/globalDefinitions.hpp
浏览文件 @
49ddd83e
...
@@ -327,6 +327,12 @@ typedef jlong s8;
...
@@ -327,6 +327,12 @@ typedef jlong s8;
const
int
max_method_code_size
=
64
*
K
-
1
;
// JVM spec, 2nd ed. section 4.8.1 (p.134)
const
int
max_method_code_size
=
64
*
K
-
1
;
// JVM spec, 2nd ed. section 4.8.1 (p.134)
//----------------------------------------------------------------------------------------------------
// Minimum StringTableSize value
const
int
defaultStringTableSize
=
1009
;
//----------------------------------------------------------------------------------------------------
//----------------------------------------------------------------------------------------------------
// HotSwap - for JVMTI aka Class File Replacement and PopFrame
// HotSwap - for JVMTI aka Class File Replacement and PopFrame
//
//
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录