Mercurial > hg > graal-jvmci-8
changeset 22738:eb6d572dfa61
Finalize data section outside of HotSpotCompiledCode
author | Stefan Anzinger <stefan.anzinger@oracle.com> |
---|---|
date | Wed, 25 Nov 2015 16:28:10 +0100 |
parents | a93a36e7b419 |
children | f41ed1d87d68 |
files | jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotCompiledCode.java |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotCompiledCode.java Wed Nov 25 11:48:44 2015 +0100 +++ b/jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotCompiledCode.java Wed Nov 25 16:28:10 2015 +0100 @@ -117,7 +117,7 @@ targetCodeSize = compResult.getTargetCodeSize(); DataSection data = compResult.getDataSection(); - data.finalizeLayout(); + assert data.isFinalized() : "data section needs to be finalized before code installation"; dataSection = new byte[data.getSectionSize()]; ByteBuffer buffer = ByteBuffer.wrap(dataSection).order(ByteOrder.nativeOrder());