diff options
| author | Roland Shoemaker <roland@golang.org> | 2025-12-12 15:32:43 -0800 |
|---|---|---|
| committer | Roland Shoemaker <roland@golang.org> | 2026-02-24 08:50:23 -0800 |
| commit | 0bd25dc875a3157974c06ba8d4fb33f95ac2dfdd (patch) | |
| tree | 311e40ec00fbd9f6f0dd951b175c8dfc0449fa02 /src/runtime/testdata | |
| parent | b7db3246a691e9d0f506c374559c3f45b932e33e (diff) | |
| download | go-0bd25dc875a3157974c06ba8d4fb33f95ac2dfdd.tar.xz | |
internal/runtime/sys: improve DIT assembly
In EnableDIT, if DIT is already enabled, return early instead of
executing MSR and DSB/ISB, since they are not particularly cheap
instructions.
Also, if we have support for the SB (Speculation Barrier) instruction,
use it instead of DSB+ISB when enabling DIT, since SB is cheaper.
Change-Id: I1b3ecbd95ed42bfd10d646125704abf4e80b6d2e
Reviewed-on: https://go-review.googlesource.com/c/go/+/729800
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/runtime/testdata')
0 files changed, 0 insertions, 0 deletions
