malloc/free also sharedarray is added. malloc/free needs implementation