forked from apache/flink
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FLINK-18581] Do not try to run GC phantom cleaners for jdk < 8u72
The private JVM method Reference#tryHandlePending was introduced at Java 8u72. The explicit processing of queued phantom GC cleaners was exposed before 8u72, also is was not used while reserving JVM direct memory. Therefore, we can only hope that the GC will be triggered and the cleaners get processed in GC after some timeout. This is suboptimal, therefore the PR changes Flink to not fail if the method is unavailable but logs a warning to upgrade Java. This closes apache#12981.
- Loading branch information
Showing
3 changed files
with
31 additions
and
17 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
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
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