harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aleksey Shipilev" <aleksey.shipi...@gmail.com>
Subject Re: java.lang.ref.ReferenceQueue.enqueue allocates array during GC
Date Wed, 25 Jun 2008 13:01:28 GMT
Hi, Ian!

IMO, linked list is bad for performance, though it solves the problem.
How about accumulating the enqueued objects in some (native,
resizable) VM buffer and flush it after the GC is over?

Thanks,
Aleksey.

On Wed, Jun 25, 2008 at 4:48 PM, Ian Rogers <rogers.email@gmail.com> wrote:
> Hi,
>
> I'm having a problem with java.lang.ref.ReferenceQueue.enqueue in that it
> queues references onto an array during GC, and that this array may need to
> be grown during the GC. Generating new objects during GC is something of a
> gray area, in the VM I'm working with it is not allowed. An alternative is
> to have a field in Reference that allows references to be linked together.
> Should this approach be adopted for all of Harmony or just within our VM?
>
> Thanks,
> Ian Rogers
> --
> http://www.cs.man.ac.uk/~irogers/
>

Mime
View raw message