fix: prevent gin_helper::Locker heap allocation (#39872)

fix: prevent gin_helper::Locker heap allocation

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Milan Burda <milan.burda@gmail.com>
This commit is contained in:
trop[bot]
2023-09-18 13:19:42 -04:00
committed by GitHub
parent 3b07ed95a4
commit c572477606

View File

@@ -21,6 +21,10 @@ class Locker {
Locker(const Locker&) = delete;
Locker& operator=(const Locker&) = delete;
// prevent heap allocation
void* operator new(size_t size) = delete;
void operator delete(void*, size_t) = delete;
private:
const std::unique_ptr<v8::Locker> locker_;
};