[rfc] [icedtea-web] enable process-wide caching on windows
Alex Kashchenko
akashche at redhat.com
Wed Sep 5 22:30:59 UTC 2018
On 09/05/2018 02:42 PM, Jiri Vanek wrote:
> On 09/05/2018 12:01 AM, Alex Kashchenko wrote:
>> Hi,
>>
>> This patch enables caching of downloaded JARs on windows. Caching is
>> only process-wide - multiple instances of WebStart apps downloading
>> JARs simultaneously may break caching logic. It still seems to be
>> better than no caching at all:
> Thats deffinitley true.
>>
>> http://cr.openjdk.java.net/~akasko/itw/windows_cache.patch
>>
> The patch looks good, I'm just wondering, can it be done in more
> readable way?
It adds as minimal changes as possible.
> Eg having WindowsLockedFile extending LockedFile or simialrly?
It can be done, but may be non-trivial (OS-wide named mutex looks like
an ideal solution for that, but it cannot be accessed in pure java). I
have no plans to work on this myself.
--
-Alex
More information about the distro-pkg-dev
mailing list