mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-29 10:02:14 +00:00
Fix memory bugs
* Init YarrPattern::m_body variable * Remove Objects finalizer in finalizer of WeakMap,Set * Use correct finalizer for Intl Objects Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
This commit is contained in:
parent
eb3d7667a9
commit
64e24255cb
11 changed files with 23 additions and 17 deletions
|
|
@ -40,9 +40,7 @@ void* ProxyObject::operator new(size_t size)
|
|||
static GC_descr descr;
|
||||
if (!typeInited) {
|
||||
GC_word obj_bitmap[GC_BITMAP_SIZE(ProxyObject)] = { 0 };
|
||||
GC_set_bit(obj_bitmap, GC_WORD_OFFSET(ProxyObject, m_structure));
|
||||
GC_set_bit(obj_bitmap, GC_WORD_OFFSET(ProxyObject, m_prototype));
|
||||
GC_set_bit(obj_bitmap, GC_WORD_OFFSET(ProxyObject, m_values));
|
||||
Object::fillGCDescriptor(obj_bitmap);
|
||||
GC_set_bit(obj_bitmap, GC_WORD_OFFSET(ProxyObject, m_target));
|
||||
GC_set_bit(obj_bitmap, GC_WORD_OFFSET(ProxyObject, m_handler));
|
||||
descr = GC_make_descriptor(obj_bitmap, GC_WORD_LEN(ProxyObject));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue