RFR: 8269870: PS: Membar in PSPromotionManager::copy_unmarked_to_survivor_space could be relaxed

Kim Barrett kbarrett at openjdk.java.net
Mon Jul 12 09:33:58 UTC 2021


On Mon, 12 Jul 2021 08:36:38 GMT, Hamlin Li <mli at openjdk.org> wrote:

> I thought it's because of some log message in PS which needs to refer to forwardee's content, and the log messages is now gone.

Those were the immediately obvious reasons why it didn't work.  But there was also discussion about the problems that could arise because the forwardee was being returned to various places that might also have problems.  And even if they didn't at the time, there was concern over the fragility that would result, as those places using the "copied" object would need to always be careful about touching the contents of the object.

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

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



More information about the hotspot-gc-dev mailing list