commit | 2a07cd31927ac943104f55d2b696e53e7cd073b3 | [log] [tgz] |
---|---|---|
author | Ian Lance Taylor <iant@golang.org> | Wed Feb 28 07:27:57 2018 -0800 |
committer | Ian Lance Taylor <iant@golang.org> | Wed Mar 07 14:30:17 2018 +0000 |
tree | 61b896d88767ecfd863ded2b4761f2755237ac07 | |
parent | 3287064c24cbf0c50776cdb87a720d29130b4363 [diff] |
runtime: use a fence instruction before rdtsc This implements the same choices made in the gc runtime, except that for 32-bit x86 we only use the fence instruction if the processor supports SSE2. The code here is hacked up for speed; the gc runtime uses straight assembler. Change-Id: I853679cfdf732395ce0f947b45a7e3844427e1f8 Reviewed-on: https://go-review.googlesource.com/97715 Reviewed-by: Than McIntosh <thanm@google.com>