title: eclipse dies every few minutes with latest jdk saying 'out of space in CodeCache for adapters'
body: <p>Since I installed latest jdk (1.6.0_25) I am having a very annoying issue that constantly makes my eclipse restart. This happens while doing any action, not a big clean project or anything.</p>
  
  <p>My environment is the following:</p>
  
  <blockquote>
    <p>win7, 64b</p>
    
    <p>eclipse Version: 3.6.2 (64b) Build id:
    M20110210-1200</p>
    
    <p>java version "1.6.0_25" Java(TM) SE
    Runtime Environment (build
    1.6.0_25-b06) Java HotSpot(TM) 64-Bit Server VM (build 20.0-b11, mixed mode)</p>
  </blockquote>
  
  <p>Before I had a previous jdk version (not sure what number, but was 1.6.0_21 or so, also 64b).</p>
  
  <p>Since I installed 1.6.0_25 my eclipse dies every few minutes. I get a dialog in the UI saying:</p>
  
  <blockquote>
    <p>Problems occurred while trying to save
    the state of the workbench.   Internal
    Error   out of space in CodeCache for
    adapters</p>
  </blockquote>
  
  <p>And the log shows:</p>
  
  <blockquote>
    <p>!SESSION Fri May 13 12:35:53 CEST 2011
    ----------------------------------------- !ENTRY org.eclipse.equinox.launcher 4
    0 2011-05-13 12:35:53.870 !MESSAGE
    Exception launching the Eclipse
    Platform: !STACK
    java.lang.VerifyError: (class:
    org/eclipse/osgi/framework/log/FrameworkLogEntry,
    method: getThrowable signature:
    ()Ljava/lang/Throwable;) Illegal
    constant pool index   at
    org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:200)
      at
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native
    Method)   at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at
    java.lang.reflect.Method.invoke(Method.java:597)
      at
    org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
      at
    org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
      at
    org.eclipse.equinox.launcher.Main.run(Main.java:1408)</p>
  </blockquote>
  
  <p>My eclipse.ini files has this:</p>
  
  <pre><code>-showlocation
  -showsplash org.eclipse.platform
  --launcher.defaultAction openFile
  -vm c:/jdk1.6.0/jre/bin/server/jvm.dll
  -vmargs
  -Dosgi.requiredJavaVersion=1.6
  -Declipse.p2.unsignedPolicy=allow
  -Djava.library.path=d:\dev\SlikSvn\bin
  -Xms256m
  -Xmx768m
  -Xss4m
  -XX:PermSize=256m
  -XX:MaxPermSize=512M
  -XX:CompileThreshold=5
  -XX:MaxGCPauseMillis=10
  -XX:MaxHeapFreeRatio=70
  -XX:+CMSIncrementalPacing
  -XX:+UnlockExperimentalVMOptions
  -XX:+UseG1GC
  -XX:+UseFastAccessorMethods
  -Dcom.sun.management.jmxremote
  </code></pre>
  
  <p>anyone has an idea how to solve this?</p>