Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for implementing memory garbage collection by java virtual machine

A java virtual machine and memory recycling technology, applied in multi-programming devices, memory address/allocation/relocation, etc., can solve the problems of limited application scope, reduced system availability, and complex memory management mode, and achieve the effect of improving availability

Active Publication Date: 2016-09-21
CHINA UNITED NETWORK COMM GRP CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The problem with RTSJ is that it modifies the specification of ordinary Java, and the scope of application is limited
Moreover, the RTSJ memory management mode is too complicated, which puts forward many requirements and restrictions on developers. For example, developers need to specify the memory space used by real-time tasks, and prevent objects from being referenced between different regions beyond certain limits. This region-based The memory management method needs to check the validity of object references between different regions at any time, which brings a lot of extra overhead and reduces the availability of the system

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 implementing memory garbage collection by java virtual machine
  • Method and device for implementing memory garbage collection by java virtual machine
  • Method and device for implementing memory garbage collection by java virtual machine

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] In order to make the purpose, technical solution and advantages of the present invention more clear, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined arbitrarily with each other.

[0035]The steps shown in the flowcharts of the figures may be performed in a computer system, such as a set of computer-executable instructions. Also, although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that shown or described herein.

[0036] figure 1 A schematic diagram of the composition and structure of the device for implementing memory garbage collection for the Java virtual machine of the present invention, as figure 1 As shown, it at least includes a monitoring unit, a 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 Java virtual machine to realize memory garbage collection, including monitoring the memory garbage collection of the system, creating a new Java application environment before the JVM triggers the global memory garbage collection, and converting the follow-up of the original Java application system environment External requests are forwarded to the JVM of the new Java application environment. The present invention creates a new JVM application environment before the JVM triggers global memory garbage collection, so that the subsequent external requests in the original JVM application environment are transferred to the new JVM before the global memory garbage collection, thereby eliminating the need for the original JVM The impact of the "fake death" phenomenon on application execution also improves the availability of the system.

Description

technical field [0001] The invention relates to memory garbage collection technology, in particular to a method and device for realizing memory garbage collection by a Java virtual machine (JVM, Java Virtual Machine). Background technique [0002] The Java Virtual Machine (JVM, Java Virtual Machine) has instructions to allocate memory, but not to release memory. The JVM itself is responsible for deciding how and when to release memory occupied by objects that are no longer referenced by the application system. Usually, this task is done by the garbage collector in the JVM. The main function of the garbage collector is to automatically reclaim the memory occupied by objects that are no longer referenced according to a certain memory garbage collection algorithm. In addition, the garbage collector may also move objects that are still referenced to reduce memory fragmentation. Memory management in the JVM is essentially implemented through different garbage collectors. The ...

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 Patents(China)
IPC IPC(8): G06F12/02G06F9/46
Inventor 王少锋张云勇王笑帝刘明辉陶冶
Owner CHINA UNITED NETWORK COMM GRP CO LTD