CLASS UNLOADING METHOD AND ELECTRONIC DEVICE

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 devic...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: LIN, Yinglu, CHEN, Hao, WANG, Fei, TONG, Bifeng, CHEN, Xiaoxiao, TU, Xiaobing
Format: Patent
Sprache:eng ; fre ; ger
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung: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).