SERIALIZATION OF PRE-INITIALIZED OBJECTS

    公开(公告)号:CA2759516C

    公开(公告)日:2019-12-31

    申请号:CA2759516

    申请日:2011-11-24

    Abstract: An illustrative embodiment of a computer-implemented process for serialization of pre-initialized objects receives source code definitions of a class, identifies a set of constants associated with the class in the source code to form a set of identified constants, creates a result object for each object in the set of identified constants and compiles the source code into a compiled form of the class. The computer-implemented process further serializes each result object into a resource file associated with the class to form a set of serialized objects and replaces, in the compiled form of the class, each reference to a respective constant associated with the class from the set of identified constants with a corresponding dynamic instruction using a respective serialized object in the set of serialized objects.

    Inkrementelles Entladen von Klassen in einem auf Bereichen beruhenden Speicherbereiniger

    公开(公告)号:DE112012000365T5

    公开(公告)日:2013-10-17

    申请号:DE112012000365

    申请日:2012-02-06

    Applicant: IBM

    Abstract: Es wird ein Verfahren zum inkrementellen Entladen von Klassen unter Verwendung eines auf Bereichen beruhenden Speicherbereinigers beschrieben. In einer Ausführungsform beinhaltet ein derartiges Verfahren das Pflegen eines gemerkten Satzes für einen Klassensatz. Der gemerkte Satz gibt an, ob Instanzen der Klasse in einem oder mehreren Bereichen in einem Hauptspeicher enthalten sind und in welchen Bereichen die Instanzen enthalten sind. Beim Durchführen eines inkrementellen Speicherbereinigungsprozesses für eine Teilmenge der Bereiche in dem Hauptspeicher untersucht das Verfahren den gemerkten Satz, um zu ermitteln, ob der Klassensatz Instanzen in Bereichen außerhalb der Teilmenge beinhaltet. Wenn der gemerkte Satz angibt, dass der Klassensatz Instanzen außerhalb der Teilmenge von Bereichen beinhaltet, erkennt das Verfahren den Klassensatz als „aktiv”. Hierdurch wird ausgeschlossen, dass der Klassensatz aus der Teilmenge von Bereichen entladen wird. Ein entsprechendes Computerprogrammprodukt und Vorrichtungen werden auch hierin offenbart.

    SERIALIZATION OF PRE-INITIALIZED OBJECTS

    公开(公告)号:CA2759516A1

    公开(公告)日:2013-05-24

    申请号:CA2759516

    申请日:2011-11-24

    Applicant: IBM CANADA

    Abstract: An illustrative embodiment of a computer-implemented process for serialization of pre-initialized objects receives source code definitions of a class, identifies a set of constants associated with the class in the source code to form a set of identified constants, creates a result object for each object in the set of identified constants and compiles the source code into a compiled form of the class. The computer-implemented process further serializes each result object into a resource file associated with the class to form a set of serialized objects and replaces, in the compiled form of the class, each reference to a respective constant associated with the class from the set of identified constants with a corresponding dynamic instruction using a respective serialized object in the set of serialized objects.

    Incremental class unloading in a region-based garbage collector

    公开(公告)号:GB2501445A

    公开(公告)日:2013-10-23

    申请号:GB201314691

    申请日:2012-02-06

    Applicant: IBM

    Abstract: A method for incrementally unloading classes using a region-based garbage collector is described. In one embodiment, such a method includes maintaining a remembered set for a class set. The remembered set indicates whether instances of the class set are contained in one or more regions in memory, and in which regions the instances are contained. Upon performing an incremental garbage collection process for a subset of the regions in memory, the method examines the remembered set to determine whether the class set includes instances in regions outside of the subset. If the remembered set indicates that the class set includes instances outside of the subset of regions, the method identifies the class set as "live." This will preclude unloading the class set from the subset of regions. A corresponding computer program product and apparatus are also disclosed herein.

    SOFTWARE OBJECT LOCK MANAGEMENT USING OBSERVATIONS

    公开(公告)号:CA2693938A1

    公开(公告)日:2011-08-22

    申请号:CA2693938

    申请日:2010-02-22

    Applicant: IBM CANADA

    Inventor: BURKA PETER W

    Abstract: An illustrative embodiment of a computer-implemented process for software object lock management using observations, loads a class containing class information for a state and a lock count, allocates an instance of an object using the class information for the state to form an instance, receives a lock request associated with the instance, and selects a runtime behavior associated with the instance according to the class information. The computer-implemented process determines whether the lock count is greater than a threshold value, and responsive to a determination that the lock count is not greater than a threshold value, sets the class information for the state to non-locking and removes a lock field from the instance.

Patent Agency Ranking