Integrated: 8267317: Remove DeferredTypeCompleter

Maurizio Cimadamore mcimadamore at openjdk.java.net
Tue May 25 11:57:22 UTC 2021


On Tue, 18 May 2021 12:54:32 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

> This pathc removes DeferredTypeCompleter, which seems like a dubious abstraction. In its place there is now a `complete` method on `DeferredType` which is overridden by `ArgumentType`. The only problematic usage is from `StructuralStuckChecker`, but after inspecting the code I realized that the only side effect this code expected from calling `DeferredType::check` was to set the deferred type mode to `SPECULATIVE`, which we can easily do inline.

This pull request has now been integrated.

Changeset: 86a8f442
Author:    Maurizio Cimadamore <mcimadamore at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/86a8f4427139f983faa57b9174c90949628236ca
Stats:     80 lines in 2 files changed: 17 ins; 49 del; 14 mod

8267317: Remove DeferredTypeCompleter

Reviewed-by: vromero

-------------

PR: https://git.openjdk.java.net/jdk/pull/4091


More information about the compiler-dev mailing list