53 Commits

Author SHA1 Message Date
Christian Thalinger
6a270f9f19 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
These methods can be instrinsified by using bit scan, bit test, and population count instructions.

Reviewed-by: kvn, never
2009-05-06 00:27:52 -07:00
John R Rose
34c1d72421 6655646: dynamic languages need dynamically linked call sites
Invokedynamic instruction (JSR 292 RI)

Reviewed-by: twisti, never
2009-04-21 23:21:04 -07:00
Tom Rodriguez
617835c850 6741757: minor ctw improvements
Reviewed-by: kvn
2009-04-16 21:25:29 -07:00
John R Rose
ce0c084720 6655638: dynamic languages need method handles
Initial implementation, with known omissions (x86/64, sparc, compiler optim., c-oops, C++ interp.)

Reviewed-by: kvn, twisti, never
2009-04-08 10:56:49 -07:00
Changpeng Fang
c0d62ad9e6 6761600: Use sse 4.2 in intrinsics
Use SSE 4.2 in intrinsics for String.{compareTo/equals/indexOf} and Arrays.equals.

Reviewed-by: kvn, never, jrose
2009-03-31 14:07:08 -07:00
Vladimir Kozlov
aee9449305 Merge 2009-03-31 10:02:01 -07:00
Vladimir Kozlov
705188bb7b 6821700: tune VM flags for peak performance
Tune C2 flags default values for performance.

Reviewed-by: never, phh, iveresov, jmasa, ysr
2009-03-30 18:19:31 -07:00
Karen Kinnear
101468324d 6603316: Improve instrumentation for classes loaded at startup
Reviewed-by: xlu, mchung
2009-03-25 13:09:28 -04:00
Paul Hohensee
5231fcdc40 6810653: Change String cache class used by Hotspot from String to StringValue
Change create_vm() to load and initialize StringValue rather than String.

Reviewed-by: kvn
2009-03-24 21:56:53 -04:00
Karen Kinnear
472349069b Merge 2009-03-23 10:42:20 -04:00
John R Rose
cfb08c72ba 6814659: separable cleanups and subroutines for 6655638
Preparatory but separable changes for method handles

Reviewed-by: kvn, never
2009-03-20 23:19:36 -07:00
Karen Kinnear
fba4182589 6819853: VM does not detect JDK which supports parallel class loaders
Reviewed-by: coleenp, pbk, xlu, alanb
2009-03-20 11:23:24 -04:00
Vladimir Kozlov
41463d1d3a Merge 2009-03-19 09:13:24 -07:00
Karen Kinnear
25de21d620 4766230: Hotspot vtable inconsistencies cause core dumps. 6579515. 6582242
Reviewed-by: kamg, coleenp
2009-03-18 17:20:57 -04:00
Christian Thalinger
de67e52949 6378821: bitCount() should use POPC on SPARC processors and AMD+10h
BitCount() should use POPC on SPARC processors where POPC is implemented directly in hardware.

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

Reviewed-by: katleman, tbell, ohair
2009-03-09 13:28:46 -07:00
Christian Thalinger
05d1de7727 6810672: Comment typos
I have collected some typos I have found while looking at the code.

Reviewed-by: kvn, never
2009-02-27 13:27:09 -08:00
Vladimir Kozlov
681eb89b31 Merge 2009-02-17 14:30:24 -08:00
Vladimir Kozlov
a23ea7296a 6790209: server VM fails with assert(will_link,"_new: typeflow responsibility")
Add missing code for reflection class loader in SystemDictionary::find().

Reviewed-by: never, jrose
2009-01-16 11:23:10 -08:00
John Coomes
2ba0d5b055 Merge 2009-01-14 14:12:55 -08:00
Jon Masamitsu
c2ff9781c7 6692899: CMS: many vm.parallel_class_loading tests fail with assert "missing Printezis mark"
The CMS concurrent precleaning and concurrent marking phases should work around classes that are undergoing redefinition.

Reviewed-by: ysr, dcubed
2009-01-11 16:58:24 -08:00
Coleen Phillimore
76f79d82ad Merge 2009-01-09 14:39:07 -05:00
Karen Kinnear
9bf4545843 6791656: nsk defclass0 asserts handles.hpp
Reviewed-by: phh, xlu
2009-01-08 16:27:28 -05:00
Karen Kinnear
315de68fc0 4670071: loadClassInternal is too restrictive
VM support for deadlock fix. Library fix in 4735126. See API proposal.

Reviewed-by: dholmes, blacklion
2009-01-05 13:44:03 -05:00
Xiaobin Lu
f05b009ce8 6781583: Hotspot build fails on linux 64 bit platform with gcc 4.3.2
Fixed the wrong cast between types since more restrictions are imposed by gcc 4.3.2

Reviewed-by: jcoomes, acorn, phh, never
2008-12-24 19:13:53 -08:00
Erik Trimble
efd43c045a Merge 2008-12-20 09:57:03 -08:00
Xiomara Jayasena
99f0eac1a2 6785258: Update copyright year
Update copyright for files that have been modified starting July 2008 to Dec 2008

Reviewed-by: katleman, ohair, tbell
2008-12-15 16:55:11 -08:00
John R Rose
e50f766540 6779339: turn off LinkWellKnownClasses by default pending further testing
Temporarily turn off LinkWellKnownClasses optimization

Reviewed-by: never, kvn
2008-12-08 17:15:02 -08:00
John R Rose
849e0ffb04 6653858: dynamic languages need to be able to load anonymous classes
Low-level privileged sun.misc.Unsafe.defineAnonymousClass

Reviewed-by: kvn
2008-11-12 22:33:26 -08:00
Keith McGuigan
74faacc945 6721093: -XX:AppendRatio=N not supported
Add mechanism to ignore unsupported flags for a set period of time

Reviewed-by: acorn, never, coleenp
2008-07-28 14:07:44 -04:00
Xiomara Jayasena
c96a95c4b8 6719955: Update copyright year
Update copyright year for files that have been modified in 2008

Reviewed-by: ohair, tbell
2008-07-02 12:55:16 -07:00
Vladimir Kozlov
afbdf29629 6714404: Add UseStringCache switch to enable String caching under AggressiveOpts
Poke String.stringCacheEnabled during vm initialization

Reviewed-by: never
2008-06-13 14:49:07 -07:00
Keith McGuigan
d58beaefde Merge 2008-06-06 13:43:36 -04:00
Chuck Rasbold
2e672ac9bf 6695049: (coll) Create an x86 intrinsic for Arrays.equals
Intrinsify java/util/Arrays.equals(char[], char[])

Reviewed-by: kvn, never
2008-05-29 16:22:09 -07:00
Keith McGuigan
c966634470 6705523: Fix for 6695506 will violate spec when used in JDK6
Make max classfile version number dependent on JDK version

Reviewed-by: acorn, never
2008-05-22 13:03:52 -04:00
Vladimir Kozlov
e53e767d88 6703888: Compressed Oops: use the 32-bits gap after klass in a object
Use the gap also for a narrow oop field and a boxing object value.

Reviewed-by: coleenp, never
2008-05-21 16:31:35 -07:00
John R Rose
3a4ea9a986 6701024: SAJDI functionality is broken
Back out sa-related changes to 6652736, use concrete expressions for WKK names in the SA

Reviewed-by: never, sundar
2008-05-14 00:41:06 -07:00
Steve Bohne
92cdc5a2e2 Merge 2008-05-02 08:22:11 -07:00
Keith McGuigan
0bbb786728 6695506: JVM should accept classfiles with classfile version 51
Increase class file parser's acceptable max to 51

Reviewed-by: sbohne, ikrylov
2008-04-30 10:58:37 -04:00
John R Rose
bb7ccea4ff 6652736: well known classes in system dictionary are inefficiently processed
Combine many scalar variables into a single enum-indexed array in SystemDictionary.

Reviewed-by: kvn
2008-04-29 19:45:22 -07:00
Keith McGuigan
e6afe110b8 6692246: Regression : JDK 6u4 b01 fails two JCK tests when fallback is switched off
Added a clause to allow null to be an operand to the arraylength bytecode

Reviewed-by: sbohne, coleenp
2008-04-29 11:21:51 -04:00
Coleen Phillimore
4a831d45f0 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
Compressed oops in instances, arrays, and headers. Code contributors are coleenp, phh, never, swamyv

Reviewed-by: jmasa, kamg, acorn, tbell, kvn, rasbold
2008-04-13 17:43:42 -04:00
Keith McGuigan
680ecf1611 Merge 2008-04-11 09:56:35 -04:00
Keith McGuigan
81475bf1a6 6615981: JVM class file parser incorrectly rejects class files with version < 45.2
A check on Code length did not take into account the old sizes of the max_stack, max_locals, and code_length.

Reviewed-by: phh, sbohne
2008-04-10 12:21:01 -04:00
Tom Rodriguez
50bc5573a8 6679708: No_Safepoint_Verifier and BacktraceBuilder have uninitialized fields
Fix or remove uninitialized fields

Reviewed-by: kvn, rasbold
2008-03-26 12:25:06 -07:00
Daniel D. Daugherty
0745d10694 Merge 2008-03-13 14:17:48 -07:00
Daniel D. Daugherty
0f1d30354a 6497639: 4/3 Profiling Swing application caused JVM crash
Make RedefineClasses() interoperate better with class sharing.

Reviewed-by: sspitsyn, jmasa
2008-03-12 18:06:50 -07:00
Vladimir Kozlov
b64d5e4209 6667615: (Escape Analysis) extend MDO to cache arguments escape state
Use MDO to cache arguments escape state determined by the byte code escape analyzer.

Reviewed-by: never
2008-03-11 19:00:38 -07:00
Coleen Phillimore
218615259d 6646946: Kernel installation failed on Japanese and Chinese XP SP2 (VM part)
Convert strings from Download Manager into native encoding in the VM

Reviewed-by: sbohne, never, phh, kamg, xlu
2008-01-17 13:38:17 -08:00