diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2021-12-14 12:50:05 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2021-12-14 12:50:05 -0300 |
commit | 066e0f93c4901e601d93e31fb700f8f66f95feb8 (patch) | |
tree | 8b7464bbc4bbe12db97eb34f3b28874caffd1411 /lstate.h | |
parent | 0bfc572e51d9035a615ef6e9523f736c9ffa8e57 (diff) | |
download | lua-066e0f93c4901e601d93e31fb700f8f66f95feb8.tar.gz lua-066e0f93c4901e601d93e31fb700f8f66f95feb8.tar.bz2 lua-066e0f93c4901e601d93e31fb700f8f66f95feb8.zip |
Fix debug information about finalizers
The flag CIST_FIN does not mark a finalizer, but the function that was
running when the finalizer was called. (So, the function did not call
the finalizer, but it looks that way in the stack.)
Diffstat (limited to 'lstate.h')
-rw-r--r-- | lstate.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -209,7 +209,7 @@ typedef struct CallInfo { | |||
209 | #define CIST_YPCALL (1<<4) /* doing a yieldable protected call */ | 209 | #define CIST_YPCALL (1<<4) /* doing a yieldable protected call */ |
210 | #define CIST_TAIL (1<<5) /* call was tail called */ | 210 | #define CIST_TAIL (1<<5) /* call was tail called */ |
211 | #define CIST_HOOKYIELD (1<<6) /* last hook called yielded */ | 211 | #define CIST_HOOKYIELD (1<<6) /* last hook called yielded */ |
212 | #define CIST_FIN (1<<7) /* call is running a finalizer */ | 212 | #define CIST_FIN (1<<7) /* function "called" a finalizer */ |
213 | #define CIST_TRAN (1<<8) /* 'ci' has transfer information */ | 213 | #define CIST_TRAN (1<<8) /* 'ci' has transfer information */ |
214 | #define CIST_CLSRET (1<<9) /* function is closing tbc variables */ | 214 | #define CIST_CLSRET (1<<9) /* function is closing tbc variables */ |
215 | /* Bits 10-12 are used for CIST_RECST (see below) */ | 215 | /* Bits 10-12 are used for CIST_RECST (see below) */ |