Garbage recovery mobile communication terminal of Java virtual machine and recovery method thereof

A technology of mobile communication terminal and java virtual machine, which is applied in the field of mobile communication terminals for garbage collection, can solve problems such as inability to control the timing of garbage collection, and achieve the effect of ensuring accuracy

Inactive Publication Date: 2008-07-16
ZTE CORP
View PDF2 Cites 19 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The disadvantage of this patent is that the virtual object heap and physical object heap are not suitable for the implementation of devices with small memory such as mobile

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
  • Garbage recovery mobile communication terminal of Java virtual machine and recovery method thereof
  • Garbage recovery mobile communication terminal of Java virtual machine and recovery method thereof
  • Garbage recovery mobile communication terminal of Java virtual machine and recovery method thereof

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0041] The technical features of the present invention will be described in detail below in conjunction with embodiments and drawings.

[0042] Figure 1 is a schematic diagram of the overall structure of the present invention.

[0043] In the mobile communication terminal 100, the operating system 130 runs on the hardware 140, and the Java virtual machine 120 performs related operations based on the operating system 130 to provide a running platform for each application software 110. The mobile communication terminal 100 includes a mobile phone, a PDA, and the like. The Java virtual machine 120 includes various functional modules such as a garbage collection module 200, a runtime environment 201, and a Java virtual machine scheduling module 202. The garbage collection module 200 will perform garbage collection operations for the runtime environment 201. The runtime environment 201 is the method area, the heap, the execution stack of the thread, the register, etc., which are applie...

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 discloses a rubbish recovery mobile communication terminal and a rubbish recovery method for a Java virtual machine. The method of the invention comprises the following steps: context environment of a current thread is preserved; all running objects in a memory of the Java virtual machine are traversed, and accessible objects are marked and types of the accessible objects are recorded; memory space of the Java virtual machine which is occupied by unmarked objects is incorporated and released; memory space of the accessible objects is contracted; the convex environment of the current thread is recovered. The invention can rightly distinguish types of objects which are used by a system and predict and record the size of free memories in a memory zone, thereby accuracy of operation of the system is guaranteed. Moreover, the invention divides a system memory into memory blocks with fixed size and the accessible objects are collected into a continuous zone for realization of constrictive memory fragmentation management on allocated memories.

Description

technical field [0001] The invention relates to the field of memory management in a virtual machine environment, in particular to a garbage collection method of a Java virtual machine running on a mobile communication terminal and a garbage collection mobile communication terminal. Background technique [0002] The Java programming language is a cross-platform object-oriented high-level programming language launched by Sun Corporation. Its executable code is a unified standard Java bytecode (Byte code) after compilation. The Java language relies on an emulator called the Java virtual machine (JVM). The JVM enables programmers to deal with virtual machines instead of with the system. Therefore, the functions used by programmers are functions embedded in the JVM, not functions of the operating system. This is very advanced because it provides portability. At the same time, the JVM is also very small and does not take up a lot of memory. This means that the JVM can be used ...

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
IPC IPC(8): G06F12/02G06F9/46H04Q7/32
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