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

A technology of garbage collection and architecture, applied in the field of garbage collection of JavaSoC system, can solve problems such as unpredictable running status, lack of garbage collection, and unpredictable garbage collection time, so as to improve efficiency and save processor resources.

Active Publication Date: 2014-11-05
GUANGZHOU KINGRAY INFORMATION TECH +1
View PDF1 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The GC of the mainstream PC platform has relatively high requirements on system resources, and its running status is generally unpredictable, so it is not suitable for embedded and real-time environments. On the contrary, such systems generally do not have garbage collection functions.
[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 collection starts. This method can realize garbage collection, but for the application in the field of embedded real-time environment, on the one hand, it is impossible to predict the time required for garbage collection; Enough available memory has been reclaimed during the execution of the application program, so it cannot meet the high real-time requirements of the embedded field

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] The garbage collection method of the present invention is aimed at the JavaSoC system based on the stack architecture. This system only supports Java as the target language. 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 domain tables , bytecode table, class structure table, string constant table and JVM redundant information table five parts, such as Figure 5 shown.

[0031] Such as figure 1As shown, the garbage collection method of the JavaSoC system based on the stack architecture of the present invention divides the life cycle of the JavaSoC system into two stages, the system initialization stage and the real-time task stage, a...

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 JavaSoC garbage collection method, specifically, designs a garbage collection method for a JavaSoC system 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. JavaSoC integrates modules such as the 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. Design, especially embedded Java computing and applicat...

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 Patents(China)
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