Add an InstanceCache class that saves a mapping of memory addresses with proxy object instances in a HashMap. Expired entries are removed with toggle references.
This also removes the fromAddress method from the generated class definitions. Proxy objects can now simply be instantiated with InstanceCache.get(address, fallbackConstructor) or if you don't want to have a cached object, simply with the default MemoryAddress constructor in the proxy class.
Add an InstanceCache class that saves a mapping of memory addresses with proxy object instances in a HashMap. Expired entries are removed with toggle references.
This also removes the
fromAddress
method from the generated class definitions. Proxy objects can now simply be instantiated withInstanceCache.get(address, fallbackConstructor)
or if you don't want to have a cached object, simply with the default MemoryAddress constructor in the proxy class.