Commit Graph

2634 Commits

Author SHA1 Message Date
John Cuthbertson
3a33c2639e Merge 2011-04-14 13:49:29 -07:00
John Cuthbertson
7c844aba67 Merge 2011-04-14 13:45:41 -07:00
Y. Srinivas Ramakrishna
91657bd273 7036482: clear argument is redundant and unused in cardtable methods
Removed the unused clear argument to various cardtbale methods and unused mod_oop_in_space_iterate method. Unrelated to synopsis, added  a pair of clarifying parens in AllocationStats constructor.

Reviewed-by: brutisso, jcoomes
2011-04-14 12:10:15 -07:00
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
Keith McGuigan
222ac81222 7020373: JSR rewriting can overflow memory address size variables
Abort if incoming classfile's parameters would cause overflows

Reviewed-by: coleenp, dcubed, never
2011-04-12 16:42:26 -04:00
Jeff Dinkins
d5438d3e05 7045697: JDK7 THIRD PARTY README update
Reviewed-by: lana
2011-05-27 15:01:07 -07:00
David Katleman
079c89189f 7044486: open jdk repos have files with incorrect copyright headers, which can end up in src bundles
Reviewed-by: ohair, trims
2011-05-25 13:31:51 -07:00
John Coomes
2af4bb66d4 6791672: enable 1G and larger pages on solaris
Reviewed-by: ysr, iveresov, johnc
2011-08-17 10:32: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
John Cuthbertson
154f0709bd 7020042: G1: Partially remove fix for 6994628
Disable reference discovery and processing during concurrent marking by disabling fix for 6994628.

Reviewed-by: tonyp, ysr
2011-02-18 10:07:34 -08:00
Antonios Printezis
f418b77aa6 7027766: G1: introduce flag to dump the liveness information per region at the end of marking
Repurpose the existing flag G1PrintRegionLivenessInfo to print out the liveness distribution across the regions in the heap at the end of marking.

Reviewed-by: iveresov, jwilhelm
2011-04-04 14:23:17 -04:00
Antonios Printezis
cec5c20656 7033292: G1: nightly failure: Non-dirty cards in region that should be dirty
The epochs on the card cache array are initialized to 0 and our initial epoch also starts at 0. So, until the first GC, it might be possible to successfully "claim" a card which was in fact never initialized.

Reviewed-by: johnc, iveresov, ysr
2011-04-04 13:18:35 -04:00
Antonios Printezis
3e9fe24ddd 7023069: G1: Introduce symmetric locking in the slow allocation path
7023151: G1: refactor the code that operates on _cur_alloc_region to be re-used for allocs by the GC threads
7018286: G1: humongous allocation attempts should take the GC locker into account

First, this change replaces the asymmetric locking scheme in the G1 slow alloc path by a summetric one. Second, it factors out the code that operates on _cur_alloc_region so that it can be re-used for allocations by the GC threads in the future.

Reviewed-by: stefank, brutisso, johnc
2011-03-30 10:26:59 -04:00
Antonios Printezis
349d820dd1 7029458: G1: Add newly-reclaimed regions to the beginning of the region free list, not the end
What the synopsis says.

Reviewed-by: jwilhelm, iveresov, johnc
2011-03-29 22:36:16 -04:00
John Cuthbertson
c2275649b7 7026932: G1: No need to abort VM when card count cache expansion fails
Manage allocation/freeing of the card cache counts and epochs arrays directly so that an allocation failure while attempting to expand these arrays does not abort the JVM. Failure to expand these arrays is not fatal.

Reviewed-by: iveresov, tonyp
2011-03-28 10:58:54 -07:00
Bengt Rutisson
4fd9f5071f 6948149: G1: Imbalance in termination times
Changed default value of WorkStealingYieldsBeforeSleep from 1000 to 5000. Added more information to G1 pause logging.

Reviewed-by: jwilhelm, tonyp, jmasa
2011-03-23 14:12:51 +01:00
John Coomes
9c0cc6b6d8 Merge 2011-03-25 17:39:20 -07:00
Y. Srinivas Ramakrishna
3e02204f5d 7029036: Card-table verification hangs with all framework collectors, except G1, even before the first GC
When verifying clean card ranges, use memory-range-bounded iteration over oops of objects overlapping that range, thus avoiding the otherwise quadratic worst-case cost of scanning large object arrays.

Reviewed-by: jmasa, jwilhelm, tonyp
2011-03-24 15:47:01 -07:00
Y. Srinivas Ramakrishna
4282af91a0 7030435: Some oop_oop_iterate_m() methods iterate outside of specified memory bounds
Filter ref-containing locations through the memory-interval specified in the call.

Reviewed-by: jcoomes, jwilhelm, tonyp
2011-03-24 15:45:27 -07:00
Erik Trimble
8e3541f4fa Merge 2011-02-16 17:26:20 -08:00
Keith McGuigan
c2ea25db39 7019718: make error reporting flags product instead of diagnostic
See synopsis

Reviewed-by: acorn, coleenp
2011-02-16 16:58:24 -08:00
Coleen Phillimore
5cef1a1a84 Merge 2011-02-16 16:25:57 -08:00
Volker Simonis
5e83438315 7019689: Non-dependent name is found in dependent base class although it should be rejected
Fix hashtable.hpp to qualify non-dependant name with "this"

Reviewed-by: phh, never, poonam
2011-02-16 17:12:31 -05:00
Kelly O'Hair
cff49a9152 7013964: openjdk LICENSE file needs rebranding
Reviewed-by: darcy, katleman, jjg
2011-02-16 13:30:31 -08:00
Coleen Phillimore
9c5679fe53 6840152: JVM crashes when heavyweight monitors are used
Turn off biased locking if !UseFastLocking or UseHeavyMonitors options are requested.

Reviewed-by: phh, never, dcubed, dholmes
2011-02-16 11:34:44 -05:00
David Holmes
89f51d79cc Merge 2011-02-16 01:42:00 -05:00
Daniel D. Daugherty
5d5154fbea 6954420: 2/4 jps shows "process information unavailable" sometimes
Make sure the backing store file is flushed in create_sharedmem_resources() and get_user_name_slow() no longer checks the size of the backing store file.

Reviewed-by: briand, swamyv, acorn, poonam
2011-02-15 19:00:22 -08:00
Antonios Printezis
57d8e5b8ba Merge 2011-02-14 22:21:18 -05:00
David Holmes
74c63197eb 7018429: JPRT: Update Makefile to use ALT_JDK_TARGET_IMPORT_PATH for copying JDK
Set JDK_IMPORT_PATH to  ALT_JDK_TARGET_IMPORT_PATH if it is defined

Reviewed-by: phh, ohair
2011-02-14 19:27:36 -05:00
Robert Ottenhag
231caaed9b Merge 2011-02-14 03:19:33 -08:00
Coleen Phillimore
876fbcb9f7 7019157: errorHandler doesn't compile with super old gcc without precompiled headers
Old gccs don't support precompiled headers so have to supply includes

Reviewed-by: phh, kamg
2011-02-12 10:28:34 -05:00
Erik Trimble
72ec986b22 7019104: Bump the HS21 build number to 02
Update the HS21 build number to 02

Reviewed-by: jcoomes
2011-02-11 15:32:03 -08:00
Erik Trimble
f57a34b353 Merge 2011-02-11 15:31:58 -08:00
Erik Trimble
8c80661027 Added tag hs21-b01 for changeset 251814950cb2 2011-02-11 14:30:27 -08:00
Robert Ottenhag
3447053144 Merge 2011-02-11 05:40:41 -08:00
Stefan Karlsson
311bd2a9a9 7018257: jmm_DumpThreads allocates into permgen
Don't allocate in permgen

Reviewed-by: ysr, sla
2011-02-11 14:15:16 +01:00
Christine Lu
97dbe91443 Added tag jdk7-b129 for changeset 251814950cb2 2011-02-10 16:24:29 -08:00
Y. Srinivas Ramakrishna
2c35cde750 7018302: newly added assert related to size of constantPoolOop causes secondary assertions or crashes
6912621 used a raw oop in the newly added assert following an allocation attempt that could result in a GC.

Reviewed-by: jmasa
2011-02-10 14:48:07 -08:00
Staffan Larsen
32b46da6e3 7017824: Add support for creating 64-bit Visual Studio projects
Updated create.bat and ProjectCreator

Reviewed-by: brutisso, stefank, ohair
2011-02-10 13:03:22 +01:00
Christian Tornqvist
d30b5f01d3 7018366: hotspot/runtime_erro Fix for 7014918 does not build using MVC 2003
Looking at API_VERSION_NUMBER define to see what version of dbghelp.h/imagehlp.h is included to determine what MINIDUMP_TYPEs are defined in the header file

Reviewed-by: acorn, brutisso, sla
2011-02-10 12:55:56 +01:00
Tom Rodriguez
4b3ada699d 7016474: string compare intrinsic improvements
Reviewed-by: kvn
2011-02-09 15:02:23 -08:00
Tom Rodriguez
477cbff4b6 7019819: bare oop in ciField
Reviewed-by: kvn, iveresov
2011-02-15 22:18:33 -08:00
Vladimir Kozlov
ddd4d3ad73 Merge 2011-02-14 14:36:29 -08:00
Tom Rodriguez
a7f9351b5d 7018101: os::dll_address_to_function_name returning wrong answers in 64 bit
Reviewed-by: acorn, kvn, dsamersoff
2011-02-14 11:46:58 -08:00
Christian Thalinger
c2b37037c6 7018378: JSR 292: _bound_int_mh produces wrong result on 64-bit SPARC
Reviewed-by: kvn
2011-02-14 03:21:18 -08:00
Tom Rodriguez
add4b5bf69 7018506: CTW swallowing OOMs after symbol changes
Reviewed-by: kvn, iveresov, coleenp
2011-02-11 12:05:43 -08:00
Christian Thalinger
01cc76e02d 7018673: Zero: 6953144, 6990754 and 7009756 made some changes which broke Zero
Reviewed-by: kvn, chrisphi, twisti
2011-02-11 03:17:53 -08:00
Vladimir Kozlov
c13062093b 7018849: 7017124 fix broke VM build on some platforms
Use atomic load and store in inc_stat_counter() only on SPARC and X86.

Reviewed-by: iveresov
2011-02-10 19:34:48 -08:00
Vladimir Kozlov
5d3ab72d1d 7017746: Regression : C2 compiler crash due to SIGSEGV in PhaseCFG::schedule_early()
Add TEMP edges (and KILL projections) before duplicated operands are removed in Expand() methods.

Reviewed-by: never
2011-02-10 14:25:59 -08:00
Christian Thalinger
4c567f5969 7018277: JSR 292 change test/compiler/6987555/Test6987555.java to new MH syntax
Test/compiler/6987555/Test6987555.java currently does not compile because the MH return-type syntax has changed.

Reviewed-by: never
2011-02-10 00:47:59 -08:00
Igor Veresov
6782422f01 7017434: Tiered needs to support reprofiling
Tiered needs to support proper method reprofiling after deopts.

Reviewed-by: kvn
2011-02-09 16:34:34 -08:00
John Cuthbertson
7334402db5 7017008: G1: Turn on compressed oops by default
Normally compressed oops is enabled when the maximum heap size is under a certain limit, except when G1 is also enabled. Remove this limitation. Also re-enable GCBasher testing with G1 on 64 bit windows in jprt.

Reviewed-by: jcoomes, brutisso, tonyp
2011-02-09 09:43:02 -08:00
Christian Tornqvist
237866941a 7014918: Improve core/minidump handling in Hotspot
Added Minidump support on Windows, enabled large page core dumps when coredump_filter is present and writing out path/rlimit for core dumps.

Reviewed-by: poonam, dsamersoff, sla, coleenp
2011-02-09 11:08:10 +01:00
Mandy Chung
8ff932b950 Merge 2011-02-08 22:27:57 -08:00
Coleen Phillimore
f5db22169b Merge 2011-02-08 19:50:41 -05:00
Vladimir Kozlov
287139e5a5 7014874: Incorrect COOPs modes on solaris-{sparcv9,amd64} with ParallelGC
Align old gen size down to keep specified heap size.

Reviewed-by: ysr
2011-02-08 16:12:16 -08:00
Keith McGuigan
9acb43fa6d 7003401: Implement VM error-reporting functionality on erroneous termination
Add support for distribution-specific error reporting

Reviewed-by: coleenp, phh, jcoomes, ohair
2011-02-08 17:20:45 -05:00
Mandy Chung
9eecf686c5 7017673: Remove setting of the sun.jkernel.DownloadManager as a boot classloader hook
Reviewed-by: alanb, dcubed, coleenp
2011-02-08 09:11:37 -08:00
Stefan Karlsson
0c395c7799 7014851: Remove unused parallel compaction code
Removed.

Reviewed-by: jcoomes, brutisso
2011-02-08 12:33:19 +01:00
Y. Srinivas Ramakrishna
7eccb460db 6912621: iCMS: Error: assert(_markBitMap.isMarked(addr + 1),"Missing Printezis bit?")
Fix block_size_if_printezis_bits() so it does not expect the bits, only uses them when available. Fix block_size_no_stall() so it does not stall when the bits are missing such cases, letting the caller deal with zero size returns. Constant pool cache oops do not need to be unparsable or conc_unsafe after their klass pointer is installed. Some cosmetic clean-ups and some assertion checking for conc-usafety which, in the presence of class file redefinition, has no a-priori time boundedness, so all GCs must be able to safely deal with putatively conc-unsafe objects in a stop-world pause.

Reviewed-by: jmasa, johnc
2011-02-07 22:19:57 -08:00
Coleen Phillimore
c4ddbc7c87 6472925: OutOfMemoryError fails to generate stack trace as it now ought
Print an additional message for OOM during stack trace printing

Reviewed-by: dholmes, phh, acorn, kamg, dcubed
2011-02-07 14:36:26 -05:00
Vladimir Kozlov
b9633d42b4 7017124: Fix some VM stats to avoid 32-bit overflow
Added new method inc_stat_counter() to increment long statistic values and use atomic long load and store.

Reviewed-by: dholmes, jrose, phh, never
2011-02-07 10:34:39 -08:00
Vladimir Kozlov
e7c3086ed3 7013538: Java memory leak with escape analysis
Don't allocate VectorSet iterator on C heap. Reuse resource storage in EA.

Reviewed-by: never
2011-02-07 10:25:39 -08:00
Vladimir Kozlov
c00a50c8e9 7017240: C2: native memory leak in nsk/regression/b4675027 on windows-x86 in comp mode with G1
Add ResourceMark into PhaseIdealLoop::build_and_optimize().

Reviewed-by: never
2011-02-07 09:46:01 -08:00
Robert Ottenhag
9cfcb9eda1 Merge 2011-02-07 08:40:30 -08:00
Erik Trimble
f34f98b653 Merge 2011-02-04 16:29:41 -08:00
Erik Trimble
3e40f4947e Merge 2011-02-03 23:26:25 -08:00
Yasumasa Suenaga
60418bbde3 7015169: GC Cause not always set
Sometimes the gc cause was not always set. This caused JStat to print the wrong information.

Reviewed-by: tonyp, ysr
2011-02-03 20:49:09 -08:00
Coleen Phillimore
2fcd065a0d Merge 2011-02-03 20:30:19 -08:00
Coleen Phillimore
4940eacbf7 7017009: Secondary out of c-heap memory error reporting out of memory
Use os::malloc() to allocate buffer to read elf symbols and check for null

Reviewed-by: zgu, phh, dsamersoff, dholmes, dcubed
2011-02-03 21:30:08 -05:00
Christine Lu
924a172085 Added tag jdk7-b128 for changeset 5eecea832c83 2011-02-03 17:22:06 -08:00
Paul Hohensee
5b37c4faec 7016998: gcutil class LinearLeastSquareFit doesn't initialize some of its fields
Initialize _sum_x_squared, _intercept and _slope in constructor.

Reviewed-by: bobv, coleenp
2011-02-03 16:06:01 -05:00
Coleen Phillimore
052aed6276 7012088: jump to 0 address because of lack of memory ordering in SignatureHandlerLibrary::add
Write method signature handler under lock to prevent race with growable array resizing

Reviewed-by: dsamersoff, dholmes
2011-02-02 18:38:40 -05:00
Keith McGuigan
8a44936bb0 6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
Defer posting events from the compiler thread: use service thread

Reviewed-by: coleenp, dholmes, never, dcubed
2011-02-02 14:38:01 -05:00
John Cuthbertson
3373070e7f 6923430: G1: assert(res != 0,"This should have worked.")
7007446: G1: expand the heap with a single step, not one region at a time

Changed G1CollectedHeap::expand() to expand the committed space by calling VirtualSpace::expand_by() once rather than for every region in the expansion amount. This allows the success or failure of the expansion to be determined before creating any heap regions. Introduced a develop flag G1ExitOnExpansionFailure (false by default) that, when true, will exit the VM if the expansion of the committed space fails. Finally G1CollectedHeap::expand() returns a status back to it's caller so that the caller knows whether to attempt the allocation.

Reviewed-by: brutisso, tonyp
2011-02-02 10:41:20 -08:00
Bob Vandette
b0d545a4e4 Merge 2011-02-02 11:54:26 -05:00
Bob Vandette
31e3fe4a98 7016023: Enable building ARM and PPC from src/closed repository
Reviewed-by: dholmes, bdelsart
2011-02-02 11:35:26 -05:00
Erik Trimble
d31a60e26f Merge 2011-02-01 18:57:53 -08:00
Vladimir Kozlov
f743a9db84 7014998: assert(is_T_family(features) == is_niagara(features)) failed: Niagara should be T series
Use substring search instead of compare and convert string to upper case before search.

Reviewed-by: never, phh, iveresov
2011-02-01 10:27:02 -08:00
Coleen Phillimore
cba53708ec 6588413: Use -fvisibility=hidden for gcc compiles
Add option for gcc 4 and above, define JNIEXPORT and JNIIMPORT to visibility=default, add for jio_snprintf and others since -fvisibility=hidden overrides --version-script definitions.

Reviewed-by: kamg, never
2011-02-01 11:23:19 -05:00
Christian Thalinger
6baa3e1f56 7012339: JSR 292 crash in G1SATBCardTableModRefBS::write_ref_field_pre_work()
Reviewed-by: jrose, never
2011-02-01 05:51:24 -08:00
Bengt Rutisson
1c643e68f0 6789220: CMS: intermittent timeout running nsk/regression/b4796926
The reference handler java thread and the GC could dead lock

Reviewed-by: never, johnc, jcoomes
2011-02-01 14:05:46 +01:00
Y. Srinivas Ramakrishna
1046ee088f 6999988: CMS: Increased fragmentation leading to promotion failure after CR#6631166 got implemented
Fix calculation of _desired, in free list statistics, which was missing an intended set of parentheses.

Reviewed-by: poonam, jmasa
2011-02-01 10:02:01 -08:00
Christian Thalinger
561c090437 7009309: JSR 292: compiler/6991596/Test6991596.java crashes on fastdebug JDK7/b122
Reviewed-by: kvn, never
2011-02-01 03:38:44 -08:00
Tom Rodriguez
f78d8f1157 6354181: nsk.logging.stress.threads.scmhml001 fails assertion in "src/share/vm/oops/instanceKlass.cpp, 111"
Reviewed-by: jrose, acorn
2011-01-31 17:48:21 -08:00
Antonios Printezis
d18d952e56 7014679: G1: deadlock during concurrent cleanup
There's a potential deadlock between the concurrent cleanup thread and the GC workers that are trying to allocate and waiting for more free regions to be made available.

Reviewed-by: iveresov, jcoomes
2011-01-31 16:28:40 -05:00
Christine Lu
d3c6da23e0 Added tag jdk7-b127 for changeset afc10913decb 2011-01-27 17:28:34 -08:00
Coleen Phillimore
7b4f8073f0 6990754: Use native memory and reference counting to implement SymbolTable
Move symbols from permgen into C heap and reference count them

Reviewed-by: never, acorn, jmasa, stefank
2011-01-27 16:11:27 -08:00
John Cuthbertson
950858350d Merge 2011-01-27 13:42:28 -08:00
Christian Thalinger
9208a03ec6 Merge 2011-01-27 14:05:59 -05:00
Christian Thalinger
099978400a Merge 2011-01-27 08:47:02 -08:00
Daniel D. Daugherty
8275fd92d2 Merge 2011-01-26 21:26:52 -08:00
John Cuthbertson
58ac605fea Merge 2011-01-26 09:57:42 -08:00
Erik Trimble
34880c294b 7014711: Fork HS20 to HS21 - renumber Major and build numbers of JVM
Update the Major and Build numbers for HS21

Reviewed-by: jcoomes
2011-01-25 15:06:37 -08:00
Antonios Printezis
ded092cb70 7014261: G1: RSet-related failures
A race between the concurrent cleanup thread and the VM thread while it is processing the "expanded sparse table list" causes both threads to try to free the same sparse table entry and either causes one of the threads to fail or leaves the entry in an inconsistent state. The solution is purge all entries on the expanded list that correspond go regions that are being cleaned up.

Reviewed-by: brutisso, johnc
2011-01-25 17:58:19 -05:00
Erik Trimble
a0d098f171 Added tag hs20-b07 for changeset c2f2ee35ff81 2011-01-25 14:57:24 -08:00
Igor Veresov
18fcb81cff 7014247: CTW fails when compile sun/misc/AtomicLongCSImpl (REMOVED from JDK7)
Use lea to compute field address in AtomicLongCSImpl::attemptUpdate() intrinsic on x86.

Reviewed-by: never, kvn
2011-01-25 14:38:15 -08:00
John Cuthbertson
ecdb5848eb 6608385: G1: need to support parallel reference processing
Implement support for ParallelRefProcEnabled in the reference processing that takes place at the end of G1 concurrent marking.

Reviewed-by: tonyp, ysr
2011-01-25 10:56:22 -08:00
David Holmes
5573dccf96 6566340: Restore use of stillborn flag to signify a thread that was stopped before it started
Restore use of stillborn flag

Reviewed-by: acorn, alanb
2011-01-25 00:14:21 -05:00
Tom Rodriguez
4739203b6c 7008809: should report the class in ArrayStoreExceptions from compiled code
Reviewed-by: iveresov, twisti
2011-01-24 13:34:18 -08:00
Tom Rodriguez
0f21994955 Merge 2011-01-21 13:03:13 -08:00
Tom Rodriguez
84536ec263 6809483: hotspot:::method_entry are not correctly generated for "method()V"
Reviewed-by: iveresov, twisti
2011-01-21 13:01:02 -08:00
Antonios Printezis
14f4450d25 7013718: G1: small fixes for two assert/guarantee failures
Two small fixes to deal with a guarantee failure (the marking thread should join the SuspendibleThreadSet before calling a method that does pause prediction work so that said method is never called during a pause) and an assert failure (an assert is too strong).

Reviewed-by: iveresov, johnc
2011-01-21 11:30:22 -05:00
Erik Trimble
6fde729219 Merge 2011-01-21 02:07:11 -08:00
Christian Thalinger
32d59f1ed0 Merge 2011-01-21 01:16:13 -08:00
Igor Veresov
9256b1a02a 7013812: C1: deopt blob too far from patching stub
Use long jumps to get from patching stubs to deopt blob

Reviewed-by: kvn, never
2011-01-21 00:01:41 -08:00
Erik Trimble
0b70c2b577 Merge 2011-01-20 18:24:04 -08:00
Erik Trimble
ea924f9ff6 Merge 2011-01-20 17:53:38 -08:00
Christine Lu
6083cfa267 Added tag jdk7-b126 for changeset 58ca438889f6 2011-01-20 15:52:05 -08:00
John Cuthbertson
d31ff8a886 Merge 2011-01-20 13:57:12 -08:00
Christian Thalinger
5e35df892d 7011839: JSR 292 turn on escape analysis when using invokedynamic
Currently escape analysis is turned off when EnableInvokeDynamic is true.

Reviewed-by: jrose, kvn
2011-01-20 08:25:22 -08:00
Daniel D. Daugherty
9a10ca40d7 Merge 2011-01-19 19:24:34 -08:00
Antonios Printezis
8bce4a6620 6977804: G1: remove the zero-filling thread
This changeset removes the zero-filling thread from G1 and collapses the two free region lists we had before (the "free" and "unclean" lists) into one. The new free list uses the new heap region sets / lists abstractions that we'll ultimately use it to keep track of all regions in the heap. A heap region set was also introduced for the humongous regions. Finally, this change increases the concurrency between the thread that completes freeing regions (after a cleanup pause) and the rest of the system (before we'd have to wait for said thread to complete before allocating a new region). The changest also includes a lot of refactoring and code simplification.

Reviewed-by: jcoomes, johnc
2011-01-19 19:30:42 -05:00
Keith McGuigan
272d7eaffc 7012505: BreakpointWithFullGC.sh fails with Internal Error (src/share/vm/oops/methodOop.cpp:220)
Rebuild breakpoint cache at gc_epilogue instead of during oops_do

Reviewed-by: dcubed, ysr, coleenp
2011-01-19 13:51:53 -08:00
John Cuthbertson
9c7b5257f8 Merge 2011-01-19 13:04:37 -08:00
John Cuthbertson
2ad5e5ace5 7012642: G1: JumbleGC002 test aborts with segmentation violation due to uncaught stack overflow
With recent G1 allocation path changes, the value of StackShadowPages in fast debug builds of the JVM, is no longer large enough to prevent the JVM C++ code from touching the stack guard pages. Increase the value of StackShadowPages to a suitable value.

Reviewed-by: ysr, tonyp, coleenp
2011-01-19 13:01:11 -08:00
Tom Rodriguez
f028816786 7013008: 2/3 assert(method == NULL || check_method(method, bcp)) failed: bcp must point into method
The Relocator should pass a NULL methodOop when rewriting since its resource array can never contain breakpoints.

Reviewed-by: dcubed, kvn, coleenp
2011-01-19 08:16:45 -08:00
Daniel D. Daugherty
5dc9441b0a 7012493: 2/2 6849574/Test.java fails with Internal Error (src/share/vm/prims/jvmtiTagMap.cpp:3294)
Refine assertion to work before VMThread has started.

Reviewed-by: ysr, never, dholmes, acorn
2011-01-19 07:41:39 -08:00
Daniel D. Daugherty
3f77a1ee13 Merge 2011-01-19 07:15:09 -08:00
Antonios Printezis
05b7df20dd 7011379: G1: overly long concurrent marking cycles
This changeset introduces filtering of SATB buffers at the point when they are about to be enqueued. If this filtering clears enough entries on each buffer, the buffer can then be re-used and not enqueued. This cuts down the number of SATB buffers that need to be processed by the concurrent marking threads.

Reviewed-by: johnc, ysr
2011-01-19 09:35:17 -05:00
Igor Veresov
00e24ca7ca 7012766: assert(false) failed: DEBUG MESSAGE in MacroAssembler::debug32
Interpreter expects to see methodOop in rbx on method entry, which needs to be restored after call to profile_method.

Reviewed-by: kvn, never
2011-01-18 18:00:06 -08:00
Vladimir Kozlov
d2aac739a8 7012965: Fix failed on sparc for 7009756: volatile variables could be broken throw reflection API
Use LDX/STX on v9 and LDD/STD on v8 sparc for volatile long moves.

Reviewed-by: never
2011-01-18 17:10:03 -08:00
Coleen Phillimore
f29b91c7b1 6811367: Fix code in HeapDumper::dump_heap() to avoid buffer overrun
Check buffer size before using and use dynamic buffer sizes for subsequent calls.

Reviewed-by: kamg, dholmes
2011-01-14 13:47:53 -05:00
Erik Trimble
6c4c4000d1 Added tag hs20-b06 for changeset abf8b0ea66cb 2011-01-13 22:49:59 -08:00
Tom Rodriguez
423f587b01 4926272: methodOopDesc::method_from_bcp is unsafe
Reviewed-by: coleenp, jrose, kvn, dcubed
2011-01-13 22:15:41 -08:00
John Cuthbertson
a484211e0b Merge 2011-01-13 17:19:21 -08:00
Christine Lu
09910005ac Added tag jdk7-b125 for changeset abf8b0ea66cb 2011-01-13 16:43:51 -08:00
Y. Srinivas Ramakrishna
597a0cd214 7011940: iCMS: SIGSEGV in SweepClosure::do_already_free_chunk(FreeChunk*)+0x360
Revert a (relaxed version of the) bounds-check that was incorrectly removed in the fix for 7008136.

Reviewed-by: jmasa, johnc
2011-01-13 11:33:56 -08:00
Daniel D. Daugherty
1ce36e3055 Merge 2011-01-13 08:32:15 -08:00
Christian Thalinger
6aa9bf4152 Merge 2011-01-13 07:28:47 -08:00
Christian Thalinger
53c79c908e Merge 2011-01-13 07:20:32 -08:00
Bengt Rutisson
2464e6b369 6941122: G1: UseLargePages does not work with G1 garbage collector
Pass the value of UseLargePages instead of false as the "large" parameter when reserving the G1 heap.

Reviewed-by: tonyp, johnc, phh
2011-01-13 04:43:30 -08:00
Igor Veresov
18619a6ed6 7011627: C1: call_RT must support targets that don't fit in wdisp30
Make both compilers emit near and far calls when necessary.

Reviewed-by: never, kvn, phh
2011-01-12 18:33:25 -08:00
Coleen Phillimore
8d210c170e 7009828: Fix for 6938627 breaks visualvm monitoring when -Djava.io.tmpdir is defined
Change get_temp_directory() back to /tmp and %TEMP% like it always was and where the tools expect it to be.

Reviewed-by: phh, dcubed, kamg, alanb
2011-01-12 13:59:18 -08:00
Antonios Printezis
bc1df68513 6994297: G1: do first-level slow-path allocations with a CAS
First attempt to allocate out the current alloc region using a CAS instead of taking the Heap_lock (first level of G1's slow allocation path). Only if that fails and it's necessary to replace the current alloc region take the Heap_lock (that's the second level of G1's slow allocation path).

Reviewed-by: johnc, brutisso, ysr
2011-01-12 16:34:25 -05:00
Antonios Printezis
5f21cb1b9b 7007068: G1: refine the BOT during evac failure handling
During evacuation failure handling we refine the BOT to reflect the location of all the objects in the regions we scan. The changeset includes some minor cleanup: a) non-product print_on() method on the G1 BOT class, b) added more complete BOT verification during heap / region verification, c) slight modification to the BOT set up for humongous regions to be more consistent with the BOT set up during evac failure handling, and d) removed a couple of unused methods.

Reviewed-by: johnc, ysr
2011-01-12 13:06:00 -05:00
Kevin Walls
b6d2068ee2 6994753: Implement optional hook to a Java method at VM startup
Reviewed-by: mchung, acorn
2011-01-12 15:44:16 +00:00
Vladimir Kozlov
4912ef0e5d 7011386: race in objArrayKlass::array_klass_impl
Move _lower_dimension field initialization before _higher_dimension and add storestore barrier.

Reviewed-by: dholmes, iveresov, never
2011-01-11 20:26:13 -08:00
Paul Hohensee
0b5708a12d Merge 2011-01-11 17:50:26 -05:00
Paul Hohensee
6931aa0a24 7011463: Sparc MacroAssembler::incr_allocated_bytes() needs a RegisterOrConstant argument
Replaced incr_allocated_bytes() formals var_size_in_bytes and con_size_in_bytes with a single RegisterOrConstant formal.

Reviewed-by: twisti, jcoomes
2011-01-11 17:33:21 -05:00
Keith McGuigan
6308eab4d5 6814943: getcpool001 catches more than one JvmtiThreadState problem
Mark field volatile, use membars, and change access order to close race

Reviewed-by: dcubed, dholmes
2011-01-11 10:06:00 -05:00
Igor Veresov
6a80d2126c 4930919: race condition in MDO creation at back branch locations
Reuse set_method_data_for_bcp() to setup mdp after MDO creation.

Reviewed-by: kvn, never
2011-01-10 18:46:29 -08:00
Keith McGuigan
ae65c6240f 6458402: 3 jvmti tests fail with CMS and +ExplicitGCInvokesConcurrent
Make JvmtiGCMark safe to run non-safepoint and instrument CMS

Reviewed-by: ysr, dcubed
2011-01-10 17:14:53 -05:00
Daniel D. Daugherty
6215ab50b3 Merge 2011-01-10 09:23:20 -08:00
Christian Thalinger
595eda12a4 7010913: JSR 292 ciMethodHandle does not handle MethodHandleCompiler exceptions properly
Reviewed-by: kvn, never
2011-01-10 03:58:07 -08:00
Christian Thalinger
b2f607fcb6 7010180: JSR 292 InvokeDynamicPrintArgs fails with: assert(_adapter == NULL) failed: init'd to NULL
Reviewed-by: never
2011-01-10 00:56:39 -08:00
David Holmes
5d2936a29c 7010665: Misplaced membar in C1 implementation of Unsafe.get/putXXX
Modify membars to match regular volatile variable handling

Reviewed-by: iveresov, kvn, never
2011-01-09 17:16:16 -05:00
Erik Trimble
64115cbb85 Merge 2011-01-07 22:56:35 -08:00
Erik Trimble
f87965dc9e 7011125: Bump the HS20 build number to 06
Update the HS20 build number to 06

Reviewed-by: jcoomes
2011-01-07 22:42:10 -08:00
Erik Trimble
45d3cde924 Added tag hs20-b05 for changeset 5f31baaff55b 2011-01-07 19:09:02 -08:00
Daniel D. Daugherty
0c7a73dc8c Merge 2011-01-07 15:54:32 -08:00
Daniel D. Daugherty
d73624f279 Merge 2011-01-07 13:59:48 -08:00