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:
parent
09fcba06f5
commit
db2fbf3152
@ -168,14 +168,7 @@ public class WhiteBox {
|
|||||||
return allocateCodeBlob( intSize, type);
|
return allocateCodeBlob( intSize, type);
|
||||||
}
|
}
|
||||||
public native void freeCodeBlob(long addr);
|
public native void freeCodeBlob(long addr);
|
||||||
public void forceNMethodSweep() {
|
public native void forceNMethodSweep();
|
||||||
try {
|
|
||||||
forceNMethodSweep0().join();
|
|
||||||
} catch (InterruptedException e) {
|
|
||||||
Thread.currentThread().interrupt();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
public native Thread forceNMethodSweep0();
|
|
||||||
public native Object[] getCodeHeapEntries(int type);
|
public native Object[] getCodeHeapEntries(int type);
|
||||||
public native int getCompilationActivityMode();
|
public native int getCompilationActivityMode();
|
||||||
public native Object[] getCodeBlob(long addr);
|
public native Object[] getCodeBlob(long addr);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user