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:
Seonghyun Kim 2021-03-02 17:05:36 +09:00 committed by Hyukwoo Park
commit 64e24255cb
11 changed files with 23 additions and 17 deletions

View file

@ -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));