Index: src/cpu-profiler.h |
diff --git a/src/cpu-profiler.h b/src/cpu-profiler.h |
index 53f00ffa682f8b1730e3484e4f6c36866c4be3e7..a9f034f0c722ffa882af040c2a93456db250c929 100644 |
--- a/src/cpu-profiler.h |
+++ b/src/cpu-profiler.h |
@@ -158,6 +158,11 @@ class ProfilerEventsProcessor : public Thread { |
inline TickSample* StartTickSample(); |
inline void FinishTickSample(); |
+ // SamplingCircularQueue has stricter alignment requirements than a normal new |
+ // can fulfil, so we need to provide our own new/delete here. |
+ void* operator new(size_t size); |
+ void operator delete(void* ptr); |
+ |
private: |
// Called from events processing thread (Run() method.) |
bool ProcessCodeEvent(); |