Integrated: 8253763: ParallelObjectIterator should have virtual destructor

Per Liden pliden at openjdk.java.net
Tue Sep 29 08:57:10 UTC 2020


On Tue, 29 Sep 2020 07:06:31 GMT, Per Liden <pliden at openjdk.org> wrote:

> The ParallelObjectIterator should have virtual destructor, since implementations of
> CollectedHeap::parallel_object_iterator() returns the base type, which is later passed to the delete operator.
> Today both G1 and Shenandoah leaks memory here. I noticed this bug when when implementing
> ZCollectedHeap::parallel_object_iterator(). Bug was introduced in JDK-8215624.

This pull request has now been integrated.

Changeset: 6d19fe65
Author:    Per Liden <pliden at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/6d19fe65
Stats:     1 line in 1 file changed: 1 ins; 0 del; 0 mod

8253763: ParallelObjectIterator should have virtual destructor

Reviewed-by: shade, stefank

-------------

PR: https://git.openjdk.java.net/jdk/pull/395



More information about the hotspot-gc-dev mailing list