changeset 61950:24057288b9ad

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 646a754df461
children dc7dd368849b
files src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/code/CompressedReadStream.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/code/CompressedReadStream.java	Mon Jun 29 19:33:35 2020 +0200
+++ b/src/jdk.hotspot.agent/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() {