A method and device capable of efficient object management
An object management and object technology, applied in the field of java card, can solve the problems of low efficiency, long time, complicated operation process and so on
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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] Ste...
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com