| Summary: | GC Overhead Limit | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Stefanie Rademacker <stefanierademacker> | ||||
| Component: | Core | Assignee: | JDT-Core-Inbox <jdt-core-inbox> | ||||
| Status: | CLOSED WONTFIX | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | jarthana, loskutov, stephan.herrmann | ||||
| Version: | 4.5.1 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| Whiteboard: | stalebug | ||||||
| Attachments: |
|
||||||
|
Description
Stefanie Rademacker
Stefanie, few questions: - can you bisect and to narrow down which milestone or even commit caused the issue? - can you reproduce the problem with command line build using ecj compiler? - are there other builders involved (xtext & Co, C++, some other languages)? - which compiler settings are used (something special)? - which Java level you are compiling for? - you mentioned that Luna compiler had errors with your code - can you be more specific on this? One more question: Do you have lot of generics or Lambda in your code? Created attachment 258687 [details] compiler settings (In reply to Andrey Loskutov from comment #1) > Stefanie, few questions: > - can you bisect and to narrow down which milestone or even commit caused > the issue? My Eclipse version has the build id 20150924-1200. I cannot say rather or not this problem occurred in previous releases as well, because I installed Eclipse only in October. > - can you reproduce the problem with command line build using ecj compiler? Yes, I can reproduce the problem. I get an "java.lang.OutOfMemoryError: GC overhead limit exceeded". > - are there other builders involved (xtext & Co, C++, some other languages)? I only use the Java builder. > - which compiler settings are used (something special)? Attached please find my current compiler settings. > - which Java level you are compiling for? The compiler compliance level is set to 1.8. > - you mentioned that Luna compiler had errors with your code - can you be > more specific on this? The following code causes the compiler errors: public class A { public void x(int index){ get(executionParameter("importItems", Iterable.class), index); } public <T> T get(Iterable<T> iterable, int position) { return null; } protected final <P> P executionParameter(String name, Class<P> parameterClass) { return null; } } Luna shows an compiler error inside the method x where the get()-method is called which reads as follows: "The method get(Iterable<T>, int) in the type A is not applicable for the arguments (Iterable, int)". Mars doesn't show any errors at this point. Even when compiling with the console and javac compiler I won't get an error, only one warning: "Note: A.java uses unchecked or unsafe operations." Using the compiler compliance level 1.7 there aren't any errors either in Mars, or in Luna. > One more question: Do you have lot of generics or Lambda in your code? There are no Lambdas in the code. For so far we only compiled the project with Java 7 (without errors) and now want to go up to Java 8. Thus there is no Java 8 specific code yet. But we are using many generics. (In reply to Stefanie Rademacker from comment #3) > The following code causes the compiler errors: > > public class A { > > public void x(int index){ > get(executionParameter("importItems", Iterable.class), index); > } > > public <T> T get(Iterable<T> iterable, int position) { > return null; > } > > protected final <P> P executionParameter(String name, Class<P> > parameterClass) { > return null; > } > } This class is accepted since 4.5M3, likely pointing towards bug 437444. Doesn't look like a hot track to me. Does the memory problem also occur in Eclipse 4.5.1 when compiling at compliance level 1.7? No, the memory problem does not occur at 1.7 in Eclipse 4.5.1. This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie. |