Thomas (boggyb) wrote,
Thomas
boggyb

The Java HashMap class is not synchronised (and that is explicitly documented). This results in... interesting behaviour if two or more threads try to modify a HashMap at the same time.

Apparently, one of the failure modes is for the put() method to get stuck in an infinite loop.
Tags: java, programming
Subscribe

  • Amazon fail!

    boggyb's phone: *bingely-bingely-beep!* Your Amazon order has been delivered! The parcel was handed to resident! Is "handed to resident"…

  • Proof that all chat platforms are terrible

    boggyb: Wtfteams boggyb: I'm looking at a teams chat where messages I sent are out of order boggyb: Also,…

  • Brighton again

    It's been too long since I was last in Brighton - probably last time I was here was for Christmas shopping last year. Unusually it's actually…

  • Post a new comment

    Error

    default userpic
    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 1 comment