Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for class loading and method for reorganizing class archived file

A technology of archiving files and reorganization, which is applied in the direction of program control devices, program loading/starting, instruments, etc., which can solve problems such as low memory usage efficiency, program performance impact, and system resource occupation, so as to improve usage efficiency and reduce code redundancy. The effect of rest and loading time

Inactive Publication Date: 2009-09-02
INT BUSINESS MASCH CORP
View PDF1 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, this approach requires dedicated memory for loading class files, so it takes up precious system resources, and therefore memory usage is less efficient
Especially in environments with limited memory resources such as mobile devices, program performance may also be greatly affected by this

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
  • Method and device for class loading and method for reorganizing class archived file
  • Method and device for class loading and method for reorganizing class archived file
  • Method and device for class loading and method for reorganizing class archived file

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] In the following, the method and device for loading a class file into a virtual machine according to the present invention will be described in detail first with reference to the accompanying drawings through embodiments. It should be noted that since "interface" is a special abstract class, in this specification and claims, when the term "class" is mentioned, "interface" is usually also included.

[0029] In the following, reference will be made to Figures 1 through image 3 The method for loading a class into a virtual machine of the present invention is described in detail through an embodiment.

[0030] Referring to FIG. 1 , firstly, in step 101 , the class is divided into a frame describing the basic information of the class and a content describing the specific information of the class. The purpose of class division is to reduce the granularity of class loading in the present invention and make the unit of class loading smaller.

[0031] In order to illustrate 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 provides a method and a device for loading class to a virtual machine and a method and a device for reorganizing class archived file. The method for loading class to the virtual machine comprises the following steps of: before the class loading, organizing the class archived file, and the organized class archived file comprises a class reducing part; and at the time of class loading,only loading the class reducing part of the class archived file to the virtual machine. By loading the class reducing part in the organized class archived file firstly at the time of class loading, t he method reduces the code redundancy, reduces the loading time, and reduces the used memory resource.

Description

technical field [0001] The present invention generally relates to virtual machine technology, and more specifically, the present invention relates to a method and device for loading classes into a virtual machine and a method and device for reorganizing class archive files. Background technique [0002] JAVA is a cross-platform tool, which has good portability and has nothing to do with the platform, so it is widely used in various fields. The virtual machine is the engine of the JAVA application program, which is used to interpret the compiled application program, and it plays a vital role in the platform-independent characteristics. The application program written in JAVA language is not compiled into standard executable code, but compiled into bytecode, which is a binary form suitable for execution by a virtual machine, and is packaged and saved in a class archive file (ie jar file) . When the application program is executed, the class loader loads the bytecode of the J...

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
CPCG06F9/44521
Inventor 李欣慧迟长燕肖文鹏
Owner INT BUSINESS MASCH CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products