1. Jan 27, 2019
  2. Jan 22, 2019
  3. Jan 21, 2019
  4. Jan 19, 2019
  5. Jan 17, 2019
    • Matthew Fernandez's avatar
      recognise Debian version numbers as well · 63694489
      Matthew Fernandez authored
      It looks like the Debian package will end up with a version number like
      v2019.12.01-1, so we now recognise such strings as valid version tags too.
      
      Github: related to #85 "release beta"
      63694489
  6. Jan 15, 2019
  7. Jan 13, 2019
    • Matthew Fernandez's avatar
      release v2019.01.12 · e8f56570
      Matthew Fernandez authored
      e8f56570
    • Matthew Fernandez's avatar
      increase Travis timeout to 1 hour · 4fa4f37c
      Matthew Fernandez authored
      I did not realise the semantics of this directive were to timeout the command
      after 30 minutes of execution, rather than 30 minutes of no output. Hopefully
      this attempt is more successful.
      4fa4f37c
    • Matthew Fernandez's avatar
      work around Travis latency · eabfb16c
      Matthew Fernandez authored
      Travis times out a build that doesn't produce output for 10 minutes. Ordinarily
      this shouldn't be a problem for us, but it seems Travis' build environment is so
      heavily loaded that some of the regression tests take over 10 minutes. This
      commit extends the timeout to 30 minutes.
      eabfb16c
  8. Jan 12, 2019
    • Matthew Fernandez's avatar
      fix Travis Homebrew builds · 568cab4b
      Matthew Fernandez authored
      Sigh. Regression testing Homebrew on macOS requires so much babysitting, I am
      surprised users tolerate it. It seems less of a package manager and more of a
      Russian roulette simulator.
      568cab4b
  9. Jan 11, 2019
  10. Jan 10, 2019
  11. Jan 09, 2019
  12. Jan 06, 2019
  13. Jan 05, 2019
    • Matthew Fernandez's avatar
      8332eee9
    • Matthew Fernandez's avatar
      fix: use a spurious failing CAS to read dwords on x86-64 · 04fede03
      Matthew Fernandez authored
      Due to the reasons explained in the source comments, an atomic read of a 128-bit
      value on x86-64 was implemented with the idiom:
      
        v = __sync_val_compare_and_swap(p, *p, *p);
      
      In a race-free scenario, this CAS succeeds. I.e. The existing value of `p`
      matches the expected value that is passed in and the new value -- which is
      identical -- is written back. So far, so good. In a racing scenario, the value
      read through the expression `*p` might *not* match the value read during the CAS
      due to another thread changing the value in-between. Still fine; the CAS fails,
      but all we were really after was a read of the current value, which we receive
      in either case.
      
      A third scenario -- which is also OK -- involves a torn read. The expression
      `*p` evaluates to something that was never the actual value at this address, but
      rather part of the value at one instance in time and the other part belonging to
      a second instance in time. Why is this still OK? Well, the CAS either fails
      (expected case) if the torn read does not match the observed value or succeeds
      if by coincidence the torn read matches a legitimate value later written into
      this location. Both cases still yield a correct atomic read of the current
      value.
      
      "OK, cut to the chase, where's the problem?" Consider a compiler that does not
      optimize the two `*p` expressions into a single read of the memory location.
      The location is read *twice* before performing the CAS. Ignoring torn reads
      (which are still possible and further complicate the possible scenarios), it is
      possible for the first `*p` to evaluate to a value present at one point in time
      and the second `*p` to evaluate to a value present at a *previous* point in
      time. "But surely the second expression can't see a value *before* the first?"
      You would think so, but the order of evaluation of arguments to a function in C
      is implementation defined, so it is perfectly legal for a compiler to generate
      code that evaluates the second expression before the first.
      
      "What's the damage?" It is possible for this CAS to inadvertently restore a
      stale value to the memory location while reading from it. To be clear, this was
      not observed on an x86-64 platform and it seems like it would require both bad
      luck and a pathological compiler implementation, but your edge case is someone
      else's happy path.
      
      We avoid this whole conundrum by using a static constant that will cause
      deterministic success or failure without side effects.
      04fede03
  14. Jan 03, 2019