Details
-
Bug
-
Resolution: Fixed
-
P3
-
8u121, 9
-
b29
-
x86
-
os_x
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8268100 | 8u311 | Sergey Bylokhov | P3 | Resolved | Fixed | b01 |
Description
FULL PRODUCT VERSION :
JDK under test: /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
$ uname -a
Darwin unit-929 16.5.0 Darwin Kernel Version 16.5.0: Fri Mar 3 16:52:33 PST 2017; root:xnu-3789.51.2~3/RELEASE_X86_64 x86_64
A DESCRIPTION OF THE PROBLEM :
The test com/apple/laf/ScreenMenu/ScreenMenuMemoryLeakTest.java fails with the message: "The menu item should have been GC-ed"
The failure was observed on OSX. The test was not intended to be executed on Windows, Linux.
It was not executed against Java 9.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
$ jtreg -v -a -xml -javaoptions:-Djava.awt.headless=false test/com/apple/laf/ScreenMenu/ScreenMenuMemoryLeakTest.java
ERROR MESSAGES/STACK TRACES THAT OCCUR :
#section:main
----------messages:(4/206)----------
command: main -Xmx16m ScreenMenuMemoryLeakTest
reason: User specified action: run main/timeout=300/othervm -Xmx16m ScreenMenuMemoryLeakTest
Mode: othervm [/othervm specified]
elapsed time (seconds): 1.427
----------configuration:(0/0)----------
----------System.out:(0/0)----------
----------System.err:(13/795)----------
java.lang.RuntimeException: The menu item should have been GC-ed
at ScreenMenuMemoryLeakTest.main(ScreenMenuMemoryLeakTest.java:75)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
at java.lang.Thread.run(Thread.java:748)
JavaTest Message: Test threw exception: java.lang.RuntimeException: The menu item should have been GC-ed
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.RuntimeException: The menu item should have been GC-ed
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/file/5b86f66575b7/test/com/apple/laf/ScreenMenu/ScreenMenuMemoryLeakTest.java
---------- END SOURCE ----------
JDK under test: /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
$ uname -a
Darwin unit-929 16.5.0 Darwin Kernel Version 16.5.0: Fri Mar 3 16:52:33 PST 2017; root:xnu-3789.51.2~3/RELEASE_X86_64 x86_64
A DESCRIPTION OF THE PROBLEM :
The test com/apple/laf/ScreenMenu/ScreenMenuMemoryLeakTest.java fails with the message: "The menu item should have been GC-ed"
The failure was observed on OSX. The test was not intended to be executed on Windows, Linux.
It was not executed against Java 9.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
$ jtreg -v -a -xml -javaoptions:-Djava.awt.headless=false test/com/apple/laf/ScreenMenu/ScreenMenuMemoryLeakTest.java
ERROR MESSAGES/STACK TRACES THAT OCCUR :
#section:main
----------messages:(4/206)----------
command: main -Xmx16m ScreenMenuMemoryLeakTest
reason: User specified action: run main/timeout=300/othervm -Xmx16m ScreenMenuMemoryLeakTest
Mode: othervm [/othervm specified]
elapsed time (seconds): 1.427
----------configuration:(0/0)----------
----------System.out:(0/0)----------
----------System.err:(13/795)----------
java.lang.RuntimeException: The menu item should have been GC-ed
at ScreenMenuMemoryLeakTest.main(ScreenMenuMemoryLeakTest.java:75)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
at java.lang.Thread.run(Thread.java:748)
JavaTest Message: Test threw exception: java.lang.RuntimeException: The menu item should have been GC-ed
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.RuntimeException: The menu item should have been GC-ed
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/file/5b86f66575b7/test/com/apple/laf/ScreenMenu/ScreenMenuMemoryLeakTest.java
---------- END SOURCE ----------
Attachments
Issue Links
- backported by
-
JDK-8268100 [macosx]com/apple/laf/ScreenMenu/ScreenMenuMemoryLeakTest.java: The menu item should have been GC-ed
- Resolved
- relates to
-
JDK-8177699 Some swing and awt tests are not in TEST.groups
- Resolved