8278341: Liveness check for global scope is not as fast as it could be

Reviewed-by: shade, jvernee
This commit is contained in:
Maurizio Cimadamore 2021-12-07 16:13:54 +00:00
parent c609b5d3d7
commit bd7c54aee8

View File

@ -217,6 +217,11 @@ public abstract non-sealed class ResourceScopeImpl implements ResourceScope, Seg
void addInternal(ResourceList.ResourceCleanup resource) {
// do nothing
}
@Override
public boolean isAlive() {
return true;
}
}
public static final ResourceScopeImpl GLOBAL = new GlobalScopeImpl(null);