Skip to content

Commit

Permalink
Lock before LowMemoryNotification
Browse files Browse the repository at this point in the history
See: #288
  • Loading branch information
lloeki committed Apr 5, 2024
1 parent 41c386a commit ac520dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ext/mini_racer_extension/mini_racer_extension.cc
Original file line number Diff line number Diff line change
Expand Up @@ -965,6 +965,8 @@ static VALUE rb_isolate_low_memory_notification(VALUE self) {

if (current_platform == NULL) return Qfalse;

Locker guard { isolate_info->isolate };

isolate_info->isolate->LowMemoryNotification();
return Qnil;
}
Expand Down

0 comments on commit ac520dd

Please sign in to comment.