Method and system for dynamically loading data structures into memory with global constant pool

a data structure and global constant technology, applied in the field of loading data structures into memory, can solve the problem that constants may require a significant amount of memory

Inactive Publication Date: 2005-11-22
ALTO DYNAMICS LLC +1
View PDF28 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

These constants may require a significant amount of memory on the local system that is running the Java program.

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0017]The following is a description of embodiments of the invention. The embodiments shown help to illustrate the invention. However, it is not intended that the invention be limited to the precise embodiments shown.

[0018]Java classes are stored in Java class files. Each class typically includes a constant pool, which contains a set of constants used by the class. Constants from one class are often duplicated in other classes. This duplication can result in a waste of memory if the constants are stored redundantly in the system's memory. The Java Virtual Machine loads classes to be executed from the class files. According to one embodiment of the invention, a global constant pool is created in order to avoid waste of memory for redundantly stored constants. When a class is loaded, the global constant pool is checked to determine whether any of the constants in the class are already in the global constant pool. Such constants are not stored in the constant pool. Constants from the c...

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

A method of operating a computer involving data structures in a set of data structures. As unloaded data structures are needed during runtime, a data structure is received from a first memory. The data structure includes one or more sets of instructions and one or more constants. Instructions from the data structure are stored in a first portion of a second memory, which comprises RAM. Constants from the data structure are stored in a second portion of the second memory if only if the respective constant has not been stored in the second portion of the second memory. Indexes in instructions that reference the constants are modified to correspond to the respective locations of the constants in the second portion of the second memory, and at least some instructions from the data structure are read and executed from the RAM. Also described is a computer system including a memory and logic that, for classes in a set of classes, receives a class from a class file and stores constants from the class in a second portion of the memory if only if the respective constant has not been stored in the second portion of the memory.

Description

CROSS REFERENCE TO RELATED APPLICATION[0001]This application is related to application Ser. No. 09 / 347,037, filed Jul. 2, 1999, now abandoned, entitled, Method and System for Global Constant Management, which is hereby incorporated herein by reference in its entirety.BACKGROUND[0002]1. Field of the Invention[0003]The invention relates to loading data structures into memory, in particular to loading data structures including instructions and constants.[0004]2. Description of Related Art[0005]Java is an object oriented programming language, which is often used in a network environment, for example, the Internet. Java's source code is written, and then the source code is compiled into a series of class files. The class files can be stored remotely, for example on a server and then be loaded dynamically when needed on a local system. The class files include bytecode, a set of instructions lower level than the original Java source code, yet higher level than code specific to a particular...

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(United States)
IPC IPC(8): G06F9/45G06F9/445
CPCG06F9/445G06F9/44557
Inventor HARSCOET, PHILIPPE
Owner ALTO DYNAMICS LLC
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