mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8162795: [REDO] MemberNameTable doesn't purge stale entries
Re-application of the change in JDK-8152271. Reviewed-by: coleenp, sspitsyn
This commit is contained in:
parent
4485a22c48
commit
e477609f73
7 changed files with 59 additions and 23 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2017, 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
|
||||
|
@ -3247,6 +3247,15 @@ void java_lang_invoke_MemberName::set_vmindex(oop mname, intptr_t index) {
|
|||
mname->address_field_put(_vmindex_offset, (address) index);
|
||||
}
|
||||
|
||||
bool java_lang_invoke_MemberName::equals(oop mn1, oop mn2) {
|
||||
if (mn1 == mn2) {
|
||||
return true;
|
||||
}
|
||||
return (vmtarget(mn1) == vmtarget(mn2) && flags(mn1) == flags(mn2) &&
|
||||
vmindex(mn1) == vmindex(mn2) &&
|
||||
clazz(mn1) == clazz(mn2));
|
||||
}
|
||||
|
||||
oop java_lang_invoke_LambdaForm::vmentry(oop lform) {
|
||||
assert(is_instance(lform), "wrong type");
|
||||
return lform->obj_field(_vmentry_offset);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue