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 22, 2024
1 parent d09638d commit c195239
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 c195239

Please sign in to comment.