Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 364872

Summary: Memory Improvement: DescriptorQueryManager empty ConcurrentHashMaps
Product: z_Archived Reporter: Rick Barkhouse <rick.barkhouse>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed patch
none
Proposed patch
none
Proposed patch none

Description Rick Barkhouse CLA 2011-11-25 15:56:20 EST
DescriptorQueryManager holds two instances of ConcurrentFixedCache (which contains a ConcurrentHashMap), that could be lazily-initialized to improve memory usage.

In MOXy testing on a SpecJ model, these empty collections retained around 185k in memory.
Comment 1 Rick Barkhouse CLA 2011-11-25 15:58:16 EST
Created attachment 207560 [details]
Proposed patch
Comment 2 Rick Barkhouse CLA 2011-11-25 15:59:48 EST
Created attachment 207561 [details]
Proposed patch
Comment 3 Rick Barkhouse CLA 2011-12-16 13:43:02 EST
Created attachment 208499 [details]
Proposed patch
Comment 4 Rick Barkhouse CLA 2011-12-19 10:51:11 EST
Reviewed by James Sutherland and checked into main.
Comment 5 Eclipse Webmaster CLA 2022-06-09 10:27:13 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink