摘要:
A method and apparatus are provided for management of stored data in the form of data blocks interspersed with free blocks in a fixed size system memory. A compaction procedure, periodically applied to the memory, repositions those data blocks identified (107) as moveable such as to increase the extent of free block contiguity within the memory. The search for a suitable free block (114-117) for housing a relocated data block is sequentially applied for each data block; a data block is moved (118) to a free block if the free block is greater than or equal to the data block size and less than or equal to the size of the data block when added to the size of any free block abutting the original data block position.
摘要:
Bei einem Verfahren in einem portablen Datenträger (10) mit einem volatilen Speicher (50) und einer dynamischen Speicherverwaltung (44) eines Heap-Speicherbereichs (51) des volatilen Speichers (50) kann die Speicherverwaltung (44) zum Bereitstellen von Freispeicher eine automatische Speicherbereinigung des Heap-Speicherbereichs (51) durchführen. Während einer Ausführung einer laufzeitkritischen Prozessoperation auf dem Datenträger (10) wird die automatische Speicherbereinigung von der Speicherverwaltung (44) jedoch deaktiviert (S1), wobei auf Anforderung der laufzeitkritischen Prozessoperation (S2) Freispeicher innerhalb eines die laufzeitkritische Ausführung der Prozessoperation nicht beeinträchtigenden Zeitintervalls bereitgestellt werden kann (S3-S12).
摘要:
In a virtual machine, Java Virtual Machine, or other runtime environment, a system and a method for improving the garbage collection times of the virtual machine memory. The JVM, or a garbage collector operating therein, can estimate, for an area of the memory space, the sum of the pause times for garbage collection of the software objects within the area, and control the garbage collection process so that the sum of the pause times for garbage collection will be lower than a target pause time limit, with a high degree of probability. A preselected compaction area can be pre-compacted to keep the compaction time within the target limit. The garbage collector can also predict the time required for final marking and repeat precleaning until the predicted final marking time is within the limits for pause times, and can improve pause times by redirecting application worker threads to do garbage collector work when entering or leaving the memory subsystem.
摘要:
A method and apparatus for hardware-based dynamic escape detection in managed run-time environments are described. In one embodiment, the method includes the detection of a pointer update of a first object having a global scope. In one embodiment, a single instruction is issued to assert that a scope attribute associated with a target object of the pointer update identifies a global scope. The single instruction may return failure if the scope attribute that is associated with the second object identifies the scope of the second object as local. Verification may include the reading of an object descriptor for the second object to determine whether a scope attribute of the object descriptor indicates that the scope of the second object is local. Once verified, in one embodiment, the second object, and each object reachable from the second object, are converted into global objects. Other embodiments are described and claimed.