Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
d2132bd1
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看板
提交
d2132bd1
编写于
9月 29, 2011
作者:
N
never
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
7096016: SA build still produces "arg list too long" errors
Reviewed-by: kvn, never Contributed-by: volker.simonis@gmail.com
上级
68345435
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
22 addition
and
42 deletion
+22
-42
make/linux/makefiles/sa.make
make/linux/makefiles/sa.make
+9
-17
make/sa.files
make/sa.files
+2
-5
make/solaris/makefiles/sa.make
make/solaris/makefiles/sa.make
+9
-17
make/windows/makefiles/sa.make
make/windows/makefiles/sa.make
+2
-3
未找到文件。
make/linux/makefiles/sa.make
浏览文件 @
d2132bd1
...
...
@@ -43,13 +43,7 @@ SA_CLASSPATH = $(BOOT_JAVA_HOME)/lib/tools.jar
# TODO: if it's a modules image, check if SA module is installed.
MODULELIB_PATH
=
$(BOOT_JAVA_HOME)
/lib/modules
# gnumake 3.78.1 does not accept the *s that
# are in AGENT_FILES1 and AGENT_FILES2, so use the shell to expand them
AGENT_FILES1
:=
$(
shell
/usr/bin/test
-d
$(AGENT_DIR)
&&
/bin/ls
$(AGENT_FILES1)
)
AGENT_FILES2
:=
$(
shell
/usr/bin/test
-d
$(AGENT_DIR)
&&
/bin/ls
$(AGENT_FILES2)
)
AGENT_FILES1_LIST
:=
$(GENERATED)
/agent1.classes.list
AGENT_FILES2_LIST
:=
$(GENERATED)
/agent2.classes.list
AGENT_FILES_LIST
:=
$(GENERATED)
/agent.classes.list
SA_CLASSDIR
=
$(GENERATED)
/saclasses
...
...
@@ -68,7 +62,7 @@ all:
$(MAKE)
-f
sa.make
$(GENERATED)
/sa-jdi.jar
;
\
fi
$(GENERATED)/sa-jdi.jar
:
$(AGENT_FILES
1) $(AGENT_FILES2
)
$(GENERATED)/sa-jdi.jar
:
$(AGENT_FILES)
$(QUIETLY)
echo
"Making
$@
"
$(QUIETLY)
if
[
"
$(BOOT_JAVA_HOME)
"
=
""
]
;
then
\
echo
"ALT_BOOTDIR, BOOTDIR or JAVA_HOME needs to be defined to build SA"
;
\
...
...
@@ -82,7 +76,6 @@ $(GENERATED)/sa-jdi.jar: $(AGENT_FILES1) $(AGENT_FILES2)
$(QUIETLY)
if
[
!
-d
$(SA_CLASSDIR)
]
;
then
\
mkdir
-p
$(SA_CLASSDIR)
;
\
fi
# Note: When indented, make tries to execute the '$(shell' comment.
# In some environments, cmd processors have limited line length.
# To prevent the javac invocation in the next block from using
...
...
@@ -93,13 +86,12 @@ $(GENERATED)/sa-jdi.jar: $(AGENT_FILES1) $(AGENT_FILES2)
# the initialization of the lists is also done in the same phase
# using '$(shell rm ...' instead of using the more traditional
# 'rm ...' rule.
$(shell
rm
-rf
$(AGENT_FILES1_LIST)
$(AGENT_FILES2_LIST))
$(foreach
file,$(AGENT_FILES1),$(shell
echo
$(file)
>>
$(AGENT_FILES1_LIST)))
$(foreach
file,$(AGENT_FILES2),$(shell
echo
$(file)
>>
$(AGENT_FILES2_LIST)))
$(QUIETLY)
$(REMOTE)
$(COMPILE.JAVAC)
-classpath
$(SA_CLASSPATH)
-sourcepath
$(AGENT_SRC_DIR)
-d
$(SA_CLASSDIR)
@$(AGENT_FILES1_LIST)
$(QUIETLY)
$(REMOTE)
$(COMPILE.JAVAC)
-classpath
$(SA_CLASSPATH)
-sourcepath
$(AGENT_SRC_DIR)
-d
$(SA_CLASSDIR)
@$(AGENT_FILES2_LIST)
$(shell
rm
-rf
$(AGENT_FILES_LIST))
# gnumake 3.78.1 does not accept the *'s that
# are in AGENT_FILES, so use the shell to expand them.
# Be extra carefull to not produce too long command lines in the shell!
$(foreach
file,$(AGENT_FILES),$(shell
ls
-1
$(file)
>>
$(AGENT_FILES_LIST)))
$(QUIETLY)
$(REMOTE)
$(COMPILE.JAVAC)
-classpath
$(SA_CLASSPATH)
-sourcepath
$(AGENT_SRC_DIR)
-d
$(SA_CLASSDIR)
@$(AGENT_FILES_LIST)
$(QUIETLY)
$(REMOTE)
$(COMPILE.RMIC)
-classpath
$(SA_CLASSDIR)
-d
$(SA_CLASSDIR)
sun.jvm.hotspot.debugger.remote.RemoteDebuggerServer
$(QUIETLY)
echo
"$(SA_BUILD_VERSION_PROP)"
>
$(SA_PROPERTIES)
$(QUIETLY)
rm
-f
$(SA_CLASSDIR)/sun/jvm/hotspot/utilities/soql/sa.js
...
...
@@ -118,4 +110,4 @@ $(GENERATED)/sa-jdi.jar: $(AGENT_FILES1) $(AGENT_FILES2)
clean
:
rm
-rf
$(SA_CLASSDIR)
rm
-rf
$(GENERATED)
/sa-jdi.jar
rm
-rf
$(AGENT_FILES
1_LIST)
$(AGENT_FILES2
_LIST)
rm
-rf
$(AGENT_FILES_LIST)
make/sa.files
浏览文件 @
d2132bd1
...
...
@@ -36,7 +36,7 @@ AGENT_SRC_DIR = $(AGENT_DIR)/src/share/classes
# Splitted the set of files into two sets because on linux plaform
# listing or compiling all the files results in 'Argument list too long' error.
AGENT_FILES
1
= \
AGENT_FILES = \
$(AGENT_SRC_DIR)/sun/jvm/hotspot/*.java \
$(AGENT_SRC_DIR)/sun/jvm/hotspot/asm/*.java \
$(AGENT_SRC_DIR)/sun/jvm/hotspot/asm/amd64/*.java \
...
...
@@ -91,10 +91,7 @@ $(AGENT_SRC_DIR)/sun/jvm/hotspot/livejvm/*.java \
$(AGENT_SRC_DIR)/sun/jvm/hotspot/memory/*.java \
$(AGENT_SRC_DIR)/sun/jvm/hotspot/oops/*.java \
$(AGENT_SRC_DIR)/sun/jvm/hotspot/opto/*.java \
$(AGENT_SRC_DIR)/sun/jvm/hotspot/prims/*.java
AGENT_FILES2 = \
$(AGENT_SRC_DIR)/sun/jvm/hotspot/prims/*.java \
$(AGENT_SRC_DIR)/sun/jvm/hotspot/runtime/*.java \
$(AGENT_SRC_DIR)/sun/jvm/hotspot/runtime/amd64/*.java \
$(AGENT_SRC_DIR)/sun/jvm/hotspot/runtime/bsd/*.java \
...
...
make/solaris/makefiles/sa.make
浏览文件 @
d2132bd1
...
...
@@ -39,13 +39,7 @@ SA_CLASSPATH = $(BOOT_JAVA_HOME)/lib/tools.jar
# TODO: if it's a modules image, check if SA module is installed.
MODULELIB_PATH
=
$(BOOT_JAVA_HOME)
/lib/modules
# gnumake 3.78.1 does not accept the *s that
# are in AGENT_FILES1 and AGENT_FILES2, so use the shell to expand them
AGENT_FILES1
:=
$(
shell
/usr/bin/test
-d
$(AGENT_DIR)
&&
/bin/ls
$(AGENT_FILES1)
)
AGENT_FILES2
:=
$(
shell
/usr/bin/test
-d
$(AGENT_DIR)
&&
/bin/ls
$(AGENT_FILES2)
)
AGENT_FILES1_LIST
:=
$(GENERATED)
/agent1.classes.list
AGENT_FILES2_LIST
:=
$(GENERATED)
/agent2.classes.list
AGENT_FILES_LIST
:=
$(GENERATED)
/agent.classes.list
SA_CLASSDIR
=
$(GENERATED)
/saclasses
...
...
@@ -59,7 +53,7 @@ all:
$(MAKE)
-f
sa.make
$(GENERATED)
/sa-jdi.jar
;
\
fi
$(GENERATED)/sa-jdi.jar
:
$(AGENT_FILES
1) $(AGENT_FILES2
)
$(GENERATED)/sa-jdi.jar
:
$(AGENT_FILES)
$(QUIETLY)
echo
"Making
$@
"
;
$(QUIETLY)
if
[
"
$(BOOT_JAVA_HOME)
"
=
""
]
;
then
\
echo
"ALT_BOOTDIR, BOOTDIR or JAVA_HOME needs to be defined to build SA"
;
\
...
...
@@ -73,7 +67,6 @@ $(GENERATED)/sa-jdi.jar: $(AGENT_FILES1) $(AGENT_FILES2)
$(QUIETLY)
if
[
!
-d
$(SA_CLASSDIR)
]
;
then
\
mkdir
-p
$(SA_CLASSDIR)
;
\
fi
# Note: When indented, make tries to execute the '$(shell' comment.
# In some environments, cmd processors have limited line length.
# To prevent the javac invocation in the next block from using
...
...
@@ -84,13 +77,12 @@ $(GENERATED)/sa-jdi.jar: $(AGENT_FILES1) $(AGENT_FILES2)
# the initialization of the lists is also done in the same phase
# using '$(shell rm ...' instead of using the more traditional
# 'rm ...' rule.
$(shell
rm
-rf
$(AGENT_FILES1_LIST)
$(AGENT_FILES2_LIST))
$(foreach
file,$(AGENT_FILES1),$(shell
echo
$(file)
>>
$(AGENT_FILES1_LIST)))
$(foreach
file,$(AGENT_FILES2),$(shell
echo
$(file)
>>
$(AGENT_FILES2_LIST)))
$(QUIETLY)
$(COMPILE.JAVAC)
-classpath
$(SA_CLASSPATH)
-sourcepath
$(AGENT_SRC_DIR)
-d
$(SA_CLASSDIR)
@$(AGENT_FILES1_LIST)
$(QUIETLY)
$(COMPILE.JAVAC)
-classpath
$(SA_CLASSPATH)
-sourcepath
$(AGENT_SRC_DIR)
-d
$(SA_CLASSDIR)
@$(AGENT_FILES2_LIST)
$(shell
rm
-rf
$(AGENT_FILES_LIST))
# gnumake 3.78.1 does not accept the *'s that
# are in AGENT_FILES, so use the shell to expand them.
# Be extra carefull to not produce too long command lines in the shell!
$(foreach
file,$(AGENT_FILES),$(shell
ls
-1
$(file)
>>
$(AGENT_FILES_LIST)))
$(QUIETLY)
$(COMPILE.JAVAC)
-classpath
$(SA_CLASSPATH)
-sourcepath
$(AGENT_SRC_DIR)
-d
$(SA_CLASSDIR)
@$(AGENT_FILES_LIST)
$(QUIETLY)
$(COMPILE.RMIC)
-classpath
$(SA_CLASSDIR)
-d
$(SA_CLASSDIR)
sun.jvm.hotspot.debugger.remote.RemoteDebuggerServer
$(QUIETLY)
echo
"$(SA_BUILD_VERSION_PROP)"
>
$(SA_PROPERTIES)
$(QUIETLY)
rm
-f
$(SA_CLASSDIR)/sun/jvm/hotspot/utilities/soql/sa.js
...
...
@@ -106,4 +98,4 @@ $(GENERATED)/sa-jdi.jar: $(AGENT_FILES1) $(AGENT_FILES2)
clean
:
rm
-rf
$(SA_CLASSDIR)
rm
-rf
$(GENERATED)
/sa-jdi.jar
rm
-rf
$(AGENT_FILES
1_LIST)
$(AGENT_FILES2
_LIST)
rm
-rf
$(AGENT_FILES_LIST)
make/windows/makefiles/sa.make
浏览文件 @
d2132bd1
...
...
@@ -52,12 +52,11 @@ default:: $(GENERATED)\sa-jdi.jar
# Remove the space between $(SA_BUILD_VERSION_PROP) and > below as it adds a white space
# at the end of SA version string and causes a version mismatch with the target VM version.
$(GENERATED)\sa-jdi.jar
:
$(AGENT_FILES
1:/=
\)
$(AGENT_FILES2
:/=
\)
$(GENERATED)\sa-jdi.jar
:
$(AGENT_FILES:/=
\)
@
if
not exist
$(SA_CLASSDIR)
mkdir
$(SA_CLASSDIR)
@
echo
...Building sa-jdi.jar
@
echo
...
$(COMPILE_JAVAC)
-classpath
$(SA_CLASSPATH)
-d
$(SA_CLASSDIR)
....
@
$(COMPILE_JAVAC)
-classpath
$(SA_CLASSPATH)
-sourcepath
$(AGENT_SRC_DIR)
-d
$(SA_CLASSDIR)
$
(
AGENT_FILES1:/
=
\)
@
$(COMPILE_JAVAC)
-classpath
$(SA_CLASSPATH)
-sourcepath
$(AGENT_SRC_DIR)
-d
$(SA_CLASSDIR)
$
(
AGENT_FILES2:/
=
\)
@
$(COMPILE_JAVAC)
-classpath
$(SA_CLASSPATH)
-sourcepath
$(AGENT_SRC_DIR)
-d
$(SA_CLASSDIR)
$
(
AGENT_FILES:/
=
\)
$(COMPILE_RMIC)
-classpath
$(SA_CLASSDIR)
-d
$(SA_CLASSDIR)
sun.jvm.hotspot.debugger.remote.RemoteDebuggerServer
$(QUIETLY)
echo
$(SA_BUILD_VERSION_PROP)
>
$(SA_PROPERTIES)
$(QUIETLY)
rm
-f
$(SA_CLASSDIR)
/sun/jvm/hotspot/utilities/soql/sa.js
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录