GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [MRESOLVER-522] File locking threads not entering critical region were "oversleeping" · Issue #1195 · apache/maven-resolver

[MRESOLVER-522] File locking threads not entering critical region were "oversleeping" #1195

New issue
Copy link
New issue
Copy link
Closed
Closed
[MRESOLVER-522] File locking threads not entering critical region were "oversleeping"#1195
Copy link
Assignees
cstamas
Labels
bugSomething isn't workingpriority:majorMajor loss of function
Milestone
1.9.19

Description

@jira-importer
jira-importer
opened on Apr 3, 2024
Issue body actions

Tamas Cservenak opened MRESOLVER-522 and commented

Instead loser to immediately give up and sleep, should sit a while to enter critical region. This is important for "hot" locks.

Explanation: currently a "loser" will immediately give up and will go to sleep 100ms, even if winner exits critical region within next 5ms (so lost 95ms). The retry is needed to ensure that it is retried as much as given time/unit takes, that was before consumed by constant retries+sleeps. The logic still works, as if tryLock spends time/unit waiting on critical region (which is possible only on VERY HIGHLY congested locks), there will be no retry happening. Still, now it may sleep 5ms, and "win" once "original winner" left the critical region.


Issue Links:

  • MRESOLVER-521 File locking threads not entering critical region were "oversleeping"
    ("is a clone of")

Remote Links:

  • GitHub Pull Request #461

1 votes, 2 watchers

Activity

  1. jira-importer
    closed this as completedon Apr 10, 2024
  2. jira-importer
    assigned
    cstamas
    on Jun 13, 2025
  3. jira-importer
    added
    bugSomething isn't working
    priority:majorMajor loss of function
    on Jun 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @cstamas
    cstamas

Labels

bugSomething isn't workingpriority:majorMajor loss of function

Type

No type

Projects

No projects

    Milestone

    • 1.9.19

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.