JDK-8088286 : Managed Resources should have a "save yourself" callback as an alternative to marking textures Permanent
  • Type: Bug
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: 8
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2014-04-02
  • Updated: 2018-09-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Relates :  
Description
Currently the MR mechanism offers only a "Permanent" flag to prevent asynchronous reclamation of resources, but many uses could probably save aside the contents of the resource in a more compact form in another resource space (i.e. reading a hw texture back to heap).  With a callback, existing cases of Permanent resources could instead be "purged" when the resource memory is low and reconstituted later.

This would be especially helpful for Canvas objects that fall into disuse, but still hold onto a permanent allocation of vram.  WebView layers may also benefit from a mechanism like this since most of those are permanent as well with varying levels of "reconstructability".
Comments
I'm going with 9 for now until/unless we come up with a real world scenario where this makes a concrete difference.
29-05-2014

P4 bugs can just be moved without any process. Would this be a good 8u40 candidate? If not, then 9 is fine.
29-05-2014

Do we need a deferral for this, or can we just mark it 9 now?
29-05-2014

I changed this to 8u20. As long as it does not involve API, then it is an interesting internal feature that could be used when we run out of resources as an alternative to crashing. Jim, feel free to mark this 8u40 or 9.
03-04-2014

I marked this for 9 (by default), but it might be a good 8u20 or 8u40 candidate.
02-04-2014