Commit Graph

637 Commits

Author SHA1 Message Date
Roland Westrelin
d7522fb084 8086046: escape analysis generates incorrect code as of B67
Load bypasses arraycopy that sets the value after the ArrayCopyNode is expanded

Reviewed-by: kvn
2015-06-12 14:10:17 +02:00
Alexander Alexeev
252b1be912 8081790: aarch64: SHA tests fail
Fix SHA tests in JTReg so they recognize aarch64

Reviewed-by: duke
2015-06-03 08:23:09 +00:00
Roland Westrelin
197ecf9bc1 8081823: C2 performs unsigned comparison against -1
X <= 0 || x > 0 wrongly folded as (x-1) >u -1

Reviewed-by: kvn, vlivanov
2015-06-08 18:35:17 +02:00
Vladimir Kozlov
a2d369e486 Merge 2015-06-04 19:24:47 -07:00
Alejandro Murillo
c219f06861 Merge 2015-06-04 15:38:00 -07:00
Vladimir Kozlov
93d1573c5e 8081778: Use Intel x64 CPU instructions for RSA acceleration
Add intrinsics for BigInteger squareToLen and mulAdd methods.

Reviewed-by: kvn, jrose
2015-06-03 15:02:10 -07:00
Roland Westrelin
81b0f156c8 8080976: Unexpected AIOOB thrown from 1.9.0-ea-b64 on (regression)
Loop variant use in reduction should prevent vectorization

Reviewed-by: kvn, mcberg
2015-05-29 16:09:16 +02:00
Alexander Alexeev
a1eb515812 8081669: aarch64: JTreg TestStable tests failing
Fix TestStable failures

Reviewed-by: vlivanov
2015-06-02 14:28:08 +00:00
Roland Westrelin
0296c2894b 8080699: Assert failed: Not a Java pointer in JCK test
Eliminated arraycopy node still reachable through exception edges

Reviewed-by: kvn
2015-05-22 09:14:18 +02:00
Tobias Hartmann
14a1d71874 8080156: Integer.toString(int value) sometimes throws NPE
Added test to check correctness of type propagation to CmpUNodes.

Reviewed-by: kvn
2015-05-22 13:02:47 +02:00
Andrew Haley
d917a8866c 8080600: AARCH64: testlibrary does not support AArch64
Add Platform.isAArch64().  Use it in mathexact intrinsic tests.

Reviewed-by: kvn, roland
2015-05-20 10:21:02 +01:00
Volker Simonis
b48a61e5be 8080190: PPC64: Fix wrong rotate instructions in the .ad file
Reviewed-by: kvn
2015-05-19 11:06:34 +02:00
Vladimir Kozlov
49ab7a3900 8080483: Incorrect test execution string at SumRed_Long.java
Reviewed-by: iveresov
2015-05-15 18:12:21 -07:00
Vladimir Ivanov
e5a92a9fb9 8079205: CallSite dependency tracking is broken after sun.misc.Cleaner became automatically cleared
Reviewed-by: roland, psandoz, plevart, kbarrett, jrose
2015-05-15 19:23:11 +03:00
Roland Westrelin
a3c77df5f1 8077504: Unsafe load can loose control dependency and cause crash
Node::depends_only_on_test() should return false for Unsafe loads

Reviewed-by: kvn, adinn
2015-05-21 13:54:07 +02:00
Tobias Hartmann
6172821723 8080420: Compilation of TestVectorizationWithInvariant fails with "error: package com.oracle.java.testlibrary does not exist"
Fixed location of testlibrary package.

Reviewed-by: kvn
2015-05-14 18:02:35 +02:00
Tobias Hartmann
9e5ef665a0 Merge 2015-05-14 16:16:06 +02:00
Katja Kantserova
80b436c366 8080100: compiler/rtm/* tests fail due to Compilation failed
Reviewed-by: sla
2015-05-12 10:29:10 +02:00
Roland Westrelin
a9cdbd0407 8076188: Optimize arraycopy out for non escaping destination
If the destination of an arraycopy is non escaping, the arraycopy may be optimized out

Reviewed-by: kvn, vlivanov
2015-05-12 10:27:50 +02:00
Tobias Hartmann
005adcec93 Merge 2015-05-11 07:58:02 +02:00
Michael C Berg
4fca8dbb1f 8076276: Add support for AVX512
Reviewed-by: kvn, roland
2015-05-08 11:49:20 -07:00
Harold Seigel
da4711381d Merge 2015-05-08 13:25:11 -04:00
Tobias Hartmann
43a5abc876 8078497: C2's superword optimization causes unaligned memory accesses
Prevent vectorization of memory operations with different invariant offsets if unaligned memory accesses are not allowed.

Reviewed-by: kvn
2015-05-08 12:19:17 +02:00
Goetz Lindenmaier
6d705e6978 8078593: [TESTBUG] ppc: Enable jtreg tests for new features
Also fix a ppc issue in test_env.sh

Reviewed-by: kvn
2015-04-24 10:49:38 +02:00
Michael C Berg
a880f3d139 8078563: Restrict reduction optimization
Reviewed-by: kvn, twisti
2015-04-29 15:34:04 -07:00
Alejandro Murillo
40dd1bad2c Merge 2015-05-02 00:16:29 -07:00
Vladimir Kozlov
a8e9687134 8079231: quarantine compiler/jsr292/CallSiteDepContextTest.java
Reviewed-by: dlong
2015-05-01 14:23:42 -07:00
Alejandro Murillo
d83bdb4157 Merge 2015-05-01 03:56:01 -07:00
Bharadwaj Yadavalli
f8d0a6ff28 Merge 2015-04-30 18:14:58 -04:00
Roland Westrelin
3cdae26a75 8078426: mb/jvm/compiler/InterfaceCalls/testAC2 - assert(predicate_proj == 0L) failed: only one predicate entry expected
Split if finds predicates on several incoming paths when unswitched's loops are optimized out

Reviewed-by: kvn
2015-04-29 14:43:12 -07:00
Christian Tornqvist
8923c30225 8077994: [TESTBUG] Exclude compiler/floatingpoint/ModNaN.java
Reviewed-by: hseigel, ccheung
2015-04-28 14:45:57 -07:00
Alexander Kulyakthin
462f735dac 8067013: Rename the com.oracle.java.testlibary package
Reviewed-by: dholmes, gtriantafill, sla
2015-05-04 16:30:07 +02:00
Roland Westrelin
cb19c4b63a 8078444: compiler/arraycopy/TestArrayCopyNoInitDeopt.java fails with exception 'm2 not deoptimized'
Some platform don't have speculative types

Reviewed-by: kvn
2015-04-23 16:38:08 +02:00
Vladimir Ivanov
b30f24676e 8078309: compiler/jsr292/MHInlineTest.java failed with java.lang.RuntimeException: 'MHInlineTest$A::protected_x (3 bytes) virtual call' found in stdout
Reviewed-by: jrose
2015-04-22 21:33:55 +03:00
Christian Tornqvist
1314bfbc94 Merge 2015-04-17 23:55:04 +00:00
Christian Tornqvist
06aabb4769 8077608: [TESTBUG] Enable Hotspot jtreg tests to run in agentvm mode
Reviewed-by: sla, gtriantafill
2015-04-17 16:12:16 -07:00
Vladimir Kozlov
b9c00b1904 Merge 2015-04-16 14:05:48 -07:00
Roland Westrelin
cb7a08139b 8074676: java.lang.invoke.PermuteArgsTest.java fails with "assert(is_Initialize()) failed: invalid node class"
After guards in Arrays.copyOf() intrinsic, control may become top

Reviewed-by: kvn, vlivanov
2015-04-15 11:01:56 +02:00
Andrew Haley
d81e78e8bc 8077615: AARCH64: Add C2 intrinsic for BigInteger::multiplyToLen() method
Add C2 intrinsic for BigInteger::multiplyToLen() on AArch64.

Reviewed-by: kvn
2015-04-14 11:43:18 +01:00
Vladimir Ivanov
5ff12acb9d 8062280: C2: inlining failure due to access checks being too strict
Reviewed-by: kvn
2015-04-14 18:11:06 +03:00
Calvin Cheung
d4c484b0ba Merge 2015-04-03 13:45:33 -07:00
Alexander Kulyakthin
01b9971365 8075586: Add @modules as needed to the open hotspot tests
Reviewed-by: sla, ctornqvi, lfoltan, mchung, alanb
2015-03-26 16:36:56 +01:00
Kirill Zhaldybin
d4860ee85e 8071546: hotspot/test/compiler/codecache/jmx/PoolsIndependenceTest.java has been fixed, but still is in the exclude list
Deleted @ignore clause

Reviewed-by: iignatyev
2015-04-13 15:02:35 +03:00
Tobias Hartmann
03116a7e0e 8076625: IndexOutOfBoundsException in HeapByteBufferTest.java
Use Utils::getRandomInstance and nextInt to get reproducable and limited random values.

Reviewed-by: kvn, vlivanov
2015-04-13 07:00:47 +02:00
Vladimir Kozlov
b72eca85b5 Merge 2015-04-03 11:41:01 -07:00
Michael C Berg
9e55e44c85 8074981: Integer/FP scalar reduction optimization
Add scalar reduction optimization to C2 to take advantage of vector instructions in modern x86 CPUs.

Reviewed-by: kvn, twisti
2015-04-01 18:07:50 -07:00
Roland Westrelin
7c5d30b0e3 8075587: Compilation of constant array containing different sub classes crashes the JVM
Meet of 2 constant arrays result in bottom

Reviewed-by: kvn
2015-03-27 13:47:33 +01:00
Andrew Haley
1dfbc44c1f 8026049: (bf) Intrinsify ByteBuffer.put{Int, Double, Float, ...} methods
Use unaligned Unsafe loads and stores for ByteBuffer access on platforms which support unaligned access. Add intrinsics for Unsafe.{get,put}-X-Unaligned methods.

Reviewed-by: dholmes, jrose, psandoz, kvn
2015-03-31 12:31:18 -07:00
Roland Westrelin
61aa1cfdef 8075921: assert assert(allocx == alloc) fails in library_call.cpp
Control becomes top after arraycopy guards and confuses tighly coupled allocation logic

Reviewed-by: kvn, vlivanov
2015-03-27 08:58:45 +01:00
Roland Westrelin
05ea4dbf1e 8069191: moving predicate out of loops may cause array accesses to bypass null check
Remove CastPP nodes only during final graph reshape

Reviewed-by: kvn, jrose
2015-03-24 10:25:09 +01:00
Vladimir Ivanov
f98a23137c 8057967: CallSite dependency tracking scales devastatingly poorly
Reviewed-by: jrose, roland, plevart, shade
2015-04-17 18:17:06 +03:00
Roland Westrelin
b81d606a4c 8075663: compiler/rangechecks/TestExplicitRangeChecks.java fails in compiler nightlies
-Xmixed following -Xcomp doesn't undo the effect of -Xcomp with tiered on

Reviewed-by: kvn, vlivanov
2015-03-23 17:09:41 +01:00
Severin Gehwolf
e1d7a11c64 8075533: Zero JVM segfaults for -version after JDK-8074552
Remove SafeFetchXX Zero implementations and guard test with CanUseSafeFetchXX

Reviewed-by: simonis, coleenp
2015-03-23 13:53:44 +01:00
Zoltan Majo
41b79b9ad4 8074869: C2 code generator can replace -0.0f with +0.0f on Linux
Instead of 'fpclass', use cast float->int and double->long to check if value is +0.0f and +0.0d, respectively.

Reviewed-by: kvn, simonis, dlong
2015-03-14 11:21:04 +01:00
Roland Westrelin
44381600a5 8069263: assert(fm == NULL || fm->method_holder() == _participants[n]) failed: sanity
Default methods added to classes confuse dependency processing

Reviewed-by: kvn
2015-03-12 14:15:09 +01:00
Tatiana Pivovarova
9ed9ae6214 8075488: compiler/whitebox/DeoptimizeFramesTest fails with exit code 1 due to unrecognized VM option -XX:+IgnoreUnexpectedVMOptions
Reviewed-by: kvn
2015-03-21 21:47:49 +03:00
Roland Westrelin
0258ef4abc 8073866: Fix for 8064703 is not sufficient
Side effects between allocation and arraycopy can be reexecuted, unreachable uninitialized array can be seen by GCs

Reviewed-by: kvn, vlivanov
2015-03-16 12:24:06 +01:00
Roland Westrelin
71e31ee0b9 8073480: C2 should optimize explicit range checks
Explicit range checks should be recognized by C2

Reviewed-by: kvn, vlivanov
2015-03-17 10:06:31 +01:00
Igor Ignatyev
cc89bac7ab 8074980: add WhiteBox API to get a flag value for a method
Reviewed-by: kvn, fzhinkin
2015-03-12 19:11:25 +03:00
Igor Ignatyev
b78d23ed01 8073860: [TESTBUG] compiler/whitebox/DeoptimizeFramesTest fails with exit code 1
Reviewed-by: kvn, roland
2015-03-12 19:12:52 +03:00
Tobias Hartmann
e5f039dbfb Merge 2015-03-02 15:11:55 +00:00
Tobias Hartmann
b4420f1516 8006960: hotspot, "impossible" assertion failure
Escape state of allocated object should be always adjusted after it was passed to a method.

Reviewed-by: kvn
2015-03-02 13:40:40 +01:00
Filipp Zhinkin
dbf67b8e69 8073154: NULL-pointer dereferencing in LIR_OpProfileType::print_instr
Reviewed-by: iveresov
2015-02-27 11:41:42 +03:00
Zoltan Majo
b5f763492e Merge 2015-02-28 12:33:50 +00:00
Stefan Anzinger
292cc73546 8073670: TypeF::eq and TypeD::eq do not handle NaNs correctly
Change TypeF:eq and TypeD:eq to compare NaN values using a bitwise comparison.

Reviewed-by: kvn
2015-02-27 13:21:05 +01:00
Roland Westrelin
3a627c0d83 8073792: assert((get_length_if_constant(phase) == -1) == !ary_src->size()->is_con()) failed: inconsistent
Assert in array copy code broken when array size becomes known during igvn

Reviewed-by: kvn, vlivanov
2015-02-25 10:44:38 +01:00
Igor Veresov
14cf940405 8073735: compiler/loopopts/CountedLoopProblem.java got OOME
Ignore OOM in the test

Reviewed-by: kvn
2015-02-24 23:31:00 -08:00
Roland Westrelin
f4f9769cd2 8073184: Compile of java.lang.Integer::getChars fails with LoopLimitCheck = false after 8054478
CastII that guards counted loops confuses range check elimination with LoopLimitCheck off

Reviewed-by: kvn, iveresov
2015-02-24 15:23:05 +01:00
Roland Westrelin
88848bd9e8 6912521: System.arraycopy works slower than the simple loop for little lengths
Convert small array copies to series of loads and stores

Reviewed-by: kvn, vlivanov
2015-02-18 18:14:07 +01:00
Dmitrij Pochepko
c71eca0cbf 8068461: compiler/codecache/jmx/UsageThresholdIncreasedTest.java failed: java.lang.RuntimeException: Usage threshold was hit: 1 times for CodeHeap 'non-nmethods'
Added filter for invalid testcase

Reviewed-by: kvn, iignatyev
2015-02-19 23:47:01 +03:00
Igor Ignatyev
0596217df6 8073499: quarantine compiler/tiered/LevelTransitionTest
Reviewed-by: kvn
2015-02-19 23:49:22 +03:00
Igor Veresov
783f2be52f 8072753: Nondeterministic wrong answer on arithmetic
Check for overflow when inverting the loop during the counted loop conversion

Reviewed-by: kvn
2015-02-17 11:00:18 -08:00
Roland Westrelin
e6ac3ca09e 8072016: Array copy may cause infinite cycle of deoptimization/compilation
Infinite deoptimization/recompilation cycles in case of arraycopy with tightly coupled allocation

Reviewed-by: kvn, vlivanov
2015-02-09 15:10:58 +01:00
Pavel Chistyakov
fb0bdf6a4b 8068003: compiler/whitebox/DeoptimizeFramesTest.java fails: compilation 48 can't be available
Disabled DeoptimizeALot for test runs

Reviewed-by: kvn
2015-01-30 20:45:18 +03:00
Zoltan Majo
a25fe37e17 8072398: assert fails in L1RGenerator::increment_event_counter_impl
Change scaling code to allow scaling with 0.0; change set_tiered_flags() to treat CompileThresholdScaling==0.0 in a special way.

Reviewed-by: kvn, iveresov
2015-02-06 18:16:55 +01:00
Albert Noll
18ccddbb82 Merge 2015-02-03 09:56:21 +00:00
Albert Noll
c5bb133c68 8068440: Test6857159.java times out
Replace shell script with Java-only code

Reviewed-by: kvn, iignatyev
2015-02-03 10:30:16 +01:00
Tobias Hartmann
2b99947be1 Merge 2015-02-02 14:35:24 +00:00
Tobias Hartmann
87ac24f1e2 8071995: compiler/codecache/jmx/InitialAndMaxUsageTest.java fails with large pages
Disable large page usage for test.

Reviewed-by: kvn
2015-02-02 15:19:24 +01:00
Dean Long
5b196d9525 Merge 2015-01-31 02:42:13 -05:00
Yumin Qi
07acd9a05e Merge 2015-01-30 10:52:25 -08:00
Albert Noll
a32f9adb0f 8071906: Quarantine OverloadCompileQueueTest until the reason for timeout is known
Quarantine OverloadCompileQueueTest until the reason for timeout is known

Reviewed-by: kvn
2015-01-30 15:20:45 +01:00
Yumin Qi
d843d8fd70 Merge 2015-01-29 01:13:14 +00:00
Katja Kantserova
f6d01b3697 8071545: Tests are still excluded while the appropriate bug has been fixed
Reviewed-by: sspitsyn, sla
2015-01-28 09:27:49 +01:00
Tobias Hartmann
ad9c86bc97 8064940: JMH javac performance regressions on solaris-sparcv9 in 9-b34
Aligning code heap sizes to large page size if supported.

Reviewed-by: kvn, anoll
2015-01-28 07:55:27 +01:00
Dean Long
fb0b5b0159 Merge 2015-01-27 13:58:55 -05:00
Pavel Chistyakov
fb6e6379b0 8069125: compiler/codecache/stress tests timeout in nightlies
Added timeout between one of test threads iterations, adjusted hole test execution time

Reviewed-by: kvn
2015-01-26 19:01:50 +03:00
Pavel Chistyakov
28c5919585 8066998: [TESTBUG] compiler/whitebox/ForceNMethodSweepTest.java : sweep shouldn't increase usage
Disable background compilation

Reviewed-by: kvn
2015-01-26 18:59:09 +03:00
Zoltan Majo
1da8218179 8071312: compiler/arguments/CheckCompileThresholdScaling.java fails
Change the way VM handles CompileThresholdScaling==0, update test

Reviewed-by: kvn, drchase, fzhinkin
2015-01-26 10:43:42 +01:00
Dean Long
eb08f7cb70 Merge 2015-01-22 18:23:54 -05:00
Zoltan Majo
e559c17954 8059606: Enable per-method usage of CompileThresholdScaling (per-method compilation thresholds)
Changed interpreter and compilation policies to allow using CompileThresholdScaling on a per-method level

Reviewed-by: jrose, kvn
2015-01-21 10:51:35 +01:00
Filipp Zhinkin
1249ca93f9 8069126: compiler/rtm/locking/TestRTMTotalCountIncrRate.java nightly failure
Reviewed-by: kvn
2015-01-20 11:26:20 +03:00
Nils Eliasson
a43e328b4a 8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
Fixed whitespace handling and added test cases

Reviewed-by: kvn, anoll, zmajo
2015-01-22 11:23:13 +01:00
Nils Eliasson
01ec695002 8069389: CompilerOracle prefix wildcarding is broken for long strings
Replace strcpy with memmove

Reviewed-by: kvn
2015-01-22 11:05:14 +01:00
Yumin Qi
08c8e0bd31 Merge 2015-01-18 11:49:22 -08:00
Pavel Chistyakov
0b17d19f48 8068231: Several tests are still excluded
Reviewed-by: kvn, iignatyev
2015-01-16 15:08:20 +03:00
Dmitrij Pochepko
427f25366e 8068385: [TESTBUG] hotspot/test/compiler/codecache/jmx/PoolsIndependenceTest.java sometimes fails(unstable behaviour)
Fixing unstable behaviour of 2 tests

Reviewed-by: iignatyev
2015-01-16 20:59:23 +04:00
Axel Siebenborn
0520df8a92 8068909: SIGSEGV in c2 compiled code with OptimizeStringConcat
Reviewed-by: kvn
2015-01-16 13:58:22 +01:00
Dean Long
e2bf1cd30d Merge 2015-01-15 16:51:09 -05:00
Paul Sandoz
bfe8fc7433 8054494: Remove sun.misc.Unsafe.monitorEnter, monitorExit and tryMonitorEnter
Co-authored-by: Filipp Zhinkin <filipp.zhinkin@gmail.com>
Reviewed-by: dholmes, coleenp
2015-01-15 11:18:20 +01:00