CN110114756A - 一种类卸载方法及电子设备 - Google Patents
一种类卸载方法及电子设备 Download PDFInfo
- Publication number
- CN110114756A CN110114756A CN201780080320.4A CN201780080320A CN110114756A CN 110114756 A CN110114756 A CN 110114756A CN 201780080320 A CN201780080320 A CN 201780080320A CN 110114756 A CN110114756 A CN 110114756A
- Authority
- CN
- China
- Prior art keywords
- class
- mapping table
- reference mapping
- class object
- dependence
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 111
- 238000007599 discharging Methods 0.000 title claims abstract description 19
- 238000013507 mapping Methods 0.000 claims abstract description 218
- 230000015654 memory Effects 0.000 claims abstract description 80
- 230000008569 process Effects 0.000 claims abstract description 50
- 230000000295 complement effect Effects 0.000 claims abstract description 7
- 230000002159 abnormal effect Effects 0.000 claims description 13
- 238000004590 computer program Methods 0.000 claims description 8
- 238000005516 engineering process Methods 0.000 abstract description 5
- 230000006870 function Effects 0.000 description 24
- 238000010586 diagram Methods 0.000 description 16
- 230000006854 communication Effects 0.000 description 10
- 238000012545 processing Methods 0.000 description 10
- 238000004891 communication Methods 0.000 description 9
- 230000008439 repair process Effects 0.000 description 7
- 238000009434 installation Methods 0.000 description 5
- 230000007246 mechanism Effects 0.000 description 5
- 230000005484 gravity Effects 0.000 description 4
- 238000012544 monitoring process Methods 0.000 description 4
- 230000008859 change Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000012217 deletion Methods 0.000 description 3
- 230000037430 deletion Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 230000009471 action Effects 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 238000012905 input function Methods 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 238000005192 partition Methods 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000005314 correlation function Methods 0.000 description 1
- 238000000354 decomposition reaction Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000009527 percussion Methods 0.000 description 1
- 238000004321 preservation Methods 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000003238 somatosensory effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44594—Unloading
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/448—Execution paradigms, e.g. implementations of programming paradigms
- G06F9/4488—Object-oriented
- G06F9/449—Object-oriented method invocation or resolution
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/46—Indexing scheme relating to G06F9/46
- G06F2209/462—Lookup
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/48—Indexing scheme relating to G06F9/48
- G06F2209/481—Exception handling
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
- G06F8/656—Updates while running
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
一种类卸载方法及电子设备,涉及电子技术领域,能够在应用运行过程中动态卸载类,提升可用内存空间。具体方案为:在应用启动后,电子设备加载n个类(201),n为正整数,生成引用映射表,引用映射表包括n个类与n个类对应的m个类对象之间的引用关系,以及n个类对应的m个类对象的依赖关系(202),依赖关系用于表示不同类对象之间相互依赖的映射关系,m为大于或者等于n的正整数,在应用运行过程中,根据引用映射表卸载n个类中的第一类(203)。
Description
PCT国内申请,说明书已公开。
Claims (24)
- PCT国内申请,权利要求书已公开。
Applications Claiming Priority (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2017109318028 | 2017-10-09 | ||
CN201710931802 | 2017-10-09 | ||
PCT/CN2017/106154 WO2019071601A1 (zh) | 2017-10-09 | 2017-10-13 | 一种类卸载方法及电子设备 |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110114756A true CN110114756A (zh) | 2019-08-09 |
Family
ID=66101261
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201780080320.4A Pending CN110114756A (zh) | 2017-10-09 | 2017-10-13 | 一种类卸载方法及电子设备 |
Country Status (4)
Country | Link |
---|---|
US (1) | US11163589B2 (zh) |
EP (1) | EP3693851B1 (zh) |
CN (1) | CN110114756A (zh) |
WO (1) | WO2019071601A1 (zh) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11403075B2 (en) * | 2019-11-25 | 2022-08-02 | International Business Machines Corporation | Bytecode verification using class relationship caching |
CN112685096B (zh) * | 2020-12-24 | 2024-09-13 | 京东方科技集团股份有限公司 | 场景切换控制方法、装置、设备及介质 |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102722432A (zh) * | 2011-03-29 | 2012-10-10 | 国际商业机器公司 | 追踪内存访问的方法和装置 |
CN105893110A (zh) * | 2015-10-09 | 2016-08-24 | 乐视网信息技术(北京)股份有限公司 | 用于具有显示界面的软件程序的内存回收的方法和装置 |
CN107220076A (zh) * | 2016-09-27 | 2017-09-29 | 华为技术有限公司 | 一种内存回收方法及装置 |
Family Cites Families (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6701334B1 (en) | 1999-07-13 | 2004-03-02 | Sun Microsystems, Inc. | Methods and apparatus for implementing individual class loaders |
US20020147971A1 (en) * | 2001-02-15 | 2002-10-10 | Adams James Andrew | Object-oriented class loading system and method |
US6915511B2 (en) | 2001-05-22 | 2005-07-05 | Sun Microsystems, Inc. | Dynamic class reloading mechanism |
US6985909B2 (en) | 2001-12-28 | 2006-01-10 | Sap Ag | Modified class loaders and methods of use |
US7203941B2 (en) * | 2002-11-14 | 2007-04-10 | Microsoft Corporation | Associating a native resource with an application |
US7765551B2 (en) | 2003-02-10 | 2010-07-27 | Novell, Inc. | System for dynamically loading application resources from the first server to the second server based on the modified application resources from the first server |
US7526760B1 (en) * | 2004-03-17 | 2009-04-28 | Sun Microsystems, Inc. | Methods for implementing virtual method invocation with shared code |
US20080005190A1 (en) * | 2006-06-28 | 2008-01-03 | Nokia Corporation | System, Method, Apparatus and Computer Program Product for Providing Resource Reclamation in a Virtual Machine |
US8060812B2 (en) * | 2007-07-27 | 2011-11-15 | International Business Machines Corporation | Methods, systems, and computer program products for class verification |
CN102253854A (zh) * | 2011-07-26 | 2011-11-23 | 华为技术有限公司 | 业务处理方法和Java虚拟机 |
US9116798B2 (en) * | 2011-11-30 | 2015-08-25 | Oracle International Corporation | Optimized memory management for class metadata |
GB2506596A (en) * | 2012-10-02 | 2014-04-09 | Ibm | Managing a set of software modules in a runtime environment |
US9785456B2 (en) * | 2014-04-22 | 2017-10-10 | Oracle International Corporation | Metadata-driven dynamic specialization |
US9286085B2 (en) * | 2014-06-27 | 2016-03-15 | International Business Machines Corporation | Correlating class loader objects across execution environments |
CN104182356B (zh) * | 2014-09-19 | 2017-06-27 | 深圳市茁壮网络股份有限公司 | 一种内存管理方法、装置及终端设备 |
US10114745B2 (en) * | 2014-10-07 | 2018-10-30 | Red Hat, Inc. | Assisted garbage collection in a virtual machine |
US20160196119A1 (en) * | 2015-01-05 | 2016-07-07 | Google Inc. | Apparatus and Methods for Virtual and Interface Method Calls |
US10346086B2 (en) * | 2017-06-08 | 2019-07-09 | Oracle International Corporation | Determining an age category for an object stored in a heap |
-
2017
- 2017-10-13 EP EP17928527.5A patent/EP3693851B1/en active Active
- 2017-10-13 WO PCT/CN2017/106154 patent/WO2019071601A1/zh unknown
- 2017-10-13 US US16/754,701 patent/US11163589B2/en active Active
- 2017-10-13 CN CN201780080320.4A patent/CN110114756A/zh active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102722432A (zh) * | 2011-03-29 | 2012-10-10 | 国际商业机器公司 | 追踪内存访问的方法和装置 |
CN105893110A (zh) * | 2015-10-09 | 2016-08-24 | 乐视网信息技术(北京)股份有限公司 | 用于具有显示界面的软件程序的内存回收的方法和装置 |
CN107220076A (zh) * | 2016-09-27 | 2017-09-29 | 华为技术有限公司 | 一种内存回收方法及装置 |
Also Published As
Publication number | Publication date |
---|---|
EP3693851A4 (en) | 2020-12-09 |
US20200241892A1 (en) | 2020-07-30 |
US11163589B2 (en) | 2021-11-02 |
EP3693851A1 (en) | 2020-08-12 |
WO2019071601A1 (zh) | 2019-04-18 |
EP3693851B1 (en) | 2023-01-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104915241B (zh) | 一种虚拟机迁移控制方法及装置 | |
CN106066686B (zh) | 一种信息处理方法及终端设备 | |
JP6870158B2 (ja) | メモリを処理するための方法および装置ならびに記憶媒体 | |
CN105278937A (zh) | 一种显示弹出框消息的方法及装置 | |
CN107239295A (zh) | 一种软件升级的方法及软件升级装置 | |
CN106502703B (zh) | 一种函数调用方法和装置 | |
CN104965721A (zh) | 一种对应用程序进行更新的方法及装置 | |
CN103677903A (zh) | 一种移动终端智能升级方法、装置及电子设备 | |
CN105490919A (zh) | 消息撤回方法和装置 | |
CN103631625B (zh) | 一种数据获取的方法、用户端、服务器及系统 | |
CN103713943B (zh) | 基于终端原生操作系统的应用功能实现方法和装置 | |
WO2019071609A1 (zh) | 一种加载应用和升级应用的方法及终端设备 | |
CN103810004A (zh) | 嵌入式系统升级的方法、装置及设备 | |
WO2019128537A1 (zh) | 应用冻结方法、计算机设备和计算机可读存储介质 | |
CN106960155A (zh) | 一种基本输入输出系统的更新方法和装置 | |
WO2019128574A1 (zh) | 信息处理方法、装置、计算机设备和计算机可读存储介质 | |
WO2019024646A1 (zh) | 应用管控方法、装置及电子设备 | |
CN110018905B (zh) | 信息处理方法、装置、计算机设备和计算机可读存储介质 | |
CN110114756A (zh) | 一种类卸载方法及电子设备 | |
CN109144596A (zh) | 快捷启动方法、装置、终端、服务器及系统 | |
CN106933636A (zh) | 启动插件服务的方法、装置和终端设备 | |
CN111262737B (zh) | 一种端口配置管理方法、装置、存储介质及终端 | |
WO2017215663A1 (zh) | 一种音效处理的方法及终端 | |
CN106371896B (zh) | 虚拟机内存配置方法及装置、移动终端 | |
WO2017206851A1 (zh) | 安装任务的分配方法及移动终端 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190809 |
|
RJ01 | Rejection of invention patent application after publication |