RFR: 8315916: assert(C->live_nodes() <= C->max_node_limit()) failed: Live Node limit exceeded [v7]
Dhamoder Nalla
dhanalla at openjdk.org
Mon Nov 18 02:23:46 UTC 2024
> In the debug build, the assert is triggered during the parsing (before Code_Gen). In the Release build, however, the compilation bails out at `Compile::check_node_count()` during the code generation phase and completes execution without any issues.
>
> When I commented out the assert(C->live_nodes() <= C->max_node_limit()), both the debug and release builds exhibited the same behavior: the compilation bails out during code_gen after building the ideal graph with more than 80K nodes.
>
> The proposed fix will check the live node count and bail out during compilation while building the graph for scalarization of the elements in the array when the live node count crosses the limit of 80K, instead of unnecessarily building the entire graph and bailing out in code_gen.
Dhamoder Nalla has updated the pull request incrementally with one additional commit since the last revision:
CR comments
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/20504/files
- new: https://git.openjdk.org/jdk/pull/20504/files/4c444f10..27aab6b0
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=20504&range=06
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=20504&range=05-06
Stats: 99 lines in 3 files changed: 48 ins; 50 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/20504.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/20504/head:pull/20504
PR: https://git.openjdk.org/jdk/pull/20504
More information about the hotspot-compiler-dev
mailing list