Byte-code file reconstruction-based Java type online updating method

A bytecode file and update method technology, applied in the field of efficient Java class online update, can solve problems such as recompilation, and achieve the effect of reducing overhead and improving efficiency

Active Publication Date: 2011-02-02
山东中创软件商用中间件股份有限公司
View PDF1 Cites 29 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Although its bytecode has not changed, and the referenced methods also exist in the old and new versions, but because the dynamic class loading mechanism of the JVM will assign the metadata corresponding to the new class to a new offset, this leads to the update of the referenced method. The machine code of the method needs to be recompiled

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
  • Byte-code file reconstruction-based Java type online updating method
  • Byte-code file reconstruction-based Java type online updating method
  • Byte-code file reconstruction-based Java type online updating method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0095] The present invention will be further described below in conjunction with specific examples.

[0096] Such as Figure 6 It shows the content of classes in different versions of the program before and after a Java program update. The left figure lists the classes in the version one program, and the right figure lists the classes in the version two program.

[0097] During the analysis phase, the figure 2 In the process shown, first, the classes in version 1 are topologically sorted according to the inheritance relationship, and then the order of taking out and comparing is A→B→C→D→E.

[0098] according to figure 2 The process of taking out A determines that the same class A’ exists in version 2, and then judges whether the class structure of class A has changed. according to image 3 In the process, before and after the update of the parent class of A, the Object class has not changed, the field of class A has not changed, and the size of the object has also not c...

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 byte-code file reconstruction-based Java type online updating method. In the method, when Java programs are updated dynamically, binary files are analyzed and reconstructed; and the method is combined with a new VM dynamic loading type mechanism to reduce the expense caused by recompiling a machine code by the dynamic updating during the time of running, and improve the updating efficiency.

Description

technical field [0001] The invention belongs to the field of computer applications, in particular to an efficient Java class online update method based on bytecode file reconstruction. Background technique [0002] Software is a product created by human brainwork. There is no perfect software in the world, and it is difficult for developers to deliver a software system that does not need to be improved overnight. Software always requires developers to maintain it continuously, such as bug fixes, efficiency improvements, function enhancements, and code refactoring. [0003] Traditional software updates need to terminate the running software, and in some occasions, especially for more important software systems, the cost of terminating the running software is very high. For this reason, a kind of online software updating technology is just obviously very important. The software update system based on JVM (Java Virtual Machine) has high research value because of the easy-to-...

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/445
CPCG06F8/65G06F9/45504
Inventor 曹春马晓星吕建
Owner 山东中创软件商用中间件股份有限公司
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