8287663: Add a regression test for JDK-8287073

Reviewed-by: iklam
This commit is contained in:
Severin Gehwolf 2022-06-07 08:40:17 +00:00
parent b647a1259b
commit 2d8c649054
2 changed files with 36 additions and 1 deletions

View file

@ -86,7 +86,10 @@ public class CgroupSubsystemFactory {
} catch (IOException | UncheckedIOException e) {
return null;
}
return create(optResult);
}
public static CgroupMetrics create(Optional<CgroupTypeResult> optResult) {
if (optResult.isEmpty()) {
return null;
}