Garbage collecting method based on Java system on chip (SoC) with stack system structure

A technology of garbage collection and architecture, applied in resource allocation, multiprogramming device, memory address/allocation/relocation, etc., can solve the problem of inability to guarantee recovery of memory, inability to predict garbage collection time, and inability to meet high real-time requirements in the embedded field. performance requirements and other issues to achieve the effect of improving efficiency and saving processor resources

Active Publication Date: 2012-10-10
GUANGZHOU KINGRAY INFORMATION TECH +1
View PDF4 Cites 22 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Chinese patent application number 200710026998.2 discloses a Java Card garbage collection method in the patent application "Java Card System Garbage Collection Method", which uses a single thread to explicitly call garbage collection, that is, stops all (Stop-The-World, STW for short) The way of working is to stop the execution of other applications when the garbage coll

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 collecting method based on Java system on chip (SoC) with stack system structure
  • Garbage collecting method based on Java system on chip (SoC) with stack system structure
  • Garbage collecting method based on Java system on chip (SoC) with stack system structure

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] The present invention will be further elaborated below in conjunction with the accompanying drawings.

[0030] Garbage collection method of the present invention is aimed at the Java SoC system based on stack architecture, and this system only supports Java as target language, and local method adopts microcode or Java subroutine to realize, and microcode is all realized by hardware circuit, so does not need to design Local method stack. In the specific implementation, the physical memory is divided into processor off-chip RAM and on-chip RAM. The former is used for method area and heap allocation, and the latter is used to build the Java stack. After weighing, its methods are divided into static domains Table, bytecode table, class structure table, string constant table and JVM redundancy information table five parts, such as Figure 5 shown.

[0031] Such as figure 1As shown, the garbage collection method of the Java SoC system based on the stack architecture of the ...

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 garbage collecting method based on a Java system on chip (SoC) with a stack system structure, which is used for a multi-thread dynamic scheduling garbage collector and used for recovering garbage. The life cycle of the Java SoC is divided into a system initialization stage and a real-time task stage, wherein at the Java SoC initialization stage, a Java virtual machine actively calls the garbage collector to carry out single-thread explicit called garbage collection; when an abnormity of 'memory insufficiency' happens, the Java SoC triggers and calls the garbage collector to carry out single-thread explicit called garbage collection; and at the multi-thread real-time task operation stage, a concurrent collector thread schedules the garbage collector to collect garbage in a cycle TC. The garbage collection workflow of the garbage collector comprises the following steps of: 1) scanning root set objects in the Java SoC; 2) marking; 3) copying non-garbage objects from a subspace fromespace to a subspace tospace; 4) sweeping handles; 5) emptying the subspace fromespace; and 6) turning the subspaces fromespace and tospace over.

Description

technical field [0001] The present invention designs a Java SoC garbage collection method, specifically, designs a Java SoC system garbage collection method based on a stack architecture for garbage collection by a multi-thread dynamic scheduling garbage collector. Background technique [0002] In recent years, Java technology has been widely used in embedded systems by virtue of its unique cross-platform, good packaging and security. At the same time, with the rapid development of ultra-high integration chip technology and technology, it becomes possible to implement JVM (Java Virtual Machine) with hardware, and Java processors emerge as the times require. Java SoC integrates modules such as Java processor core, system bus and peripheral controller into a small chip, which not only significantly improves the running speed and processing capacity of Java programs, but also integrates rich peripheral interfaces, providing an System design, especially embedded Java computing ...

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): G06F9/50G06F12/02
Inventor 徐永键陆许明刘征杨德胜梁猷张煊文
Owner GUANGZHOU KINGRAY INFORMATION TECH
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