Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
d7c3265e
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看板
提交
d7c3265e
编写于
2月 02, 2011
作者:
B
bobv
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
fab382b2
e02b7391
变更
17
隐藏空白更改
内联
并排
Showing
17 changed file
with
50 addition
and
82 deletion
+50
-82
make/linux/makefiles/gcc.make
make/linux/makefiles/gcc.make
+5
-0
make/linux/makefiles/mapfile-vers-debug
make/linux/makefiles/mapfile-vers-debug
+0
-8
make/linux/makefiles/mapfile-vers-product
make/linux/makefiles/mapfile-vers-product
+0
-8
src/cpu/sparc/vm/jni_sparc.h
src/cpu/sparc/vm/jni_sparc.h
+7
-2
src/cpu/x86/vm/jni_x86.h
src/cpu/x86/vm/jni_x86.h
+7
-1
src/cpu/zero/vm/jni_zero.h
src/cpu/zero/vm/jni_zero.h
+8
-2
src/os/linux/vm/jvm_linux.cpp
src/os/linux/vm/jvm_linux.cpp
+0
-5
src/os/linux/vm/os_linux.cpp
src/os/linux/vm/os_linux.cpp
+5
-41
src/os/solaris/vm/os_solaris.cpp
src/os/solaris/vm/os_solaris.cpp
+3
-1
src/os_cpu/linux_sparc/vm/os_linux_sparc.cpp
src/os_cpu/linux_sparc/vm/os_linux_sparc.cpp
+1
-1
src/os_cpu/linux_x86/vm/os_linux_x86.cpp
src/os_cpu/linux_x86/vm/os_linux_x86.cpp
+1
-1
src/os_cpu/linux_zero/vm/os_linux_zero.cpp
src/os_cpu/linux_zero/vm/os_linux_zero.cpp
+1
-1
src/os_cpu/solaris_sparc/vm/os_solaris_sparc.cpp
src/os_cpu/solaris_sparc/vm/os_solaris_sparc.cpp
+3
-3
src/os_cpu/solaris_x86/vm/os_solaris_x86.cpp
src/os_cpu/solaris_x86/vm/os_solaris_x86.cpp
+3
-3
src/share/vm/prims/forte.cpp
src/share/vm/prims/forte.cpp
+1
-0
src/share/vm/prims/jvm.cpp
src/share/vm/prims/jvm.cpp
+1
-1
src/share/vm/prims/jvm.h
src/share/vm/prims/jvm.h
+4
-4
未找到文件。
make/linux/makefiles/gcc.make
浏览文件 @
d7c3265e
...
...
@@ -75,6 +75,11 @@ CFLAGS += -fno-rtti
CFLAGS
+=
-fno-exceptions
CFLAGS
+=
-D_REENTRANT
CFLAGS
+=
-fcheck-new
# version 4 and above support fvisibility=hidden (matches jni_x86.h file)
# except 4.1.2 gives pointless warnings that can't be disabled (afaik)
ifneq
"$(shell expr \( $(CC_VER_MAJOR) \> 4 \) \| \( \( $(CC_VER_MAJOR) = 4 \) \& \( $(CC_VER_MINOR) \>= 3 \) \))" "0"
CFLAGS
+=
-fvisibility
=
hidden
endif
ARCHFLAG
=
$
(
ARCHFLAG/
$(BUILDARCH)
)
ARCHFLAG/
i486
=
-m32
-march
=
i586
...
...
make/linux/makefiles/mapfile-vers-debug
浏览文件 @
d7c3265e
...
...
@@ -262,14 +262,6 @@ SUNWprivate_1.1 {
JVM_SetField;
JVM_SetPrimitiveField;
# Needed for dropping VM into JDK 1.3.x, 1.4
_JVM_native_threads;
jdk_sem_init;
jdk_sem_post;
jdk_sem_wait;
jdk_pthread_sigmask;
jdk_waitpid;
# debug JVM
JVM_AccessVMBooleanFlag;
JVM_AccessVMIntFlag;
...
...
make/linux/makefiles/mapfile-vers-product
浏览文件 @
d7c3265e
...
...
@@ -262,14 +262,6 @@ SUNWprivate_1.1 {
JVM_SetField;
JVM_SetPrimitiveField;
# Needed for dropping VM into JDK 1.3.x, 1.4
_JVM_native_threads;
jdk_sem_init;
jdk_sem_post;
jdk_sem_wait;
jdk_pthread_sigmask;
jdk_waitpid;
# miscellaneous functions
jio_fprintf;
jio_printf;
...
...
src/cpu/sparc/vm/jni_sparc.h
浏览文件 @
d7c3265e
...
...
@@ -23,8 +23,13 @@
* questions.
*/
#define JNIEXPORT
#define JNIIMPORT
#if defined(__GNUC__) && (__GNUC__ >= 4)
#define JNIEXPORT __attribute__((visibility("default")))
#define JNIIMPORT __attribute__((visibility("default")))
#else
#define JNIEXPORT
#define JNIIMPORT
#endif
#define JNICALL
typedef
int
jint
;
...
...
src/cpu/x86/vm/jni_x86.h
浏览文件 @
d7c3265e
...
...
@@ -27,10 +27,16 @@
#define _JAVASOFT_JNI_MD_H_
#if defined(SOLARIS) || defined(LINUX)
#if defined(__GNUC__) && (__GNUC__ > 4) || (__GNUC__ == 4) && (__GNUC_MINOR__ > 2)
#define JNIEXPORT __attribute__((visibility("default")))
#define JNIIMPORT __attribute__((visibility("default")))
#else
#define JNIEXPORT
#define JNIIMPORT
#define JNICALL
#endif
#define JNICALL
typedef
int
jint
;
#ifdef _LP64
...
...
src/cpu/zero/vm/jni_zero.h
浏览文件 @
d7c3265e
...
...
@@ -24,8 +24,14 @@
* questions.
*/
#define JNIEXPORT
#define JNIIMPORT
#if defined(__GNUC__) && (__GNUC__ >= 4)
#define JNIEXPORT __attribute__((visibility("default")))
#define JNIIMPORT __attribute__((visibility("default")))
#else
#define JNIEXPORT
#define JNIIMPORT
#endif
#define JNICALL
typedef
int
jint
;
...
...
src/os/linux/vm/jvm_linux.cpp
浏览文件 @
d7c3265e
...
...
@@ -29,11 +29,6 @@
#include <signal.h>
/*
* FIXME: This is temporary hack to keep Linux Runtime.exec()
* code happy. See $JDK/src/linux/native/java/lang/UnixProcess_md.c
*/
int
_JVM_native_threads
=
1
;
// sun.misc.Signal ///////////////////////////////////////////////////////////
// Signal code is mostly copied from classic vm, signals_md.c 1.4 98/08/23
...
...
src/os/linux/vm/os_linux.cpp
浏览文件 @
d7c3265e
...
...
@@ -2517,8 +2517,10 @@ char *os::scan_pages(char *start, char* end, page_info* page_expected, page_info
return
end
;
}
extern
"C"
void
numa_warn
(
int
number
,
char
*
where
,
...)
{
}
extern
"C"
void
numa_error
(
char
*
where
)
{
}
// Something to do with the numa-aware allocator needs these symbols
extern
"C"
JNIEXPORT
void
numa_warn
(
int
number
,
char
*
where
,
...)
{
}
extern
"C"
JNIEXPORT
void
numa_error
(
char
*
where
)
{
}
extern
"C"
JNIEXPORT
int
fork1
()
{
return
fork
();
}
// If we are running with libnuma version > 2, then we should
...
...
@@ -3491,7 +3493,7 @@ bool os::is_interrupted(Thread* thread, bool clear_interrupted) {
// Note that the VM will print warnings if it detects conflicting signal
// handlers, unless invoked with the option "-XX:+AllowUserSignalHandlers".
//
extern
"C"
int
extern
"C"
JNIEXPORT
int
JVM_handle_linux_signal
(
int
signo
,
siginfo_t
*
siginfo
,
void
*
ucontext
,
int
abort_if_unrecognized
);
...
...
@@ -4686,44 +4688,6 @@ void os::pause() {
}
}
extern
"C"
{
/**
* NOTE: the following code is to keep the green threads code
* in the libjava.so happy. Once the green threads is removed,
* these code will no longer be needed.
*/
int
jdk_waitpid
(
pid_t
pid
,
int
*
status
,
int
options
)
{
return
waitpid
(
pid
,
status
,
options
);
}
int
fork1
()
{
return
fork
();
}
int
jdk_sem_init
(
sem_t
*
sem
,
int
pshared
,
unsigned
int
value
)
{
return
sem_init
(
sem
,
pshared
,
value
);
}
int
jdk_sem_post
(
sem_t
*
sem
)
{
return
sem_post
(
sem
);
}
int
jdk_sem_wait
(
sem_t
*
sem
)
{
return
sem_wait
(
sem
);
}
int
jdk_pthread_sigmask
(
int
how
,
const
sigset_t
*
newmask
,
sigset_t
*
oldmask
)
{
return
pthread_sigmask
(
how
,
newmask
,
oldmask
);
}
}
// Refer to the comments in os_solaris.cpp park-unpark.
//
...
...
src/os/solaris/vm/os_solaris.cpp
浏览文件 @
d7c3265e
...
...
@@ -4221,7 +4221,9 @@ void os::os_exception_wrapper(java_call_t f, JavaValue* value, methodHandle* met
// Note that the VM will print warnings if it detects conflicting signal
// handlers, unless invoked with the option "-XX:+AllowUserSignalHandlers".
//
extern
"C"
int
JVM_handle_solaris_signal
(
int
signo
,
siginfo_t
*
siginfo
,
void
*
ucontext
,
int
abort_if_unrecognized
);
extern
"C"
JNIEXPORT
int
JVM_handle_solaris_signal
(
int
signo
,
siginfo_t
*
siginfo
,
void
*
ucontext
,
int
abort_if_unrecognized
);
void
signalHandler
(
int
sig
,
siginfo_t
*
info
,
void
*
ucVoid
)
{
...
...
src/os_cpu/linux_sparc/vm/os_linux_sparc.cpp
浏览文件 @
d7c3265e
...
...
@@ -542,7 +542,7 @@ inline static bool checkICMiss(sigcontext* uc, address* pc, address* stub) {
return
false
;
}
extern
"C"
int
extern
"C"
JNIEXPORT
int
JVM_handle_linux_signal
(
int
sig
,
siginfo_t
*
info
,
void
*
ucVoid
,
...
...
src/os_cpu/linux_x86/vm/os_linux_x86.cpp
浏览文件 @
d7c3265e
...
...
@@ -216,7 +216,7 @@ extern "C" void FetchNPFI () ;
extern
"C"
void
FetchNResume
()
;
#endif // AMD64
extern
"C"
int
extern
"C"
JNIEXPORT
int
JVM_handle_linux_signal
(
int
sig
,
siginfo_t
*
info
,
void
*
ucVoid
,
...
...
src/os_cpu/linux_zero/vm/os_linux_zero.cpp
浏览文件 @
d7c3265e
...
...
@@ -116,7 +116,7 @@ frame os::fetch_frame_from_context(void* ucVoid) {
ShouldNotCallThis
();
}
extern
"C"
int
extern
"C"
JNIEXPORT
int
JVM_handle_linux_signal
(
int
sig
,
siginfo_t
*
info
,
void
*
ucVoid
,
...
...
src/os_cpu/solaris_sparc/vm/os_solaris_sparc.cpp
浏览文件 @
d7c3265e
...
...
@@ -317,9 +317,9 @@ extern "C" void Fetch32Resume () ;
extern
"C"
void
FetchNPFI
()
;
extern
"C"
void
FetchNResume
()
;
extern
"C"
int
JVM_handle_solaris_signal
(
int
signo
,
siginfo_t
*
siginfo
,
void
*
ucontext
,
int
abort_if_unrecognized
);
int
JVM_handle_solaris_signal
(
int
sig
,
siginfo_t
*
info
,
void
*
ucVoid
,
int
abort_if_unrecognized
)
{
extern
"C"
JNIEXPORT
int
JVM_handle_solaris_signal
(
int
sig
,
siginfo_t
*
info
,
void
*
ucVoid
,
int
abort_if_unrecognized
)
{
ucontext_t
*
uc
=
(
ucontext_t
*
)
ucVoid
;
Thread
*
t
=
ThreadLocalStorage
::
get_thread_slow
();
...
...
src/os_cpu/solaris_x86/vm/os_solaris_x86.cpp
浏览文件 @
d7c3265e
...
...
@@ -365,8 +365,6 @@ bool os::is_allocatable(size_t bytes) {
}
extern
"C"
int
JVM_handle_solaris_signal
(
int
signo
,
siginfo_t
*
siginfo
,
void
*
ucontext
,
int
abort_if_unrecognized
);
extern
"C"
void
Fetch32PFI
()
;
extern
"C"
void
Fetch32Resume
()
;
#ifdef AMD64
...
...
@@ -374,7 +372,9 @@ extern "C" void FetchNPFI () ;
extern
"C"
void
FetchNResume
()
;
#endif // AMD64
int
JVM_handle_solaris_signal
(
int
sig
,
siginfo_t
*
info
,
void
*
ucVoid
,
int
abort_if_unrecognized
)
{
extern
"C"
JNIEXPORT
int
JVM_handle_solaris_signal
(
int
sig
,
siginfo_t
*
info
,
void
*
ucVoid
,
int
abort_if_unrecognized
)
{
ucontext_t
*
uc
=
(
ucontext_t
*
)
ucVoid
;
#ifndef AMD64
...
...
src/share/vm/prims/forte.cpp
浏览文件 @
d7c3265e
...
...
@@ -520,6 +520,7 @@ static void forte_fill_call_trace_given_top(JavaThread* thd,
// method_id - jmethodID of the method being executed
extern
"C"
{
JNIEXPORT
void
AsyncGetCallTrace
(
ASGCT_CallTrace
*
trace
,
jint
depth
,
void
*
ucontext
)
{
// This is if'd out because we no longer use thread suspension.
...
...
src/share/vm/prims/jvm.cpp
浏览文件 @
d7c3265e
...
...
@@ -2585,7 +2585,7 @@ int jio_vfprintf(FILE* f, const char *fmt, va_list args) {
}
int
jio_printf
(
const
char
*
fmt
,
...)
{
JNIEXPORT
int
jio_printf
(
const
char
*
fmt
,
...)
{
int
len
;
va_list
args
;
va_start
(
args
,
fmt
);
...
...
src/share/vm/prims/jvm.h
浏览文件 @
d7c3265e
...
...
@@ -1417,16 +1417,16 @@ JVM_GetHostName(char* name, int namelen);
* BE CAREFUL! The following functions do not implement the
* full feature set of standard C printf formats.
*/
int
JNIEXPORT
int
jio_vsnprintf
(
char
*
str
,
size_t
count
,
const
char
*
fmt
,
va_list
args
);
int
JNIEXPORT
int
jio_snprintf
(
char
*
str
,
size_t
count
,
const
char
*
fmt
,
...);
int
JNIEXPORT
int
jio_fprintf
(
FILE
*
,
const
char
*
fmt
,
...);
int
JNIEXPORT
int
jio_vfprintf
(
FILE
*
,
const
char
*
fmt
,
va_list
args
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录