Garbage collection method for mixed mode execution engine

A garbage collection, mixed-mode technology, applied in the direction of program startup/switching, multi-programming devices, etc.

Inactive Publication Date: 2012-04-11
FUDAN UNIV
View PDF1 Cites 15 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

And there is a working mode of mixed execution of the two, so how to correctly design and implement the Java garbage collector in the mixed execution mode has become an urgent problem to be solved

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 collection method for mixed mode execution engine
  • Garbage collection method for mixed mode execution engine
  • Garbage collection method for mixed mode execution engine

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0047] The present invention designs and realizes above-mentioned dynamic compiling technology based on register mapping, and this section makes a detailed introduction to the concrete implementation of this frame, and this example is on the ARM platform, to the DEX bytecode (a kind of DEX byte code that Google designs and develops) Typical bytecode based on register design) is an example of a garbage collector working during compilation and operation.

[0048] The example is that when a Java thread allocates a large memory area, it finds that the current free memory is lower than a certain threshold, so it sends a garbage collection request to the garbage collector to trigger the garbage collection event, and at this time there is another thread ExampleThread It is working, and the code sample fragment is shown in the appendix. The function being executed at this time is the GCSuspendFunc function, so the stack frame of this thread is shown in the appendix image 3 As shown, ...

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 belongs to the technical field of Java compiling running environment design, and particularly discloses a garbage collection method for a mixed mode execution engine. By the garbage collection method, a classical mark and sweep garbage recycling algorithm is adopted, and the whole garbage recycling process is divided into the three stages of thread suspension, stack frame scanning and root set establishment to recycle garbage objects by adopting a mark and sweep algorithm, wherein the mark and sweep algorithm is divided into a mark stage and a sweep stage; and after a garbage collector finishes garbage recycling, garbage recycling zone bits on all threads are cleared, so that the running of originally suspended threads can be continued, and the garbage collection process canbe integrally finished once. By the method, the high-efficiency garbage recycling of a Java virtual machine in a dynamic compiling-interpreter mixed execution mode is realized according to the exception handling characteristics of different execution engines.

Description

technical field [0001] The invention belongs to the technical field of Java operating environment design, and in particular relates to a garbage collection method when different Java execution engines work together. Background technique [0002] Automatic memory management, also known as garbage collector, is a memory management mechanism commonly used in modern programming languages ​​to increase the complexity of program construction, reduce dependencies, and enhance reliability. The garbage collector can solve the problems of "multiple release of memory", "dangling pointer", and "memory overflow" that often appear in manually managed memory languages. As the most widely used object-oriented programming language, Java also regards the garbage collection mechanism as an important aspect of memory management. [0003] At the same time, with the continuous development of network technology, especially the emergence of cloud computing, coupled with the rapid development of em...

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/48
Inventor 杨珉张源彭智俊
Owner FUDAN UNIV
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