RFR: 8248411: [aarch64] Insufficient error handling when CodeBuffer is exhausted
Andrew Dinn
adinn at openjdk.java.net
Wed Oct 21 11:34:15 UTC 2020
On Tue, 20 Oct 2020 13:31:59 GMT, Patric Hedlin <phedlin at openjdk.org> wrote:
> Trampoline call generation (in the macro-assembler) may run out of CodeBuffer space without the proper error handling, resulting in asserts such as:
> # Internal Error (.../open/src/hotspot/share/asm/codeBuffer.hpp:198), pid=845, tid=859
> # assert(allocates2(pc)) failed: relocation addr must be in this section
> This update extends the error handling for such error cases to cover all uses of `trampoline_call()`, direct and indirect. Failure registration/recording is retained in the "**aarch64.ad**" file.
The AArch64 changes are ok.
<rant> I am not at all keen on the many format-only changes that are included in this patch since they introduce a lot of changed lines for the sole and rather specious benefit of adherence to a questionable orthographic authority. That's especially so with the relatively unscryable (sic) changes in output.cpp that modify declarations of the form `Foo *foo` to `Foo* foo`. One is initially left wondering what has changed only, at penny-drop, to replace that feeling with equal wonder as to why it was worth bothering, especially as there remain many thousands more such editorial opportunities. Meanwhile the substantive signal that constitutes the real patch is lost amid this noise. Of course, you may continue tilting at this windmill if you really wish to.</rant>
-------------
Marked as reviewed by adinn (Reviewer).
PR: https://git.openjdk.java.net/jdk/pull/765
More information about the hotspot-dev
mailing list