Skip to content
This repository was archived by the owner on Oct 9, 2025. It is now read-only.

Commit b8fa711

Browse files
committed
8325432: enhance assert message "relocation addr must be in this section"
Backport-of: 3d3a8f0ebfafab6e67eb697ff0ec545bd9a51814
1 parent 0c6f3bd commit b8fa711

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hotspot/share/asm/codeBuffer.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1997, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -209,7 +209,7 @@ class CodeSection {
209209
}
210210
void set_locs_point(address pc) {
211211
assert(pc >= locs_point(), "relocation addr may not decrease");
212-
assert(allocates2(pc), "relocation addr must be in this section");
212+
assert(allocates2(pc), "relocation addr " INTPTR_FORMAT " must be in this section from " INTPTR_FORMAT " to " INTPTR_FORMAT, p2i(pc), p2i(_start), p2i(_limit));
213213
_locs_point = pc;
214214
}
215215

0 commit comments

Comments
 (0)