/hg/icedtea6: Added new hotspot regresion test.
ptisnovs at icedtea.classpath.org
ptisnovs at icedtea.classpath.org
Tue Mar 8 04:52:45 PST 2011
changeset c2eb2f9d1227 in /hg/icedtea6
details: http://icedtea.classpath.org/hg/icedtea6?cmd=changeset;node=c2eb2f9d1227
author: ptisnovs
date: Tue Mar 08 13:55:45 2011 +0100
Added new hotspot regresion test.
diffstat:
ChangeLog | 6 ++++
Makefile.am | 3 +-
patches/jtreg-hotspot-bug-6196102.patch | 40 +++++++++++++++++++++++++++++++++
3 files changed, 48 insertions(+), 1 deletions(-)
diffs (71 lines):
diff -r 478d3f5f6a59 -r c2eb2f9d1227 ChangeLog
--- a/ChangeLog Tue Mar 08 13:19:47 2011 +0100
+++ b/ChangeLog Tue Mar 08 13:55:45 2011 +0100
@@ -1,3 +1,9 @@
+2011-03-08 Pavel Tisnovsky <ptisnovs at redhat.com>
+
+ * Makefile.am: Add new patch.
+ * patches/jtreg-hotspot-bug-6196102.patch:
+ Added new hotspot regresion test.
+
2011-03-08 Pavel Tisnovsky <ptisnovs at redhat.com>
* Makefile.am:
diff -r 478d3f5f6a59 -r c2eb2f9d1227 Makefile.am
--- a/Makefile.am Tue Mar 08 13:19:47 2011 +0100
+++ b/Makefile.am Tue Mar 08 13:55:45 2011 +0100
@@ -324,7 +324,8 @@
patches/openjdk/6766342-AA-simple-shape-performance.patch \
patches/openjdk/7016856-pisces-performance.patch \
patches/openjdk/6934977-MappedByteBuffer.load.patch \
- patches/jaxp-serial-version-uid.patch
+ patches/jaxp-serial-version-uid.patch \
+ patches/jtreg-hotspot-bug-6196102.patch
if WITH_ALT_HSBUILD
ICEDTEA_PATCHES += \
diff -r 478d3f5f6a59 -r c2eb2f9d1227 patches/jtreg-hotspot-bug-6196102.patch
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/jtreg-hotspot-bug-6196102.patch Tue Mar 08 13:55:45 2011 +0100
@@ -0,0 +1,41 @@
+--- /dev/null 1970-01-01 01:00:00.000000000 +0100
++++ openjdk/hotspot/test/runtime/6196102/LoopTest.java 2011-02-28 22:06:47.654895000 +0100
+@@ -0,0 +1,40 @@
++/*
++ * Copyright 2011 Red Hat, Inc. 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
++ * under the terms of the GNU General Public License version 2 only, as
++ * published by the Free Software Foundation.
++ *
++ * This code is distributed in the hope that it will be useful, but WITHOUT
++ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
++ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
++ * version 2 for more details (a copy is included in the LICENSE file that
++ * accompanied this code).
++ *
++ * You should have received a copy of the GNU General Public License version
++ * 2 along with this work; if not, write to the Free Software Foundation,
++ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
++ */
++
++/*
++ * @test LoopTest
++ * @bug 6196102 5091921
++ * @summary verify that loop control variable is always computed correctly
++ * @run main LoopTest
++ * @author ptisnovs at redhat.com
++*/
++public class LoopTest {
++ static public void main(String[] args) {
++ int i1 = 0;
++ int i2 = Integer.MAX_VALUE;
++ while (i1 >= 0) {
++ i1++;
++ if (i1 > i2) {
++ throw new RuntimeException("Failed when i1 == " + i1 + " and i2 == " + i2);
++ }
++ }
++ }
++}
More information about the distro-pkg-dev
mailing list