MEMORY ALLOCATION METHOD, PROGRAM, AND SYSTEM

[Problem] To reduce overhead for creation of a buffer for accessing an off heap by Java (R) processor or the like using a predetermined interface such as JNI. [Solving Means] In the invention, one or multiple ByteBuffers, which are particularly referred to as phantom ByteBuffers, are created in adva...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: THOMAS R GISSEL, HORII HIROSHI
Format: Patent
Sprache:eng ; fre ; ger
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:[Problem] To reduce overhead for creation of a buffer for accessing an off heap by Java (R) processor or the like using a predetermined interface such as JNI. [Solving Means] In the invention, one or multiple ByteBuffers, which are particularly referred to as phantom ByteBuffers, are created in advance. The phantom ByteBuffer have sizes as large as possible within the range of the specification. The address and size of the phantom ByteBuffer are set so as to cover an assumed range of memory block addresses in an off heap. Upon receipt of a request from the system for creating a ByteBuffer with designation of an address and size, the program having prepared the phantom ByteBuffers can create the requested ByteBuffer just by slicing a certain phantom ByteBuffer with the requested address and size by use of a method of the ByteBuffer with relatively low overhead.