Skip to content

STM: Remove batch-commit logic on 64bit platforms.

Summary

We jump through some hoops to avoid overflows of a TVars num_updates field. However on 64bit platforms we will never manage to overflow these so we could just remove the checks on these.

This would primiarly have minor performance benefits.

Alternatively we could make these fields 64-bit unconditionally simplifying the code in general.

Environment

  • GHC version used:

Optional:

  • Operating System:
  • System Architecture:
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information