fix: prevent gin_helper::Locker
heap allocation (#39847)
fix: prevent gin_helper::Locker heap allocation
This commit is contained in:
parent
d6c04a3787
commit
fb6b92076e
1 changed files with 4 additions and 0 deletions
|
@ -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_;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue