Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
b19bba8c
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看板
提交
b19bba8c
编写于
4月 04, 2011
作者:
T
twisti
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
7032458: Zero and Shark fixes
Reviewed-by: twisti Contributed-by:
N
Gary Benson
<
gbenson@redhat.com
>
上级
c1608aa4
变更
10
显示空白变更内容
内联
并排
Showing
10 changed file
with
30 addition
and
19 deletion
+30
-19
src/cpu/zero/vm/globals_zero.hpp
src/cpu/zero/vm/globals_zero.hpp
+3
-1
src/cpu/zero/vm/relocInfo_zero.cpp
src/cpu/zero/vm/relocInfo_zero.cpp
+2
-2
src/cpu/zero/vm/sharedRuntime_zero.cpp
src/cpu/zero/vm/sharedRuntime_zero.cpp
+8
-6
src/share/vm/ci/ciTypeFlow.hpp
src/share/vm/ci/ciTypeFlow.hpp
+1
-0
src/share/vm/compiler/compileBroker.cpp
src/share/vm/compiler/compileBroker.cpp
+3
-3
src/share/vm/interpreter/bytecodeInterpreter.cpp
src/share/vm/interpreter/bytecodeInterpreter.cpp
+1
-1
src/share/vm/shark/sharkCompiler.cpp
src/share/vm/shark/sharkCompiler.cpp
+3
-1
src/share/vm/shark/sharkCompiler.hpp
src/share/vm/shark/sharkCompiler.hpp
+4
-2
src/share/vm/utilities/globalDefinitions.hpp
src/share/vm/utilities/globalDefinitions.hpp
+3
-3
src/share/vm/utilities/globalDefinitions_gcc.hpp
src/share/vm/utilities/globalDefinitions_gcc.hpp
+2
-0
未找到文件。
src/cpu/zero/vm/globals_zero.hpp
浏览文件 @
b19bba8c
/*
* Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
* Copyright 2007, 2008, 2009, 2010 Red Hat, Inc.
* Copyright 2007, 2008, 2009, 2010
, 2011
Red Hat, Inc.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -54,4 +54,6 @@ define_pd_global(bool, RewriteFrequentPairs, true);
define_pd_global
(
bool
,
UseMembar
,
false
);
// GC Ergo Flags
define_pd_global
(
intx
,
CMSYoungGenPerWorker
,
16
*
M
);
// default max size of CMS young gen, per GC worker thread
#endif // CPU_ZERO_VM_GLOBALS_ZERO_HPP
src/cpu/zero/vm/relocInfo_zero.cpp
浏览文件 @
b19bba8c
/*
* Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
* Copyright 2007, 2009 Red Hat, Inc.
* Copyright 2007, 2009
, 2010, 2011
Red Hat, Inc.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -31,7 +31,7 @@
#include "oops/oop.inline.hpp"
#include "runtime/safepoint.hpp"
void
Relocation
::
pd_set_data_value
(
address
x
,
intptr_t
o
)
{
void
Relocation
::
pd_set_data_value
(
address
x
,
intptr_t
o
,
bool
verify_only
)
{
ShouldNotCallThis
();
}
...
...
src/cpu/zero/vm/sharedRuntime_zero.cpp
浏览文件 @
b19bba8c
/*
* Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
* Copyright 2007, 2008, 2009, 2010 Red Hat, Inc.
* Copyright 2007, 2008, 2009, 2010
, 2011
Red Hat, Inc.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -78,15 +78,17 @@ AdapterHandlerEntry* SharedRuntime::generate_i2c2i_adapters(
nmethod
*
SharedRuntime
::
generate_native_wrapper
(
MacroAssembler
*
masm
,
methodHandle
method
,
int
total_in_args
,
int
comp_args_on_stack
,
BasicType
*
in_sig_bt
,
VMRegPair
*
in_regs
,
int
compile_id
,
int
total_args_passed
,
int
max_arg
,
BasicType
*
sig_bt
,
VMRegPair
*
regs
,
BasicType
ret_type
)
{
#ifdef SHARK
return
SharkCompiler
::
compiler
()
->
generate_native_wrapper
(
masm
,
method
,
in_sig_bt
,
compile_id
,
sig_bt
,
ret_type
);
#else
ShouldNotCallThis
();
...
...
src/share/vm/ci/ciTypeFlow.hpp
浏览文件 @
b19bba8c
...
...
@@ -34,6 +34,7 @@
#include "ci/ciEnv.hpp"
#include "ci/ciKlass.hpp"
#include "ci/ciMethodBlocks.hpp"
#include "shark/shark_globals.hpp"
#endif
...
...
src/share/vm/compiler/compileBroker.cpp
浏览文件 @
b19bba8c
...
...
@@ -847,9 +847,9 @@ CompilerThread* CompileBroker::make_compiler_thread(const char* name, CompileQue
// Initialize the compilation queue
void
CompileBroker
::
init_compiler_threads
(
int
c1_compiler_count
,
int
c2_compiler_count
)
{
EXCEPTION_MARK
;
#if
ndef ZERO
#if
!defined(ZERO) && !defined(SHARK)
assert
(
c2_compiler_count
>
0
||
c1_compiler_count
>
0
,
"No compilers?"
);
#endif // !ZERO
#endif // !ZERO
&& !SHARK
if
(
c2_compiler_count
>
0
)
{
_c2_method_queue
=
new
CompileQueue
(
"C2MethodQueue"
,
MethodCompileQueue_lock
);
}
...
...
@@ -1118,7 +1118,7 @@ nmethod* CompileBroker::compile_method(methodHandle method, int osr_bci,
assert
(
!
HAS_PENDING_EXCEPTION
,
"No exception should be present"
);
// some prerequisites that are compiler specific
if
(
compiler
(
comp_level
)
->
is_c2
())
{
if
(
compiler
(
comp_level
)
->
is_c2
()
||
compiler
(
comp_level
)
->
is_shark
()
)
{
method
->
constants
()
->
resolve_string_constants
(
CHECK_0
);
// Resolve all classes seen in the signature of the method
// we are compiling.
...
...
src/share/vm/interpreter/bytecodeInterpreter.cpp
浏览文件 @
b19bba8c
...
...
@@ -568,7 +568,7 @@ BytecodeInterpreter::run(interpreterState istate) {
/* 0xDC */
&&
opc_default
,
&&
opc_default
,
&&
opc_default
,
&&
opc_default
,
/* 0xE0 */
&&
opc_default
,
&&
opc_default
,
&&
opc_default
,
&&
opc_default
,
/* 0xE4 */
&&
opc_default
,
&&
opc_
return_register_finalizer
,
&&
opc_default
,
&&
opc_default
,
/* 0xE4 */
&&
opc_default
,
&&
opc_
default
,
&&
opc_default
,
&&
opc_return_register_finalizer
,
/* 0xE8 */
&&
opc_default
,
&&
opc_default
,
&&
opc_default
,
&&
opc_default
,
/* 0xEC */
&&
opc_default
,
&&
opc_default
,
&&
opc_default
,
&&
opc_default
,
...
...
src/share/vm/shark/sharkCompiler.cpp
浏览文件 @
b19bba8c
/*
* Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
* Copyright 2008, 2009, 2010 Red Hat, Inc.
* Copyright 2008, 2009, 2010
, 2011
Red Hat, Inc.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -218,6 +218,7 @@ void SharkCompiler::compile_method(ciEnv* env,
nmethod
*
SharkCompiler
::
generate_native_wrapper
(
MacroAssembler
*
masm
,
methodHandle
target
,
int
compile_id
,
BasicType
*
arg_types
,
BasicType
return_type
)
{
assert
(
is_initialized
(),
"should be"
);
...
...
@@ -241,6 +242,7 @@ nmethod* SharkCompiler::generate_native_wrapper(MacroAssembler* masm,
// Return the nmethod for installation in the VM
return
nmethod
::
new_native_nmethod
(
target
,
compile_id
,
masm
->
code
(),
0
,
0
,
...
...
src/share/vm/shark/sharkCompiler.hpp
浏览文件 @
b19bba8c
/*
* Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
* Copyright 2008, 2009 Red Hat, Inc.
* Copyright 2008, 2009
, 2010, 2011
Red Hat, Inc.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -60,6 +60,7 @@ class SharkCompiler : public AbstractCompiler {
// Generate a wrapper for a native (JNI) method
nmethod
*
generate_native_wrapper
(
MacroAssembler
*
masm
,
methodHandle
target
,
int
compile_id
,
BasicType
*
arg_types
,
BasicType
return_type
);
...
...
@@ -113,7 +114,8 @@ class SharkCompiler : public AbstractCompiler {
// Global access
public:
static
SharkCompiler
*
compiler
()
{
AbstractCompiler
*
compiler
=
CompileBroker
::
compiler
(
CompLevel_simple
);
AbstractCompiler
*
compiler
=
CompileBroker
::
compiler
(
CompLevel_full_optimization
);
assert
(
compiler
->
is_shark
()
&&
compiler
->
is_initialized
(),
"should be"
);
return
(
SharkCompiler
*
)
compiler
;
}
...
...
src/share/vm/utilities/globalDefinitions.hpp
浏览文件 @
b19bba8c
...
...
@@ -746,9 +746,9 @@ enum CompLevel {
CompLevel_simple
=
1
,
// C1
CompLevel_limited_profile
=
2
,
// C1, invocation & backedge counters
CompLevel_full_profile
=
3
,
// C1, invocation & backedge counters + mdo
CompLevel_full_optimization
=
4
,
// C2
CompLevel_full_optimization
=
4
,
// C2
or Shark
#if defined(COMPILER2)
#if defined(COMPILER2)
|| defined(SHARK)
CompLevel_highest_tier
=
CompLevel_full_optimization
,
// pure C2 and tiered
#elif defined(COMPILER1)
CompLevel_highest_tier
=
CompLevel_simple
,
// pure C1
...
...
@@ -760,7 +760,7 @@ enum CompLevel {
CompLevel_initial_compile
=
CompLevel_full_profile
// tiered
#elif defined(COMPILER1)
CompLevel_initial_compile
=
CompLevel_simple
// pure C1
#elif defined(COMPILER2)
#elif defined(COMPILER2)
|| defined(SHARK)
CompLevel_initial_compile
=
CompLevel_full_optimization
// pure C2
#else
CompLevel_initial_compile
=
CompLevel_none
...
...
src/share/vm/utilities/globalDefinitions_gcc.hpp
浏览文件 @
b19bba8c
...
...
@@ -77,7 +77,9 @@
# endif
#ifdef LINUX
#ifndef __STDC_LIMIT_MACROS
#define __STDC_LIMIT_MACROS
#endif // __STDC_LIMIT_MACROS
#include <inttypes.h>
#include <signal.h>
#include <ucontext.h>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录