Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
988025a2
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看板
提交
988025a2
编写于
12月 06, 2011
作者:
V
vladidan
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
9f5dfab7
f0f68236
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
105 addition
and
13 deletion
+105
-13
make/bsd/makefiles/buildtree.make
make/bsd/makefiles/buildtree.make
+12
-2
make/bsd/makefiles/sa.make
make/bsd/makefiles/sa.make
+19
-6
src/share/vm/runtime/globals.cpp
src/share/vm/runtime/globals.cpp
+8
-4
src/share/vm/runtime/globals.hpp
src/share/vm/runtime/globals.hpp
+7
-0
src/share/vm/runtime/globals_ext.hpp
src/share/vm/runtime/globals_ext.hpp
+56
-0
src/share/vm/runtime/globals_extension.hpp
src/share/vm/runtime/globals_extension.hpp
+3
-1
未找到文件。
make/bsd/makefiles/buildtree.make
浏览文件 @
988025a2
...
@@ -55,6 +55,9 @@
...
@@ -55,6 +55,9 @@
# The makefiles are split this way so that "make foo" will run faster by not
# The makefiles are split this way so that "make foo" will run faster by not
# having to read the dependency files for the vm.
# having to read the dependency files for the vm.
# needs to be set here since this Makefile doesn't include defs.make
OS_VENDOR
:=
$(
shell
uname
-s
)
include
$(GAMMADIR)/make/scm.make
include
$(GAMMADIR)/make/scm.make
include
$(GAMMADIR)/make/altsrc.make
include
$(GAMMADIR)/make/altsrc.make
...
@@ -159,8 +162,15 @@ ifndef HOTSPOT_VM_DISTRO
...
@@ -159,8 +162,15 @@ ifndef HOTSPOT_VM_DISTRO
endif
endif
endif
endif
# MACOSX FIXME: we should be able to run test_gamma (see MACOSX_PORT-214)
ifeq
($(OS_VENDOR), Darwin)
ifdef
ALWAYS_PASS_TEST_GAMMA
# MACOSX FIXME: we should be able to run test_gamma (see MACOSX_PORT-214)
ifeq
($(ALWAYS_PASS_TEST_GAMMA),)
# ALWAYS_PASS_TEST_GAMMA wasn't set so we default to true on MacOS X
# until MACOSX_PORT-214 is fixed
ALWAYS_PASS_TEST_GAMMA
=
true
endif
endif
ifeq
($(ALWAYS_PASS_TEST_GAMMA), true)
TEST_GAMMA_STATUS
=
echo
'exit 0'
;
TEST_GAMMA_STATUS
=
echo
'exit 0'
;
else
else
TEST_GAMMA_STATUS
=
TEST_GAMMA_STATUS
=
...
...
make/bsd/makefiles/sa.make
浏览文件 @
988025a2
...
@@ -37,11 +37,24 @@ include $(GAMMADIR)/make/sa.files
...
@@ -37,11 +37,24 @@ include $(GAMMADIR)/make/sa.files
TOPDIR
=
$(
shell
echo
`
pwd
`
)
TOPDIR
=
$(
shell
echo
`
pwd
`
)
GENERATED
=
$(TOPDIR)
/../generated
GENERATED
=
$(TOPDIR)
/../generated
# tools.jar is needed by the JDI - SA binding
# SA-JDI depends on the standard JDI classes.
ifeq
($(SA_APPLE_BOOT_JAVA),true)
# Default SA_CLASSPATH location:
SA_CLASSPATH
=
$(BOOT_JAVA_HOME)
/bundle/Classes/classes.jar
DEF_SA_CLASSPATH
=
$(BOOT_JAVA_HOME)
/lib/tools.jar
ifeq
($(ALT_SA_CLASSPATH),)
# no alternate specified; see if default exists
SA_CLASSPATH
=
$(
shell
test
-f
$(DEF_SA_CLASSPATH)
&&
echo
$(DEF_SA_CLASSPATH)
)
ifeq
($(SA_CLASSPATH),)
# the default doesn't exist
ifeq
($(OS_VENDOR), Darwin)
# A JDK from Apple doesn't have tools.jar; the JDI classes are
# are in the regular classes.jar file.
APPLE_JAR
=
$(BOOT_JAVA_HOME)
/bundle/Classes/classes.jar
SA_CLASSPATH
=
$(
shell
test
-f
$(APPLE_JAR)
&&
echo
$(APPLE_JAR)
)
endif
endif
else
else
SA_CLASSPATH
=
$(BOOT_JAVA_HOME)
/lib/tools.jar
_JUNK_
:=
$(
shell
echo
>
&2
"INFO: ALT_SA_CLASSPATH=
$(ALT_SA_CLASSPATH)
"
)
SA_CLASSPATH
=
$(
shell
test
-f
$(ALT_SA_CLASSPATH)
&&
echo
$(ALT_SA_CLASSPATH)
)
endif
endif
# TODO: if it's a modules image, check if SA module is installed.
# TODO: if it's a modules image, check if SA module is installed.
...
@@ -72,8 +85,8 @@ $(GENERATED)/sa-jdi.jar: $(AGENT_FILES)
...
@@ -72,8 +85,8 @@ $(GENERATED)/sa-jdi.jar: $(AGENT_FILES)
echo
"ALT_BOOTDIR, BOOTDIR or JAVA_HOME needs to be defined to build SA"
;
\
echo
"ALT_BOOTDIR, BOOTDIR or JAVA_HOME needs to be defined to build SA"
;
\
exit
1
;
\
exit
1
;
\
fi
fi
$(QUIETLY)
if
[
!
-f
$(SA_CLASSPATH)
-a
!
-d
$(MODULELIB_PATH)
]
;
then
\
$(QUIETLY)
if
[
!
-f
"
$(SA_CLASSPATH)
"
-a
!
-d
$(MODULELIB_PATH)
]
;
then
\
echo
"
Missing
$(SA_CLASSPATH)
file. Use 1.6.0 or later version of JDK"
;
\
echo
"
Cannot find JDI classes. Use 1.6.0 or later version of JDK."
;
\
echo
""
;
\
echo
""
;
\
exit
1
;
\
exit
1
;
\
fi
fi
...
...
src/share/vm/runtime/globals.cpp
浏览文件 @
988025a2
/*
/*
* 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.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
@@ -55,10 +55,13 @@ RUNTIME_OS_FLAGS(MATERIALIZE_DEVELOPER_FLAG, MATERIALIZE_PD_DEVELOPER_FLAG, \
...
@@ -55,10 +55,13 @@ RUNTIME_OS_FLAGS(MATERIALIZE_DEVELOPER_FLAG, MATERIALIZE_PD_DEVELOPER_FLAG, \
MATERIALIZE_PRODUCT_FLAG
,
MATERIALIZE_PD_PRODUCT_FLAG
,
\
MATERIALIZE_PRODUCT_FLAG
,
MATERIALIZE_PD_PRODUCT_FLAG
,
\
MATERIALIZE_DIAGNOSTIC_FLAG
,
MATERIALIZE_NOTPRODUCT_FLAG
)
MATERIALIZE_DIAGNOSTIC_FLAG
,
MATERIALIZE_NOTPRODUCT_FLAG
)
MATERIALIZE_FLAGS_EXT
bool
Flag
::
is_unlocker
()
const
{
bool
Flag
::
is_unlocker
()
const
{
return
strcmp
(
name
,
"UnlockDiagnosticVMOptions"
)
==
0
||
return
strcmp
(
name
,
"UnlockDiagnosticVMOptions"
)
==
0
||
strcmp
(
name
,
"UnlockExperimentalVMOptions"
)
==
0
;
strcmp
(
name
,
"UnlockExperimentalVMOptions"
)
==
0
||
is_unlocker_ext
();
}
}
bool
Flag
::
is_unlocked
()
const
{
bool
Flag
::
is_unlocked
()
const
{
...
@@ -74,7 +77,7 @@ bool Flag::is_unlocked() const {
...
@@ -74,7 +77,7 @@ bool Flag::is_unlocked() const {
strcmp
(
kind
,
"{C2 experimental}"
)
==
0
)
{
strcmp
(
kind
,
"{C2 experimental}"
)
==
0
)
{
return
UnlockExperimentalVMOptions
;
return
UnlockExperimentalVMOptions
;
}
else
{
}
else
{
return
true
;
return
is_unlocked_ext
()
;
}
}
}
}
...
@@ -241,6 +244,7 @@ static Flag flagTable[] = {
...
@@ -241,6 +244,7 @@ static Flag flagTable[] = {
#ifdef SHARK
#ifdef SHARK
SHARK_FLAGS
(
SHARK_DEVELOP_FLAG_STRUCT
,
SHARK_PD_DEVELOP_FLAG_STRUCT
,
SHARK_PRODUCT_FLAG_STRUCT
,
SHARK_PD_PRODUCT_FLAG_STRUCT
,
SHARK_DIAGNOSTIC_FLAG_STRUCT
,
SHARK_NOTPRODUCT_FLAG_STRUCT
)
SHARK_FLAGS
(
SHARK_DEVELOP_FLAG_STRUCT
,
SHARK_PD_DEVELOP_FLAG_STRUCT
,
SHARK_PRODUCT_FLAG_STRUCT
,
SHARK_PD_PRODUCT_FLAG_STRUCT
,
SHARK_DIAGNOSTIC_FLAG_STRUCT
,
SHARK_NOTPRODUCT_FLAG_STRUCT
)
#endif
#endif
FLAGTABLE_EXT
{
0
,
NULL
,
NULL
}
{
0
,
NULL
,
NULL
}
};
};
...
...
src/share/vm/runtime/globals.hpp
浏览文件 @
988025a2
...
@@ -243,6 +243,9 @@ struct Flag {
...
@@ -243,6 +243,9 @@ struct Flag {
bool
is_writeable
()
const
;
bool
is_writeable
()
const
;
bool
is_external
()
const
;
bool
is_external
()
const
;
bool
is_unlocker_ext
()
const
;
bool
is_unlocked_ext
()
const
;
void
print_on
(
outputStream
*
st
,
bool
withComments
=
false
);
void
print_on
(
outputStream
*
st
,
bool
withComments
=
false
);
void
print_as_flag
(
outputStream
*
st
);
void
print_as_flag
(
outputStream
*
st
);
};
};
...
@@ -3922,4 +3925,8 @@ RUNTIME_FLAGS(DECLARE_DEVELOPER_FLAG, DECLARE_PD_DEVELOPER_FLAG, DECLARE_PRODUCT
...
@@ -3922,4 +3925,8 @@ RUNTIME_FLAGS(DECLARE_DEVELOPER_FLAG, DECLARE_PD_DEVELOPER_FLAG, DECLARE_PRODUCT
RUNTIME_OS_FLAGS
(
DECLARE_DEVELOPER_FLAG
,
DECLARE_PD_DEVELOPER_FLAG
,
DECLARE_PRODUCT_FLAG
,
DECLARE_PD_PRODUCT_FLAG
,
DECLARE_DIAGNOSTIC_FLAG
,
DECLARE_NOTPRODUCT_FLAG
)
RUNTIME_OS_FLAGS
(
DECLARE_DEVELOPER_FLAG
,
DECLARE_PD_DEVELOPER_FLAG
,
DECLARE_PRODUCT_FLAG
,
DECLARE_PD_PRODUCT_FLAG
,
DECLARE_DIAGNOSTIC_FLAG
,
DECLARE_NOTPRODUCT_FLAG
)
// Extensions
#include "runtime/globals_ext.hpp"
#endif // SHARE_VM_RUNTIME_GLOBALS_HPP
#endif // SHARE_VM_RUNTIME_GLOBALS_HPP
src/share/vm/runtime/globals_ext.hpp
0 → 100644
浏览文件 @
988025a2
/*
* Copyright (c) 2011 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.
*
*/
#ifndef SHARE_VM_RUNTIME_GLOBALS_EXT_HPP
#define SHARE_VM_RUNTIME_GLOBALS_EXT_HPP
// globals_extension.hpp extension
// Additional CommandLineFlags enum values
#define COMMANDLINEFLAG_EXT
// Additional CommandLineFlagsWithType enum values
#define COMMANDLINEFLAGWITHTYPE_EXT
// globals.cpp extension
// Additional flag definitions
#define MATERIALIZE_FLAGS_EXT
// Additional flag descriptors: see flagTable definition
#define FLAGTABLE_EXT
// Default method implementations
inline
bool
Flag
::
is_unlocker_ext
()
const
{
return
false
;
}
inline
bool
Flag
::
is_unlocked_ext
()
const
{
return
true
;
}
#endif // SHARE_VM_RUNTIME_GLOBALS_EXT_HPP
src/share/vm/runtime/globals_extension.hpp
浏览文件 @
988025a2
/*
/*
* Copyright (c) 2003, 201
0
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 201
1
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
@@ -93,6 +93,7 @@ typedef enum {
...
@@ -93,6 +93,7 @@ typedef enum {
#ifdef COMPILER2
#ifdef COMPILER2
C2_FLAGS
(
C2_DEVELOP_FLAG_MEMBER
,
C2_PD_DEVELOP_FLAG_MEMBER
,
C2_PRODUCT_FLAG_MEMBER
,
C2_PD_PRODUCT_FLAG_MEMBER
,
C2_DIAGNOSTIC_FLAG_MEMBER
,
C2_EXPERIMENTAL_FLAG_MEMBER
,
C2_NOTPRODUCT_FLAG_MEMBER
)
C2_FLAGS
(
C2_DEVELOP_FLAG_MEMBER
,
C2_PD_DEVELOP_FLAG_MEMBER
,
C2_PRODUCT_FLAG_MEMBER
,
C2_PD_PRODUCT_FLAG_MEMBER
,
C2_DIAGNOSTIC_FLAG_MEMBER
,
C2_EXPERIMENTAL_FLAG_MEMBER
,
C2_NOTPRODUCT_FLAG_MEMBER
)
#endif
#endif
COMMANDLINEFLAG_EXT
NUM_CommandLineFlag
NUM_CommandLineFlag
}
CommandLineFlag
;
}
CommandLineFlag
;
...
@@ -192,6 +193,7 @@ typedef enum {
...
@@ -192,6 +193,7 @@ typedef enum {
C2_EXPERIMENTAL_FLAG_MEMBER_WITH_TYPE
,
C2_EXPERIMENTAL_FLAG_MEMBER_WITH_TYPE
,
C2_NOTPRODUCT_FLAG_MEMBER_WITH_TYPE
)
C2_NOTPRODUCT_FLAG_MEMBER_WITH_TYPE
)
#endif
#endif
COMMANDLINEFLAGWITHTYPE_EXT
NUM_CommandLineFlagWithType
NUM_CommandLineFlagWithType
}
CommandLineFlagWithType
;
}
CommandLineFlagWithType
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录