RFR: 8227713: Convert G1's assert_ macros into NOT_DEBUG_RETURN functions [v4]

Lei Zaakjyu duke at openjdk.org
Sat Dec 23 02:39:46 UTC 2023


On Sat, 23 Dec 2023 02:30:48 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:

> There was some discussion about this sort of thing a long time ago, and there was not a consensus for it. The problem is that turning these macros into functions loses source location in the error message, and a stack trace to see where the problem occurred isn't always available. This could be addressed using std::source_location, but that isn't available until C++20. Based on that discussion, I don't think this change should be made at this time.

got it

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

PR Comment: https://git.openjdk.org/jdk/pull/17188#issuecomment-1868178816


More information about the hotspot-gc-dev mailing list