Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jdt-dev] A problem that ecj doesn't have

Now for something nice (from JDT p.o.v.):

I just happened to look at https://bugs.openjdk.org/browse/JDK-8225508

A small Java program, where compilation with javac requires exponential heap size. The given example crashes javac (OOM) even above -Xmx3g (after 13 min).

ecj can easily crunch it with as little as -Xmx15m (under 5 secs).

I was told, that javac applies quite some optimizations to type inference (which contributes to the difficulty of comparing spec and impl). In this particular situation ecj must be doing something right. phew ...

cheers,
Stephan


Back to the top