jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
Signup
RVM
  • RVM
  • RVM-91 Modularize threading system (native t...
  • RVM-768

TimerThread is broken

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Sub-task Sub-task
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: Runtime: Threads and Concurrency
  • Labels:
    None
  • Number of attachments :
    0

Description

TimerThread doesn't use as much locking as it should: it gets a thread from a list, without locking, and then proceeds to set some fields on it. That "works" except that the TimerThread doesn't stop for GC, so it's possible that a GC occurs in between it getting the thread and setting the field.

The simplest solution is to use more locking (acctLock would work), but there are probably other, better, ways.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Filip Pizlo made changes - 09/Feb/09 1:07 AM
Field Original Value New Value
Resolution Fixed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]
Assignee Filip Pizlo [ pizlo ]
David Grove made changes - 11/May/09 8:18 AM
Status Resolved [ 5 ] Closed [ 6 ]

People

  • Assignee:
    Filip Pizlo
    Reporter:
    Filip Pizlo
Vote (0)
Watch (0)

Dates

  • Created:
    04/Feb/09 7:58 PM
    Updated:
    11/May/09 8:18 AM
    Resolved:
    09/Feb/09 1:07 AM
  • Atlassian JIRA (v5.2.7#850-sha1:b2af0c8)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.