Skip to content

Commit 95e04cd

Browse files
committed
Workaround for JRE bug freezing the PDE
Because of a JRE bug, code completion will occasionally freeze the PDE. Never seen this one before, however, it happened to me three times in a row while I was giving a lecture today and I had to kill the PDE and write all the code again. I can reproduce it back to beta 7. It is caused by JIT compiler, workaround is to disable it for this particular method. See https://bugs.openjdk.java.net/browse/JDK-8060036 and http://kingsfleet.blogspot.com.br/2014/11/but-thats-impossible-or-finding-out.html
1 parent 04d268f commit 95e04cd

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

build/windows/config.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@
4343
<opt>-Djna.nounpack=true</opt>
4444
<!-- starting in 3.0, require Java 8 -->
4545
<minVersion>1.8.0_51</minVersion>
46+
<!-- TODO: remove the line below as soon as we are on 1.8.0_60 or newer,
47+
see https://bugs.openjdk.java.net/browse/JDK-8060036 and
48+
http://kingsfleet.blogspot.com.br/2014/11/but-thats-impossible-or-finding-out.html -->
49+
<opt>-XX:CompileCommand=exclude,javax/swing/text/GlyphView,getBreakSpot</opt>
4650
<!-- increase available per PDE X request -->
4751
<maxHeapSize>256</maxHeapSize>
4852
</jre>

0 commit comments

Comments
 (0)