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...
Gespeichert in:
Hauptverfasser: | , , , , , |
---|---|
Format: | Patent |
Sprache: | eng ; fre ; ger |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
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). |
---|