Supercharge Your Innovation With Domain-Expert AI Agents!

Recording tracking method for object memory status based on equivalence class in real-time Java virtual machine

A Java virtual machine and memory state technology, applied in the field of object memory state recording and tracking, can solve problems affecting real-time system performance and increase the difficulty of real-time Java program development, and achieve the effect of improving development efficiency and real-time performance.

Active Publication Date: 2016-01-20
BEIHANG UNIV
View PDF5 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The introduction of object reference rules increases the difficulty of developing real-time Java programs; and the runtime object reference check affects the real-time performance of the system to a certain extent

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
  • Recording tracking method for object memory status based on equivalence class in real-time Java virtual machine
  • Recording tracking method for object memory status based on equivalence class in real-time Java virtual machine

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0012] The present invention will be further described in detail with reference to the accompanying drawings and embodiments.

[0013] The invention is realized on the real-time Java virtual machine platform conforming to RTSJ. First, for each method running on the Java virtual machine, an equivalence class list is established to record the state of the object memory, such as figure 1 shown.

[0014] figure 1 ① represents the equivalence class linked list. All equivalence classes in a method are in this linked list, and each object in a method will be included in a certain equivalence class. In the figure, Alias ​​represents an equivalence class, and object represents an object.

[0015] figure 1 ② represents the equivalence class structure. The equivalence class ID is used to uniquely identify an equivalence class, and this ID is used for operations such as equivalence class merging; in real-time Java, memory information is represented by objects, so memory information ...

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 recording tracking method for object memory statuses based on equivalence class in a real-time Java virtual machine. The method comprises: for each method operating on the Java virtual machine, recording all equivalence classes in the methods in an equivalence class linked list, each object in the methods being included in a certain equivalence class, memory objects representing memory information being included in the equivalence classes; the structure of each equivalence class in the linked list comprising equivalence classes IDs, memory equivalence classes Tags, an object assembly, object member variables, and equivalence class memory statuses, the memory equivalence classes Tags identifying whether the equivalence class is the memory information equivalence class, the equivalence class memory statuses storing the memory regions where the equivalence classes are in; and using the equivalence class linked list to track object memory statuses. The method can record all possible memory statuses of all objects in program, and make preparations for subsequent optimization operation of the real-time virtual machine, for example, elimination of object reference inspection, thereby improving real-time performance.

Description

technical field [0001] The invention belongs to the technical field of Java computer applications, in particular to a method for recording and tracking object memory states based on equivalence classes in a real-time Java virtual machine. Background technique [0002] In the Java real-time specification (RealTimeSpecificationforJava, RTSJ), in order to avoid the impact of the memory garbage collector (GarbageCollector, GC) on real-time performance, RTSJ extends the standard Java heap to define the immortal memory area and scope memory area that are not controlled by GC ; At the same time, in order to avoid the occurrence of dangling references, RTSJ defines the reference rules of objects in different memory areas, and the Java virtual machine will check the correctness of the reference rules for each object assignment statement at runtime. The introduction of object reference rules increases the difficulty of developing real-time Java programs; and the runtime object referen...

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/44G06F11/36
Inventor 冯伟史晓华余恒洋
Owner BEIHANG UNIV
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More