JDK-8165717 : [macosx] Various memory leaks in jdk9
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • CPU: x86
  • Submitted: 2016-09-08
  • Updated: 2017-11-29
  • Resolved: 2016-09-16
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8 JDK 9
8u152Fixed 9 b140Fixed
Description
There are some memory leaks were added in the jdk9 in the objective-c code. Instruments shows lots of le leaks when we overretains the objects after copy and similar methods.
Comments
The one example is: - (void)postRunnableEvent:(void (^)())block { void (^copy)() = [block copy]; NSInteger encode = (NSInteger) copy; [copy retain]; <== is not necessary.
08-09-2016