-
Bug
-
Resolution: Fixed
-
P2
-
8u102, 9
-
generic
-
generic
-
Fix failed
There is a memory leak in native code of JavaFX WebView of most recent JDK1.8.0 (tested on u112) related to Java/JavaScript interop. Probably releated to usage of
void initModel(JSObject thiz) {
thiz.setMember("content", "longstring");
}
I am going to attach two versions of the application. One that does the operations in JavaScript (and seems to run without leaks in 8u112) and one that performs the same operation from Java instead (and increases the process size significantly with each "tick").
In addition to that I provide sources for the OK version and a patch to turn them into the Bad one. Should you have any issues reproducing the problem, please contact me.
void initModel(JSObject thiz) {
thiz.setMember("content", "longstring");
}
I am going to attach two versions of the application. One that does the operations in JavaScript (and seems to run without leaks in 8u112) and one that performs the same operation from Java instead (and increases the process size significantly with each "tick").
In addition to that I provide sources for the OK version and a patch to turn them into the Bad one. Should you have any issues reproducing the problem, please contact me.
- relates to
-
JDK-8170930 WebView unit test crashes in 32-bit mode
- Resolved
-
JDK-8170938 Memory leak in JavaFX WebView
- Resolved
-
JDK-8170610 [TESTBUG] Validation of JSObject Memory leak
- Resolved