mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
Merge
This commit is contained in:
commit
fc336457e7
47 changed files with 1204 additions and 428 deletions
|
@ -538,7 +538,9 @@ class InstanceKlass: public Klass {
|
|||
assert(is_anonymous(), "not anonymous");
|
||||
Klass** addr = (Klass**)adr_host_klass();
|
||||
assert(addr != NULL, "no reversed space");
|
||||
*addr = host;
|
||||
if (addr != NULL) {
|
||||
*addr = host;
|
||||
}
|
||||
}
|
||||
bool is_anonymous() const {
|
||||
return (_misc_flags & _misc_is_anonymous) != 0;
|
||||
|
@ -760,7 +762,10 @@ class InstanceKlass: public Klass {
|
|||
void set_implementor(Klass* k) {
|
||||
assert(is_interface(), "not interface");
|
||||
Klass** addr = adr_implementor();
|
||||
*addr = k;
|
||||
assert(addr != NULL, "null addr");
|
||||
if (addr != NULL) {
|
||||
*addr = k;
|
||||
}
|
||||
}
|
||||
|
||||
int nof_implementors() const {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue