Mercurial > hg > graal-jvmci-8
changeset 23370:858e9beeeda6
Backed out changeset 30544794ea23
Must be in sync with graal-core
author | Stefan Anzinger <stefan.anzinger@oracle.com> |
---|---|
date | Mon, 02 May 2016 08:05:08 +0200 |
parents | 5aa3b3a72e35 |
children | a657931445ab |
files | src/share/tools/IdealGraphVisualizer/Data/src/com/sun/hotspot/igv/data/serialization/BinaryParser.java |
diffstat | 1 files changed, 2 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/tools/IdealGraphVisualizer/Data/src/com/sun/hotspot/igv/data/serialization/BinaryParser.java Sun May 01 23:58:05 2016 +0200 +++ b/src/share/tools/IdealGraphVisualizer/Data/src/com/sun/hotspot/igv/data/serialization/BinaryParser.java Mon May 02 08:05:08 2016 +0200 @@ -341,15 +341,11 @@ } private String readString() throws IOException { - return new String(readElements(2), utf8).intern(); + return new String(readBytes(), utf8).intern(); } private byte[] readBytes() throws IOException { - return readElements(1); - } - - private byte[] readElements(int elementSize) throws IOException { - int len = readInt() * elementSize; + int len = readInt(); if (len < 0) { return null; }