From 55c695d07718288a302903e2e03acc8a108a24cb Mon Sep 17 00:00:00 2001 From: "Charles P. Wright" Date: Fri, 15 Sep 2023 15:38:39 -0400 Subject: [PATCH] Add Adoptium to profiled vendors list. (#4498) * Add Adoptium to profiled vendors list. * Spotless apply. --- .../java/io/deephaven/util/profiling/ThreadProfiler.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Util/src/main/java/io/deephaven/util/profiling/ThreadProfiler.java b/Util/src/main/java/io/deephaven/util/profiling/ThreadProfiler.java index d398d122907..80eefa0d029 100644 --- a/Util/src/main/java/io/deephaven/util/profiling/ThreadProfiler.java +++ b/Util/src/main/java/io/deephaven/util/profiling/ThreadProfiler.java @@ -68,7 +68,10 @@ static ThreadProfiler make() { return NullThreadProfiler.INSTANCE; } final String vendor = System.getProperty("java.vendor"); - if (vendor.contains("Sun") || vendor.contains("Oracle") || vendor.contains("OpenJDK")) { + if (vendor.contains("Sun") + || vendor.contains("Oracle") + || vendor.contains("OpenJDK") + || vendor.contains("Adoptium")) { return new SunThreadMXBeanThreadProfiler(); } return new BaselineThreadMXBeanThreadProfiler();