Method and device for garbage collection in java card

A garbage and operating technology, which is applied in the field of smart cards, can solve problems such as taking up too much time, and achieve the effect of improving functions, saving time and improving performance

Active Publication Date: 2011-12-07
BEIJING WATCH DATA SYST
View PDF3 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The present invention provides a method and device for garbage collection in a Java card, which is used to actively perform garbage collection on the Java card, and adopts a staged garbage collection method, so that the garbage collection operation is ...

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 garbage collection in java card
  • Method and device for garbage collection in java card
  • Method and device for garbage collection in java card

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0018] In order to improve the efficiency of garbage collection in the Java Card and realize the purpose of garbage collection in the Java Card actively and in stages, the embodiment of the present invention provides a method and device for garbage collection in the Java Card. The method is as follows: During the process, monitor the object creation operation and the assignment operation to the static object. If it is determined according to the assignment operation that the created object is not referenced by the static object, the object that is not referenced by the static object will be determined as a garbage object. , recycle the garbage objects in the Java Card.

[0019] Preferred embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings.

[0020] as attached figure 1 As shown, in the embodiment of the present invention, the device of garbage collection in the Java card mainly includes the following processing ...

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 recycling garbage in a Java card, which are used for actively recycling garbage in the Java card in a partial step garbage recycling manner, so that the garbage is recycled in multiple small time slices, the problem that the one-step recycling of all garbage in the Java card occupies too much time in the prior art is solved, and the efficiency for recycling the garbage in the Java card is increased. The method comprises the following steps of: in a function executing process, monitoring object creating operation and value assignment operation for static objects, confirming objects which are not quoted by the static objects as garbage objects if the created objects are confirmed as objects which are not quoted by the static objects according to the value assignment operation, and recycling the garbage objects in the Java card when function execution is over. The invention further discloses a device for recycling garbage in a Java card.

Description

technical field [0001] The invention relates to the technical field of smart cards, in particular to a method and device for collecting garbage in a Java card. Background technique [0002] The Java card is a smart card that can run Java program codes. In the Java card, the operating environment required for the application program (Applet) to run, the virtual machine responsible for interpreting the Java voice, and the standard system application programming interface (Application Programming Interface, API), which provides guarantees for the running of Applets on Java Cards, where Applets are specific applications running on Smart Cards. [0003] One of the great advantages of the Java language is that garbage objects (objects that are no longer used) can be independently determined and recycled in the Java operating environment. Specifically, the Java heap is the data area of ​​Java, and the instance object of the Java class allocates space from the Java heap. On a perso...

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/44G06F9/52
Inventor 宋浩
Owner BEIJING WATCH DATA SYST
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