Skip to content

Commit c3ca599

Browse files
committed
Support Azul Zing. Closes #75
1 parent e770aeb commit c3ca599

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/java/net/openhft/hashing/Util.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,17 @@ static private boolean isJ9VM(@NotNull final String name) {
2626
return name.contains("Eclipse OpenJ9") || name.contains("IBM J9");
2727
}
2828

29+
static private boolean isZing(@NotNull final String name) {
30+
return name.startsWith("Zing");
31+
}
32+
2933
@NotNull
3034
static final StringHash VALID_STRING_HASH;
3135
static {
3236
StringHash stringHash = null;
3337
try {
3438
final String vmName = System.getProperty("java.vm.name");
35-
if (isHotSpotVM(vmName) || isJ9VM(vmName)) {
39+
if (isHotSpotVM(vmName) || isJ9VM(vmName) || isZing(vmName)) {
3640
final String javaVersion = System.getProperty("java.version");
3741
if (javaVersion.compareTo("1.7.0_06") >= 0) {
3842
if (javaVersion.compareTo("1.9") >= 0) {

0 commit comments

Comments
 (0)