System and method for recycling garbage object in self-adaptive way

An adaptive and object technology, applied in the field of JAVA virtual machine, can solve problems such as memory leakage, avoid waste and improve utilization.

Inactive Publication Date: 2010-11-24
ZTE CORP
View PDF3 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The disadvantage is that it is necessary to predetermine whether the occupied memory space should be reclaimed. Programmers not only need to consider how to implement the algorithm to meet the application, but also spend a lot of energy considering the rational use of memory to avoid memory leaks.
[0008] In addition, the existing garbage collection algorithms all use the method of scheduling all collections at one time for garbage collection.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • System and method for recycling garbage object in self-adaptive way
  • System and method for recycling garbage object in self-adaptive way
  • System and method for recycling garbage object in self-adaptive way

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] The invention provides a system and method for self-adaptive recycling of garbage objects. When the JAVA garbage object is released during system operation, the heap internal space and external space of the object are simultaneously released.

[0038] This embodiment provides a system for adaptively recycling garbage objects, such as figure 1 As shown, it includes a release module, a judgment module, a selection module and a setting module;

[0039] Selection module, used to select released garbage objects;

[0040] When selecting the garbage object to be released by the module, first select the garbage object that occupies the largest space for release. If the memory space after release still cannot meet the current system operation needs, then further select the garbage object that occupies the largest space to release until the released The space meets the current system operation needs.

[0041] The selection module is also used to send the selected garbage object...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a system and a method for recycling a garbage object in a self-adaptive way. The method comprises the following step of: releasing an in-pile space and an external space of the object while releasing a JAVA garbage object during the running period of the system. Due to the adoption of the technical scheme of the invention, all spaces occupied by the garbage object are released, so that waste of a memory space is avoided; and moreover, the garbage object is released according to a current system running demand, but all garbage objects are not released at one time, so that the utilization ratio of a central processing unit (CPU) resource is enhanced, and the performance of a JAVA virtual machine is improved.

Description

technical field [0001] The invention relates to the field of JAVA virtual machines, in particular to a system and method for adaptively recycling garbage objects. Background technique [0002] JAVA is currently the most widely used programming language. Because of its cross-platform and strong portability, JAVA is favored by programmers. JAVA programs are widely used in servers, PCs, mobile terminals, and embedded consumer electronics products. , smart cards and other fields, and is expanding to a wider range of fields. [0003] JAVA evolved from the traditional object-oriented language C++ and runs on the JAVA virtual machine, which manages resources and shields platform dependencies. The control and timely release of memory is a very complicated task. In order to free programmers from this task, the JAVA virtual machine has established a garbage collection mechanism. [0004] The current garbage collection scheduling algorithms are: [0005] 1. The system regularly trav...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/50
CPCG06F12/0253G06F9/50
Inventor 王文杰周兴俊陆刚
Owner ZTE CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products