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

Method for JAVA card system heap fragment disposal

A technology of defragmentation and heap space, which is applied in the field of smart cards, can solve problems such as reducing the efficiency of system space usage, and achieve the effect of reasonable application

Inactive Publication Date: 2014-07-09
BEIJING CEC HUADA ELECTRONIC DESIGN CO LTD
View PDF4 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

As users replace applications, a lot of space fragments will be generated, which reduces the efficiency of limited system space usage

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 for JAVA card system heap fragment disposal
  • Method for JAVA card system heap fragment disposal
  • Method for JAVA card system heap fragment disposal

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] 1. Traversing the heap space management table, find out the free block with the highest address and the second highest address (concentrate the object domain to the high address).

[0024] 2. Record the moving start flag movFlg (system data of EEPROM);

[0025] 3. Determine the scope of transportation and carry it.

[0026] a)

[0027] If the address range of the highest free block block1 is [empty_addr_L, empty_addr_H],

[0028] The address range of the next highest free block block2 is [empty_addr_l, empty_addr_h]

[0029] The highest address of the moved block move_addr_h=empty_addr_L-1

[0030] The lowest address of the block to be moved is move_addr_l=empty_addr_h-1.

[0031]

[0032] b) Compare the size of the highest address free block and the handling block

[0033] The size of the moving block is less than or equal to the size of the highest address free block: write the moving block directly to the highest address free block.

[0034] If the size of t...

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 relates to a method for JAVA card system heap fragment disposal. The method comprises a first step of traversing a heap free space management table, and finding a free block at a highest address and a free block at a second highest address; a second step of carrying contents between the two free blocks to the position of the free block at the highest address; a third step of merging the two free blocks, and modifying information of the two free blocks in the heap management table; a fourth step of modifying object content addresses in JAVA card object head information; and a fifth step of returning to the first step until only one free block remains in the heap free space management table. According to the method for JAVA card system heap fragment disposal, high-efficiency disposal is performed on heap space fragments caused by object deletion, and a limited storage space of a JAVA smart card is applied more rationally.

Description

technical field [0001] The invention relates to the field of smart cards, in particular to a JAVA card system heap space defragmentation method and object management method. Background technique [0002] Since the birth of smart cards, for decades, with the development of integrated circuit technology, computer technology and information security technology, it has developed from contact cards to radio frequency cards and even multi-interface cards, from single application to multi-application, with more varieties and technologies. Also more advanced. China's smart card industry and its application began in the early 1990s and developed with the "Golden Card Project" launched by the Chinese government. It has a history of more than ten years. At present, smart cards have been promoted and applied in more government departments and industries in China, including resident ID cards, electronic passports, social security cards, transportation cards, fuel cards, telephone cards,...

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): G06F12/02
Inventor 芦蓉刘宏梅
Owner BEIJING CEC HUADA ELECTRONIC DESIGN CO LTD
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