8218970: SA: Enable HeapHprofBinWriter for ZGC

Reviewed-by: eosterlund, ysuenaga
This commit is contained in:
Stefan Karlsson 2019-02-19 10:04:44 +01:00
parent f7e7180ff4
commit e9af7c1561

View File

@ -390,9 +390,6 @@ public class HeapHprofBinWriter extends AbstractHeapGraphWriter {
public synchronized void write(String fileName) throws IOException {
VM vm = VM.getVM();
if (vm.getUniverse().heap() instanceof ZCollectedHeap) {
throw new RuntimeException("This operation is not supported with ZGC.");
}
// open file stream and create buffered data output stream
fos = new FileOutputStream(fileName);