Method, apparatus, and program to determine the mutability of an object at loading time
Abstract
A mutability mechanism is provided for parsing an object at loading time. The mutability mechanism inserts a property into the object that indicates whether or not the object is immutable. The mutability mechanism looks at the code for the object and determines whether any other objects can modify the object. If the object cannot be modified after it is created, then the new property is set to indicate that the object is immutable; otherwise, the property is set to indicate that the object is mutable. This property can be inspected at runtime when a call is made to a program object. If an object passed as an argument is marked mutable, a clone of this object must be passed to the callee. However, if an object passed as an argument is marked immutable, a simple reference to the object may be passed as an argument to the callee.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 26 · Forward citations: 27.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method in a data processing system for loading a class, the method comprising: loading a class; inserting an immutability flag into the class; determining whether the class is immutable; setting the immutability flag if the class is immutable; receiving a request to invoke a server application; examining an argument in the request; if the argument is an object, identifying the class that describes the object; determining whether an immutability flag that is inserted into the class that describes the object is set, wherein the object is immutable if the immutability flag inserted into the cla
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 27 total)
References Cited — Backward Prior Art (26)
Non-Patent Literature (5)
- Agesen, O. et al., "Adding Type Parameterization to the Java Language", SIGPLAN Notices, vol. 32, No. 10, pp. 49-65, Oct. 1997, abstract.
- Chuang et al., Non-Intrusive Object Introspection in C++: Architecture and Application, Proceedings of the 1998 International Conference on Software Engineering. Forging New Links (Cat.No. 98CB36139), pp. 312-321, Published Los Alamitos, CA, USA, 1998, xiv+521 pp., abstract.
- Cohen, GA et al., "Automatic Program Transformation with JOIE", Proceedings of the USENIX 1998 Annual Technical Conference, pp. 167-178, Published Berkeley CA USA 1998, vi+282pp., abstract.
- Czajkowski, G., "Application Isolation in the Java(TM) Virtual Machine", SIGPLAN Notices, vol. 35, NO. 10, pp. 354-366, Oct. 2000, abstract.
- Hsieh, Cha et al., "Java Bytecode to Native Code Translation: the Caffeine Protoype and Preliminary Results", Proceedings of the 29<SUP>th </SUP>Annual IEEE/ACM International Symposium on Microarchitecture. MICRO-29. (Cat.No. 96TB100075), pp. 90-97, Published Losa Alamitos, CA, USA, 1996 xii+359 pp.