[PATCH] Use #valueOf()-methods in Unsafe-based FieldAccessors (original) (raw)
Andrej Golovnin golovnin at gmx.net
Tue May 1 19:33:52 UTC 2012
- Previous message: Code Review Request: 7165118: (prefs) AbstractPreferences.remove(null) does not throw NPE
- Next message: [PATCH] Use #valueOf()-methods in Unsafe-based FieldAccessors
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi all,
Is there some reason for not using #valueOf-methods from wrapper classes in Unsafe-based FieldAccessors in sun.reflect-package (see the attached patch)?
The main motivation for this patch is to reduce memory consumption in applications which make heavy use of reflection API (e.g. apps which use ORM solutions).
The patch does not modify Unsafe-based FieldAccessors for double and float fields as the wrapper classes does not provide caching for fields of this types.
Best regards Andrej Golovnin
- Previous message: Code Review Request: 7165118: (prefs) AbstractPreferences.remove(null) does not throw NPE
- Next message: [PATCH] Use #valueOf()-methods in Unsafe-based FieldAccessors
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]