Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
c591c733
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看板
提交
c591c733
编写于
10月 08, 2013
作者:
I
iveresov
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
305cd9c0
c74644c6
变更
22
隐藏空白更改
内联
并排
Showing
22 changed file
with
149 addition
and
110 deletion
+149
-110
src/share/vm/c1/c1_LIRGenerator.cpp
src/share/vm/c1/c1_LIRGenerator.cpp
+5
-1
src/share/vm/ci/ciEnv.cpp
src/share/vm/ci/ciEnv.cpp
+13
-3
src/share/vm/ci/ciEnv.hpp
src/share/vm/ci/ciEnv.hpp
+1
-0
src/share/vm/ci/ciInstanceKlass.cpp
src/share/vm/ci/ciInstanceKlass.cpp
+0
-1
src/share/vm/ci/ciMethod.cpp
src/share/vm/ci/ciMethod.cpp
+9
-9
src/share/vm/ci/ciMethod.hpp
src/share/vm/ci/ciMethod.hpp
+1
-1
src/share/vm/ci/ciMethodData.cpp
src/share/vm/ci/ciMethodData.cpp
+3
-2
src/share/vm/ci/ciMethodData.hpp
src/share/vm/ci/ciMethodData.hpp
+0
-2
src/share/vm/ci/ciReplay.cpp
src/share/vm/ci/ciReplay.cpp
+2
-4
src/share/vm/classfile/defaultMethods.cpp
src/share/vm/classfile/defaultMethods.cpp
+0
-1
src/share/vm/compiler/compileBroker.cpp
src/share/vm/compiler/compileBroker.cpp
+4
-0
src/share/vm/oops/method.hpp
src/share/vm/oops/method.hpp
+1
-1
src/share/vm/opto/bytecodeInfo.cpp
src/share/vm/opto/bytecodeInfo.cpp
+29
-17
src/share/vm/opto/graphKit.cpp
src/share/vm/opto/graphKit.cpp
+10
-3
src/share/vm/opto/graphKit.hpp
src/share/vm/opto/graphKit.hpp
+3
-1
src/share/vm/opto/parse.hpp
src/share/vm/opto/parse.hpp
+2
-0
src/share/vm/opto/parse2.cpp
src/share/vm/opto/parse2.cpp
+4
-4
src/share/vm/opto/parseHelper.cpp
src/share/vm/opto/parseHelper.cpp
+6
-2
src/share/vm/utilities/ostream.cpp
src/share/vm/utilities/ostream.cpp
+2
-2
src/share/vm/utilities/vmError.cpp
src/share/vm/utilities/vmError.cpp
+1
-1
test/compiler/8013496/Test8013496.sh
test/compiler/8013496/Test8013496.sh
+0
-55
test/compiler/codecache/CheckReservedInitialCodeCacheSizeArgOrder.java
.../codecache/CheckReservedInitialCodeCacheSizeArgOrder.java
+53
-0
未找到文件。
src/share/vm/c1/c1_LIRGenerator.cpp
浏览文件 @
c591c733
...
...
@@ -3053,7 +3053,11 @@ void LIRGenerator::increment_event_counter_impl(CodeEmitInfo* info,
int
offset
=
-
1
;
LIR_Opr
counter_holder
;
if
(
level
==
CompLevel_limited_profile
)
{
address
counters_adr
=
method
->
ensure_method_counters
();
MethodCounters
*
counters_adr
=
method
->
ensure_method_counters
();
if
(
counters_adr
==
NULL
)
{
bailout
(
"method counters allocation failed"
);
return
;
}
counter_holder
=
new_pointer_register
();
__
move
(
LIR_OprFact
::
intptrConst
(
counters_adr
),
counter_holder
);
offset
=
in_bytes
(
backedge
?
MethodCounters
::
backedge_counter_offset
()
:
...
...
src/share/vm/ci/ciEnv.cpp
浏览文件 @
c591c733
...
...
@@ -1154,9 +1154,12 @@ ciInstance* ciEnv::unloaded_ciinstance() {
GUARDED_VM_ENTRY
(
return
_factory
->
get_unloaded_object_constant
();)
}
void
ciEnv
::
dump_replay_data
(
outputStream
*
out
)
{
VM_ENTRY_MARK
;
MutexLocker
ml
(
Compile_lock
);
// ------------------------------------------------------------------
// ciEnv::dump_replay_data*
// Don't change thread state and acquire any locks.
// Safe to call from VM error reporter.
void
ciEnv
::
dump_replay_data_unsafe
(
outputStream
*
out
)
{
ResourceMark
rm
;
#if INCLUDE_JVMTI
out
->
print_cr
(
"JvmtiExport can_access_local_variables %d"
,
_jvmti_can_access_local_variables
);
...
...
@@ -1181,3 +1184,10 @@ void ciEnv::dump_replay_data(outputStream* out) {
entry_bci
,
comp_level
);
out
->
flush
();
}
void
ciEnv
::
dump_replay_data
(
outputStream
*
out
)
{
GUARDED_VM_ENTRY
(
MutexLocker
ml
(
Compile_lock
);
dump_replay_data_unsafe
(
out
);
)
}
src/share/vm/ci/ciEnv.hpp
浏览文件 @
c591c733
...
...
@@ -452,6 +452,7 @@ public:
// Dump the compilation replay data for the ciEnv to the stream.
void
dump_replay_data
(
outputStream
*
out
);
void
dump_replay_data_unsafe
(
outputStream
*
out
);
};
#endif // SHARE_VM_CI_CIENV_HPP
src/share/vm/ci/ciInstanceKlass.cpp
浏览文件 @
c591c733
...
...
@@ -671,7 +671,6 @@ class StaticFinalFieldPrinter : public FieldClosure {
void
ciInstanceKlass
::
dump_replay_data
(
outputStream
*
out
)
{
ASSERT_IN_VM
;
ResourceMark
rm
;
InstanceKlass
*
ik
=
get_instanceKlass
();
...
...
src/share/vm/ci/ciMethod.cpp
浏览文件 @
c591c733
...
...
@@ -846,7 +846,9 @@ bool ciMethod::has_member_arg() const {
// Return true if allocation was successful or no MDO is required.
bool
ciMethod
::
ensure_method_data
(
methodHandle
h_m
)
{
EXCEPTION_CONTEXT
;
if
(
is_native
()
||
is_abstract
()
||
h_m
()
->
is_accessor
())
return
true
;
if
(
is_native
()
||
is_abstract
()
||
h_m
()
->
is_accessor
())
{
return
true
;
}
if
(
h_m
()
->
method_data
()
==
NULL
)
{
Method
::
build_interpreter_method_data
(
h_m
,
THREAD
);
if
(
HAS_PENDING_EXCEPTION
)
{
...
...
@@ -903,22 +905,21 @@ ciMethodData* ciMethod::method_data() {
// NULL otherwise.
ciMethodData
*
ciMethod
::
method_data_or_null
()
{
ciMethodData
*
md
=
method_data
();
if
(
md
->
is_empty
())
return
NULL
;
if
(
md
->
is_empty
())
{
return
NULL
;
}
return
md
;
}
// ------------------------------------------------------------------
// ciMethod::ensure_method_counters
//
address
ciMethod
::
ensure_method_counters
()
{
MethodCounters
*
ciMethod
::
ensure_method_counters
()
{
check_is_loaded
();
VM_ENTRY_MARK
;
methodHandle
mh
(
THREAD
,
get_Method
());
MethodCounters
*
counter
=
mh
->
method_counters
();
if
(
counter
==
NULL
)
{
counter
=
Method
::
build_method_counters
(
mh
(),
CHECK_AND_CLEAR_NULL
);
}
return
(
address
)
counter
;
MethodCounters
*
method_counters
=
mh
->
get_method_counters
(
CHECK_NULL
);
return
method_counters
;
}
// ------------------------------------------------------------------
...
...
@@ -1247,7 +1248,6 @@ ciMethodBlocks *ciMethod::get_method_blocks() {
#undef FETCH_FLAG_FROM_VM
void
ciMethod
::
dump_replay_data
(
outputStream
*
st
)
{
ASSERT_IN_VM
;
ResourceMark
rm
;
Method
*
method
=
get_Method
();
MethodCounters
*
mcs
=
method
->
method_counters
();
...
...
src/share/vm/ci/ciMethod.hpp
浏览文件 @
c591c733
...
...
@@ -265,7 +265,7 @@ class ciMethod : public ciMetadata {
bool
is_klass_loaded
(
int
refinfo_index
,
bool
must_be_resolved
)
const
;
bool
check_call
(
int
refinfo_index
,
bool
is_static
)
const
;
bool
ensure_method_data
();
// make sure it exists in the VM also
address
ensure_method_counters
();
MethodCounters
*
ensure_method_counters
();
int
instructions_size
();
int
scale_count
(
int
count
,
float
prof_factor
=
1.
);
// make MDO count commensurate with IIC
...
...
src/share/vm/ci/ciMethodData.cpp
浏览文件 @
c591c733
...
...
@@ -78,7 +78,9 @@ ciMethodData::ciMethodData() : ciMetadata(NULL) {
void
ciMethodData
::
load_data
()
{
MethodData
*
mdo
=
get_MethodData
();
if
(
mdo
==
NULL
)
return
;
if
(
mdo
==
NULL
)
{
return
;
}
// To do: don't copy the data if it is not "ripe" -- require a minimum #
// of invocations.
...
...
@@ -373,7 +375,6 @@ void ciMethodData::print_impl(outputStream* st) {
}
void
ciMethodData
::
dump_replay_data
(
outputStream
*
out
)
{
ASSERT_IN_VM
;
ResourceMark
rm
;
MethodData
*
mdo
=
get_MethodData
();
Method
*
method
=
mdo
->
method
();
...
...
src/share/vm/ci/ciMethodData.hpp
浏览文件 @
c591c733
...
...
@@ -232,8 +232,6 @@ private:
public:
bool
is_method_data
()
const
{
return
true
;
}
void
set_mature
()
{
_state
=
mature_state
;
}
bool
is_empty
()
{
return
_state
==
empty_state
;
}
bool
is_mature
()
{
return
_state
==
mature_state
;
}
...
...
src/share/vm/ci/ciReplay.cpp
浏览文件 @
c591c733
...
...
@@ -965,14 +965,12 @@ void ciReplay::initialize(ciMethod* m) {
tty
->
cr
();
}
else
{
EXCEPTION_CONTEXT
;
MethodCounters
*
mcs
=
method
->
method_counters
();
// m->_instructions_size = rec->instructions_size;
m
->
_instructions_size
=
-
1
;
m
->
_interpreter_invocation_count
=
rec
->
interpreter_invocation_count
;
m
->
_interpreter_throwout_count
=
rec
->
interpreter_throwout_count
;
if
(
mcs
==
NULL
)
{
mcs
=
Method
::
build_method_counters
(
method
,
CHECK_AND_CLEAR
);
}
MethodCounters
*
mcs
=
method
->
get_method_counters
(
CHECK_AND_CLEAR
);
guarantee
(
mcs
!=
NULL
,
"method counters allocation failed"
);
mcs
->
invocation_counter
()
->
_counter
=
rec
->
invocation_counter
;
mcs
->
backedge_counter
()
->
_counter
=
rec
->
backedge_counter
;
}
...
...
src/share/vm/classfile/defaultMethods.cpp
浏览文件 @
c591c733
...
...
@@ -898,7 +898,6 @@ static Method* new_method(
m
->
set_max_locals
(
params
);
m
->
constMethod
()
->
set_stackmap_data
(
NULL
);
m
->
set_code
(
code_start
);
m
->
set_force_inline
(
true
);
return
m
;
}
...
...
src/share/vm/compiler/compileBroker.cpp
浏览文件 @
c591c733
...
...
@@ -1953,6 +1953,10 @@ void CompileBroker::handle_full_code_cache() {
// Since code cache is full, immediately stop new compiles
if
(
CompileBroker
::
set_should_compile_new_jobs
(
CompileBroker
::
stop_compilation
))
{
NMethodSweeper
::
log_sweep
(
"disable_compiler"
);
// Switch to 'vm_state'. This ensures that possibly_sweep() can be called
// without having to consider the state in which the current thread is.
ThreadInVMfromUnknown
in_vm
;
NMethodSweeper
::
possibly_sweep
();
}
}
else
{
...
...
src/share/vm/oops/method.hpp
浏览文件 @
c591c733
...
...
@@ -804,6 +804,7 @@ class Method : public Metadata {
private:
void
print_made_not_compilable
(
int
comp_level
,
bool
is_osr
,
bool
report
,
const
char
*
reason
);
public:
MethodCounters
*
get_method_counters
(
TRAPS
)
{
if
(
_method_counters
==
NULL
)
{
build_method_counters
(
this
,
CHECK_AND_CLEAR_NULL
);
...
...
@@ -811,7 +812,6 @@ class Method : public Metadata {
return
_method_counters
;
}
public:
bool
is_not_c1_compilable
()
const
{
return
access_flags
().
is_not_c1_compilable
();
}
void
set_not_c1_compilable
()
{
_access_flags
.
set_not_c1_compilable
();
}
void
clear_not_c1_compilable
()
{
_access_flags
.
clear_not_c1_compilable
();
}
...
...
src/share/vm/opto/bytecodeInfo.cpp
浏览文件 @
c591c733
...
...
@@ -197,6 +197,7 @@ bool InlineTree::should_inline(ciMethod* callee_method, ciMethod* caller_method,
// negative filter: should callee NOT be inlined?
bool
InlineTree
::
should_not_inline
(
ciMethod
*
callee_method
,
ciMethod
*
caller_method
,
JVMState
*
jvms
,
WarmCallInfo
*
wci_result
)
{
const
char
*
fail_msg
=
NULL
;
...
...
@@ -226,7 +227,7 @@ bool InlineTree::should_not_inline(ciMethod *callee_method,
// don't inline exception code unless the top method belongs to an
// exception class
if
(
callee_method
->
holder
()
->
is_subclass_of
(
C
->
env
()
->
Throwable_klass
()))
{
ciMethod
*
top_method
=
caller_jvms
()
?
caller_jvms
()
->
of_depth
(
1
)
->
method
()
:
method
();
ciMethod
*
top_method
=
jvms
->
caller
()
!=
NULL
?
jvms
->
caller
()
->
of_depth
(
1
)
->
method
()
:
method
();
if
(
!
top_method
->
holder
()
->
is_subclass_of
(
C
->
env
()
->
Throwable_klass
()))
{
wci_result
->
set_profit
(
wci_result
->
profit
()
*
0.1
);
}
...
...
@@ -328,7 +329,7 @@ bool InlineTree::should_not_inline(ciMethod *callee_method,
// return true if ok
// Relocated from "InliningClosure::try_to_inline"
bool
InlineTree
::
try_to_inline
(
ciMethod
*
callee_method
,
ciMethod
*
caller_method
,
int
caller_bci
,
ciCallProfile
&
profile
,
int
caller_bci
,
JVMState
*
jvms
,
ciCallProfile
&
profile
,
WarmCallInfo
*
wci_result
,
bool
&
should_delay
)
{
// Old algorithm had funny accumulating BC-size counters
...
...
@@ -346,7 +347,7 @@ bool InlineTree::try_to_inline(ciMethod* callee_method, ciMethod* caller_method,
wci_result
))
{
return
false
;
}
if
(
should_not_inline
(
callee_method
,
caller_method
,
wci_result
))
{
if
(
should_not_inline
(
callee_method
,
caller_method
,
jvms
,
wci_result
))
{
return
false
;
}
...
...
@@ -397,24 +398,35 @@ bool InlineTree::try_to_inline(ciMethod* callee_method, ciMethod* caller_method,
}
// detect direct and indirect recursive inlining
if
(
!
callee_method
->
is_compiled_lambda_form
())
{
{
// count the current method and the callee
int
inline_level
=
(
method
()
==
callee_method
)
?
1
:
0
;
if
(
inline_level
>
MaxRecursiveInlineLevel
)
{
set_msg
(
"recursively inlining too deep"
);
return
false
;
const
bool
is_compiled_lambda_form
=
callee_method
->
is_compiled_lambda_form
();
int
inline_level
=
0
;
if
(
!
is_compiled_lambda_form
)
{
if
(
method
()
==
callee_method
)
{
inline_level
++
;
}
}
// count callers of current method and callee
JVMState
*
jvms
=
caller_jvms
();
while
(
jvms
!=
NULL
&&
jvms
->
has_method
())
{
if
(
jvms
->
method
()
==
callee_method
)
{
inline_level
++
;
if
(
inline_level
>
MaxRecursiveInlineLevel
)
{
set_msg
(
"recursively inlining too deep"
);
return
false
;
Node
*
callee_argument0
=
is_compiled_lambda_form
?
jvms
->
map
()
->
argument
(
jvms
,
0
)
->
uncast
()
:
NULL
;
for
(
JVMState
*
j
=
jvms
->
caller
();
j
!=
NULL
&&
j
->
has_method
();
j
=
j
->
caller
())
{
if
(
j
->
method
()
==
callee_method
)
{
if
(
is_compiled_lambda_form
)
{
// Since compiled lambda forms are heavily reused we allow recursive inlining. If it is truly
// a recursion (using the same "receiver") we limit inlining otherwise we can easily blow the
// compiler stack.
Node
*
caller_argument0
=
j
->
map
()
->
argument
(
j
,
0
)
->
uncast
();
if
(
caller_argument0
==
callee_argument0
)
{
inline_level
++
;
}
}
else
{
inline_level
++
;
}
}
jvms
=
jvms
->
caller
();
}
if
(
inline_level
>
MaxRecursiveInlineLevel
)
{
set_msg
(
"recursive inlining is too deep"
);
return
false
;
}
}
...
...
@@ -536,7 +548,7 @@ WarmCallInfo* InlineTree::ok_to_inline(ciMethod* callee_method, JVMState* jvms,
// Check if inlining policy says no.
WarmCallInfo
wci
=
*
(
initial_wci
);
bool
success
=
try_to_inline
(
callee_method
,
caller_method
,
caller_bci
,
profile
,
&
wci
,
should_delay
);
jvms
,
profile
,
&
wci
,
should_delay
);
#ifndef PRODUCT
if
(
UseOldInlining
&&
InlineWarmCalls
...
...
src/share/vm/opto/graphKit.cpp
浏览文件 @
c591c733
...
...
@@ -2122,7 +2122,7 @@ Node* GraphKit::dstore_rounding(Node* n) {
// Null check oop. Set null-path control into Region in slot 3.
// Make a cast-not-nullness use the other not-null control. Return cast.
Node
*
GraphKit
::
null_check_oop
(
Node
*
value
,
Node
*
*
null_control
,
bool
never_see_null
)
{
bool
never_see_null
,
bool
safe_for_replace
)
{
// Initial NULL check taken path
(
*
null_control
)
=
top
();
Node
*
cast
=
null_check_common
(
value
,
T_OBJECT
,
false
,
null_control
);
...
...
@@ -2140,6 +2140,9 @@ Node* GraphKit::null_check_oop(Node* value, Node* *null_control,
Deoptimization
::
Action_make_not_entrant
);
(
*
null_control
)
=
top
();
// NULL path is dead
}
if
((
*
null_control
)
==
top
()
&&
safe_for_replace
)
{
replace_in_map
(
value
,
cast
);
}
// Cast away null-ness on the result
return
cast
;
...
...
@@ -2634,15 +2637,17 @@ Node* GraphKit::gen_instanceof(Node* obj, Node* superklass) {
C
->
set_has_split_ifs
(
true
);
// Has chance for split-if optimization
ciProfileData
*
data
=
NULL
;
bool
safe_for_replace
=
false
;
if
(
java_bc
()
==
Bytecodes
::
_instanceof
)
{
// Only for the bytecode
data
=
method
()
->
method_data
()
->
bci_to_data
(
bci
());
safe_for_replace
=
true
;
}
bool
never_see_null
=
(
ProfileDynamicTypes
// aggressive use of profile
&&
seems_never_null
(
obj
,
data
));
// Null check; get casted pointer; set region slot 3
Node
*
null_ctl
=
top
();
Node
*
not_null_obj
=
null_check_oop
(
obj
,
&
null_ctl
,
never_see_null
);
Node
*
not_null_obj
=
null_check_oop
(
obj
,
&
null_ctl
,
never_see_null
,
safe_for_replace
);
// If not_null_obj is dead, only null-path is taken
if
(
stopped
())
{
// Doing instance-of on a NULL?
...
...
@@ -2723,11 +2728,13 @@ Node* GraphKit::gen_checkcast(Node *obj, Node* superklass,
}
ciProfileData
*
data
=
NULL
;
bool
safe_for_replace
=
false
;
if
(
failure_control
==
NULL
)
{
// use MDO in regular case only
assert
(
java_bc
()
==
Bytecodes
::
_aastore
||
java_bc
()
==
Bytecodes
::
_checkcast
,
"interpreter profiles type checks only for these BCs"
);
data
=
method
()
->
method_data
()
->
bci_to_data
(
bci
());
safe_for_replace
=
true
;
}
// Make the merge point
...
...
@@ -2742,7 +2749,7 @@ Node* GraphKit::gen_checkcast(Node *obj, Node* superklass,
// Null check; get casted pointer; set region slot 3
Node
*
null_ctl
=
top
();
Node
*
not_null_obj
=
null_check_oop
(
obj
,
&
null_ctl
,
never_see_null
);
Node
*
not_null_obj
=
null_check_oop
(
obj
,
&
null_ctl
,
never_see_null
,
safe_for_replace
);
// If not_null_obj is dead, only null-path is taken
if
(
stopped
())
{
// Doing instance-of on a NULL?
...
...
src/share/vm/opto/graphKit.hpp
浏览文件 @
c591c733
...
...
@@ -378,8 +378,10 @@ class GraphKit : public Phase {
// Return a cast-not-null node which depends on the not-null control.
// If never_see_null, use an uncommon trap (*null_control sees a top).
// The cast is not valid along the null path; keep a copy of the original.
// If safe_for_replace, then we can replace the value with the cast
// in the parsing map (the cast is guaranteed to dominate the map)
Node
*
null_check_oop
(
Node
*
value
,
Node
*
*
null_control
,
bool
never_see_null
=
false
);
bool
never_see_null
=
false
,
bool
safe_for_replace
=
false
);
// Check the null_seen bit.
bool
seems_never_null
(
Node
*
obj
,
ciProfileData
*
data
);
...
...
src/share/vm/opto/parse.hpp
浏览文件 @
c591c733
...
...
@@ -73,6 +73,7 @@ protected:
bool
try_to_inline
(
ciMethod
*
callee_method
,
ciMethod
*
caller_method
,
int
caller_bci
,
JVMState
*
jvms
,
ciCallProfile
&
profile
,
WarmCallInfo
*
wci_result
,
bool
&
should_delay
);
...
...
@@ -83,6 +84,7 @@ protected:
WarmCallInfo
*
wci_result
);
bool
should_not_inline
(
ciMethod
*
callee_method
,
ciMethod
*
caller_method
,
JVMState
*
jvms
,
WarmCallInfo
*
wci_result
);
void
print_inlining
(
ciMethod
*
callee_method
,
int
caller_bci
,
bool
success
)
const
;
...
...
src/share/vm/opto/parse2.cpp
浏览文件 @
c591c733
...
...
@@ -268,7 +268,7 @@ public:
return
adjoinRange
(
value
,
value
,
dest
,
table_index
);
}
void
print
(
ciEnv
*
env
)
{
void
print
()
{
if
(
is_singleton
())
tty
->
print
(
" {%d}=>%d"
,
lo
(),
dest
());
else
if
(
lo
()
==
min_jint
)
...
...
@@ -471,8 +471,8 @@ bool Parse::create_jump_tables(Node* key_val, SwitchRange* lo, SwitchRange* hi)
// These are the switch destinations hanging off the jumpnode
int
i
=
0
;
for
(
SwitchRange
*
r
=
lo
;
r
<=
hi
;
r
++
)
{
for
(
int
j
=
r
->
lo
();
j
<=
r
->
hi
();
j
++
,
i
++
)
{
Node
*
input
=
_gvn
.
transform
(
new
(
C
)
JumpProjNode
(
jtn
,
i
,
r
->
dest
(),
j
-
lowval
));
for
(
int
64
j
=
r
->
lo
();
j
<=
r
->
hi
();
j
++
,
i
++
)
{
Node
*
input
=
_gvn
.
transform
(
new
(
C
)
JumpProjNode
(
jtn
,
i
,
r
->
dest
(),
(
int
)(
j
-
lowval
)
));
{
PreserveJVMState
pjvms
(
this
);
set_control
(
input
);
...
...
@@ -632,7 +632,7 @@ void Parse::jump_switch_ranges(Node* key_val, SwitchRange *lo, SwitchRange *hi,
}
tty
->
print
(
" "
);
for
(
r
=
lo
;
r
<=
hi
;
r
++
)
{
r
->
print
(
env
()
);
r
->
print
();
}
tty
->
print_cr
(
""
);
}
...
...
src/share/vm/opto/parseHelper.cpp
浏览文件 @
c591c733
...
...
@@ -343,10 +343,14 @@ void Parse::increment_and_test_invocation_counter(int limit) {
// Get the Method* node.
ciMethod
*
m
=
method
();
address
counters_adr
=
m
->
ensure_method_counters
();
MethodCounters
*
counters_adr
=
m
->
ensure_method_counters
();
if
(
counters_adr
==
NULL
)
{
C
->
record_failure
(
"method counters allocation failed"
);
return
;
}
Node
*
ctrl
=
control
();
const
TypePtr
*
adr_type
=
TypeRawPtr
::
make
(
counters_adr
);
const
TypePtr
*
adr_type
=
TypeRawPtr
::
make
(
(
address
)
counters_adr
);
Node
*
counters_node
=
makecon
(
adr_type
);
Node
*
adr_iic_node
=
basic_plus_adr
(
counters_node
,
counters_node
,
MethodCounters
::
interpreter_invocation_counter_offset_in_bytes
());
...
...
src/share/vm/utilities/ostream.cpp
浏览文件 @
c591c733
...
...
@@ -465,7 +465,7 @@ static const char* make_log_name_internal(const char* log_name, const char* forc
}
// log_name comes from -XX:LogFile=log_name or -Xloggc:log_name
// in log_name, %p => pi
p
d1234 and
// in log_name, %p => pid1234 and
// %t => YYYY-MM-DD_HH-MM-SS
static
const
char
*
make_log_name
(
const
char
*
log_name
,
const
char
*
force_directory
)
{
char
timestr
[
32
];
...
...
@@ -792,7 +792,7 @@ bool defaultStream::has_log_file() {
void
defaultStream
::
init_log
()
{
// %%% Need a MutexLocker?
const
char
*
log_name
=
LogFile
!=
NULL
?
LogFile
:
"hotspot_
pid
%p.log"
;
const
char
*
log_name
=
LogFile
!=
NULL
?
LogFile
:
"hotspot_%p.log"
;
const
char
*
try_name
=
make_log_name
(
log_name
,
NULL
);
fileStream
*
file
=
new
(
ResourceObj
::
C_HEAP
,
mtInternal
)
fileStream
(
try_name
);
if
(
!
file
->
is_open
())
{
...
...
src/share/vm/utilities/vmError.cpp
浏览文件 @
c591c733
...
...
@@ -1050,7 +1050,7 @@ void VMError::report_and_die() {
FILE
*
replay_data_file
=
os
::
open
(
fd
,
"w"
);
if
(
replay_data_file
!=
NULL
)
{
fileStream
replay_data_stream
(
replay_data_file
,
/*need_close=*/
true
);
env
->
dump_replay_data
(
&
replay_data_stream
);
env
->
dump_replay_data
_unsafe
(
&
replay_data_stream
);
out
.
print_raw
(
"#
\n
# Compiler replay data is saved as:
\n
# "
);
out
.
print_raw_cr
(
buffer
);
}
else
{
...
...
test/compiler/8013496/Test8013496.sh
已删除
100644 → 0
浏览文件 @
305cd9c0
#!/bin/sh
#
# Copyright (c) 2013, 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
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
#
#
# @test
# @bug 8013496
# @summary Test checks that the order in which ReversedCodeCacheSize and
# InitialCodeCacheSize are passed to the VM is irrelevant.
# @run shell Test8013496.sh
#
#
## some tests require path to find test source dir
if
[
"
${
TESTSRC
}
"
=
""
]
then
TESTSRC
=
${
PWD
}
echo
"TESTSRC not set. Using "
${
TESTSRC
}
" as default"
fi
echo
"TESTSRC=
${
TESTSRC
}
"
## Adding common setup Variables for running shell tests.
.
${
TESTSRC
}
/../../test_env.sh
set
-x
${
TESTJAVA
}
/bin/java
${
TESTVMOPTS
}
-XX
:ReservedCodeCacheSize
=
2m
-XX
:InitialCodeCacheSize
=
500K
-version
>
1.out 2>&1
${
TESTJAVA
}
/bin/java
${
TESTVMOPTS
}
-XX
:InitialCodeCacheSize
=
500K
-XX
:ReservedCodeCacheSize
=
2m
-version
>
2.out 2>&1
diff 1.out 2.out
result
=
$?
if
[
$result
-eq
0
]
;
then
echo
"Test Passed"
exit
0
else
echo
"Test Failed"
exit
1
fi
test/compiler/codecache/CheckReservedInitialCodeCacheSizeArgOrder.java
0 → 100644
浏览文件 @
c591c733
/*
* Copyright (c) 2013, 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 8013496
* @summary Test checks that the order in which ReversedCodeCacheSize and
* InitialCodeCacheSize are passed to the VM is irrelevant.
* @library /testlibrary
*
*/
import
com.oracle.java.testlibrary.*
;
public
class
CheckReservedInitialCodeCacheSizeArgOrder
{
public
static
void
main
(
String
[]
args
)
throws
Exception
{
ProcessBuilder
pb1
,
pb2
;
OutputAnalyzer
out1
,
out2
;
pb1
=
ProcessTools
.
createJavaProcessBuilder
(
"-XX:InitialCodeCacheSize=4m"
,
"-XX:ReservedCodeCacheSize=8m"
,
"-version"
);
pb2
=
ProcessTools
.
createJavaProcessBuilder
(
"-XX:ReservedCodeCacheSize=8m"
,
"-XX:InitialCodeCacheSize=4m"
,
"-version"
);
out1
=
new
OutputAnalyzer
(
pb1
.
start
());
out2
=
new
OutputAnalyzer
(
pb2
.
start
());
// Check that the outputs are equal
if
(
out1
.
getStdout
().
compareTo
(
out2
.
getStdout
())
!=
0
)
{
throw
new
RuntimeException
(
"Test failed"
);
}
out1
.
shouldHaveExitValue
(
0
);
out2
.
shouldHaveExitValue
(
0
);
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录