diff options
author | Mike Pall <mike> | 2019-12-08 19:56:56 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2019-12-08 19:56:56 +0100 |
commit | 92fa45f9eb5d9aa732c6b972a85c26120d7612b4 (patch) | |
tree | d77d6d6d99b040b38d9c596528aeea02044a3814 /src/lj_profile.c | |
parent | 9600e4318e17ef73d73c1980008d648c1c98f959 (diff) | |
download | luajit-92fa45f9eb5d9aa732c6b972a85c26120d7612b4.tar.gz luajit-92fa45f9eb5d9aa732c6b972a85c26120d7612b4.tar.bz2 luajit-92fa45f9eb5d9aa732c6b972a85c26120d7612b4.zip |
Fix interaction between profiler hooks and finalizers.
Thanks to Julien Desgats.
Diffstat (limited to '')
-rw-r--r-- | src/lj_profile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_profile.c b/src/lj_profile.c index 3223697f..e2966e0c 100644 --- a/src/lj_profile.c +++ b/src/lj_profile.c | |||
@@ -153,7 +153,7 @@ static void profile_trigger(ProfileState *ps) | |||
153 | profile_lock(ps); | 153 | profile_lock(ps); |
154 | ps->samples++; /* Always increment number of samples. */ | 154 | ps->samples++; /* Always increment number of samples. */ |
155 | mask = g->hookmask; | 155 | mask = g->hookmask; |
156 | if (!(mask & (HOOK_PROFILE|HOOK_VMEVENT))) { /* Set profile hook. */ | 156 | if (!(mask & (HOOK_PROFILE|HOOK_VMEVENT|HOOK_GC))) { /* Set profile hook. */ |
157 | int st = g->vmstate; | 157 | int st = g->vmstate; |
158 | ps->vmstate = st >= 0 ? 'N' : | 158 | ps->vmstate = st >= 0 ? 'N' : |
159 | st == ~LJ_VMST_INTERP ? 'I' : | 159 | st == ~LJ_VMST_INTERP ? 'I' : |