mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8256370: Add asserts to Reference.getInactive()
Reviewed-by: mchung
This commit is contained in:
parent
c255b18cfc
commit
f2a9d02de2
2 changed files with 4 additions and 1 deletions
|
@ -83,7 +83,8 @@ final class Finalizer extends FinalReference<Object> { /* Package-private; must
|
|||
|
||||
try {
|
||||
Object finalizee = this.getInactive();
|
||||
if (finalizee != null && !(finalizee instanceof java.lang.Enum)) {
|
||||
assert finalizee != null;
|
||||
if (!(finalizee instanceof java.lang.Enum)) {
|
||||
jla.invokeFinalize(finalizee);
|
||||
|
||||
// Clear stack slot containing this variable, to decrease
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue