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

Memory management method for intelligent contract based on JAVA

A memory management and smart contract technology, applied in the blockchain field, can solve problems such as affecting execution efficiency

Inactive Publication Date: 2020-03-24
HANGZHOU QULIAN TECH CO LTD
View PDF6 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, frequent loading and recycling of classes in the blockchain scenario will seriously affect execution efficiency

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
  • Memory management method for intelligent contract based on JAVA
  • Memory management method for intelligent contract based on JAVA
  • Memory management method for intelligent contract based on JAVA

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] The purpose and effect of the present invention will become more obvious by describing the present invention in detail according to the accompanying drawings and specific embodiments.

[0021] The JAVA-based intelligent contract life cycle management method of the present invention includes the convenience of caching user contract classes and implementing different garbage collection mechanisms for different classes, wherein,

[0022] For caching user contract classes, when the JAVA virtual machine receives a request for user contract class resolution, it obtains the user's contract deployment address and contract class, and stores the user's contract class in a cache collection in memory, as described The index of the cache collection is the contract deployment address. When the user calls the contract class at this contract deployment address next time, the contract class will be taken out from the memory, and the static field of the contract class will be reset and re...

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 memory management method for an intelligent contract based on JAVA. According to the method, a JAVA virtual machine is modified, the contract class of the user is cached in the memory, the function that the contract byte code does not need to be repeatedly analyzed when the user sends the request every time is achieved, and meanwhile by modifying a junk collector mechanism of the JAVA virtual machine, management of the life cycle of the contract class is achieved, and the recovery mechanism of the contract class is controlled. According to the method, the memory modeland the garbage collection mechanism of the JAVA virtual machine are modified, so that the virtual machine is more efficient when processing JAVA contract codes, and the processing efficiency of thevirtual machine is improved.

Description

technical field [0001] The present invention relates to blockchain technology, in particular to a memory management method of a JAVA-based smart contract. Background technique [0002] A smart contract is an assembly language programmed on the blockchain. The term was proposed by Nick Szabo, an interdisciplinary legal scholar. His definition of a smart contract is "a smart contract is a set of commitments defined in digital form, including contract Participants can execute the agreement on these commitments.” In other words, a smart contract is a contract that can be automatically executed when certain conditions are met on a computer system. Usually people don't write the bytecode themselves, but compile it from a higher level language, such as Java or similar special purpose language. [0003] At present, there are certain defects in the memory management method of the smart contract using JAVA. Every time the user calls the contract, he needs to deserialize the contract ...

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/455
CPCG06F9/45558G06F2009/45583
Inventor 邱炜伟尹可挺李伟宋宇
Owner HANGZHOU QULIAN TECH 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