Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
3a28da9b
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看板
提交
3a28da9b
编写于
3月 06, 2012
作者:
R
rbackman
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
7160570: Intrinsification support for tracing framework
Reviewed-by: sla, never
上级
0e6b9537
变更
15
隐藏空白更改
内联
并排
Showing
15 changed file
with
182 addition
and
39 deletion
+182
-39
src/os/bsd/vm/osThread_bsd.hpp
src/os/bsd/vm/osThread_bsd.hpp
+3
-0
src/os/linux/vm/osThread_linux.hpp
src/os/linux/vm/osThread_linux.hpp
+3
-1
src/os/solaris/vm/osThread_solaris.hpp
src/os/solaris/vm/osThread_solaris.hpp
+1
-0
src/os/windows/vm/osThread_windows.hpp
src/os/windows/vm/osThread_windows.hpp
+3
-1
src/share/vm/c1/c1_GraphBuilder.cpp
src/share/vm/c1/c1_GraphBuilder.cpp
+14
-1
src/share/vm/c1/c1_LIRGenerator.cpp
src/share/vm/c1/c1_LIRGenerator.cpp
+57
-17
src/share/vm/c1/c1_LIRGenerator.hpp
src/share/vm/c1/c1_LIRGenerator.hpp
+7
-1
src/share/vm/c1/c1_Runtime1.cpp
src/share/vm/c1/c1_Runtime1.cpp
+3
-0
src/share/vm/classfile/vmSymbols.hpp
src/share/vm/classfile/vmSymbols.hpp
+8
-2
src/share/vm/oops/instanceKlass.hpp
src/share/vm/oops/instanceKlass.hpp
+1
-0
src/share/vm/opto/library_call.cpp
src/share/vm/opto/library_call.cpp
+70
-9
src/share/vm/opto/runtime.cpp
src/share/vm/opto/runtime.cpp
+3
-3
src/share/vm/opto/runtime.hpp
src/share/vm/opto/runtime.hpp
+2
-2
src/share/vm/runtime/osThread.hpp
src/share/vm/runtime/osThread.hpp
+2
-1
src/share/vm/trace/traceMacros.hpp
src/share/vm/trace/traceMacros.hpp
+5
-1
未找到文件。
src/os/bsd/vm/osThread_bsd.hpp
浏览文件 @
3a28da9b
...
...
@@ -72,15 +72,18 @@
#ifdef _ALLBSD_SOURCE
#ifdef __APPLE__
static
size_t
thread_id_size
()
{
return
sizeof
(
thread_t
);
}
thread_t
thread_id
()
const
{
return
_thread_id
;
}
#else
static
size_t
thread_id_size
()
{
return
sizeof
(
pthread_t
);
}
pthread_t
thread_id
()
const
{
return
_thread_id
;
}
#endif
#else
static
size_t
thread_id_size
()
{
return
sizeof
(
pid_t
);
}
pid_t
thread_id
()
const
{
return
_thread_id
;
}
...
...
src/os/linux/vm/osThread_linux.hpp
浏览文件 @
3a28da9b
/*
* Copyright (c) 1999, 201
0
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1999, 201
2
, 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
...
...
@@ -56,6 +56,8 @@
sigset_t
caller_sigmask
()
const
{
return
_caller_sigmask
;
}
void
set_caller_sigmask
(
sigset_t
sigmask
)
{
_caller_sigmask
=
sigmask
;
}
static
size_t
thread_id_size
()
{
return
sizeof
(
pid_t
);
}
pid_t
thread_id
()
const
{
return
_thread_id
;
}
...
...
src/os/solaris/vm/osThread_solaris.hpp
浏览文件 @
3a28da9b
...
...
@@ -36,6 +36,7 @@
bool
_vm_created_thread
;
// true if the VM created this thread,
// false if primary thread or attached thread
public
:
static
size_t
thread_id_size
()
{
return
sizeof
(
thread_t
);
}
thread_t
thread_id
()
const
{
return
_thread_id
;
}
uint
lwp_id
()
const
{
return
_lwp_id
;
}
int
native_priority
()
const
{
return
_native_priority
;
}
...
...
src/os/windows/vm/osThread_windows.hpp
浏览文件 @
3a28da9b
/*
* Copyright (c) 1997, 201
0
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 201
2
, 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
...
...
@@ -42,6 +42,8 @@ typedef void* HANDLE;
HANDLE
interrupt_event
()
const
{
return
_interrupt_event
;
}
void
set_interrupt_event
(
HANDLE
interrupt_event
)
{
_interrupt_event
=
interrupt_event
;
}
static
size_t
thread_id_size
()
{
return
sizeof
(
unsigned
long
);
}
unsigned
long
thread_id
()
const
{
return
_thread_id
;
}
#ifndef PRODUCT
// Used for debugging, return a unique integer for each thread.
...
...
src/share/vm/c1/c1_GraphBuilder.cpp
浏览文件 @
3a28da9b
...
...
@@ -3132,10 +3132,23 @@ bool GraphBuilder::try_inline_intrinsics(ciMethod* callee) {
bool
cantrap
=
true
;
vmIntrinsics
::
ID
id
=
callee
->
intrinsic_id
();
switch
(
id
)
{
case
vmIntrinsics
::
_arraycopy
:
case
vmIntrinsics
::
_arraycopy
:
if
(
!
InlineArrayCopy
)
return
false
;
break
;
#ifdef TRACE_HAVE_INTRINSICS
case
vmIntrinsics
::
_classID
:
case
vmIntrinsics
::
_threadID
:
preserves_state
=
true
;
cantrap
=
true
;
break
;
case
vmIntrinsics
::
_counterTime
:
preserves_state
=
true
;
cantrap
=
false
;
break
;
#endif
case
vmIntrinsics
::
_currentTimeMillis
:
case
vmIntrinsics
::
_nanoTime
:
preserves_state
=
true
;
...
...
src/share/vm/c1/c1_LIRGenerator.cpp
浏览文件 @
3a28da9b
/*
* Copyright (c) 2005, 201
1
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 201
2
, 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
...
...
@@ -2879,6 +2879,50 @@ void LIRGenerator::do_IfOp(IfOp* x) {
__
cmove
(
lir_cond
(
x
->
cond
()),
t_val
.
result
(),
f_val
.
result
(),
reg
,
as_BasicType
(
x
->
x
()
->
type
()));
}
void
LIRGenerator
::
do_RuntimeCall
(
address
routine
,
int
expected_arguments
,
Intrinsic
*
x
)
{
assert
(
x
->
number_of_arguments
()
==
expected_arguments
,
"wrong type"
);
LIR_Opr
reg
=
result_register_for
(
x
->
type
());
__
call_runtime_leaf
(
routine
,
getThreadTemp
(),
reg
,
new
LIR_OprList
());
LIR_Opr
result
=
rlock_result
(
x
);
__
move
(
reg
,
result
);
}
#ifdef TRACE_HAVE_INTRINSICS
void
LIRGenerator
::
do_ThreadIDIntrinsic
(
Intrinsic
*
x
)
{
LIR_Opr
thread
=
getThreadPointer
();
LIR_Opr
osthread
=
new_pointer_register
();
__
move
(
new
LIR_Address
(
thread
,
in_bytes
(
JavaThread
::
osthread_offset
()),
osthread
->
type
()),
osthread
);
size_t
thread_id_size
=
OSThread
::
thread_id_size
();
if
(
thread_id_size
==
(
size_t
)
BytesPerLong
)
{
LIR_Opr
id
=
new_register
(
T_LONG
);
__
move
(
new
LIR_Address
(
osthread
,
in_bytes
(
OSThread
::
thread_id_offset
()),
T_LONG
),
id
);
__
convert
(
Bytecodes
::
_l2i
,
id
,
rlock_result
(
x
));
}
else
if
(
thread_id_size
==
(
size_t
)
BytesPerInt
)
{
__
move
(
new
LIR_Address
(
osthread
,
in_bytes
(
OSThread
::
thread_id_offset
()),
T_INT
),
rlock_result
(
x
));
}
else
{
ShouldNotReachHere
();
}
}
void
LIRGenerator
::
do_ClassIDIntrinsic
(
Intrinsic
*
x
)
{
CodeEmitInfo
*
info
=
state_for
(
x
);
CodeEmitInfo
*
info2
=
new
CodeEmitInfo
(
info
);
// Clone for the second null check
assert
(
info
!=
NULL
,
"must have info"
);
LIRItem
arg
(
x
->
argument_at
(
1
),
this
);
arg
.
load_item
();
LIR_Opr
klass
=
new_register
(
T_OBJECT
);
__
move
(
new
LIR_Address
(
arg
.
result
(),
java_lang_Class
::
klass_offset_in_bytes
(),
T_OBJECT
),
klass
,
info
);
LIR_Opr
id
=
new_register
(
T_LONG
);
ByteSize
offset
=
TRACE_ID_OFFSET
;
LIR_Address
*
trace_id_addr
=
new
LIR_Address
(
klass
,
in_bytes
(
offset
),
T_LONG
);
__
move
(
trace_id_addr
,
id
);
__
logical_or
(
id
,
LIR_OprFact
::
longConst
(
0x01l
),
id
);
__
store
(
id
,
trace_id_addr
);
__
logical_and
(
id
,
LIR_OprFact
::
longConst
(
~
0x3l
),
id
);
__
move
(
id
,
rlock_result
(
x
));
}
#endif
void
LIRGenerator
::
do_Intrinsic
(
Intrinsic
*
x
)
{
switch
(
x
->
id
())
{
...
...
@@ -2890,25 +2934,21 @@ void LIRGenerator::do_Intrinsic(Intrinsic* x) {
break
;
}
case
vmIntrinsics
::
_currentTimeMillis
:
{
assert
(
x
->
number_of_arguments
()
==
0
,
"wrong type"
);
LIR_Opr
reg
=
result_register_for
(
x
->
type
());
__
call_runtime_leaf
(
CAST_FROM_FN_PTR
(
address
,
os
::
javaTimeMillis
),
getThreadTemp
(),
reg
,
new
LIR_OprList
());
LIR_Opr
result
=
rlock_result
(
x
);
__
move
(
reg
,
result
);
#ifdef TRACE_HAVE_INTRINSICS
case
vmIntrinsics
::
_threadID
:
do_ThreadIDIntrinsic
(
x
);
break
;
case
vmIntrinsics
::
_classID
:
do_ClassIDIntrinsic
(
x
);
break
;
case
vmIntrinsics
::
_counterTime
:
do_RuntimeCall
(
CAST_FROM_FN_PTR
(
address
,
TRACE_TIME_METHOD
),
0
,
x
);
break
;
}
#endif
case
vmIntrinsics
::
_nanoTime
:
{
assert
(
x
->
number_of_arguments
()
==
0
,
"wrong type"
);
LIR_Opr
reg
=
result_register_for
(
x
->
type
());
__
call_runtime_leaf
(
CAST_FROM_FN_PTR
(
address
,
os
::
javaTimeNanos
),
getThreadTemp
(),
reg
,
new
LIR_OprList
());
LIR_Opr
result
=
rlock_result
(
x
);
__
move
(
reg
,
result
);
case
vmIntrinsics
::
_currentTimeMillis
:
do_RuntimeCall
(
CAST_FROM_FN_PTR
(
address
,
os
::
javaTimeMillis
),
0
,
x
);
break
;
case
vmIntrinsics
::
_nanoTime
:
do_RuntimeCall
(
CAST_FROM_FN_PTR
(
address
,
os
::
javaTimeNanos
),
0
,
x
);
break
;
}
case
vmIntrinsics
::
_Object_init
:
do_RegisterFinalizer
(
x
);
break
;
case
vmIntrinsics
::
_getClass
:
do_getClass
(
x
);
break
;
...
...
src/share/vm/c1/c1_LIRGenerator.hpp
浏览文件 @
3a28da9b
/*
* Copyright (c) 2005, 201
1
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 201
2
, 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
...
...
@@ -426,6 +426,12 @@ class LIRGenerator: public InstructionVisitor, public BlockClosure {
SwitchRangeArray
*
create_lookup_ranges
(
LookupSwitch
*
x
);
void
do_SwitchRanges
(
SwitchRangeArray
*
x
,
LIR_Opr
value
,
BlockBegin
*
default_sux
);
void
do_RuntimeCall
(
address
routine
,
int
expected_arguments
,
Intrinsic
*
x
);
#ifdef TRACE_HAVE_INTRINSICS
void
do_ThreadIDIntrinsic
(
Intrinsic
*
x
);
void
do_ClassIDIntrinsic
(
Intrinsic
*
x
);
#endif
public:
Compilation
*
compilation
()
const
{
return
_compilation
;
}
FrameMap
*
frame_map
()
const
{
return
_compilation
->
frame_map
();
}
...
...
src/share/vm/c1/c1_Runtime1.cpp
浏览文件 @
3a28da9b
...
...
@@ -295,6 +295,9 @@ const char* Runtime1::name_for_address(address entry) {
FUNCTION_CASE
(
entry
,
SharedRuntime
::
dtrace_method_entry
);
FUNCTION_CASE
(
entry
,
SharedRuntime
::
dtrace_method_exit
);
FUNCTION_CASE
(
entry
,
trace_block_entry
);
#ifdef TRACE_HAVE_INTRINSICS
FUNCTION_CASE
(
entry
,
TRACE_TIME_METHOD
);
#endif
#undef FUNCTION_CASE
...
...
src/share/vm/classfile/vmSymbols.hpp
浏览文件 @
3a28da9b
...
...
@@ -27,6 +27,7 @@
#include "oops/symbol.hpp"
#include "memory/iterator.hpp"
#include "trace/traceMacros.hpp"
// The class vmSymbols is a name space for fast lookup of
// symbols commonly used in the VM.
...
...
@@ -424,6 +425,7 @@
template(throwable_throwable_signature, "(Ljava/lang/Throwable;)Ljava/lang/Throwable;") \
template(class_void_signature, "(Ljava/lang/Class;)V") \
template(class_int_signature, "(Ljava/lang/Class;)I") \
template(class_long_signature, "(Ljava/lang/Class;)J") \
template(class_boolean_signature, "(Ljava/lang/Class;)Z") \
template(throwable_string_void_signature, "(Ljava/lang/Throwable;Ljava/lang/String;)V") \
template(string_array_void_signature, "([Ljava/lang/String;)V") \
...
...
@@ -539,10 +541,12 @@
template(serializePropertiesToByteArray_signature, "()[B") \
template(serializeAgentPropertiesToByteArray_name, "serializeAgentPropertiesToByteArray") \
template(classRedefinedCount_name, "classRedefinedCount") \
\
/* trace signatures */
\
TRACE_TEMPLATES(template) \
\
/*end*/
// Here are all the intrinsics known to the runtime and the CI.
// Each intrinsic consists of a public enum name (like _hashCode),
// followed by a specification of its klass, name, and signature:
...
...
@@ -648,6 +652,8 @@
do_intrinsic(_nanoTime, java_lang_System, nanoTime_name, void_long_signature, F_S) \
do_name( nanoTime_name, "nanoTime") \
\
TRACE_INTRINSICS(do_intrinsic, do_class, do_name, do_signature, do_alias) \
\
do_intrinsic(_arraycopy, java_lang_System, arraycopy_name, arraycopy_signature, F_S) \
do_name( arraycopy_name, "arraycopy") \
do_signature(arraycopy_signature, "(Ljava/lang/Object;ILjava/lang/Object;II)V") \
...
...
src/share/vm/oops/instanceKlass.hpp
浏览文件 @
3a28da9b
...
...
@@ -642,6 +642,7 @@ class instanceKlass: public Klass {
// support for stub routines
static
ByteSize
init_state_offset
()
{
return
in_ByteSize
(
sizeof
(
klassOopDesc
)
+
offset_of
(
instanceKlass
,
_init_state
));
}
TRACE_DEFINE_OFFSET
;
static
ByteSize
init_thread_offset
()
{
return
in_ByteSize
(
sizeof
(
klassOopDesc
)
+
offset_of
(
instanceKlass
,
_init_thread
));
}
// subclass/subinterface checks
...
...
src/share/vm/opto/library_call.cpp
浏览文件 @
3a28da9b
/*
* Copyright (c) 1999, 201
1
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1999, 201
2
, 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
...
...
@@ -175,7 +175,11 @@ class LibraryCallKit : public GraphKit {
bool
inline_unsafe_allocate
();
bool
inline_unsafe_copyMemory
();
bool
inline_native_currentThread
();
bool
inline_native_time_funcs
(
bool
isNano
);
#ifdef TRACE_HAVE_INTRINSICS
bool
inline_native_classID
();
bool
inline_native_threadID
();
#endif
bool
inline_native_time_funcs
(
address
method
,
const
char
*
funcName
);
bool
inline_native_isInterrupted
();
bool
inline_native_Class_query
(
vmIntrinsics
::
ID
id
);
bool
inline_native_subtype_check
();
...
...
@@ -638,10 +642,18 @@ bool LibraryCallKit::try_to_inline() {
case
vmIntrinsics
::
_isInterrupted
:
return
inline_native_isInterrupted
();
#ifdef TRACE_HAVE_INTRINSICS
case
vmIntrinsics
::
_classID
:
return
inline_native_classID
();
case
vmIntrinsics
::
_threadID
:
return
inline_native_threadID
();
case
vmIntrinsics
::
_counterTime
:
return
inline_native_time_funcs
(
CAST_FROM_FN_PTR
(
address
,
TRACE_TIME_METHOD
),
"counterTime"
);
#endif
case
vmIntrinsics
::
_currentTimeMillis
:
return
inline_native_time_funcs
(
false
);
return
inline_native_time_funcs
(
CAST_FROM_FN_PTR
(
address
,
os
::
javaTimeMillis
),
"currentTimeMillis"
);
case
vmIntrinsics
::
_nanoTime
:
return
inline_native_time_funcs
(
true
);
return
inline_native_time_funcs
(
CAST_FROM_FN_PTR
(
address
,
os
::
javaTimeNanos
),
"nanoTime"
);
case
vmIntrinsics
::
_allocateInstance
:
return
inline_unsafe_allocate
();
case
vmIntrinsics
::
_copyMemory
:
...
...
@@ -2840,14 +2852,63 @@ bool LibraryCallKit::inline_unsafe_allocate() {
return
true
;
}
#ifdef TRACE_HAVE_INTRINSICS
/*
* oop -> myklass
* myklass->trace_id |= USED
* return myklass->trace_id & ~0x3
*/
bool
LibraryCallKit
::
inline_native_classID
()
{
int
nargs
=
1
+
1
;
null_check_receiver
(
callee
());
// check then ignore argument(0)
_sp
+=
nargs
;
Node
*
cls
=
do_null_check
(
argument
(
1
),
T_OBJECT
);
_sp
-=
nargs
;
Node
*
kls
=
load_klass_from_mirror
(
cls
,
false
,
nargs
,
NULL
,
0
);
_sp
+=
nargs
;
kls
=
do_null_check
(
kls
,
T_OBJECT
);
_sp
-=
nargs
;
ByteSize
offset
=
TRACE_ID_OFFSET
;
Node
*
insp
=
basic_plus_adr
(
kls
,
in_bytes
(
offset
));
Node
*
tvalue
=
make_load
(
NULL
,
insp
,
TypeLong
::
LONG
,
T_LONG
);
Node
*
bits
=
longcon
(
~
0x03l
);
// ignore bit 0 & 1
Node
*
andl
=
_gvn
.
transform
(
new
(
C
,
3
)
AndLNode
(
tvalue
,
bits
));
Node
*
clsused
=
longcon
(
0x01l
);
// set the class bit
Node
*
orl
=
_gvn
.
transform
(
new
(
C
,
3
)
OrLNode
(
tvalue
,
clsused
));
const
TypePtr
*
adr_type
=
_gvn
.
type
(
insp
)
->
isa_ptr
();
store_to_memory
(
control
(),
insp
,
orl
,
T_LONG
,
adr_type
);
push_pair
(
andl
);
return
true
;
}
bool
LibraryCallKit
::
inline_native_threadID
()
{
Node
*
tls_ptr
=
NULL
;
Node
*
cur_thr
=
generate_current_thread
(
tls_ptr
);
Node
*
p
=
basic_plus_adr
(
top
()
/*!oop*/
,
tls_ptr
,
in_bytes
(
JavaThread
::
osthread_offset
()));
Node
*
osthread
=
make_load
(
NULL
,
p
,
TypeRawPtr
::
NOTNULL
,
T_ADDRESS
);
p
=
basic_plus_adr
(
top
()
/*!oop*/
,
osthread
,
in_bytes
(
OSThread
::
thread_id_offset
()));
Node
*
threadid
=
NULL
;
size_t
thread_id_size
=
OSThread
::
thread_id_size
();
if
(
thread_id_size
==
(
size_t
)
BytesPerLong
)
{
threadid
=
ConvL2I
(
make_load
(
control
(),
p
,
TypeLong
::
LONG
,
T_LONG
));
push
(
threadid
);
}
else
if
(
thread_id_size
==
(
size_t
)
BytesPerInt
)
{
threadid
=
make_load
(
control
(),
p
,
TypeInt
::
INT
,
T_INT
);
push
(
threadid
);
}
else
{
ShouldNotReachHere
();
}
return
true
;
}
#endif
//------------------------inline_native_time_funcs--------------
// inline code for System.currentTimeMillis() and System.nanoTime()
// these have the same type and signature
bool
LibraryCallKit
::
inline_native_time_funcs
(
bool
isNano
)
{
address
funcAddr
=
isNano
?
CAST_FROM_FN_PTR
(
address
,
os
::
javaTimeNanos
)
:
CAST_FROM_FN_PTR
(
address
,
os
::
javaTimeMillis
);
const
char
*
funcName
=
isNano
?
"nanoTime"
:
"currentTimeMillis"
;
const
TypeFunc
*
tf
=
OptoRuntime
::
current_time_millis_Type
();
bool
LibraryCallKit
::
inline_native_time_funcs
(
address
funcAddr
,
const
char
*
funcName
)
{
const
TypeFunc
*
tf
=
OptoRuntime
::
void_long_Type
();
const
TypePtr
*
no_memory_effects
=
NULL
;
Node
*
time
=
make_runtime_call
(
RC_LEAF
,
tf
,
funcAddr
,
funcName
,
no_memory_effects
);
Node
*
value
=
_gvn
.
transform
(
new
(
C
,
1
)
ProjNode
(
time
,
TypeFunc
::
Parms
+
0
));
...
...
src/share/vm/opto/runtime.cpp
浏览文件 @
3a28da9b
/*
* Copyright (c) 1998, 201
1
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 201
2
, 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
...
...
@@ -709,9 +709,9 @@ const TypeFunc* OptoRuntime::Math_DD_D_Type() {
return
TypeFunc
::
make
(
domain
,
range
);
}
//-------------- currentTimeMillis
//-------------- currentTimeMillis
, currentTimeNanos, etc
const
TypeFunc
*
OptoRuntime
::
current_time_millis
_Type
()
{
const
TypeFunc
*
OptoRuntime
::
void_long
_Type
()
{
// create input type (domain)
const
Type
**
fields
=
TypeTuple
::
fields
(
0
);
const
TypeTuple
*
domain
=
TypeTuple
::
make
(
TypeFunc
::
Parms
+
0
,
fields
);
...
...
src/share/vm/opto/runtime.hpp
浏览文件 @
3a28da9b
/*
* Copyright (c) 1998, 201
0
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 201
2
, 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
...
...
@@ -268,7 +268,7 @@ private:
static
const
TypeFunc
*
Math_DD_D_Type
();
// mod,pow & friends
static
const
TypeFunc
*
modf_Type
();
static
const
TypeFunc
*
l2f_Type
();
static
const
TypeFunc
*
current_time_millis
_Type
();
static
const
TypeFunc
*
void_long
_Type
();
static
const
TypeFunc
*
flush_windows_Type
();
...
...
src/share/vm/runtime/osThread.hpp
浏览文件 @
3a28da9b
/*
* Copyright (c) 1997, 201
1
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 201
2
, 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
...
...
@@ -98,6 +98,7 @@ class OSThread: public CHeapObj {
// For java intrinsics:
static
ByteSize
interrupted_offset
()
{
return
byte_offset_of
(
OSThread
,
_interrupted
);
}
static
ByteSize
thread_id_offset
()
{
return
byte_offset_of
(
OSThread
,
_thread_id
);
}
// Platform dependent stuff
#ifdef TARGET_OS_FAMILY_linux
...
...
src/share/vm/trace/traceMacros.hpp
浏览文件 @
3a28da9b
/*
* Copyright (c) 1997, 201
1
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 201
2
, 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
...
...
@@ -43,5 +43,9 @@
#define TRACE_SET_KLASS_TRACE_ID(x1, x2) do { } while (0)
#define TRACE_DEFINE_KLASS_METHODS typedef int ___IGNORED_hs_trace_type1
#define TRACE_DEFINE_KLASS_TRACE_ID typedef int ___IGNORED_hs_trace_type2
#define TRACE_DEFINE_OFFSET typedef int ___IGNORED_hs_trace_type3
#define TRACE_ID_OFFSET in_ByteSize(0); ShouldNotReachHere()
#define TRACE_TEMPLATES(template)
#define TRACE_INTRINSICS(do_intrinsic, do_class, do_name, do_signature, do_alias)
#endif
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录