RVM

TimerThread is broken

Details

  • Type: Sub-task Sub-task
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: None
  • 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

Hide
Filip Pizlo added a comment -

Fixed in r15411

Show
Filip Pizlo added a comment - Fixed in r15411

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: