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

Method and device for efficient object management

An object management and object technology, applied in the field of java cards, can solve problems such as low efficiency, complicated operation process, and time-consuming

Active Publication Date: 2014-07-30
FEITIAN TECHNOLOGIES
View PDF5 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Therefore, in the object management method based on the object table in the java card virtual machine, the java card virtual machine needs to perform two table lookup operations, and the operation process is complicated, inefficient, and time-consuming

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 efficient object management
  • Method and device for efficient object management
  • Method and device for efficient object management

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0180]Embodiment 1 of the present invention provides a method for efficient object management, such as figure 1 As shown, the method includes:

[0181] Step S1: the java card virtual machine receives an instruction from the current application program, judges the type of the instruction, and executes step S2 if it is an instruction to create an object, and executes step S5 if it is an instruction to modify an object;

[0182] Step S2: The java card virtual machine obtains the offset address of the application instance corresponding to the current application program according to the object creation instruction, uses the application instance at the offset address as the current application instance, and obtains the object size, object type and object according to the object creation instruction address location;

[0183] Step S3: The java card virtual machine obtains the starting offset address of the remaining space of the object heap from the system information;

[0184] St...

Embodiment 2

[0188] Embodiment 2 of the present invention provides a method for efficient object management, such as figure 2 As shown, the method includes:

[0189] Step 101: The java card virtual machine receives an instruction from the current application program, and judges the type of the instruction. If it is an instruction to create an object, then execute step 102. If it is an instruction to modify an object, then execute step 106. If it is an instruction to delete a package, then execute step 109. If it is an instruction to garbage collect Instruction then executes step 110;

[0190] Specifically, before this step, the java card virtual machine receives the application selection instruction sent by the user, obtains the application ID according to the application selection instruction, searches for the corresponding application program according to the application ID, and determines whether the application program corresponding to the application ID is found. , if yes, use the f...

Embodiment 3

[0247] Embodiment 3 of the present invention provides a kind of scan pack heap on the basis of embodiment 2, calculates pack heap fragment according to the offset address of the component in the pack heap, the method for merging pack heap fragment, such as Figure 4 As shown, the method includes:

[0248] Step 109-1: The java card virtual machine obtains the highest offset address of the packet heap, and uses it as the current offset address;

[0249] In this embodiment, the components in the package heap are packages, and the package heap is used from high address to low address; the component on the current offset address is the current component, and the current offset address minus the size of the current component is the offset of the current component initial address;

[0250] Step 109-2: The java card virtual machine judges whether the current offset address is greater than the initial offset address of the remaining space in the packet heap, if yes, execute step 109-3...

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 method and device for efficient object management. The method comprises the following steps: 1, receiving an instruction from a present application program through a java virtual machine, performing step 2 if the instruction is an object establishment instruction, and performing step 5 if the instruction is an object modification instruction; 2, acquiring a present application case, the object size, the object type and the object address position according to the object establishment instruction; 3, acquiring the initial deviation address of the residual space of an object heap from system information; 4, establishing an object according to the object size and the object type, updating the initial deviation address of the residual space of the object heap, storing the deviation address of the established object into the present application case, and returning to the step 1; 5, acquiring an object deviation address, the modification position and the modification content according to the object modification instruction; 6, modifying data in the modification position of the object on the object deviation address into the modification content, and returning to the step 1.

Description

technical field [0001] The invention relates to the technical field of java cards, in particular to a method and device for efficient object management. Background technique [0002] Objects are used in the java card to save some data. The objects include object headers and data fields. The object headers and data fields can be stored separately or continuously. The object header and data fields of permanent objects are stored sequentially in EEPROM; the object header and data fields of temporary objects are stored separately, wherein the object header is stored in EEPROM, and the data field is stored in RAM. The object headers of permanent objects and temporary objects are arranged in the order of creation in EEPROM. When the java card runs, new objects need to be created, and then these objects are managed. [0003] At present, in the object management method based on the object table in the java card virtual machine, the java card virtual machine includes a sub-object t...

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/455
Inventor 陆舟于华章
Owner FEITIAN TECHNOLOGIES
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