diff options
| author | Mike Pall <mike> | 2026-07-20 10:20:28 +0200 |
|---|---|---|
| committer | Mike Pall <mike> | 2026-07-20 10:20:28 +0200 |
| commit | 6f2ec80c11c2bd23e2ba792ae27a4febc8dddc8c (patch) | |
| tree | 58ddd00fc12a6718b736ce893c4470cbceca2332 /src/lj_profile.c | |
| parent | 329b7912088095a00685285180d705f6d131e6f0 (diff) | |
| parent | 14d8a7a27dc8c626ab9e7c7e9e50b6df6def4f03 (diff) | |
| download | luajit-temp-v3bp-syntax1.tar.gz luajit-temp-v3bp-syntax1.tar.bz2 luajit-temp-v3bp-syntax1.zip | |
Merge branch 'v2.1' into temp-v3bp-syntax1temp-v3bp-syntax1
Diffstat (limited to 'src/lj_profile.c')
| -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 5b2a2b6c7..ea65fcb8f 100644 --- a/src/lj_profile.c +++ b/src/lj_profile.c | |||
| @@ -359,6 +359,7 @@ LUA_API void luaJIT_profile_stop(lua_State *L) | |||
| 359 | ProfileState *ps = &profile_state; | 359 | ProfileState *ps = &profile_state; |
| 360 | global_State *g = ps->g; | 360 | global_State *g = ps->g; |
| 361 | if (G(L) == g) { /* Only stop profiler if started by this VM. */ | 361 | if (G(L) == g) { /* Only stop profiler if started by this VM. */ |
| 362 | ps->g = NULL; | ||
| 362 | profile_timer_stop(ps); | 363 | profile_timer_stop(ps); |
| 363 | g->hookmask &= ~HOOK_PROFILE; | 364 | g->hookmask &= ~HOOK_PROFILE; |
| 364 | lj_dispatch_update(g, 0); | 365 | lj_dispatch_update(g, 0); |
| @@ -368,7 +369,6 @@ LUA_API void luaJIT_profile_stop(lua_State *L) | |||
| 368 | #endif | 369 | #endif |
| 369 | lj_buf_free(g, &ps->sb); | 370 | lj_buf_free(g, &ps->sb); |
| 370 | ps->sb.w = ps->sb.e = NULL; | 371 | ps->sb.w = ps->sb.e = NULL; |
| 371 | ps->g = NULL; | ||
| 372 | } | 372 | } |
| 373 | } | 373 | } |
| 374 | 374 | ||
