src/hotspot/cpu/s390/vm_version_s390.cpp
changeset 54960 e46fe26d7f77
parent 54485 ddc19ea5059c
child 58959 b7b170ba3ba9
--- a/src/hotspot/cpu/s390/vm_version_s390.cpp	Tue May 21 11:45:37 2019 +0200
+++ b/src/hotspot/cpu/s390/vm_version_s390.cpp	Tue May 21 15:51:35 2019 +0200
@@ -804,6 +804,8 @@
   address code_end = a->pc();
   a->flush();
 
+  cbuf.insts()->set_end(code_end);
+
   // Print the detection code.
   bool printVerbose = Verbose || PrintAssembly || PrintStubCode;
   if (printVerbose) {
@@ -812,8 +814,8 @@
     tty->print_cr("Stub length is %ld bytes, codebuffer reserves %d bytes, %ld bytes spare.",
                   code_end-code, cbuf_size, cbuf_size-(code_end-code));
 
-    // Use existing decode function. This enables the [Code] format which is needed to DecodeErrorFile.
-    Disassembler::decode((u_char*)code, (u_char*)code_end, tty);
+    // Use existing decode function. This enables the [MachCode] format which is needed to DecodeErrorFile.
+    Disassembler::decode(&cbuf, code, code_end, tty);
   }
 
   // Prepare for detection code execution and clear work buffer.