mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 03:53:09 +00:00
mark all short string shared, see #1027
This commit is contained in:
@@ -47,8 +47,7 @@ mark_shared(lua_State *L) {
|
||||
case LUA_TSTRING: {
|
||||
const char *str = lua_tostring(L, idx);
|
||||
TString *ts = (TString *)(str - sizeof(UTString));
|
||||
if(ts->tt==LUA_TLNGSTR)
|
||||
makeshared(ts);
|
||||
makeshared(ts);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user