RFR: 8360540: nmethod entry barriers of new nmethods should be disarmed

Albert Mingkun Yang ayang at openjdk.org
Wed Jul 2 15:30:40 UTC 2025


On Wed, 25 Jun 2025 14:55:03 GMT, Martin Doerr <mdoerr at openjdk.org> wrote:

> Note that rebuild_code_roots() disarms all nmethods during G1FullCollector::complete_collection, now.

Would that interfere with the coldness estimate?


  // 2. Used at the end of (stw/concurrent) marking so that nmethod::_gc_epoch
  //    is up-to-date, which provides more accurate estimate of
  //    nmethod::is_cold.
  static void arm_all_nmethods();

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

PR Comment: https://git.openjdk.org/jdk/pull/25982#issuecomment-3028304664


More information about the hotspot-gc-dev mailing list