On Wed, 18 Nov 2026 02:49:54 GMT, David Holmes <[email protected]> wrote:
>> src/hotspot/share/oops/markWord.hpp line 275:
>>
>>> 273: // hash operations
>>> 274: intptr_t hash() const {
>>> 275: precond(!is_marked());
>>
>> @xmas92: This function is also used during error reporting and the `precond`
>> causes "error occurred during error reporting" in hs_err files. E.g.:
>>
>> R8 =
>> [error occurred during error reporting (printing register info), id
>> 0xe0000000, Internal Error
>> (/workspace/openjdk-jdk-dev-linux_x86_64-dbg/jdk/src/hotspot/share/oops/markWord.hpp:275)]
>>
>> I guess that the caller is wrong, but I just wanted to mention it here.
>> (Should probably be improved here:
>> https://github.com/openjdk/jdk/blob/565b0732543370c57a0353dc7dcda36325640759/src/hotspot/share/oops/markWord.cpp#L51)
>
> Sounds like https://bugs.openjdk.org/browse/JDK-8397379
I think this particular issue could be fixed by
diff --git a/src/hotspot/share/oops/markWord.cpp
b/src/hotspot/share/oops/markWord.cpp
index 7615a09d578..a77bd756887 100644
--- a/src/hotspot/share/oops/markWord.cpp
+++ b/src/hotspot/share/oops/markWord.cpp
@@ -48,7 +48,7 @@ void markWord::print_on(outputStream* st) const {
if (is_value_type()) {
st->print(" value_type");
}
- if (has_hash()) {
+ if (!is_marked() && has_hash()) {
st->print(" hash=" INTPTR_FORMAT, hash());
} else {
st->print(" no_hash");
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/32535#discussion_r4612963917