CN110114756A - 一种类卸载方法及电子设备 - Google Patents

一种类卸载方法及电子设备 Download PDF

Info

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
Application number
CN201780080320.4A
Other languages
English (en)
Inventor
涂小兵
陈浩
童碧峰
王菲
林英禄
陈晓晓
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN110114756A publication Critical patent/CN110114756A/zh
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44594Unloading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4488Object-oriented
    • G06F9/449Object-oriented method invocation or resolution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/46Indexing scheme relating to G06F9/46
    • G06F2209/462Lookup
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/48Indexing scheme relating to G06F9/48
    • G06F2209/481Exception handling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/656Updates 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)

  1. PCT国内申请,权利要求书已公开。
CN201780080320.4A 2017-10-09 2017-10-13 一种类卸载方法及电子设备 Pending CN110114756A (zh)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
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