Skip to content

Commit cb1a03c

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

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, 2021, 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
@@ -195,7 +195,7 @@ class CodeSection {
195195
}
196196
void set_locs_point(address pc) {
197197
assert(pc >= locs_point(), "relocation addr may not decrease");
198-
assert(allocates2(pc), "relocation addr must be in this section");
198+
assert(allocates2(pc), "relocation addr " INTPTR_FORMAT " must be in this section from " INTPTR_FORMAT " to " INTPTR_FORMAT, p2i(pc), p2i(_start), p2i(_limit));
199199
_locs_point = pc;
200200
}
201201

0 commit comments

Comments
 (0)