-
Notifications
You must be signed in to change notification settings - Fork 323
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Turns out one cannot re-use builtins that are initialized in the static context because some state is not reset between tests. Trying to enforce that will also open a can of worms so we decided against that. However, while trying to instantiate builtins in the constructor we would no longer inling constructor calls, resulting in `NoSuchMethodException` once the native image was generated. This turned out to be a limitation related to oracle/graal#2500 so that we cannot make calls like `clazz.getContructor().newInstance()`. `clazz.getConstructor()` in the static initializer and creating new instances in Builtins constructor was however OK for the inliner and it was able to procede with constant folding.
- Loading branch information
Showing
1 changed file
with
33 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters