mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
Implement per thread isolating
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
This commit is contained in:
parent
ac2bb84b6f
commit
77a68579a5
59 changed files with 228 additions and 205 deletions
|
|
@ -38,8 +38,8 @@ namespace Escargot {
|
|||
|
||||
void* Script::operator new(size_t size)
|
||||
{
|
||||
static bool typeInited = false;
|
||||
static GC_descr descr;
|
||||
static MAY_THREAD_LOCAL bool typeInited = false;
|
||||
static MAY_THREAD_LOCAL GC_descr descr;
|
||||
if (!typeInited) {
|
||||
GC_word obj_bitmap[GC_BITMAP_SIZE(Script)] = { 0 };
|
||||
GC_set_bit(obj_bitmap, GC_WORD_OFFSET(Script, m_srcName));
|
||||
|
|
@ -587,8 +587,8 @@ Value Script::executeLocal(ExecutionState& state, Value thisValue, InterpretedCo
|
|||
|
||||
void* Script::ModuleData::ModulePromiseObject::operator new(size_t size)
|
||||
{
|
||||
static bool typeInited = false;
|
||||
static GC_descr descr;
|
||||
static MAY_THREAD_LOCAL bool typeInited = false;
|
||||
static MAY_THREAD_LOCAL GC_descr descr;
|
||||
if (!typeInited) {
|
||||
GC_word desc[GC_BITMAP_SIZE(ModulePromiseObject)] = { 0 };
|
||||
PromiseObject::fillGCDescriptor(desc);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue