Index: runtime/vm/benchmark_test.h |
diff --git a/runtime/vm/benchmark_test.h b/runtime/vm/benchmark_test.h |
index a91bc01f42356ec745142381a0eb85d8b8318ab6..615965ca5a0c69cfc8735ac59d6f8c1e5745017e 100644 |
--- a/runtime/vm/benchmark_test.h |
+++ b/runtime/vm/benchmark_test.h |
@@ -34,7 +34,7 @@ extern const uint8_t* isolate_snapshot_buffer; |
#define BENCHMARK_HELPER(name, kind) \ |
void Dart_Benchmark##name(Benchmark* benchmark); \ |
static Benchmark kRegister##name(Dart_Benchmark##name, #name, kind); \ |
- static void Dart_BenchmarkHelper##name(Benchmark* benchmark); \ |
+ static void Dart_BenchmarkHelper##name(Benchmark* benchmark, Thread* thread);\ |
void Dart_Benchmark##name(Benchmark* benchmark) { \ |
FLAG_old_gen_growth_space_ratio = 100; \ |
BenchmarkIsolateScope __isolate__(benchmark); \ |
@@ -42,9 +42,9 @@ extern const uint8_t* isolate_snapshot_buffer; |
ASSERT(__thread__->isolate() == benchmark->isolate()); \ |
StackZone __zone__(__thread__); \ |
HandleScope __hs__(__thread__); \ |
- Dart_BenchmarkHelper##name(benchmark); \ |
+ Dart_BenchmarkHelper##name(benchmark, __thread__); \ |
} \ |
- static void Dart_BenchmarkHelper##name(Benchmark* benchmark) |
+ static void Dart_BenchmarkHelper##name(Benchmark* benchmark, Thread* thread) |
#define BENCHMARK(name) BENCHMARK_HELPER(name, "RunTime") |
#define BENCHMARK_SIZE(name) BENCHMARK_HELPER(name, "CodeSize") |