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

Transaction processing method and Java virtual machine

A java virtual machine and business processing technology, applied in the computer field, can solve problems such as wasting memory resources and achieve the effect of saving memory resources

Inactive Publication Date: 2011-11-23
HUAWEI TECH SERVICE
View PDF2 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The embodiment of the present invention provides a business processing method and a Java virtual machine to solve the problem of wasting memory resources in the existing module unloading method

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
  • Transaction processing method and Java virtual machine
  • Transaction processing method and Java virtual machine
  • Transaction processing method and Java virtual machine

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0028] figure 1 A flowchart of an embodiment of the business processing method provided by the present invention, such as figure 1 As shown, the method includes:

[0029] S101. Receive a request from a component to invoke a certain function, and invoke a module object implementing the function through a weak reference object.

[0030] S102. Ret...

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 embodiment of the invention provides a transaction processing method and a Java virtual machine. The method comprises the steps of: receiving a request of a unit for calling a certain function, and calling a module object capable of realizing the function through a weak reference object; returning the module object to the unit so as to carry out transaction processing; and judging whether the module object is weakly reachable, if so, clearing the module object. According to the transaction processing method and the Java virtual machine provided by the embodiment of the invention, when a module management container receives the request for calling a set-up function sent by the unit, the module object capable of realizing the set-up function is called through the weak reference object, and after the unit calls the module object to perform transaction processing, if the module object is weakly reachable, the module object can be cleared by the virtual machine, so that the memory resource occupied by the module can be released in time, and the memory resource is saved.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a business processing method and a Java virtual machine. Background technique [0002] In a virtual machine using Java or other programming languages, the virtual machine judges whether the memory can be released according to the garbage collection algorithm. The judgment method is the reachability of the object. If the object is reachable, it cannot be released. If the object is unreachable need to be released. When the virtual machine is running, objects directly or indirectly referenced from the root set of references are reachable objects, and other objects are unreachable objects. Unreachable objects are garbage and need to be collected to free memory. [0003] Usually, "Root set of references" is used as the starting point of garbage collection. Objects that can be traversed are reachable, and objects that cannot be traversed are unreachable. Among them, "Root set of r...

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/455G06F9/445
Inventor 梁孔荣
Owner HUAWEI TECH SERVICE
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