comparison jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotCompiledCode.java @ 22740:22110ef74a40

8144083 [JVMCI] CompilationResult should be finalized by JVMCI compiler and made effectively final
author Doug Simon <doug.simon@oracle.com>
date Thu, 26 Nov 2015 00:47:01 +0100
parents f41ed1d87d68
children e9424bc1e288
comparison
equal deleted inserted replaced
22739:f41ed1d87d68 22740:22110ef74a40
119 119
120 targetCode = compResult.getTargetCode(); 120 targetCode = compResult.getTargetCode();
121 targetCodeSize = compResult.getTargetCodeSize(); 121 targetCodeSize = compResult.getTargetCodeSize();
122 122
123 DataSection data = compResult.getDataSection(); 123 DataSection data = compResult.getDataSection();
124 assert data.isFinalized() : "data section needs to be finalized before code installation";
125 dataSection = new byte[data.getSectionSize()]; 124 dataSection = new byte[data.getSectionSize()];
126 125
127 ByteBuffer buffer = ByteBuffer.wrap(dataSection).order(ByteOrder.nativeOrder()); 126 ByteBuffer buffer = ByteBuffer.wrap(dataSection).order(ByteOrder.nativeOrder());
128 Builder<DataPatch> patchBuilder = Stream.builder(); 127 Builder<DataPatch> patchBuilder = Stream.builder();
129 data.buildDataSection(buffer, patchBuilder); 128 data.buildDataSection(buffer, patchBuilder);