xmlgraphics-fop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 46319] OutOfMemoryError after generating several thousand pdfs
Date Tue, 02 Dec 2008 23:37:54 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46319





--- Comment #10 from Andreas L. Delmelle <adelmelle@apache.org>  2008-12-02 15:37:53
PST ---
(In reply to comment #9)
> (In reply to comment #7)
> > Is there a way to force their release? 
> 
> Quick fix would be to modify the code, at line 381 in Marker, and change it to:
> 
> attributeCache.put(new java.lang.ref.WeakReference(newInstance), newInstance);
> 

Come to think of it, since it was mentioned as a possible cause, the better
solution may precisely be to use the PropertyCache here. If MarkerAttribute is
made public, then PropertyCache can expose a specialized fetch() for it. In the
end, internally, PropertyCache deals with Object, so can be used to serve any
type. Given that MarkerAttribute can also be classified as a property-related
class, it seems appropriate enough...


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message