Skip to content

Commit

Permalink
Update sdk/trace-shaded-deps/src/main/java/io/opentelemetry/sdk/trace…
Browse files Browse the repository at this point in the history
…/internal/JcTools.java

Co-authored-by: jack-berg <34418638+jack-berg@users.noreply.github.com>
  • Loading branch information
rrva and jack-berg committed Nov 9, 2022
1 parent ed5c0d8 commit 5724b4f
Showing 1 changed file with 2 additions and 3 deletions.
Expand Up @@ -32,12 +32,11 @@ public static <T> Queue<T> newFixedSizeQueue(int capacity) {
try {
return new MpscArrayQueue<>(capacity);
} catch (java.lang.NoClassDefFoundError | java.lang.ExceptionInInitializerError e) {
if (!queueCreationWarningLogged.get()) {
if (!queueCreationWarningLogged.getAndSet(true)) {
logger.log(
Level.WARNING,
"Cannot create high-performance queue, reverting to ArrayBlockingQueue ({0})",
e.toString());
queueCreationWarningLogged.set(true);
Objects.toString(e, "unknown cause"));
}
// Happens when modules such as jdk.unsupported are disabled in a custom JRE distribution,
// or a security manager preventing access to Unsafe is installed.
Expand Down

0 comments on commit 5724b4f

Please sign in to comment.