Mercurial > hg > icedtea8-forest > hotspot
changeset 10915:29720c52e25e
7107012: sun.jvm.hostspot.code.CompressedReadStream readDouble() conversion to long mishandled
Reviewed-by: sspitsyn, dcubed
author | cjplummer |
---|---|
date | Mon, 29 Jun 2020 14:22:01 -0700 |
parents | 2048ae231a90 |
children | 39e98bb4e79a |
files | agent/src/share/classes/sun/jvm/hotspot/code/CompressedReadStream.java |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/agent/src/share/classes/sun/jvm/hotspot/code/CompressedReadStream.java Mon Feb 22 06:58:03 2021 +0000 +++ b/agent/src/share/classes/sun/jvm/hotspot/code/CompressedReadStream.java Mon Jun 29 14:22:01 2020 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2005, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -75,7 +75,7 @@ int rl = readInt(); int h = reverseInt(rh); int l = reverseInt(rl); - return Double.longBitsToDouble((h << 32) | ((long)l & 0x00000000FFFFFFFFL)); + return Double.longBitsToDouble(((long)h << 32) | ((long)l & 0x00000000FFFFFFFFL)); } public long readLong() {