8075214: SIGSEGV in nmethod sweeping

Changed implementation of forceNMethodSweep() to request sweep from existing sweeper thread.

Reviewed-by: kvn, mgerdin, dholmes
This commit is contained in:
Tobias Hartmann 2015-03-30 07:53:19 +02:00
parent 09fcba06f5
commit db2fbf3152

View File

@ -168,14 +168,7 @@ public class WhiteBox {
return allocateCodeBlob( intSize, type);
}
public native void freeCodeBlob(long addr);
public void forceNMethodSweep() {
try {
forceNMethodSweep0().join();
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
}
}
public native Thread forceNMethodSweep0();
public native void forceNMethodSweep();
public native Object[] getCodeHeapEntries(int type);
public native int getCompilationActivityMode();
public native Object[] getCodeBlob(long addr);