-
公开(公告)号:EP3693851A1
公开(公告)日:2020-08-12
申请号:EP17928527.5
申请日:2017-10-13
发明人: TU, Xiaobing , CHEN, Hao , TONG, Bifeng , WANG, Fei , LIN, Yinglu , CHEN, Xiaoxiao
摘要: This application provides a class unloading method and an electronic device, and relates to the field of electronic technologies, to dynamically unload a class in an operation process of an application and increase available memory space. A specific solution includes: loading, by an electronic device, n classes after an application is started (201), where n is a positive integer; generating a reference mapping table (202), where the reference mapping table includes a reference relationship between the n classes and m class objects corresponding to the n classes and a dependency relationship between the m class objects corresponding to the n classes, the dependency relationship is used to represent an interdependency mapping relationship between different class objects, and m is a positive integer greater than or equal to n; and unloading a first class of the n classes based on the reference mapping table in an operation process of the application (203).