Skip to content
Snippets Groups Projects
Commit 95aa7d20 authored by Sergey Kaplun's avatar Sergey Kaplun Committed by Kirill Yukhin
Browse files

lua: avoid panic if HOOK_GC is not an active hook


Platform panic occurs when fiber.yield() is used within any active
(i.e. being executed now) hook.

It is a regression caused by 96dbc49d
('lua: prohibit fiber yield when GC hook is active').

This patch fixes false positive panic in cases when VM is not running
a GC hook.

Relates to #4518
Closes #5649

Reported-by: default avatarMichael Filonenko <filonenko.mikhail@gmail.com>
parent 1507c47f
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment