RFR: 8273684: Unnecessary Stack usage

Andrey Turbanov github.com+741251+turbanoff at openjdk.java.net
Mon Sep 13 19:29:21 UTC 2021


Usage of thread-safe collection Stack is unnecessary. It's recommended to use ArrayDequeue if a thread-safe implementation is not needed.

-------------

Commit messages:
 - [PATCH] Stack usages can be replaced with ArrayDequeue
 - [PATCH] Stack usages can be replaced with ArrayDequeue
 - [PATCH] Stack usages can be replaced with ArrayDequeue
 - [PATCH] Stack usages can be replaced with ArrayDequeue
 - [PATCH] Stack usages can be replaced with ArrayDequeue

Changes: https://git.openjdk.java.net/jdk/pull/5294/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=5294&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8273684
  Stats: 17 lines in 4 files changed: 2 ins; 3 del; 12 mod
  Patch: https://git.openjdk.java.net/jdk/pull/5294.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/5294/head:pull/5294

PR: https://git.openjdk.java.net/jdk/pull/5294


More information about the serviceability-dev mailing list