8273487: Zero: Handle "zero" variant in runtime tests

Reviewed-by: alanb, dholmes
This commit is contained in:
Aleksey Shipilev 2021-09-09 08:07:00 +00:00
parent dc33bd8b6c
commit 8c16f485b3

View File

@ -364,6 +364,11 @@ public class Platform {
return "client";
} else if (Platform.isMinimal()) {
return "minimal";
} else if (Platform.isZero()) {
// This name is used to search for libjvm.so. Weirdly, current
// build system puts libjvm.so into default location, which is
// "server". See JDK-8273494.
return "server";
} else {
throw new Error("TESTBUG: unsupported vm variant");
}