Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Enhancement] Iterating map variable "delayLevelTable" in order should be JDK-independent #7669

Copy link
Copy link
@blueszhangsh

Description

@blueszhangsh
Issue body actions

Before Creating the Enhancement Request

  • I have confirmed that this should be classified as an enhancement rather than a bug/feature.

Summary

change the type of delayLevelTable from ConcurrentHashMap to ConcurrentSkipListMap

Motivation

Iterating map variable "delayLevelTable" in order should be JDK-independent. ConcurrentHashMap does not provide guarantee iterating keys in orders. Though iterating ConcurrentHashMap<Integer, Long> is by order due to implementation of ConcurrentHashMap, it should be jdk-independent.

Describe the Solution You'd Like

change the type of delayLevelTable from ConcurrentHashMap to ConcurrentSkipListMap

Describe Alternatives You've Considered

none.

Additional Context

No response

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.