Skip to content

Commit 4b654b6

Browse files
committed
revert 2e68e1f
1 parent 3a0c209 commit 4b654b6

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

src/lib_jit.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,6 @@ LJLIB_CF(jit_status)
113113
#endif
114114
}
115115

116-
LJLIB_CF(jit_security)
117-
{
118-
int idx = lj_lib_checkopt(L, 1, -1, LJ_SECURITY_MODESTRING);
119-
setintV(L->top++, ((LJ_SECURITY_MODE >> (2*idx)) & 3));
120-
return 1;
121-
}
122-
123116
LJLIB_CF(jit_attach)
124117
{
125118
#ifdef LUAJIT_DISABLE_VMEVENT

src/lj_arch.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -672,14 +672,4 @@ extern void *LJ_WIN_LOADLIBA(const char *path);
672672
#define LUAJIT_SECURITY_MCODE 1
673673
#endif
674674

675-
#define LJ_SECURITY_MODE \
676-
( 0u \
677-
| ((LUAJIT_SECURITY_PRNG & 3) << 0) \
678-
| ((LUAJIT_SECURITY_STRHASH & 3) << 2) \
679-
| ((LUAJIT_SECURITY_STRID & 3) << 4) \
680-
| ((LUAJIT_SECURITY_MCODE & 3) << 6) \
681-
)
682-
#define LJ_SECURITY_MODESTRING \
683-
"\004prng\007strhash\005strid\005mcode"
684-
685675
#endif

0 commit comments

Comments
 (0)