Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
b885f6df
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看板
提交
b885f6df
编写于
10月 16, 2018
作者:
P
phh
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8064811: Use THEAD instead of CHECK_NULL in return statements
Summary: Backport from JDK9 Reviewed-by: dholmes, coffeys
上级
29c0d447
变更
23
隐藏空白更改
内联
并排
Showing
23 changed file
with
56 addition
and
56 deletion
+56
-56
src/os/aix/vm/perfMemory_aix.cpp
src/os/aix/vm/perfMemory_aix.cpp
+2
-2
src/os/bsd/vm/perfMemory_bsd.cpp
src/os/bsd/vm/perfMemory_bsd.cpp
+2
-2
src/os/linux/vm/perfMemory_linux.cpp
src/os/linux/vm/perfMemory_linux.cpp
+2
-2
src/os/solaris/vm/perfMemory_solaris.cpp
src/os/solaris/vm/perfMemory_solaris.cpp
+2
-2
src/share/vm/ci/ciReplay.cpp
src/share/vm/ci/ciReplay.cpp
+3
-2
src/share/vm/classfile/classLoaderData.cpp
src/share/vm/classfile/classLoaderData.cpp
+2
-2
src/share/vm/classfile/defaultMethods.cpp
src/share/vm/classfile/defaultMethods.cpp
+2
-2
src/share/vm/classfile/javaClasses.cpp
src/share/vm/classfile/javaClasses.cpp
+1
-1
src/share/vm/classfile/systemDictionary.cpp
src/share/vm/classfile/systemDictionary.cpp
+1
-1
src/share/vm/classfile/verificationType.hpp
src/share/vm/classfile/verificationType.hpp
+2
-2
src/share/vm/memory/allocation.cpp
src/share/vm/memory/allocation.cpp
+2
-3
src/share/vm/memory/oopFactory.hpp
src/share/vm/memory/oopFactory.hpp
+10
-10
src/share/vm/oops/constantPool.cpp
src/share/vm/oops/constantPool.cpp
+1
-1
src/share/vm/oops/instanceKlass.cpp
src/share/vm/oops/instanceKlass.cpp
+3
-3
src/share/vm/oops/klass.cpp
src/share/vm/oops/klass.cpp
+1
-1
src/share/vm/oops/methodData.cpp
src/share/vm/oops/methodData.cpp
+2
-2
src/share/vm/oops/objArrayKlass.cpp
src/share/vm/oops/objArrayKlass.cpp
+4
-4
src/share/vm/oops/typeArrayKlass.cpp
src/share/vm/oops/typeArrayKlass.cpp
+2
-2
src/share/vm/prims/methodHandles.cpp
src/share/vm/prims/methodHandles.cpp
+4
-4
src/share/vm/runtime/fieldDescriptor.cpp
src/share/vm/runtime/fieldDescriptor.cpp
+2
-2
src/share/vm/runtime/reflection.cpp
src/share/vm/runtime/reflection.cpp
+2
-2
src/share/vm/runtime/synchronizer.hpp
src/share/vm/runtime/synchronizer.hpp
+2
-2
src/share/vm/utilities/array.hpp
src/share/vm/utilities/array.hpp
+2
-2
未找到文件。
src/os/aix/vm/perfMemory_aix.cpp
浏览文件 @
b885f6df
/*
/*
* Copyright (c) 2001, 201
5
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2001, 201
8
, Oracle and/or its affiliates. All rights reserved.
* Copyright 2012, 2013 SAP AG. All rights reserved.
* Copyright 2012, 2013 SAP AG. 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.
*
*
...
@@ -706,7 +706,7 @@ static char* get_user_name_slow(int vmid, TRAPS) {
...
@@ -706,7 +706,7 @@ static char* get_user_name_slow(int vmid, TRAPS) {
// return the name of the user that owns the JVM indicated by the given vmid.
// return the name of the user that owns the JVM indicated by the given vmid.
//
//
static
char
*
get_user_name
(
int
vmid
,
TRAPS
)
{
static
char
*
get_user_name
(
int
vmid
,
TRAPS
)
{
return
get_user_name_slow
(
vmid
,
CHECK_NULL
);
return
get_user_name_slow
(
vmid
,
THREAD
);
}
}
// return the file name of the backing store file for the named
// return the file name of the backing store file for the named
...
...
src/os/bsd/vm/perfMemory_bsd.cpp
浏览文件 @
b885f6df
/*
/*
* Copyright (c) 2001, 201
5
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2001, 201
8
, 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
...
@@ -615,7 +615,7 @@ static char* get_user_name_slow(int vmid, TRAPS) {
...
@@ -615,7 +615,7 @@ static char* get_user_name_slow(int vmid, TRAPS) {
// return the name of the user that owns the JVM indicated by the given vmid.
// return the name of the user that owns the JVM indicated by the given vmid.
//
//
static
char
*
get_user_name
(
int
vmid
,
TRAPS
)
{
static
char
*
get_user_name
(
int
vmid
,
TRAPS
)
{
return
get_user_name_slow
(
vmid
,
CHECK_NULL
);
return
get_user_name_slow
(
vmid
,
THREAD
);
}
}
// return the file name of the backing store file for the named
// return the file name of the backing store file for the named
...
...
src/os/linux/vm/perfMemory_linux.cpp
浏览文件 @
b885f6df
/*
/*
* Copyright (c) 2001, 201
5
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2001, 201
8
, 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
...
@@ -627,7 +627,7 @@ static char* get_user_name_slow(int vmid, TRAPS) {
...
@@ -627,7 +627,7 @@ static char* get_user_name_slow(int vmid, TRAPS) {
// return the name of the user that owns the JVM indicated by the given vmid.
// return the name of the user that owns the JVM indicated by the given vmid.
//
//
static
char
*
get_user_name
(
int
vmid
,
TRAPS
)
{
static
char
*
get_user_name
(
int
vmid
,
TRAPS
)
{
return
get_user_name_slow
(
vmid
,
CHECK_NULL
);
return
get_user_name_slow
(
vmid
,
THREAD
);
}
}
// return the file name of the backing store file for the named
// return the file name of the backing store file for the named
...
...
src/os/solaris/vm/perfMemory_solaris.cpp
浏览文件 @
b885f6df
/*
/*
* Copyright (c) 2001, 201
5
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2001, 201
8
, 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
...
@@ -666,7 +666,7 @@ static char* get_user_name(int vmid, TRAPS) {
...
@@ -666,7 +666,7 @@ static char* get_user_name(int vmid, TRAPS) {
// since the structured procfs and old procfs interfaces can't be
// since the structured procfs and old procfs interfaces can't be
// mixed, we attempt to find the file through a directory search.
// mixed, we attempt to find the file through a directory search.
return
get_user_name_slow
(
vmid
,
CHECK_NULL
);
return
get_user_name_slow
(
vmid
,
THREAD
);
}
}
// return the file name of the backing store file for the named
// return the file name of the backing store file for the named
...
...
src/share/vm/ci/ciReplay.cpp
浏览文件 @
b885f6df
/* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
/*
* Copyright (c) 2013, 2018, 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
...
@@ -329,7 +330,7 @@ class CompileReplay : public StackObj {
...
@@ -329,7 +330,7 @@ class CompileReplay : public StackObj {
// Lookup a klass
// Lookup a klass
Klass
*
resolve_klass
(
const
char
*
klass
,
TRAPS
)
{
Klass
*
resolve_klass
(
const
char
*
klass
,
TRAPS
)
{
Symbol
*
klass_name
=
SymbolTable
::
lookup
(
klass
,
(
int
)
strlen
(
klass
),
CHECK_NULL
);
Symbol
*
klass_name
=
SymbolTable
::
lookup
(
klass
,
(
int
)
strlen
(
klass
),
CHECK_NULL
);
return
SystemDictionary
::
resolve_or_fail
(
klass_name
,
_loader
,
_protection_domain
,
true
,
CHECK_NULL
);
return
SystemDictionary
::
resolve_or_fail
(
klass_name
,
_loader
,
_protection_domain
,
true
,
THREAD
);
}
}
// Parse the standard tuple of <klass> <name> <signature>
// Parse the standard tuple of <klass> <name> <signature>
...
...
src/share/vm/classfile/classLoaderData.cpp
浏览文件 @
b885f6df
/*
/*
* Copyright (c) 2012, 201
7
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012, 201
8
, 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
...
@@ -488,7 +488,7 @@ void ClassLoaderData::free_deallocate_list() {
...
@@ -488,7 +488,7 @@ void ClassLoaderData::free_deallocate_list() {
// These anonymous class loaders are to contain classes used for JSR292
// These anonymous class loaders are to contain classes used for JSR292
ClassLoaderData
*
ClassLoaderData
::
anonymous_class_loader_data
(
oop
loader
,
TRAPS
)
{
ClassLoaderData
*
ClassLoaderData
::
anonymous_class_loader_data
(
oop
loader
,
TRAPS
)
{
// Add a new class loader data to the graph.
// Add a new class loader data to the graph.
return
ClassLoaderDataGraph
::
add
(
loader
,
true
,
CHECK_NULL
);
return
ClassLoaderDataGraph
::
add
(
loader
,
true
,
THREAD
);
}
}
const
char
*
ClassLoaderData
::
loader_name
()
{
const
char
*
ClassLoaderData
::
loader_name
()
{
...
...
src/share/vm/classfile/defaultMethods.cpp
浏览文件 @
b885f6df
/*
/*
* Copyright (c) 2012, 201
6
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012, 201
8
, 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
...
@@ -493,7 +493,7 @@ class MethodFamily : public ResourceObj {
...
@@ -493,7 +493,7 @@ class MethodFamily : public ResourceObj {
};
};
Symbol
*
MethodFamily
::
generate_no_defaults_message
(
TRAPS
)
const
{
Symbol
*
MethodFamily
::
generate_no_defaults_message
(
TRAPS
)
const
{
return
SymbolTable
::
new_symbol
(
"No qualifying defaults found"
,
CHECK_NULL
);
return
SymbolTable
::
new_symbol
(
"No qualifying defaults found"
,
THREAD
);
}
}
Symbol
*
MethodFamily
::
generate_method_message
(
Symbol
*
klass_name
,
Method
*
method
,
TRAPS
)
const
{
Symbol
*
MethodFamily
::
generate_method_message
(
Symbol
*
klass_name
,
Method
*
method
,
TRAPS
)
const
{
...
...
src/share/vm/classfile/javaClasses.cpp
浏览文件 @
b885f6df
...
@@ -1961,7 +1961,7 @@ Handle java_lang_reflect_Method::create(TRAPS) {
...
@@ -1961,7 +1961,7 @@ Handle java_lang_reflect_Method::create(TRAPS) {
// This class is eagerly initialized during VM initialization, since we keep a refence
// This class is eagerly initialized during VM initialization, since we keep a refence
// to one of the methods
// to one of the methods
assert
(
InstanceKlass
::
cast
(
klass
)
->
is_initialized
(),
"must be initialized"
);
assert
(
InstanceKlass
::
cast
(
klass
)
->
is_initialized
(),
"must be initialized"
);
return
InstanceKlass
::
cast
(
klass
)
->
allocate_instance_handle
(
CHECK_NH
);
return
InstanceKlass
::
cast
(
klass
)
->
allocate_instance_handle
(
THREAD
);
}
}
oop
java_lang_reflect_Method
::
clazz
(
oop
reflect
)
{
oop
java_lang_reflect_Method
::
clazz
(
oop
reflect
)
{
...
...
src/share/vm/classfile/systemDictionary.cpp
浏览文件 @
b885f6df
...
@@ -121,7 +121,7 @@ void SystemDictionary::compute_java_system_loader(TRAPS) {
...
@@ -121,7 +121,7 @@ void SystemDictionary::compute_java_system_loader(TRAPS) {
ClassLoaderData
*
SystemDictionary
::
register_loader
(
Handle
class_loader
,
TRAPS
)
{
ClassLoaderData
*
SystemDictionary
::
register_loader
(
Handle
class_loader
,
TRAPS
)
{
if
(
class_loader
()
==
NULL
)
return
ClassLoaderData
::
the_null_class_loader_data
();
if
(
class_loader
()
==
NULL
)
return
ClassLoaderData
::
the_null_class_loader_data
();
return
ClassLoaderDataGraph
::
find_or_create
(
class_loader
,
CHECK_NULL
);
return
ClassLoaderDataGraph
::
find_or_create
(
class_loader
,
THREAD
);
}
}
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
...
...
src/share/vm/classfile/verificationType.hpp
浏览文件 @
b885f6df
/*
/*
* Copyright (c) 2003, 201
4
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 201
8
, 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
...
@@ -289,7 +289,7 @@ class VerificationType VALUE_OBJ_CLASS_SPEC {
...
@@ -289,7 +289,7 @@ class VerificationType VALUE_OBJ_CLASS_SPEC {
if
(
is_reference
()
&&
from
.
is_reference
())
{
if
(
is_reference
()
&&
from
.
is_reference
())
{
return
is_reference_assignable_from
(
from
,
context
,
return
is_reference_assignable_from
(
from
,
context
,
from_field_is_protected
,
from_field_is_protected
,
CHECK_false
);
THREAD
);
}
else
{
}
else
{
return
false
;
return
false
;
}
}
...
...
src/share/vm/memory/allocation.cpp
浏览文件 @
b885f6df
/*
/*
* Copyright (c) 1997, 201
4
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 201
8
, 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
...
@@ -66,8 +66,7 @@ void* MetaspaceObj::operator new(size_t size, ClassLoaderData* loader_data,
...
@@ -66,8 +66,7 @@ void* MetaspaceObj::operator new(size_t size, ClassLoaderData* loader_data,
size_t
word_size
,
bool
read_only
,
size_t
word_size
,
bool
read_only
,
MetaspaceObj
::
Type
type
,
TRAPS
)
throw
()
{
MetaspaceObj
::
Type
type
,
TRAPS
)
throw
()
{
// Klass has it's own operator new
// Klass has it's own operator new
return
Metaspace
::
allocate
(
loader_data
,
word_size
,
read_only
,
return
Metaspace
::
allocate
(
loader_data
,
word_size
,
read_only
,
type
,
THREAD
);
type
,
CHECK_NULL
);
}
}
bool
MetaspaceObj
::
is_shared
()
const
{
bool
MetaspaceObj
::
is_shared
()
const
{
...
...
src/share/vm/memory/oopFactory.hpp
浏览文件 @
b885f6df
/*
/*
* Copyright (c) 1997, 201
3
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 201
8
, 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
...
@@ -41,20 +41,20 @@ class vframeArray;
...
@@ -41,20 +41,20 @@ class vframeArray;
class
oopFactory
:
AllStatic
{
class
oopFactory
:
AllStatic
{
public:
public:
// Basic type leaf array allocation
// Basic type leaf array allocation
static
typeArrayOop
new_boolArray
(
int
length
,
TRAPS
)
{
return
TypeArrayKlass
::
cast
(
Universe
::
boolArrayKlassObj
())
->
allocate
(
length
,
CHECK_NULL
);
}
static
typeArrayOop
new_boolArray
(
int
length
,
TRAPS
)
{
return
TypeArrayKlass
::
cast
(
Universe
::
boolArrayKlassObj
())
->
allocate
(
length
,
THREAD
);
}
static
typeArrayOop
new_charArray
(
int
length
,
TRAPS
)
{
return
TypeArrayKlass
::
cast
(
Universe
::
charArrayKlassObj
())
->
allocate
(
length
,
CHECK_NULL
);
}
static
typeArrayOop
new_charArray
(
int
length
,
TRAPS
)
{
return
TypeArrayKlass
::
cast
(
Universe
::
charArrayKlassObj
())
->
allocate
(
length
,
THREAD
);
}
static
typeArrayOop
new_singleArray
(
int
length
,
TRAPS
)
{
return
TypeArrayKlass
::
cast
(
Universe
::
singleArrayKlassObj
())
->
allocate
(
length
,
CHECK_NULL
);
}
static
typeArrayOop
new_singleArray
(
int
length
,
TRAPS
)
{
return
TypeArrayKlass
::
cast
(
Universe
::
singleArrayKlassObj
())
->
allocate
(
length
,
THREAD
);
}
static
typeArrayOop
new_doubleArray
(
int
length
,
TRAPS
)
{
return
TypeArrayKlass
::
cast
(
Universe
::
doubleArrayKlassObj
())
->
allocate
(
length
,
CHECK_NULL
);
}
static
typeArrayOop
new_doubleArray
(
int
length
,
TRAPS
)
{
return
TypeArrayKlass
::
cast
(
Universe
::
doubleArrayKlassObj
())
->
allocate
(
length
,
THREAD
);
}
static
typeArrayOop
new_byteArray
(
int
length
,
TRAPS
)
{
return
TypeArrayKlass
::
cast
(
Universe
::
byteArrayKlassObj
())
->
allocate
(
length
,
CHECK_NULL
);
}
static
typeArrayOop
new_byteArray
(
int
length
,
TRAPS
)
{
return
TypeArrayKlass
::
cast
(
Universe
::
byteArrayKlassObj
())
->
allocate
(
length
,
THREAD
);
}
static
typeArrayOop
new_shortArray
(
int
length
,
TRAPS
)
{
return
TypeArrayKlass
::
cast
(
Universe
::
shortArrayKlassObj
())
->
allocate
(
length
,
CHECK_NULL
);
}
static
typeArrayOop
new_shortArray
(
int
length
,
TRAPS
)
{
return
TypeArrayKlass
::
cast
(
Universe
::
shortArrayKlassObj
())
->
allocate
(
length
,
THREAD
);
}
static
typeArrayOop
new_intArray
(
int
length
,
TRAPS
)
{
return
TypeArrayKlass
::
cast
(
Universe
::
intArrayKlassObj
())
->
allocate
(
length
,
CHECK_NULL
);
}
static
typeArrayOop
new_intArray
(
int
length
,
TRAPS
)
{
return
TypeArrayKlass
::
cast
(
Universe
::
intArrayKlassObj
())
->
allocate
(
length
,
THREAD
);
}
static
typeArrayOop
new_longArray
(
int
length
,
TRAPS
)
{
return
TypeArrayKlass
::
cast
(
Universe
::
longArrayKlassObj
())
->
allocate
(
length
,
CHECK_NULL
);
}
static
typeArrayOop
new_longArray
(
int
length
,
TRAPS
)
{
return
TypeArrayKlass
::
cast
(
Universe
::
longArrayKlassObj
())
->
allocate
(
length
,
THREAD
);
}
// create java.lang.Object[]
// create java.lang.Object[]
static
objArrayOop
new_objectArray
(
int
length
,
TRAPS
)
{
static
objArrayOop
new_objectArray
(
int
length
,
TRAPS
)
{
assert
(
Universe
::
objectArrayKlassObj
()
!=
NULL
,
"Too early?"
);
assert
(
Universe
::
objectArrayKlassObj
()
!=
NULL
,
"Too early?"
);
return
ObjArrayKlass
::
return
ObjArrayKlass
::
cast
(
Universe
::
objectArrayKlassObj
())
->
allocate
(
length
,
CHECK_NULL
);
cast
(
Universe
::
objectArrayKlassObj
())
->
allocate
(
length
,
THREAD
);
}
}
static
typeArrayOop
new_charArray
(
const
char
*
utf8_str
,
TRAPS
);
static
typeArrayOop
new_charArray
(
const
char
*
utf8_str
,
TRAPS
);
...
...
src/share/vm/oops/constantPool.cpp
浏览文件 @
b885f6df
...
@@ -530,7 +530,7 @@ int ConstantPool::signature_ref_index_at(int which_nt) {
...
@@ -530,7 +530,7 @@ int ConstantPool::signature_ref_index_at(int which_nt) {
Klass
*
ConstantPool
::
klass_ref_at
(
int
which
,
TRAPS
)
{
Klass
*
ConstantPool
::
klass_ref_at
(
int
which
,
TRAPS
)
{
return
klass_at
(
klass_ref_index_at
(
which
),
CHECK_NULL
);
return
klass_at
(
klass_ref_index_at
(
which
),
THREAD
);
}
}
...
...
src/share/vm/oops/instanceKlass.cpp
浏览文件 @
b885f6df
/*
/*
* Copyright (c) 1997, 201
7
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 201
8
, 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
...
@@ -581,7 +581,7 @@ bool InstanceKlass::verify_code(
...
@@ -581,7 +581,7 @@ bool InstanceKlass::verify_code(
// 1) Verify the bytecodes
// 1) Verify the bytecodes
Verifier
::
Mode
mode
=
Verifier
::
Mode
mode
=
throw_verifyerror
?
Verifier
::
ThrowException
:
Verifier
::
NoException
;
throw_verifyerror
?
Verifier
::
ThrowException
:
Verifier
::
NoException
;
return
Verifier
::
verify
(
this_oop
,
mode
,
this_oop
->
should_verify_class
(),
CHECK_false
);
return
Verifier
::
verify
(
this_oop
,
mode
,
this_oop
->
should_verify_class
(),
THREAD
);
}
}
...
@@ -1195,7 +1195,7 @@ Klass* InstanceKlass::array_klass_impl(instanceKlassHandle this_oop, bool or_nul
...
@@ -1195,7 +1195,7 @@ Klass* InstanceKlass::array_klass_impl(instanceKlassHandle this_oop, bool or_nul
if
(
or_null
)
{
if
(
or_null
)
{
return
oak
->
array_klass_or_null
(
n
);
return
oak
->
array_klass_or_null
(
n
);
}
}
return
oak
->
array_klass
(
n
,
CHECK_NULL
);
return
oak
->
array_klass
(
n
,
THREAD
);
}
}
Klass
*
InstanceKlass
::
array_klass_impl
(
bool
or_null
,
TRAPS
)
{
Klass
*
InstanceKlass
::
array_klass_impl
(
bool
or_null
,
TRAPS
)
{
...
...
src/share/vm/oops/klass.cpp
浏览文件 @
b885f6df
...
@@ -165,7 +165,7 @@ Method* Klass::uncached_lookup_method(Symbol* name, Symbol* signature, OverpassL
...
@@ -165,7 +165,7 @@ Method* Klass::uncached_lookup_method(Symbol* name, Symbol* signature, OverpassL
void
*
Klass
::
operator
new
(
size_t
size
,
ClassLoaderData
*
loader_data
,
size_t
word_size
,
TRAPS
)
throw
()
{
void
*
Klass
::
operator
new
(
size_t
size
,
ClassLoaderData
*
loader_data
,
size_t
word_size
,
TRAPS
)
throw
()
{
return
Metaspace
::
allocate
(
loader_data
,
word_size
,
/*read_only*/
false
,
return
Metaspace
::
allocate
(
loader_data
,
word_size
,
/*read_only*/
false
,
MetaspaceObj
::
ClassType
,
CHECK_NULL
);
MetaspaceObj
::
ClassType
,
THREAD
);
}
}
Klass
::
Klass
()
{
Klass
::
Klass
()
{
...
...
src/share/vm/oops/methodData.cpp
浏览文件 @
b885f6df
/*
/*
* Copyright (c) 2000, 201
4
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 201
8
, 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
...
@@ -681,7 +681,7 @@ MethodData* MethodData::allocate(ClassLoaderData* loader_data, methodHandle meth
...
@@ -681,7 +681,7 @@ MethodData* MethodData::allocate(ClassLoaderData* loader_data, methodHandle meth
int
size
=
MethodData
::
compute_allocation_size_in_words
(
method
);
int
size
=
MethodData
::
compute_allocation_size_in_words
(
method
);
return
new
(
loader_data
,
size
,
false
,
MetaspaceObj
::
MethodDataType
,
THREAD
)
return
new
(
loader_data
,
size
,
false
,
MetaspaceObj
::
MethodDataType
,
THREAD
)
MethodData
(
method
(),
size
,
CHECK_NULL
);
MethodData
(
method
(),
size
,
THREAD
);
}
}
int
MethodData
::
bytecode_cell_count
(
Bytecodes
::
Code
code
)
{
int
MethodData
::
bytecode_cell_count
(
Bytecodes
::
Code
code
)
{
...
...
src/share/vm/oops/objArrayKlass.cpp
浏览文件 @
b885f6df
/*
/*
* Copyright (c) 1997, 201
4
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 201
8
, 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
...
@@ -189,7 +189,7 @@ objArrayOop ObjArrayKlass::allocate(int length, TRAPS) {
...
@@ -189,7 +189,7 @@ objArrayOop ObjArrayKlass::allocate(int length, TRAPS) {
if
(
length
<=
arrayOopDesc
::
max_array_length
(
T_OBJECT
))
{
if
(
length
<=
arrayOopDesc
::
max_array_length
(
T_OBJECT
))
{
int
size
=
objArrayOopDesc
::
object_size
(
length
);
int
size
=
objArrayOopDesc
::
object_size
(
length
);
KlassHandle
h_k
(
THREAD
,
this
);
KlassHandle
h_k
(
THREAD
,
this
);
return
(
objArrayOop
)
CollectedHeap
::
array_allocate
(
h_k
,
size
,
length
,
CHECK_NULL
);
return
(
objArrayOop
)
CollectedHeap
::
array_allocate
(
h_k
,
size
,
length
,
THREAD
);
}
else
{
}
else
{
report_java_out_of_memory
(
"Requested array size exceeds VM limit"
);
report_java_out_of_memory
(
"Requested array size exceeds VM limit"
);
JvmtiExport
::
post_array_size_exhausted
();
JvmtiExport
::
post_array_size_exhausted
();
...
@@ -362,11 +362,11 @@ Klass* ObjArrayKlass::array_klass_impl(bool or_null, int n, TRAPS) {
...
@@ -362,11 +362,11 @@ Klass* ObjArrayKlass::array_klass_impl(bool or_null, int n, TRAPS) {
if
(
or_null
)
{
if
(
or_null
)
{
return
ak
->
array_klass_or_null
(
n
);
return
ak
->
array_klass_or_null
(
n
);
}
}
return
ak
->
array_klass
(
n
,
CHECK_NULL
);
return
ak
->
array_klass
(
n
,
THREAD
);
}
}
Klass
*
ObjArrayKlass
::
array_klass_impl
(
bool
or_null
,
TRAPS
)
{
Klass
*
ObjArrayKlass
::
array_klass_impl
(
bool
or_null
,
TRAPS
)
{
return
array_klass_impl
(
or_null
,
dimension
()
+
1
,
CHECK_NULL
);
return
array_klass_impl
(
or_null
,
dimension
()
+
1
,
THREAD
);
}
}
bool
ObjArrayKlass
::
can_be_primary_super_slow
()
const
{
bool
ObjArrayKlass
::
can_be_primary_super_slow
()
const
{
...
...
src/share/vm/oops/typeArrayKlass.cpp
浏览文件 @
b885f6df
/*
/*
* Copyright (c) 1997, 201
3
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 201
8
, 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
...
@@ -191,7 +191,7 @@ Klass* TypeArrayKlass::array_klass_impl(bool or_null, int n, TRAPS) {
...
@@ -191,7 +191,7 @@ Klass* TypeArrayKlass::array_klass_impl(bool or_null, int n, TRAPS) {
if
(
or_null
)
{
if
(
or_null
)
{
return
h_ak
->
array_klass_or_null
(
n
);
return
h_ak
->
array_klass_or_null
(
n
);
}
}
return
h_ak
->
array_klass
(
n
,
CHECK_NULL
);
return
h_ak
->
array_klass
(
n
,
THREAD
);
}
}
Klass
*
TypeArrayKlass
::
array_klass_impl
(
bool
or_null
,
TRAPS
)
{
Klass
*
TypeArrayKlass
::
array_klass_impl
(
bool
or_null
,
TRAPS
)
{
...
...
src/share/vm/prims/methodHandles.cpp
浏览文件 @
b885f6df
/*
/*
* Copyright (c) 2008, 201
6
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2008, 201
8
, 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
...
@@ -391,12 +391,12 @@ vmIntrinsics::ID MethodHandles::signature_polymorphic_name_id(Klass* klass, Symb
...
@@ -391,12 +391,12 @@ vmIntrinsics::ID MethodHandles::signature_polymorphic_name_id(Klass* klass, Symb
// convert the external string or reflective type to an internal signature
// convert the external string or reflective type to an internal signature
Symbol
*
MethodHandles
::
lookup_signature
(
oop
type_str
,
bool
intern_if_not_found
,
TRAPS
)
{
Symbol
*
MethodHandles
::
lookup_signature
(
oop
type_str
,
bool
intern_if_not_found
,
TRAPS
)
{
if
(
java_lang_invoke_MethodType
::
is_instance
(
type_str
))
{
if
(
java_lang_invoke_MethodType
::
is_instance
(
type_str
))
{
return
java_lang_invoke_MethodType
::
as_signature
(
type_str
,
intern_if_not_found
,
CHECK_NULL
);
return
java_lang_invoke_MethodType
::
as_signature
(
type_str
,
intern_if_not_found
,
THREAD
);
}
else
if
(
java_lang_Class
::
is_instance
(
type_str
))
{
}
else
if
(
java_lang_Class
::
is_instance
(
type_str
))
{
return
java_lang_Class
::
as_signature
(
type_str
,
false
,
CHECK_NULL
);
return
java_lang_Class
::
as_signature
(
type_str
,
false
,
THREAD
);
}
else
if
(
java_lang_String
::
is_instance
(
type_str
))
{
}
else
if
(
java_lang_String
::
is_instance
(
type_str
))
{
if
(
intern_if_not_found
)
{
if
(
intern_if_not_found
)
{
return
java_lang_String
::
as_symbol
(
type_str
,
CHECK_NULL
);
return
java_lang_String
::
as_symbol
(
type_str
,
THREAD
);
}
else
{
}
else
{
return
java_lang_String
::
as_symbol_or_null
(
type_str
);
return
java_lang_String
::
as_symbol_or_null
(
type_str
);
}
}
...
...
src/share/vm/runtime/fieldDescriptor.cpp
浏览文件 @
b885f6df
/*
/*
* Copyright (c) 1997, 201
3
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 201
8
, 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
...
@@ -94,7 +94,7 @@ jdouble fieldDescriptor::double_initial_value() const {
...
@@ -94,7 +94,7 @@ jdouble fieldDescriptor::double_initial_value() const {
}
}
oop
fieldDescriptor
::
string_initial_value
(
TRAPS
)
const
{
oop
fieldDescriptor
::
string_initial_value
(
TRAPS
)
const
{
return
constants
()
->
uncached_string_at
(
initial_value_index
(),
CHECK_0
);
return
constants
()
->
uncached_string_at
(
initial_value_index
(),
THREAD
);
}
}
void
fieldDescriptor
::
reinitialize
(
InstanceKlass
*
ik
,
int
index
)
{
void
fieldDescriptor
::
reinitialize
(
InstanceKlass
*
ik
,
int
index
)
{
...
...
src/share/vm/runtime/reflection.cpp
浏览文件 @
b885f6df
/*
/*
* Copyright (c) 1997, 201
6
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 201
8
, 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
...
@@ -682,7 +682,7 @@ objArrayHandle Reflection::get_parameter_types(methodHandle method, int paramete
...
@@ -682,7 +682,7 @@ objArrayHandle Reflection::get_parameter_types(methodHandle method, int paramete
}
}
objArrayHandle
Reflection
::
get_exception_types
(
methodHandle
method
,
TRAPS
)
{
objArrayHandle
Reflection
::
get_exception_types
(
methodHandle
method
,
TRAPS
)
{
return
method
->
resolved_checked_exceptions
(
CHECK_
(
objArrayHandle
())
);
return
method
->
resolved_checked_exceptions
(
THREAD
);
}
}
...
...
src/share/vm/runtime/synchronizer.hpp
浏览文件 @
b885f6df
/*
/*
* Copyright (c) 1998, 201
3
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 201
8
, 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
...
@@ -161,7 +161,7 @@ class ObjectLocker : public StackObj {
...
@@ -161,7 +161,7 @@ class ObjectLocker : public StackObj {
void
waitUninterruptibly
(
TRAPS
)
{
ObjectSynchronizer
::
waitUninterruptibly
(
_obj
,
0
,
CHECK
);}
void
waitUninterruptibly
(
TRAPS
)
{
ObjectSynchronizer
::
waitUninterruptibly
(
_obj
,
0
,
CHECK
);}
// complete_exit gives up lock completely, returning recursion count
// complete_exit gives up lock completely, returning recursion count
// reenter reclaims lock with original recursion count
// reenter reclaims lock with original recursion count
intptr_t
complete_exit
(
TRAPS
)
{
return
ObjectSynchronizer
::
complete_exit
(
_obj
,
CHECK_0
);
}
intptr_t
complete_exit
(
TRAPS
)
{
return
ObjectSynchronizer
::
complete_exit
(
_obj
,
THREAD
);
}
void
reenter
(
intptr_t
recursion
,
TRAPS
)
{
ObjectSynchronizer
::
reenter
(
_obj
,
recursion
,
CHECK
);
}
void
reenter
(
intptr_t
recursion
,
TRAPS
)
{
ObjectSynchronizer
::
reenter
(
_obj
,
recursion
,
CHECK
);
}
};
};
...
...
src/share/vm/utilities/array.hpp
浏览文件 @
b885f6df
/*
/*
* Copyright (c) 2000, 201
4
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 201
8
, 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
...
@@ -322,7 +322,7 @@ protected:
...
@@ -322,7 +322,7 @@ protected:
void
*
operator
new
(
size_t
size
,
ClassLoaderData
*
loader_data
,
int
length
,
bool
read_only
,
TRAPS
)
throw
()
{
void
*
operator
new
(
size_t
size
,
ClassLoaderData
*
loader_data
,
int
length
,
bool
read_only
,
TRAPS
)
throw
()
{
size_t
word_size
=
Array
::
size
(
length
);
size_t
word_size
=
Array
::
size
(
length
);
return
(
void
*
)
Metaspace
::
allocate
(
loader_data
,
word_size
,
read_only
,
return
(
void
*
)
Metaspace
::
allocate
(
loader_data
,
word_size
,
read_only
,
MetaspaceObj
::
array_type
(
sizeof
(
T
)),
CHECK_NULL
);
MetaspaceObj
::
array_type
(
sizeof
(
T
)),
THREAD
);
}
}
static
size_t
byte_sizeof
(
int
length
)
{
return
sizeof
(
Array
<
T
>
)
+
MAX2
(
length
-
1
,
0
)
*
sizeof
(
T
);
}
static
size_t
byte_sizeof
(
int
length
)
{
return
sizeof
(
Array
<
T
>
)
+
MAX2
(
length
-
1
,
0
)
*
sizeof
(
T
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录