Commit Graph

950 Commits

Author SHA1 Message Date
Changpeng Fang
e3b5580ecc 6852078: HSX 14/16 in jdk 5.0: api/javax_management api/org_omg jck tests crashes or make tnameserv crash
Disable SuperWord optimization for unsafe read/write

Reviewed-by: kvn, phh
2009-10-30 10:12:52 -07:00
Changpeng Fang
c1eacdef5a Merge 2009-10-29 08:49:31 -07:00
Antonios Printezis
9f337f438a Merge 2009-10-19 17:02:19 -04:00
Tom Rodriguez
8eace255e1 6891750: deopt blob kills values in O5
Reviewed-by: kvn, twisti
2009-10-15 11:47:13 -07:00
Tom Rodriguez
9b306d03ee 6885584: A particular class structure causes large allocation spike for jit
Reviewed-by: kvn
2009-10-07 15:38:37 -07:00
Volker Simonis
930f3d4570 6880034: SIGBUS during deoptimisation at a safepoint on 64bit-SPARC
Fix problem with the double register encodings in sparc.ad

Reviewed-by: never, jrose
2009-10-06 10:15:38 -07:00
Christian Thalinger
e4541dcd08 6879902: CTW failure jdk6_18/hotspot/src/cpu/sparc/vm/assembler_sparc.hpp:845
For signatures with a large number of arguments the offset for the float store becomes too big and does not fit in 13-bit.

Reviewed-by: kvn, never
2009-10-06 02:11:49 -07:00
John Coomes
e379759e1b 6887948: test/gc/6845368/bigobj.java fails due to timeout
Reviewed-by: iveresov
2009-10-05 05:51:22 -07:00
Changpeng Fang
9640e8148d 6886353: For DeoptimizeALot, JTreg tests should "IgnoreUnrecognizedVMOptions on a product build
Add IgnoreUnrecognizedVMOptions for JTreg tests (on a product build) to pass with DeoptimizeALot

Reviewed-by: kvn
2009-09-28 17:14:25 -07:00
John R Rose
40d52710f6 Merge 2009-09-23 23:56:15 -07:00
Vladimir Kozlov
243514d483 6827605: new String intrinsics may prevent EA scalar replacement
6875866: Intrinsic for String.indexOf() is broken on x86 with SSE4.2

Modify String intrinsic methods to pass char[] pointers instead of string oops.

Reviewed-by: never
2009-09-14 12:14:20 -07:00
Vladimir Kozlov
5e31e14ea4 Merge 2009-09-14 11:45:03 -07:00
Changpeng Fang
c492f4cde5 6877254: Server vm crashes with no branches off of store slice" when run with CMS and UseSuperWord(default)
Design StoreCMNode::Ideal to promote its oopStore input if the input is a MergeMem node

Reviewed-by: kvn, never
2009-09-14 09:49:54 -07:00
Vladimir Kozlov
75e90c9027 6880533: test/compiler/6865031/Test.java miss -XX:+IgnoreUnrecognizedVMOptions
Add missing test option -XX:+IgnoreUnrecognizedVMOptions.

Reviewed-by: never
2009-09-09 16:28:03 -07:00
Andrey Petrusenko
9ae6fb796e Merge 2009-09-04 05:31:37 -07:00
Tom Rodriguez
57a92290f4 6855215: Calculation error (NaN) after about 1500 calculations
Reviewed-by: kvn
2009-08-31 17:07:53 -07:00
Changpeng Fang
457be8ad49 6876276: assert(!is_visited,"visit only once")
Schedule the superword loads based on dependence constraints

Reviewed-by: kvn, never
2009-08-31 08:31:45 -07:00
Tom Rodriguez
cc01c0f4f6 6795465: Crash in assembler_sparc.cpp with client compiler on solaris-sparc
Reviewed-by: twisti, cfang
2009-08-17 14:45:02 -07:00
Changpeng Fang
05c34e93bd 6866651: Regression: simple int sum crashes jvm (build 1.6.0_14-b08 and 1.7.0-ea-b59)
Delay dead code elimination in set_req_X to make it safe

Reviewed-by: kvn, never
2009-08-17 12:11:06 -07:00
Vladimir Kozlov
ab7a29cdcc Merge 2009-08-06 09:37:26 -07:00
Vladimir Kozlov
adcbcc3cdc 6868486: timouts and outOfMemory in regression tests
Increase timeout for tests and heap size for 6851282 test.

Reviewed-by: never, cfang
2009-08-04 17:11:17 -07:00
Changpeng Fang
ae00753bf7 6833129: specjvm98 fails with NullPointerException in the compiler with -XX:DeoptimizeALot
Developed a reexecute logic for the interpreter to reexecute the bytecode when deopt happens

Reviewed-by: kvn, never, jrose, twisti
2009-07-31 17:12:33 -07:00
Vladimir Kozlov
f2ea22a547 6865031: Application gives bad result (throws bad exception) with compressed oops
Produce narrow type for new Phi from the original Phi type.

Reviewed-by: cfang
2009-07-31 12:04:07 -07:00
John Coomes
e7c70c499b 6845368: large objects cause a crash or unexpected exception
Reviewed-by: jmasa, iveresov
2009-08-13 16:22:45 -07:00
Erik Trimble
e846382e12 Merge 2009-07-29 16:00:35 -07:00
Xiomara Jayasena
a63ef10004 6862919: Update copyright year
Update copyright for files that have been modified in 2009, up to 07/09

Reviewed-by: tbell, ohair
2009-07-28 12:12:40 -07:00
Christian Thalinger
6dd47535cd 6863155: Server compiler generates incorrect code (x86, long, bitshift, bitmask)
Code compiled with server compiler generates an incorrect result.

Reviewed-by: cfang, never, kvn
2009-07-28 09:02:30 +02:00
Vladimir Kozlov
2641db378b 6863420: os::javaTimeNanos() go backward on Solaris x86
Use new atomic long load method Atomic::load() to load max_hrtime.

Reviewed-by: never, ysr, johnc, phh, dcubed, acorn
2009-07-26 16:40:14 -07:00
Vladimir Kozlov
b0f75657c5 6826736: CMS: core dump with -XX:+UseCompressedOops
Fix deoptimization code and OopMapSet::all_do() to check for oop = narrow_oop_base.

Reviewed-by: jcoomes, phh, ysr, never
2009-07-22 15:48:51 -07:00
Tom Rodriguez
62ca1df1dd 6857159: local schedule failed with checkcast of Thread.currentThread()
Reviewed-by: kvn
2009-07-21 16:42:58 -07:00
Vladimir Kozlov
7229ae9b95 Merge 2009-07-17 00:50:55 -07:00
Tom Rodriguez
1c4a7e95bb 6861513: correct copyright attribution in test for 6837094 and 6860469
Reviewed-by: rasbold
2009-07-16 17:59:27 -07:00
Vladimir Kozlov
2e2f60507e 6851282: JIT miscompilation results in null entry in array when using CompressedOops
Get type for new Phi from non dead path.

Reviewed-by: never
2009-07-16 16:29:55 -07:00
Hiroshi Yamauchi
a24ea182cc 6860469: remix_address_expressions sets incorrect control causing crash in split_if_with_block_post
Co-authored-by: Chuck Rasbold <rasbold@google.com>
Reviewed-by: never, kvn
2009-07-15 13:37:35 -07:00
Tom Rodriguez
df1c3da3f8 Merge 2009-07-13 15:00:22 -07:00
Tom Rodriguez
5a409d142f 6859338: amd64 native unverified entry point pushes values before implicit null check
Reviewed-by: kvn, twisti
2009-07-13 14:58:17 -07:00
Changpeng Fang
92d332e08b 6857707: Add missing test case for CR 6855164 from its bug description
Add missing test case for CR 6855164 from its bug description.

Reviewed-by: never
2009-07-06 12:54:17 -07:00
Christian Thalinger
a9ad90fa87 5057225: Remove useless I2L conversions
The optimizer should be told to normalize (AndL (ConvI2L x) 0xFF) to (ConvI2L (AndI x 0xFF)), and then the existing matcher rule will work for free.

Reviewed-by: kvn
2009-06-26 07:26:10 -07:00
Chuck Rasbold
2c5f52b511 6837094: False positive for "meet not symmetric" failure
Have the meet not symmetric check recursively do the interface-vs-oop check on array subtypes.

Reviewed-by: jrose
2009-06-23 17:52:29 -07:00
Tom Rodriguez
0f4f530213 6849574: VM crash using NonBlockingHashMap (high_scale_lib)
Reviewed-by: kvn
2009-06-10 12:19:48 -07:00
Vladimir Kozlov
802f3552f9 6843752: missing code for an anti-dependent Phi in GCM
Don't place a load below anti-dependent PHI.

Reviewed-by: never, twisti
2009-05-27 12:35:51 -07:00
Vladimir Kozlov
fdb3ca8708 6772683: Thread.isInterrupted() fails to return true on multiprocessor PC
Set the control edge for the field _interrupted load in inline_native_isInterrupted().

Reviewed-by: never
2009-05-21 10:05:36 -07:00
Christian Thalinger
8a262ce04b 6814842: Load shortening optimizations
6797305 handles load widening but no shortening which should be covered here.

Reviewed-by: never, kvn
2009-05-13 00:45:22 -07:00
Vladimir Kozlov
6202395cb2 6832293: JIT compiler got wrong result in type checking with -server
Check for an object array of interface in CmpPNode::sub().

Reviewed-by: never
2009-05-11 17:59:54 -07:00
Kelly O'Hair
4ac53f2566 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
Reviewed-by: never, kvn
2009-05-08 15:16:38 -07:00
Christian Thalinger
a7d12b2fbf Merge 2009-05-07 04:16:53 -07:00
Christian Thalinger
1576a9be9e Merge 2009-05-07 00:28:13 -07:00
Christian Thalinger
96139033e6 6837011: SIGSEGV in PhaseIdealLoop in 32bit jvm
The CR's test crashes with SIGSEGV when running with "-server -Xcomp" using using 32bit jvm.

Reviewed-by: kvn, never, rasbold
2009-05-06 12:04:42 -07:00
Christian Thalinger
e53f13b49f 6837906: compiler tests of 6636138 fail with IllegalAccessException
The compiler tests of 6636138 fail with an IllegalAccessException.

Reviewed-by: kvn
2009-05-06 08:57:24 -07:00
Christian Thalinger
6a270f9f19 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
These methods can be instrinsified by using bit scan, bit test, and population count instructions.

Reviewed-by: kvn, never
2009-05-06 00:27:52 -07:00
Changpeng Fang
003ca0f848 6833951: Extra ":" Causes Testcase in CR 6589834 "Parse Exception: Invalid tag: summary:"
Remove the colon

Reviewed-by: never
2009-04-24 09:14:39 -07:00
Changpeng Fang
04fdef79fa 6589834: deoptimization problem with -XX:+DeoptimizeALot
Relocate the stack pointer adjustment to where uncommon_trap is actually inserted for new_array.

Reviewed-by: kvn, jrose
2009-04-23 14:04:24 -07:00
Tom Rodriguez
62717f091a Merge 2009-04-14 12:25:54 -07:00
Changpeng Fang
08466ce0ca 6829021: tests for 6636138 use UseSuperword instead of UseSuperWord
Remove the wrong flag -XX:+UseSuperword to fix the Nightly failure

Reviewed-by: kvn, never
2009-04-10 15:01:14 -07:00
Vladimir Kozlov
ca3a3504be 6711117: Assertion in 64bit server vm (flat != TypePtr::BOTTOM,"cannot alias-analyze an untyped ptr")
Delay a memory node transformation if its control or address on IGVN worklist.

Reviewed-by: never
2009-04-07 19:04:24 -07:00
Tom Rodriguez
72afcb0285 6539464: Math.log() produces inconsistent results between successive runs
Reviewed-by: kvn
2009-04-06 11:53:17 -07:00
Vladimir Kozlov
090346b4e8 6823453: DeoptimizeALot causes fastdebug server jvm to fail with assert(false,"unscheduable graph")
Use a HaltNode on the fall through path of the AllocateArrayNode to indicate that it is unreachable if the array length is negative.

Reviewed-by: never, jrose
2009-04-03 13:33:32 -07:00
Karen Kinnear
d4f2196cd0 Merge 2009-04-02 18:17:03 -04:00
Paul Hohensee
4be7c3c672 6819213: revive sun.boot.library.path
Support multiplex and mutable sun.boot.library.path

Reviewed-by: acorn, dcubed, xlu
2009-04-01 16:38:01 -04:00
Changpeng Fang
fface2e4ca 6636138: UseSuperWord enabled failure
Fixed SuperWord scheduling of memory operations.

Reviewed-by: kvn, never
2009-03-24 12:19:47 -07:00
Vladimir Kozlov
41463d1d3a Merge 2009-03-19 09:13:24 -07:00
Christian Thalinger
de67e52949 6378821: bitCount() should use POPC on SPARC processors and AMD+10h
BitCount() should use POPC on SPARC processors where POPC is implemented directly in hardware.

Reviewed-by: kvn, never
2009-03-13 11:35:17 -07:00
Erik Trimble
8d6035660e Merge 2009-03-12 18:16:36 -07:00
Xiomara Jayasena
2be2e027b0 6814575: Update copyright year
Update copyright for files that have been modified in 2009, up to 03/09

Reviewed-by: katleman, tbell, ohair
2009-03-09 13:28:46 -07:00
Christian Thalinger
89cea91c48 6797305: Add LoadUB and LoadUI opcode class
Add a LoadUB (unsigned byte) and LoadUI (unsigned int) opcode class so we have these load optimizations in the first place and do not need to handle them in the matcher.

Reviewed-by: never, kvn
2009-03-09 03:17:11 -07:00
Christian Thalinger
dd25f39709 6805724: ModLNode::Ideal() generates functionally incorrect graph when divisor is any (2^k-1) constant
C2, ModLNode::Ideal() generates functionally incorrect graph when divisor is any (2^k-1) constant.

Reviewed-by: rasbold
2009-02-16 07:19:26 -08:00
Christian Thalinger
a2ed00b650 6800154: Add comments to long_by_long_mulhi() for better understandability
This patch adds a comment pointing to the Hacker's Delight version of the algorithm plus a verbatim copy of it.  Furthermore it adds inline comments.

Reviewed-by: kvn, jrose
2009-02-13 09:09:35 -08:00
Vladimir Kozlov
94a461f4cb 6799693: Server compiler leads to data corruption when expression throws an Exception
Use merged memory state for an allocation's slow path.

Reviewed-by: never
2009-02-05 14:43:58 -08:00
Vladimir Kozlov
72b75d1adf 6788376: allow to ignore unrecognized VM options
Add new product flag -XX:+IgnoreUnrecognizedVMOptions

Reviewed-by: ysr, xlu
2009-02-05 13:38:52 -08:00
Christian Thalinger
17d35f31a2 6799452: HotSpot tests Makefile should take care of ALT_SLASH_JAVA
The HotSpot tests Makefile has a hardcoded SLASH_JAVA which makes it difficult to run the tests on non-Sun build machines which do not have a /java infrastructure.

Reviewed-by: kamg
2009-02-03 08:10:28 -08:00
Christian Thalinger
ecbdf3bb83 6795362: 32bit server compiler leads to wrong results on solaris-x86
The C2 compiler leads to wrong results on solaris-i486 (32-bit) for a testcase given in the CR.

Reviewed-by: never, rasbold
2009-02-03 01:39:12 -08:00
Gary Benson
347b8afe5b 6778657: Casts in SharedRuntime::f2i, f2l, d2i and d2l rely on undefined C++ behaviour
Replaces SharedRuntime::f2i et al with versions that should work

Reviewed-by: never
2008-12-22 15:43:02 -08:00
Tom Rodriguez
baa4663714 6758234: if (k cond (a ? : b: c)) returns reversed answer if k is constant and b and c are longs
Reviewed-by: kvn, jrose
2008-12-12 19:55:26 -08:00
Tom Rodriguez
40a81c63b8 6757316: load_constant() produces a wrong long constant, with high a low words swapped
Reviewed-by: rasbold, jrose, kvn
2008-12-12 19:54:46 -08:00
Vladimir Kozlov
f2f18a01e5 6775880: EA +DeoptimizeALot: assert(mon_info->owner()->is_locked(),"object must be locked now")
Create new "eliminated" BoxLock node for monitor debug info when corresponding locks are eliminated.

Reviewed-by: never
2008-12-03 13:41:37 -08:00
Tom Rodriguez
2bba3afabc 6756768: C1 generates invalid code
Reviewed-by: kvn, jrose
2008-11-25 13:14:07 -08:00
Tom Rodriguez
7633aaa177 Merge 2008-10-06 13:11:32 -07:00
Tom Rodriguez
043fde10e5 6743188: incomplete fix for 6700047 C2 failed in idom_no_update
Reviewed-by: rasbold, kvn
2008-10-03 13:58:20 -07:00
Erik Trimble
b089627fe8 6755406: minor mistakes in copyright notices
Mismatch in some header copyrights from standard templates

Reviewed-by: jcoomes
2008-10-02 14:11:33 -07:00
Chuck Rasbold
eee15b163e 6711100: 64bit fastdebug server vm crashes with assert(_base == Int,"Not an Int")
Insert CastII nodes to narrow type of load_array_length() node

Reviewed-by: never, kvn
2008-09-17 08:29:17 -07:00
Kelly O'Hair
68141df565 6745363: Add ability to run packtest to hotspot/test/makefile
Reviewed-by: ksrini
2008-09-11 11:04:55 -07:00
Vladimir Kozlov
3c4879eb9a 6741738: TypePtr::add_offset() set incorrect offset when the add overflows
Set offset to OffsetBot when the add overflows in TypePtr::add_offset()

Reviewed-by: jrose, never
2008-08-27 14:47:32 -07:00
Vladimir Kozlov
50c4a23cac 6726999: nsk/stress/jck12a/jck12a010 assert(n != null,"Bad immediate dominator info.")
Escape Analysis fixes.

Reviewed-by: never, rasbold
2008-07-28 17:12:52 -07:00
Tom Rodriguez
20de63f383 6700047: C2 failed in idom_no_update
Partial peeling shouldn't place clones into loop

Reviewed-by: kvn
2008-07-25 15:54:23 -07:00
Tom Rodriguez
7b4a7f7bdc 6712835: Server compiler fails with assertion (loop_count < K,"infinite loop in PhaseIterGVN::transform")
Reviewed-by: kvn
2008-07-25 11:32:56 -07:00
Vladimir Kozlov
fae39068e8 6723160: Nightly failure: Error: meet not symmetric
Add missing _instance_id settings and other EA fixes.

Reviewed-by: rasbold
2008-07-16 16:04:39 -07:00
Erik Trimble
2d6f42d18c Merge 2008-07-11 01:14:44 -07:00
Xiomara Jayasena
c96a95c4b8 6719955: Update copyright year
Update copyright year for files that have been modified in 2008

Reviewed-by: ohair, tbell
2008-07-02 12:55:16 -07:00
Vladimir Kozlov
4213e62fb7 6716441: error in meet with +DoEscapeAnalysis
Set instance_id to InstanceBot for InstPtr->meet(AryPtr) when types are not related.

Reviewed-by: jrose, never
2008-06-26 13:34:00 -07:00
Vladimir Kozlov
694776b297 6714694: assertion in 64bit server vm (store->find_edge(load) != -1,"missing precedence edge") with COOPs
The method raise_LCA_above_marks() terminates LCA search early.

Reviewed-by: rasbold, never
2008-06-20 10:17:09 -07:00
Keith McGuigan
d58beaefde Merge 2008-06-06 13:43:36 -04:00
Keith McGuigan
319d956145 6706604: Copyright headers need to be changed to GPL
Update the copyrights

Reviewed-by: ohair
2008-05-29 14:06:30 -04:00
Vladimir Kozlov
757229db71 6695810: null oop passed to encode_heap_oop_not_null
Fix several problems in C2 related to Escape Analysis and Compressed Oops.

Reviewed-by: never, jrose
2008-05-21 10:45:07 -07:00
Chuck Rasbold
088cd1203f 6646019: array subscript expressions become top() with -d64
Stop compilation after negative array allocation

Reviewed-by: never, jrose
2008-04-24 14:02:13 -07:00
Tom Rodriguez
6f63c6e88b 6663848: assert(i < Max(),"oob") in C2 with -Xcomp
NeverBranchNodes aren't handled properly

Reviewed-by: kvn, sgoldman, rasbold, jrose
2008-04-24 11:13:03 -07:00
Tom Rodriguez
3093e354db 6646020: assert(in_bb(n),"must be in block") in -Xcomp mode
Reviewed-by: kvn, rasbold
2008-04-03 21:26:03 -07:00
Tom Rodriguez
a2b4f55757 6663621: JVM crashes while trying to execute api/java_security/Signature/SignatureTests.html#initSign tests
Alignment expression with secondary induction variables is sometimes wrong

Reviewed-by: kvn, rasbold
2008-03-20 10:43:42 -07:00
Tom Rodriguez
d200260fe5 6661247: Internal bug in 32-bit HotSpot optimizer while bit manipulations
Copy elimination of a constant value results in incorrect execution

Reviewed-by: kvn, sgoldman, rasbold
2008-03-19 15:14:36 -07:00
Tom Rodriguez
49434b6bad 6659207: access violation in CompilerThread0
Split_thru_phi produces top on a non-dead path

Reviewed-by: kvn, rasbold, sgoldman
2008-03-18 23:54:17 -07:00
J. Duke
8153779ad3 Initial load 2007-12-01 00:00:00 +00:00