Integrated: 8317240: Promptly free OopMapEntry after fail to insert the entry to OopMapCache

Zhengyu Gu zgu at openjdk.org
Thu Oct 5 14:24:53 UTC 2023


On Thu, 28 Sep 2023 12:27:52 GMT, Zhengyu Gu <zgu at openjdk.org> wrote:

> In OopMapCache::lookup(), after fail to insert newly created OopMapEntry to the cache, the new entry can be free immediately, because it is not published, not accessible by other thread.
> 
> The patch also refactored code a bit to reduce duplicate.
> 
> Test:
>    hotspot_gc on MacOSX (fastdebug and release)

This pull request has now been integrated.

Changeset: a8eacb31
Author:    Zhengyu Gu <zgu at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/a8eacb31ab8466f50a939d6748dbdd1560516878
Stats:     17 lines in 1 file changed: 6 ins; 5 del; 6 mod

8317240: Promptly free OopMapEntry after fail to insert the entry to OopMapCache

Reviewed-by: coleenp, fparain

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

PR: https://git.openjdk.org/jdk/pull/15963


More information about the hotspot-runtime-dev mailing list