fix(server): Implement SCRIPT GC command (#3431)

* fix(server): Implement SCRIPT GC command
This commit is contained in:
Vladislav 2024-08-02 23:49:51 +03:00 committed by GitHub
parent f652f10743
commit 82298b8122
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 68 additions and 3 deletions

View file

@ -189,6 +189,10 @@ void ServerState::ResetInterpreter() {
interpreter_mgr_.Reset();
}
void ServerState::AlterInterpreters(std::function<void(Interpreter*)> modf) {
interpreter_mgr_.Alter(std::move(modf));
}
ServerState* ServerState::SafeTLocal() {
// https://stackoverflow.com/a/75622732
asm volatile("");