summaryrefslogtreecommitdiffstats
path: root/vespalib/src/tests/signalhandler/my_shared_library.cpp
diff options
context:
space:
mode:
authorTor Brede Vekterli <vekterli@yahooinc.com>2022-06-01 13:09:14 +0000
committerTor Brede Vekterli <vekterli@yahooinc.com>2022-06-01 13:09:14 +0000
commit5efb33111dc1b225996535a124e84f95ef3059ec (patch)
tree3badaf26e396d5237de7e02326c261ffc9b10c14 /vespalib/src/tests/signalhandler/my_shared_library.cpp
parent3de3834cd05b2f70147ef74794602b435130c42c (diff)
Really, really, really don't inline the backtrace-test function
Diffstat (limited to 'vespalib/src/tests/signalhandler/my_shared_library.cpp')
-rw-r--r--vespalib/src/tests/signalhandler/my_shared_library.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/vespalib/src/tests/signalhandler/my_shared_library.cpp b/vespalib/src/tests/signalhandler/my_shared_library.cpp
index 5663f6c4ba0..4b7593d863c 100644
--- a/vespalib/src/tests/signalhandler/my_shared_library.cpp
+++ b/vespalib/src/tests/signalhandler/my_shared_library.cpp
@@ -12,6 +12,7 @@ void my_cool_function(std::latch& arrival_latch, std::latch& departure_latch) {
arrival_latch.arrive_and_wait();
// Twiddle thumbs in departure latch until main test thread has dumped our stack
departure_latch.arrive_and_wait();
+ asm(""); // Dear GCC; really, really don't inline this function. It's clobberin' time!
}
vespalib::string my_totally_tubular_and_groovy_function() {