Commit Graph

2477 Commits

Author SHA1 Message Date
Zhengyu Gu
b3eb7daed6 7033100: CreateMinidumpOnCrash does not work for failed asserts
Passing NULL as MINIDUMP_EXCEPTION_INFORMATION when calling MiniDumpWriteDump when crash is due to assertion instead of real exception to avoid creating zero-length mini dump file.

Reviewed-by: acorn, dcubed, poonam, coleenp
2011-04-14 11:50:36 -04:00
Vladimir Danushevsky
0ab6045255 Merge 2011-04-14 11:02:05 -04:00
Christian Thalinger
2234bb04a7 Merge 2011-04-14 06:46:38 -07:00
Xerxes Ranby
c933c7d4f2 7036220: Shark fails to find LLVM 2.9 System headers during build
Reviewed-by: gbenson, twisti
2011-04-14 01:53:12 -07:00
Igor Veresov
3344bbfb29 7036236: VM crashes assert((!inside_attrs()) || is_error_reported()) failed ..
Eliminate the race condition.

Reviewed-by: kvn
2011-04-14 00:02:21 -07:00
John Cuthbertson
20a3437a74 7035117: G1: nsk/stress/jni/jnistress002 fails with assertion failure
Allow long type for offset in G1 code in compiler implementations of Unsafe.getObject

Reviewed-by: never, iveresov
2011-04-13 17:56:43 -07:00
Igor Veresov
aac4b1553e 6988308: assert((cnt > 0.0f) && (prob > 0.0f)) failed: Bad frequency assignment in if
Make sure cnt doesn't become negative and integer overflow doesn't happen.

Reviewed-by: kvn, twisti
2011-04-13 14:33:03 -07:00
Coleen Phillimore
3c4d3002f2 Merge 2011-04-12 14:18:53 -07:00
Vladimir Danushevsky
0c1e2baaec Merge 2011-04-12 10:32:42 -04:00
Gary Benson
5001776189 7035870: JSR 292: Zero support
This adds support for JSR 292 to Zero.

Reviewed-by: twisti
2011-04-12 02:40:23 -07:00
David Holmes
09c93cbb25 7034585: Adjust fillInStackTrace filtering to assist 6998871
Allow for one or more fillInStackTrace frames to be skipped

Reviewed-by: mchung, kvn
2011-04-12 02:53:06 -04:00
Vladimir Danushevsky
bea445368e 7005865: Crash when running with PrintIRWithLIR
The failure is caused by uninitialized bci number

Reviewed-by: iveresov
2011-04-11 23:02:37 -04:00
Tom Deneau
899faa3fec 7035713: 3DNow Prefetch Instruction Support
The upcoming processors from AMD are the first that support 3dnow prefetch without supporting the 3dnow instruction set.

Reviewed-by: kvn
2011-04-11 15:30:31 -07:00
Bengt Rutisson
2ea041a2b2 7034625: Product builds in Visual Studio projects should produce full symbol information
Add the /debug flag to the linker command in Visual Studio

Reviewed-by: mgronlun, poonam, hosterda
2011-04-11 11:12:41 +02:00
John R Rose
93459f517d 6987991: JSR 292 phpreboot test/testtracefun2.phpr segfaults
Make MH verification tests more correct, robust, and informative.  Fix lingering symbol refcount problems.

Reviewed-by: twisti
2011-04-09 22:55:25 -07:00
John R Rose
41745904a3 Merge 2011-04-09 21:16:12 -07:00
Tom Rodriguez
bbb0b31bfe 7035161: assert(!o->is_null_object()) failed: null object not yet handled here
Reviewed-by: kvn
2011-04-08 23:00:14 -07:00
Vladimir Kozlov
83ccc5e2c6 Merge 2011-04-08 20:52:28 -07:00
Igor Veresov
e8447846ee 7034967: C1: assert(false) failed: error (assembler_sparc.cpp:2043)
Fix -XX:+VerifyOops

Reviewed-by: kvn, never
2011-04-08 17:03:31 -07:00
Erik Trimble
6f92a23612 7035259: Bump the HS21 build number to 08
Update the HS21 build number to 08

Reviewed-by: jcoomes
2011-04-08 16:18:48 -07:00
Erik Trimble
2914e392a3 Merge 2011-04-08 16:18:38 -07:00
Erik Trimble
260ad514b0 Added tag hs21-b07 for changeset 25580f153384 2011-04-08 15:56:52 -07:00
Vladimir Kozlov
2096fd712c 7004555: Add new policy for one iteration loops
Add new policy for one iteration loops (mostly formal pre- loops).

Reviewed-by: never
2011-04-08 14:56:22 -07:00
Jon Masamitsu
b147ec205b Merge 2011-04-08 14:53:16 -07:00
Jon Masamitsu
b6e631d446 Merge 2011-04-08 14:19:50 -07:00
Tom Rodriguez
fe74e1ba6a 7034957: acquiring lock CodeCache_lock/1 out of order with lock tty_lock/0 -- possible deadlock
Reviewed-by: iveresov
2011-04-07 21:32:23 -07:00
Kelly O'Hair
7bf0d4d5cd 7019210: Fix misc references to /bugreport websites
Reviewed-by: skannan
2011-04-07 20:26:41 -07:00
John Coomes
f9b80cdc1c 6841742: par compact - remove unused/unsupported options
Ignore UseParallel{OldGCDensePrefix,OldGCCompacting,DensePrefixUpdate}

Reviewed-by: jwilhelm, brutisso
2011-04-07 17:16:20 -07:00
John R Rose
f8fe3457a5 7009600: JSR 292 Server compiler crashes in Compile::find_intrinsic(ciMethod*, bool)
Catch errors during the compile-time processing of method handles; back out cleanly

Reviewed-by: twisti
2011-04-07 17:12:23 -07:00
John R Rose
b95f04efbf 7012087: JSR 292 Misleading exception message for a non-bound MH for a virtual method
Improve error message formatting to give more information to user.  Also, catch a corner case related to 6930553 and 6844449.

Reviewed-by: kvn
2011-04-07 17:12:21 -07:00
John R Rose
16784a72e8 6981791: remove experimental code for JSR 292
Reviewed-by: twisti
2011-04-07 17:02:30 -07:00
John Coomes
dadf395fbe 7034133: cleanup obsolete option handling
Reviewed-by: ysr, johnc, poonam
2011-04-07 16:52:15 -07:00
Suchen Chien
0996fdf3ea Added tag jdk7-b137 for changeset 25580f153384 2011-04-07 15:20:57 -07:00
John Cuthbertson
a08e1ce906 7009266: G1: assert(obj->is_oop_or_null(true )) failed: Error
A referent object that is only weakly reachable at the start of concurrent marking but is re-attached to the strongly reachable object graph during marking may not be marked as live. This can cause the reference object to be processed prematurely and leave dangling pointers to the referent object. Implement a read barrier for the java.lang.ref.Reference::referent field by intrinsifying the Reference.get() method, and intercepting accesses though JNI, reflection, and Unsafe, so that when a non-null referent object is read it is also logged in an SATB buffer.

Reviewed-by: kvn, iveresov, never, tonyp, dholmes
2011-04-07 09:53:20 -07:00
Vladimir Kozlov
ed30132e8b 6992789: assert(phi->_idx >= nodes_size()) failed: only new Phi per instance memory slice
Swap checks: check for regular memory slice first and keep input phi.

Reviewed-by: never
2011-04-06 17:32:09 -07:00
Jon Masamitsu
b02fa2a90f Merge 2011-04-06 16:02:53 -07:00
Tom Rodriguez
8a4683b5ed 7034513: enable fast accessors and empty methods for ZERO and -Xint
Reviewed-by: kvn, iveresov
2011-04-06 16:02:50 -07:00
Tom Rodriguez
4f41ea7fff 7033779: CodeCache::largest_free_block may need to hold the CodeCache lock
Reviewed-by: kvn
2011-04-05 19:16:52 -07:00
Tom Rodriguez
aac4647e6e 7032963: StoreCM shouldn't participate in store elimination
Reviewed-by: kvn
2011-04-05 19:14:03 -07:00
Erik Trimble
c9e484d473 7010070: Update all 2010 Oracle-changed OpenJDK files to have the proper copyright dates - second pass
Update the copyright to be 2010 on all changed files in OpenJDK

Reviewed-by: ohair
2011-04-05 14:12:31 -07:00
Tom Rodriguez
14dcde9439 Merge 2011-04-05 02:31:46 -07:00
Tom Rodriguez
1a5a2ecd25 6777083: assert(target != __null,"must not be null")
Reviewed-by: iveresov, kvn
2011-04-05 00:31:09 -07:00
Vladimir Kozlov
073a00a4ca Merge 2011-04-05 00:27:58 -07:00
Tom Rodriguez
642c26950d Merge 2011-04-04 22:17:15 -07:00
Tom Rodriguez
3327aeff0c 6528013: C1 CTW failure with -XX:+VerifyOops assert(allocates2(pc),"")
Reviewed-by: kvn, iveresov
2011-04-04 19:03:35 -07:00
Vladimir Kozlov
3151573d39 7004547: regular loop unroll should not unroll more than max unrolling
Take into account that after unroll conjoined heads and tails will fold.

Reviewed-by: never
2011-04-04 19:02:36 -07:00
Igor Veresov
9ef9a4a3dc Merge 2011-04-04 18:48:49 -07:00
Igor Veresov
1875cfefc6 7033732: C1: When calling c2 arraycopy stubs offsets and length must have clear upper 32bits
With 7033154 we started calling c2 arraycopy stubs from c1. On sparcv9 we must clear the upper 32bits for offset (src_pos, dst_pos) and length parameters when calling them.

Reviewed-by: never, kvn
2011-04-04 16:00:34 -07:00
David Holmes
953a87d003 7009276: Add -XX:+IgnoreUnrecognizedVMOptions to several tests
Reviewed-by: kvn
2011-04-04 18:15:55 -04:00
Tom Rodriguez
774ac503d0 7026957: assert(type2aelembytes(store->as_Mem()->memory_type(), true) == 1 << shift->in(2)->get_int()) failed
Reviewed-by: kvn, jrose
2011-04-04 12:57:04 -07:00
Gary Benson
80dfa0e342 7032458: Zero and Shark fixes
Reviewed-by: twisti
2011-04-04 03:02:00 -07:00
Roland Westrelin
f94d7776ca 7033154: Improve C1 arraycopy performance
Better static analysis. Take advantage of array copy stubs.

Reviewed-by: never
2011-04-03 12:00:54 +02:00
Vladimir Kozlov
00eca5e982 7004535: Clone loop predicate during loop unswitch
Clone loop predicate for clonned loops

Reviewed-by: never
2011-04-02 10:54:15 -07:00
Vladimir Kozlov
68f1177f59 7032314: Allow to generate CallLeafNoFPNode in IdealKit
Added CallLeafNoFPNode generation to IdealKit. Added i_o synchronization.

Reviewed-by: never
2011-04-02 09:49:27 -07:00
Tom Rodriguez
5cd8d5c115 6909440: C2 fails with assertion (_always_cold->is_cold(),"must always be cold")
Reviewed-by: kvn
2011-04-01 21:45:33 -07:00
Erik Trimble
3b74e3fbe5 7033237: Bump the HS21 build number to 07
Update the HS21 build number to 07

Reviewed-by: jcoomes
2011-04-01 20:44:31 -07:00
Erik Trimble
f22754cd60 Merge 2011-04-01 20:44:27 -07:00
Vladimir Kozlov
bcbdcf6f83 Merge 2011-04-01 15:16:04 -07:00
Erik Trimble
f61376e61b Added tag hs21-b06 for changeset 8908d8654a39 2011-04-01 12:06:59 -07:00
Tom Rodriguez
3ad32dbe57 6385687: UseFastEmptyMethods/UseFastAccessorMethods considered harmful
Reviewed-by: kvn, jrose, phh
2011-03-31 21:05:55 -07:00
Suchen Chien
6c26fd43cd Added tag jdk7-b136 for changeset 8908d8654a39 2011-03-31 18:14:04 -07:00
Vladimir Kozlov
f33b8cbb7a 7032849: 7022998 changes broke hs_err compile task print
Initialize the time stamp on ostream used for hs_err dumping.

Reviewed-by: never
2011-03-31 16:54:27 -07:00
Tom Rodriguez
99fefbc760 Merge 2011-03-31 15:30:12 -07:00
Tom Rodriguez
036560e999 7032129: Native memory usage grow unexpectedly for vm/oom/*InternedString tests
Reviewed-by: kvn, kamg, jcoomes
2011-03-31 14:00:41 -07:00
Vladimir Kozlov
0493606cdd 7032696: Fix for 7029152 broke VM
StrIntrinsicNode::Ideal() should not optimize memory during Parse.

Reviewed-by: jrose, never
2011-03-31 13:22:34 -07:00
Keith McGuigan
727612ede9 7030388: JCK test failed to reject invalid class check01304m10n
Restrict fix for 7020118 to only when checking exception handlers

Reviewed-by: dcubed, dholmes
2011-03-31 08:08:50 -04:00
Andrew John Hughes
cf3120dddc 7010849: 5/5 Extraneous javac source/target options when building sa-jdi
Make code changes necessary to get rid of the '-source 1.4 -target 1.4' options.

Reviewed-by: dholmes, dcubed
2011-04-01 15:15:37 -07:00
Gary Benson
df96662d1a 7032775: Include Shark code in the build again
Co-authored-by: Andrew Hughes <ahughes@redhat.com>
Reviewed-by: ohair
2011-03-31 06:54:30 -04:00
Christian Thalinger
c9e2dcda4b 6817525: turn on method handle functionality by default for JSR 292
After appropriate testing, we need to turn on EnableMethodHandles and EnableInvokeDynamic by default.

Reviewed-by: never, kvn, jrose, phh
2011-03-31 02:31:57 -07:00
Christian Thalinger
79c814c616 7032388: guarantee(VM_Version::supports_cmov()) failed: illegal instruction on i586 after 6919934
6919934 added some unguarded cmov instructions which hit a guarantee on older hardware.

Reviewed-by: never, iveresov, kvn, phh
2011-03-31 00:27:08 -07:00
Igor Veresov
9d7277cbb2 Merge 2011-03-30 18:55:04 -07:00
Karen Kinnear
b65a6220c8 Merge 2011-03-30 17:05:40 -07:00
Igor Veresov
65b52f04ae 6564610: assert(UseCompiler || CompileTheWorld, "UseCompiler should be set by now.")
Remove invalid asserts

Reviewed-by: never, kvn
2011-03-30 15:22:41 -07:00
Vladimir Kozlov
3ecb9f51df 7029152: Ideal nodes for String intrinsics miss memory edge optimization
In Ideal() method of String intrinsics nodes look for TypeAryPtr::CHARS memory slice if memory is MergeMem. Do not unroll a loop with String intrinsics code.

Reviewed-by: never
2011-03-30 12:08:49 -07:00
Dmitry Samersoff
52bf12aead 7017193: Small memory leak in get_stack_bounds os::create_stack_guard_pages
Getline() returns -1 but still allocate memory for str

Reviewed-by: dcubed, coleenp
2011-03-30 19:38:07 +04:00
Tom Rodriguez
fd8aac2f3c 7031614: jmap -permstat fails with java.lang.InternalError in sun.jvm.hotspot.oops.OopField.getValue
Reviewed-by: kvn, dcubed
2011-03-30 07:47:19 -07:00
Igor Veresov
ca6c080c99 Merge 2011-03-30 03:48:38 -07:00
Igor Veresov
431a861d74 7026307: DEBUG MESSAGE: broken null klass on amd64
Correct typo introduces in 7020521

Reviewed-by: never, kvn
2011-03-29 22:25:17 -07:00
Tom Rodriguez
2c72495789 7032306: Fastdebug build failure on Solaris with SS11 compilers
Reviewed-by: kvn, iveresov
2011-03-29 22:05:21 -07:00
Igor Veresov
546f3df880 6741940: Nonvolatile XMM registers not preserved across JNI calls
Save xmm6-xmm15 in call stub on win64

Reviewed-by: kvn, never
2011-03-29 17:35:34 -07:00
Eric Caspole
1c5ff7f80a 7032133: Enable sse4.2 for new AMD processors
New AMD processors support sse4.2. Enable corresponding instructions in Hotspot.

Reviewed-by: kvn
2011-03-29 09:11:51 -07:00
Christian Thalinger
f51036e9bc 7022998: JSR 292 recursive method handle calls inline themselves infinitely
Reviewed-by: never, kvn
2011-03-28 03:58:07 -07:00
Staffan Larsen
66a08540c2 7031571: Generate native VS2010 project files
Reviewed-by: hosterda, stefank, brutisso
2011-03-28 12:48:08 +02:00
Igor Veresov
36303f61b6 6964776: c2 should ensure the polling page is reachable on 64 bit
Materialize the pointer to the polling page in a register instead of using rip-relative addressing when the distance from the code cache is larger than disp32.

Reviewed-by: never, kvn
2011-03-27 13:17:37 -07:00
Tom Rodriguez
5387ee459e 7024475: loop doesn't terminate when compiled
Reviewed-by: kvn
2011-03-27 00:00:14 -07:00
Roland Westrelin
360a7be9a7 Merge 2011-03-26 08:31:45 -07:00
Tom Rodriguez
e4e3b2b0d7 7022204: LogFile wildcarding should use %p instead of star
Reviewed-by: coleenp, jrose
2011-03-25 18:50:10 -07:00
Erik Trimble
f69e8bedea 7031227: Bump the HS21 build number to 06
Update the HS21 build number to 06

Reviewed-by: jcoomes
2011-03-25 18:04:51 -07:00
Erik Trimble
3816b1ddf6 Merge 2011-03-25 18:04:45 -07:00
Erik Trimble
65971e6ac0 Added tag hs21-b05 for changeset 0001aa6ce1bf 2011-03-25 17:26:33 -07:00
Tom Rodriguez
9cc2cbba4b Merge 2011-03-25 18:19:22 -04:00
Volker Simonis
f6a0d5983e 7025708: Assertion if using "-XX:+CITraceTypeFlow -XX:+Verbose" together
Reviewed-by: never
2011-03-25 11:29:30 -07:00
Roland Westrelin
4171ca786e 7029017: Additional architecture support for c2 compiler
Enables cross building of a c2 VM. Support masking of shift counts when the processor architecture mandates it.

Reviewed-by: kvn, never
2011-03-25 09:35:39 +01:00
John Coomes
550ae1eb0c Merge 2011-03-24 23:49:56 -07:00
John Coomes
5660cdefc9 Merge 2011-03-24 23:06:13 -07:00
Christian Thalinger
09ca02c5b8 Merge 2011-03-24 23:04:40 -07:00
John Coomes
cdd5139d91 Merge 2011-03-24 23:04:36 -07:00
John Coomes
f05b2137b4 Merge 2011-03-24 23:00:27 -07:00
Suchen Chien
6508316baf Added tag jdk7-b135 for changeset 0001aa6ce1bf 2011-03-24 11:20:35 -07:00
Gary Benson
d31e82c17f 7030207: Zero tweak to remove accidentally incorporated code
IcedTea contains a now-unmaintained ARM-specific interpreter and part of that interpreter was accidentally incorporated in one of the webrevs when Zero was initially imported.

Reviewed-by: twisti
2011-03-24 02:11:50 -07:00
Tom Rodriguez
87c2f53c25 7030300: more nightly failures after statics in Class changes
Reviewed-by: iveresov, jcoomes, dcubed
2011-03-23 10:55:43 -07:00
Christian Thalinger
efdad520ca 7029805: JSR 292 compiler/6991596/Test6991596.java fails in nightly
Both JSR 292 compiler tests were moved with 6839872 to the jdk repository

Reviewed-by: never
2011-03-23 04:19:16 -07:00
Mandy Chung
a5327b368f 7025628: Remove the temporary hack added for jdk modularization in hotspot
Removed

Reviewed-by: ohair, coleenp
2011-03-22 18:04:03 -04:00
John Coomes
fe899cc10d 6962931: move interned strings out of the perm gen
Reviewed-by: never, coleenp, ysr, jwilhelm
2011-03-22 13:36:33 -07:00
David Holmes
5b717e764a 6535709: interrupt of wait()ing thread isn't triggerring InterruptedException - test intwait3
Only clear the interrupt state if we will report that it was set

Reviewed-by: dcubed, alanb, phh, coleenp, dice
2011-03-21 22:16:19 -04:00
John Coomes
1ed31f9194 6962930: make the string table size configurable
Reviewed-by: never, phh, stefank, kamg, dholmes, coleenp
2011-03-21 18:38:00 -07:00
Tom Rodriguez
31ac558f3d 7029509: nightly failures after static fields in Class
Reviewed-by: kvn
2011-03-21 14:06:50 -07:00
Vladimir Kozlov
3de260da41 7008866: Missing loop predicate for loop with multiple entries
Add predicates when loop head bytecode is parsed instead of when back branch bytecode is parsed.

Reviewed-by: never
2011-03-21 11:28:14 -07:00
Christian Thalinger
a3e259c335 7027232: JSR 292: wrong numeric value returned by MH on solaris-sparc
Reviewed-by: kvn, never
2011-03-21 02:30:49 -07:00
Tom Rodriguez
6e8a263a06 7017732: move static fields into Class to prepare for perm gen removal
Reviewed-by: kvn, coleenp, twisti, stefank
2011-03-18 16:00:34 -07:00
Tom Rodriguez
f5ef48f3b9 7028374: race in fix_oop_relocations for scavengeable nmethods
Reviewed-by: kvn
2011-03-18 15:52:42 -07:00
Erik Trimble
a6f5b69e41 7028846: Bump the HS21 build number to 05
Update the HS21 build number to 05

Reviewed-by: jcoomes
2011-03-18 13:28:33 -07:00
Erik Trimble
74c7fb6c9d Merge 2011-03-18 13:28:29 -07:00
John Coomes
0317c7c485 Merge 2011-03-18 09:03:43 -07:00
Christian Thalinger
51f5142db1 Merge 2011-03-18 01:44:15 -07:00
John R Rose
e197657e02 7011865: JSR 292 CTW fails: !THREAD->is_Compiler_thread() failed: Can not load classes with the Compiler thre
Reviewed-by: kvn, never
2011-03-17 18:29:18 -07:00
Erik Trimble
5dfa054899 Added tag hs21-b04 for changeset 8f90284bf3fa 2011-03-17 17:25:12 -07:00
Suchen Chien
7e074712eb Added tag jdk7-b134 for changeset 3cb740be56d2 2011-03-17 14:32:47 -07:00
Tom Deneau
998b726ce7 7028394: Newer AMD Processor Prefetch Defaults
This new default has shown improvement across many workloads.

Reviewed-by: kvn
2011-03-17 12:08:01 -07:00
Y. Srinivas Ramakrishna
b4b287e7ac 6668573: CMS: reference processing crash if ParallelCMSThreads > ParallelGCThreads
Use _max_num_q = max(discovery_degree, processing_degree), and let balance_queues() redistribute from discovery_degree to processing_degree of queues. This should also allow a more dynamic and flexible parallelism policy in the future.

Reviewed-by: jmasa, johnc
2011-03-17 10:32:46 -07:00
Vladimir Danushevsky
fd79022cd5 Merge 2011-03-16 23:45:04 -04:00
Coleen Phillimore
c912c29690 7019165: Incorrect symbols in pstack output after SymbolTable changes
And out lsb which is set for symbols in constant pool slots to distinguish them from strings

Reviewed-by: phh, dholmes, never, dcubed
2011-03-16 14:57:49 -04:00
Y. Srinivas Ramakrishna
7293fabc43 6896099: Integrate CMS heap ergo with default heap sizing ergo
6627787: CMS: JVM refuses to start up with -Xms16m -Xmx16m
7000125: CMS: Anti-monotone young gen sizing with respect to maximum whole heap size specification
7027529: CMS: retire CMSUseOldDefaults flag

Simplify CMS heap sizing code, relying on ergonomic initial sizing consistent with other collectors for the most part, controlling only young gen sizing to rein in pause times. Make CMS young gen sizing default statically cpu-dependant. Remove inconsistencies wrt generation sizing and policy code, allowing for the fixing for 6627787 and 7000125. For 7027529, retire the flag CMSUseOldDefaults which had been introduced as a bridge from JDK 5 to JDK 6 a number of years ago.

Reviewed-by: brutisso, poonam
2011-03-16 10:37:08 -07:00
Vladimir Danushevsky
a0ef2fcd8e Merge 2011-03-16 10:47:45 -04:00
Jesper Wilhelmsson
413f247a65 Merge 2011-03-15 09:07:49 -07:00
Daniel D. Daugherty
7c14db880f Merge 2011-03-15 06:50:01 -07:00
Daniel D. Daugherty
c4e301bffa 7024970: 2/3 assert(ServiceThread::is_service_thread(Thread::current())) failed: Service thread must post enqueue
Change nmethod_lock() to also prevent zombification of the nmethod. CompiledMethodUnload events also need to lock the nmethod. Clean ups in nmethod::make_not_entrant_or_zombie()

Reviewed-by: dholmes, kamg, never, dsamersoff, ysr, coleenp, acorn
2011-03-15 06:37:31 -07:00
Daniel D. Daugherty
0c3498d374 7024234: 2/3 jvmti tests fail assert(!_oops_are_stale) failed: oops are stale on Win-AMD64
Move initialization of the '_instance' field to avoid race with ServiceThread start.

Reviewed-by: dholmes, kamg, never, dsamersoff, ysr, coleenp, acorn
2011-03-15 06:35:10 -07:00
Y. Srinivas Ramakrishna
a3de65241c 6987703: iCMS: Intermittent hang with gc/gctests/CallGC/CallGC01 and +ExplicitGCInvokesConcurrent
Count enable_icms() and disable_icms() events so as to prevent inteference between concurrent calls, which can cause the iCMS thread to be left stranded in icms_wait() with an unserviced request and no young allocations to unwedge it.

Reviewed-by: jcoomes, poonam
2011-03-14 21:52:24 -07:00
Karen Kinnear
b09494b185 Merge 2011-03-14 11:43:56 -07:00
Erik Trimble
593b4b4460 Merge 2011-03-11 22:41:33 -08:00
John R Rose
f6344076f2 7012648: move JSR 292 to package java.lang.invoke and adjust names
Package and class renaming only; delete unused methods and classes

Reviewed-by: twisti
2011-03-11 22:34:57 -08:00
John R Rose
6146dffe45 6839872: remove implementation inheritance from JSR 292 APIs
Consolidate runtime support in java.dyn.MethodHandleNatives; include transitional compatibility logic

Reviewed-by: twisti
2011-03-11 22:33:47 -08:00
John R Rose
c506cb0e5b Merge 2011-03-11 21:19:15 -08:00
Paul Hohensee
f38a80b837 7023931: PcDescCache::find_pc_desc should not write _last_pc_desc
Remove _last_pc_desc and use pcdescs[0] instead.

Reviewed-by: dcubed, coleenp, ysr
2011-03-11 16:09:55 -05:00
Erik Trimble
a187d013ad Merge 2011-03-11 11:18:56 -08:00
Vladimir Kozlov
4c5f41c72f 7026631: field _klass is incorrectly set for dual type of TypeAryPtr::OOPS
Add missing check this->dual() != TypeAryPtr::OOPS into TypeAryPtr::klass().

Reviewed-by: never
2011-03-11 07:50:51 -08:00
Jesper Wilhelmsson
aad948f0e8 6820066: Check that -XX:ParGCArrayScanChunk has a value larger than zero
Check that -XX:ParGCArrayScanChunk has a value larger than zero.

Reviewed-by: johnc, jmasa, ysr
2011-03-11 16:35:18 +01:00
Christine Lu
b49c270cc9 Added tag jdk7-b133 for changeset d7dd3e46bc54 2011-03-10 17:10:55 -08:00
Vladimir Danushevsky
594cddaa6b 7011490: Wrong computation results in Test6880034
Incorrect handling of c2i deoptimization on little endian architectures

Reviewed-by: never
2011-03-10 14:56:11 -05:00
Bertrand Delsart
4770417e71 7025485: leverage shared x86-only deoptimization code
Removed an ifdef IA32 around harmless code useful for some ports

Reviewed-by: chrisphi, never
2011-03-10 17:44:32 +01:00
Vladimir Kozlov
fd6487f201 7025742: Can not use CodeCache::unallocated_capacity() with fragmented CodeCache
Use largest_free_block() instead of unallocated_capacity().

Reviewed-by: iveresov, never, ysr
2011-03-09 09:15:16 -08:00
Coleen Phillimore
3471fe3ee4 7024584: Symbol printouts shouldnt be under PrintGCDetails
Put symbol printing under Verbose and WizardMode so you can get this information if you really want it.

Reviewed-by: phh, stefank, never, dholmes, jcoomes
2011-03-07 16:03:28 -05:00
Karen Kinnear
224db84b31 Merge 2011-03-07 09:16:08 -08:00
Tom Rodriguez
84ef74286f 6965570: assert(!needs_patching && x->is_loaded(),"how do we know it's volatile if it's not loaded")
Reviewed-by: iveresov
2011-03-06 22:09:23 -08:00
Vladimir Kozlov
8f5e126d82 6589823: Error: meet not symmetric
Arrays pointers meet must fall to bottom if exact array klasses in upper lattice are not equal or super klass is exact.

Reviewed-by: never
2011-03-05 11:02:04 -08:00
Tom Rodriguez
53d99aff1b Merge 2011-03-04 22:44:50 -08:00
Tom Rodriguez
dcfa5e385a 7024866: # assert(limit == NULL || limit <= nm->code_end()) failed: in bounds
Reviewed-by: kvn, iveresov
2011-03-04 20:01:48 -08:00
Igor Veresov
2114527fec 7020403: Add AdvancedCompilationPolicy for tiered
This implements adaptive tiered compilation policy.

Reviewed-by: kvn, never
2011-03-04 15:14:16 -08:00
Erik Trimble
d0c0743b8c 7024814: Bump the HS21 build number to 04
Update the HS21 build number to 04

Reviewed-by: jcoomes
2011-03-04 14:06:22 -08:00
Erik Trimble
8ab2d2b22a Merge 2011-03-04 14:06:16 -08:00
Keith McGuigan
fac0855180 6845426: non-static <clinit> method with no args is called during the class initialization process
Only call <clinit> with ACC_STATIC for classfiles with version > 50

Reviewed-by: acorn, dholmes, coleenp
2011-03-04 14:40:46 -05:00
Vladimir Kozlov
d7802369bc Merge 2011-03-03 23:31:45 -08:00
John Coomes
3a4f0a735e Merge 2011-03-03 21:02:56 -08:00
Coleen Phillimore
3ebf2446ee 7021653: Parfait issue in hotspot/src/share/vm/oops/methodDataOops.hpp
Fix compilation error(s)

Reviewed-by: kvn, phh, jcoomes, dholmes
2011-03-03 19:53:03 -05:00
Coleen Phillimore
a411df237d 6512830: Error: assert(tag_at(which).is_unresolved_klass(), "Corrupted constant pool")
Redefine classes copies the constant pool while the constant pool may be resolving strings or classes

Reviewed-by: dcubed, dsamersoff, acorn
2011-03-03 19:52:23 -05:00
Coleen Phillimore
c3805bc224 7022999: Can't build with FORCE_TIERED=0
Put UseFastLocking test under #ifdef COMPILER1

Reviewed-by: kvn, phh, never, dcubed
2011-03-03 19:51:36 -05:00
Erik Trimble
4fe4b76e30 Added tag hs21-b03 for changeset 36d51765affc 2011-03-03 15:13:18 -08:00
David Katleman
0ee9f71c25 Added tag jdk7-b132 for changeset 802ca1911963 2011-03-03 14:12:59 -08:00
Bengt Rutisson
edb9e105eb 7023747: G1: too strict assert in RefineRecordRefsIntoCSCardTableEntryClosure::do_card_ptr in g1RemSet.cpp
Made sure that the assert looks at ParallelGCThreads.

Reviewed-by: stefank, tonyp, jwilhelm, johnc
2011-03-03 11:35:50 +01:00
Bengt Rutisson
a35c7dbfeb 7022943: G1: improve logging to avoid interleaved numbers
Introduced buffered loggging to make sure that log lines are logged one line at a time

Reviewed-by: stefank, johnc, dsamersoff
2011-03-03 22:58:46 +01:00
John Coomes
c295eb2515 7018056: large pages not always enabled by default
Reviewed-by: phh, kvn
2011-03-06 11:37:18 -08:00
Antonios Printezis
3ff554aec1 7014923: G1: code cleanup
Some G1 code cleanup.

Reviewed-by: johnc, jcoomes, jwilhelm
2011-03-04 17:13:19 -05:00
Zhengyu Gu
0e033bed54 Merge 2011-03-02 16:21:47 -08:00
Zhengyu Gu
5b51e2c9aa 7017110: Add /SAFESEH to links on windows 32bit to verify safe exceptions
Ensure safe exception handler table is generated on Win32 binaries when compile with VS2010

Reviewed-by: acorn, coleenp, dcubed, sla, ohair
2011-03-02 09:16:18 -05:00
Keith McGuigan
380d90b364 6878713: Verifier heap corruption, relating to backward jsrs
Added overflow detection in arena Amalloc methods

Reviewed-by: coleenp, phh
2011-03-02 08:18:35 -05:00
Staffan Larsen
97e74a3862 7023323: Build failure on VS2003: IsDebuggerPresent not found
#define _WIN32_WINNT 0x500

Reviewed-by: ohrstrom, hosterda, coleenp
2011-03-02 09:41:26 +01:00
Igor Veresov
90a153aa38 6627983: G1: Bad oop deference during marking
Bulk zeroing reduction didn't work with G1, because arraycopy would call pre-barriers on uninitialized oops. The solution is to have version of arraycopy stubs that don't have pre-barriers. Also refactored arraycopy stubs generation on SPARC to be more readable and reduced the number of stubs necessary in some cases.

Reviewed-by: jrose, kvn, never
2011-03-01 14:56:48 -08:00
Tom Rodriguez
5432554ecb 6725983: Assertion "method->method_holder())->is_not_initialized(),"method holder must be initialized"
Reviewed-by: kvn, iveresov
2011-03-01 10:27:15 -08:00
Robert Ottenhag
105b4f734b Merge 2011-02-28 22:35:01 -08:00
Volker Simonis
d232a8bbdc 7023229: extraneous include of precompiled.hpp in hsdis.c
Reviewed-by: never, jrose
2011-02-28 17:12:42 -08:00
Robert Ottenhag
1344f54bde Merge 2011-02-28 15:35:45 -08:00
Keith McGuigan
ffab67875d 7020118: Alter frame assignability to allow for exception handler coverage of invokespecial <init>
Add special rule to allow assignment of frames with uninit flags set.

Reviewed-by: never, coleenp
2011-02-28 16:01:59 -05:00
John Cuthbertson
9babe64b0a 7022200: G1: optimized build broken
Make the G1 specific version of is_in_closed_subset() available in all builds.

Reviewed-by: tonyp, jcoomes
2011-02-28 09:10:52 -08:00
Christian Thalinger
cd6c0b147e 7012914: JSR 292 MethodHandlesTest C1: frame::verify_return_pc(return_address) failed: must be a return pc
Reviewed-by: never, bdelsart
2011-02-28 06:07:12 -08:00
Staffan Larsen
cc6f461357 7022037: Pause when exiting if debugger is attached on windows
Reviewed-by: dsamersoff, kamg, hosterda
2011-02-28 14:19:52 +01:00
Vladimir Kozlov
a74bc73598 6942326: x86 code in string_indexof() could read beyond reserved heap space
Copy small (<8) strings on stack if str+16 crosses a page boundary and load from stack into XMM. Back up pointer when loading string's tail.

Reviewed-by: never
2011-02-26 12:10:54 -08:00
Keith McGuigan
52708b0603 7017640: Fix for 6766644 deadlocks on some NSK tests when running with -Xcomp
Dynamic-code generated events should be deferred and processed by service thread

Reviewed-by: dsamersoff, dcubed
2011-02-26 13:33:23 -05:00
Erik Trimble
81c907a4b8 7022570: Bump the HS21 build number to 03
Update the HS21 build number to 03

Reviewed-by: jcoomes
2011-02-25 12:46:49 -08:00
Erik Trimble
03d633b959 Merge 2011-02-25 12:46:46 -08:00
Erik Trimble
19f730fedf Added tag hs21-b02 for changeset 70ed6d8368bc 2011-02-25 11:42:03 -08:00
Antonios Printezis
137ea60ce2 Merge 2011-02-25 08:17:30 -08:00
Antonios Printezis
d6cd90e122 Merge 2011-02-25 10:58:03 -05:00
Robert Ottenhag
d284715c15 Merge 2011-02-25 03:29:56 -08:00
David Holmes
e6b07111ea 7021953: Remove flags from globals.hpp inadvertently dragged in by 7016023
Removed erroneous flags

Reviewed-by: kvn, dcubed
2011-02-24 21:38:37 -05:00
Christine Lu
15d041a240 Added tag jdk7-b131 for changeset e0205cb94879 2011-02-24 15:15:50 -08:00
Tom Rodriguez
836fd81744 Merge 2011-02-24 14:49:34 -08:00
Tom Rodriguez
83661087ea 7021603: crash in fill_sync_handler with ExtendedDTrace probes
Reviewed-by: iveresov
2011-02-24 11:09:16 -08:00
Vladimir Kozlov
afa5d117b7 6812217: Base memory of MergeMem node violates assert during killing expanded AllocateArray node
The assert in MergeMemNode::memory_at() misses the case when address is TOP.

Reviewed-by: never
2011-02-24 10:28:20 -08:00
Tom Rodriguez
562aedc884 7012072: CompileTheWorld causes incorrect class initialization
Reviewed-by: kvn, twisti
2011-02-23 19:09:16 -08:00
Christine Lu
59d5b2fc13 Merge 2011-02-23 15:48:46 -08:00
Vladimir Kozlov
f9fa6ee530 Merge 2011-02-23 12:28:23 -08:00
Vladimir Kozlov
0ea15ed320 Merge 2011-02-23 11:18:16 -08:00
Igor Veresov
25387df1e0 Merge 2011-02-22 18:13:03 -08:00
Tom Rodriguez
8967db2c35 7021531: lock ordering problems after fix for 6354181
Reviewed-by: kvn, jrose
2011-02-22 15:26:36 -08:00
Igor Veresov
1c5e7bf24a 7020521: arraycopy stubs place prebarriers incorrectly
Rearranged the pre-barrier placement in arraycopy stubs so that they are properly called in case of chained calls. Also refactored the code a little bit so that it looks uniform across the platforms and is more readable.

Reviewed-by: never, kvn
2011-02-22 15:25:02 -08:00
Robert Ottenhag
c4270e4517 Merge 2011-02-21 04:49:17 -08:00
Stefan Karlsson
46bcea93ef 7020992: jmm_DumpThreads should not allocate system object arrays outside the perm gen
Allocate ordinary object arrays

Reviewed-by: ysr, never, mchung
2011-02-21 11:26:45 +01:00
Coleen Phillimore
3899f14f1f 7019557: SharedMiscDataSize too small for 64-bit fastdebug JVM
Increase default SharedMiscDataSize

Reviewed-by: dcubed, kamg
2011-02-18 18:26:17 -05:00
Christine Lu
4138cbb7b0 Added tag jdk7-b130 for changeset 70ed6d8368bc 2011-02-18 14:23:37 -08:00