]> Cypherpunks repositories - gostls13.git/commit
runtime: add TestIntendedInlining
authorJosh Bleecher Snyder <josharian@gmail.com>
Sun, 20 Aug 2017 17:17:02 +0000 (10:17 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Tue, 22 Aug 2017 23:07:40 +0000 (23:07 +0000)
commitf6944c780f5104114a7a5e404115478f8deb739b
tree4483508233dc75bad79ee6a9993bc2e53651c727
parent6cbe5c8ac342ad3d8f907caf105feaa55cb0404b
runtime: add TestIntendedInlining

The intent is to allow more aggressive refactoring
in the runtime without silent performance changes.

The test would be useful for many functions.
I've seeded it with the runtime functions tophash and add;
it will grow organically (or wither!) from here.

Updates #21536 and #17566

Change-Id: Ib26d9cfd395e7a8844150224da0856add7bedc42
Reviewed-on: https://go-review.googlesource.com/57410
Reviewed-by: Martin Möhrmann <moehrmann@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/runtime/runtime_test.go