187 Commits

Author SHA1 Message Date
Keith McGuigan
596507e5d3 6865028: Illegal instructions passing verification prior to 'invokespecial Object.<init>'
Update verifier to conform to spec re: reference vs. 'Object' types

Reviewed-by: dholmes, coleenp
2010-10-27 12:53:36 -04:00
Keith McGuigan
e36f1e36eb 6891959: HotSpot should not throw ClassFormatError if a class has a field with '>' and/or '<' in its name
Class file parser needs to look for and disallow '[' in names.

Reviewed-by: coleenp, never
2010-10-26 14:08:49 -04:00
Keith McGuigan
c3401153c8 6991315: RedefineClasses fails with java.lang.VerifyError
Repair stackmap table attribute when relocating bytecode

Reviewed-by: acorn, never
2010-10-21 10:10:23 -04:00
Christian Thalinger
9cabdbf770 6990192: VM crashes in ciTypeFlow::get_block_for()
Reviewed-by: never
2010-10-19 02:52:57 -07:00
Christian Thalinger
e870866699 6991065: missed a review comment in 6829194
Reviewed-by: kvn
2010-10-12 02:21:06 -07:00
Christian Thalinger
0e4ed251b8 6829194: JSR 292 needs to support compressed oops
Reviewed-by: kvn, jrose
2010-10-11 04:18:58 -07:00
Keith McGuigan
9e9551fdd8 Merge 2010-09-22 12:54:51 -04:00
Keith McGuigan
bc7a44e595 6975210: java.lang.VerifyError in some of JCK tests
Naked oop in verificationType::is_reference_assignable_from()

Reviewed-by: never, kvn, coleenp
2010-09-20 15:38:04 -04:00
Vladimir Kozlov
5e98ce13ab Merge 2010-09-16 16:48:40 -07:00
John R Rose
52e3d262a1 6939224: MethodHandle.invokeGeneric needs to perform the correct set of conversions
Reviewed-by: never
2010-09-13 23:24:30 -07:00
Igor Veresov
2c66a6c3fd 6953144: Tiered compilation
Infrastructure for tiered compilation support (interpreter + c1 + c2) for 32 and 64 bit. Simple tiered policy implementation.

Reviewed-by: kvn, never, phh, twisti
2010-09-03 17:51:07 -07:00
Keith McGuigan
c5ccd42ac0 6870851: Bad frame_chop in StackMapTable crashes JVM
Must check locals for null when processing chop frame

Reviewed-by: dholmes, dcubed
2010-09-03 14:47:05 -04:00
Tom Rodriguez
68ff9b2b00 Merge 2010-08-09 17:51:56 -07:00
Vladimir Kozlov
5bed80aab9 6973963: SEGV in ciBlock::start_bci() with EA
Added more checks into ResourceObj and growableArray to verify correctness of allocation type.

Reviewed-by: never, coleenp, dholmes
2010-08-03 15:55:03 -07:00
Andrei Pangin
53ac035768 Merge 2010-07-25 07:31:50 -07:00
Andrei Pangin
3888d500b9 6964170: Verifier crashes
Check if klassOop != NULL rather than klass_part != NULL

Reviewed-by: kamg, never
2010-07-20 08:41:42 -07:00
John R Rose
a4e4149340 6964498: JSR 292 invokedynamic sites need local bootstrap methods
Add JVM_CONSTANT_InvokeDynamic records to constant pool to determine per-instruction BSMs.

Reviewed-by: twisti
2010-07-15 18:40:45 -07:00
Tom Rodriguez
7533d0caf7 6965184: possible races in make_not_entrant_or_zombie
Reviewed-by: kvn
2010-07-08 14:29:44 -07:00
John R Rose
998865b735 Merge 2010-06-15 15:57:36 -07:00
John R Rose
1f4cfb029b 6939203: JSR 292 needs method handle constants
Add new CP types CONSTANT_MethodHandle, CONSTANT_MethodType; extend 'ldc' bytecode.

Reviewed-by: twisti, never
2010-06-09 18:50:45 -07:00
Coleen Phillimore
d64aeff387 Merge 2010-06-04 17:44:51 -04:00
John R Rose
d6a9b93b5a Merge 2010-06-02 22:45:42 -07:00
Erik Trimble
98d775ab1f Merge 2010-06-01 11:48:33 -07:00
Erik Trimble
ba7c173659 6941466: Oracle rebranding changes for Hotspot repositories
Change all the Sun copyrights to Oracle copyright

Reviewed-by: ohair
2010-05-27 19:08:38 -07:00
Keith McGuigan
211a79fc65 6930553: classfile format checker allows invalid method descriptor in CONSTANT_NameAndType_info in some cases
Check NameAndType_info signatures aggressively, even when unreferenced

Reviewed-by: coleenp, acorn, never
2010-05-27 17:06:39 -04:00
John R Rose
05b4f2e796 6956164: nightly regressions from 6939207
Fix errors in 6939207.

Reviewed-by: kvn
2010-05-27 09:54:07 -07:00
John R Rose
581521ba96 6939207: refactor constant pool index processing
Factored cleanup of instruction decode which prepares for enhanced ldc semantics.

Reviewed-by: twisti
2010-05-23 01:38:26 -07:00
Keith McGuigan
4f45d8c3a2 6911922: JVM must throw VerifyError for jsr or jsr_w opcodes in class file v.51+
6693236: A class file whose version number is greater than to 50.0 must be verified using the typechecker

Disable failover verification for classfiles >= v51

Reviewed-by: never, acorn, dholmes
2010-05-19 10:19:10 -04:00
John R Rose
71599d89d4 Merge 2010-05-11 15:19:19 -07:00
Antonios Printezis
cc872846f5 Merge 2010-05-03 16:31:07 -04:00
John R Rose
973b1ef143 6939196: method handle signatures off the boot class path get linkage errors
Adjust MethodType lookup logic to search off the BCP, but not to cache those results

Reviewed-by: twisti
2010-05-01 21:57:35 -07:00
John R Rose
4eb75c2df3 6939134: JSR 292 adjustments to method handle invocation
Split MethodHandle.invoke into invokeExact and invokeGeneric; also clean up JVM-to-Java interfaces

Reviewed-by: twisti
2010-05-01 02:42:18 -07:00
Hiroshi Yamauchi
cd48f31efe 6946040: add intrinsic for short and char reverseBytes
Reviewed-by: never, twisti
2010-04-26 11:27:21 -07:00
John Coomes
99196ff9ca 6888954: argument formatting for assert() and friends
Reviewed-by: kvn, twisti, apetrusenko, never, dcubed
2010-04-22 13:23:15 -07:00
John R Rose
01c5c9a34b Merge 2010-04-08 17:45:20 -07:00
Vladimir Kozlov
629d139cac 6940733: allocate non static oop fields in super and sub classes together
Use FieldsAllocationStyle=2 to allocate non static oop fields in super and sub classes together

Reviewed-by: twisti
2010-04-07 10:35:56 -07:00
Abhijit Saha
845f11dd17 Merge 2010-03-24 17:16:33 -07:00
Antonios Printezis
c157b744ed 6920977: G1: guarantee(k == probe->klass(),"klass should be in dictionary") fails
The guarantee is too strict and the test will fail (incorrectly) if the class is not in the system dictionary but in the placeholders.

Reviewed-by: acorn, phh
2010-02-05 11:05:50 -05:00
Y. Srinivas Ramakrishna
c61ab190cf 6904516: More object array barrier fixes, following up on 6906727
Fixed missing pre-barrier calls for G1, modified C1 to call pre- and correct post-barrier interfaces, deleted obsolete interface, (temporarily) disabled redundant deferred barrier in BacktraceBuilder.

Reviewed-by: coleenp, jmasa, kvn, never
2010-02-01 17:29:01 -08:00
Eric Caspole
f557cc8bd0 6919886: Sweep CodeCache more aggressively to reduce its usage for CompileTheWorld
Add safepoint after CompileTheWorldSafepointInterval (100) compilations and do full sweep of CodeCache each time.

Reviewed-by: never
2010-01-26 08:53:24 -08:00
Karen Kinnear
8101e71766 6626217: Fixed loader constraint array handling
Loader constraints track array elements, not arrays themselves.

Reviewed-by: dcubed, kevinw
2010-01-19 16:03:09 -05:00
Christian Thalinger
e5fb2ad1c4 6914206: change way of permission checking for generated MethodHandle adapters
Put generated MH adapter in InvokeDynamic/MethodHandle classes to be able to indentify them easily in the compiler.

Reviewed-by: kvn, never, jrose
2010-01-08 11:09:46 +01:00
Igor Veresov
5bec0d60ab Merge 2010-01-06 22:21:39 -08:00
Tom Rodriguez
98449cf2c2 6914300: ciEnv should export all well known classes
Reviewed-by: kvn, twisti
2010-01-06 14:22:39 -08:00
Christian Thalinger
47f2433a58 6893268: additional dynamic language related optimizations in C2
C2 needs some additional optimizations to be able to handle MethodHandle invokes and invokedynamic instructions at the best performance.

Reviewed-by: kvn, never
2010-01-05 15:21:25 +01:00
Christian Thalinger
caf28727eb 6893081: method handle & invokedynamic code needs additional cleanup (post 6815692, 6858164)
During the work for 6829187 we have fixed a number of basic bugs which are logically grouped with 6815692 and 6858164 but which must be reviewed and pushed separately.

Reviewed-by: kvn, never
2010-01-04 18:38:08 +01:00
Christian Thalinger
3a896a1408 6894206: JVM needs a way to traverse method handle structures
We need a way to walk chained method handles in the JVM to call the right methods and to generate required bytecode adapters for the compilers.

Reviewed-by: kvn
2010-01-04 15:52:40 +01:00
Erik Trimble
4909043745 Merge 2009-12-23 03:12:16 -08:00
Xiaobin Lu
ad61b86753 6899467: System property java.class.version out-of-sync with VM for jdk 5.0 with HS 16 in nightly build
Reviewed-by: kvn, never, dholmes, ysr
2009-12-16 13:16:08 -08:00
Christian Thalinger
fae9c37803 6829192: JSR 292 needs to support 64-bit x86
Changes for method handles and invokedynamic

Reviewed-by: kvn
2009-12-16 12:48:04 +01:00