Thomas Schatzl
30ed89669a
8003420: NPG: make new GC root for pd_set
...
Move protection domain oops from system dictionary entries into a seperate set; the system dictionary references entries in that set now. This allows fast iteration during non-classunloading garbage collection. Implementation based on initial prototype from Ioi Lam (iklam).
Reviewed-by: coleenp, iklam
2013-10-09 10:57:01 +02:00
Thomas Schatzl
4abf168208
Merge
2013-09-26 12:18:21 +02:00
Thomas Schatzl
83ed895a75
Merge
2013-09-24 10:14:02 +02:00
Daniel D. Daugherty
156b06d897
Merge
2013-09-20 12:58:35 -07:00
Per Liden
de71bd1049
8024974: Incorrect use of GC_locker::is_active()
...
SymbolTable and StringTable can make calls to GC_locker::is_active() outside a safepoint. This isn't safe because the GC_locker active state (lock count) is only updated at a safepoint and only remains valid as long as _needs_gc is true. However, outside a safepoint_needs_gc can change to false at any time, which makes it impossible to do a correct call to is_active() in that context. In this case these calls can just be removed since the input argument to basic_add() should never be on the heap and so there's no need to check the GC_locker state. This change also adjusts the assert() in is_active() to makes sure all calls to this function are always done under a safepoint.
Reviewed-by: brutisso, dcubed
2013-09-20 10:53:28 +02:00
Niclas Adlertz
afef481831
Merge
2013-09-19 18:01:39 +02:00
Daniel D. Daugherty
41bce440a4
8019835: Strings interned in different threads equal but does not ==
...
Add -XX:+VerifyStringTableAtExit option and code to verify StringTable invariants.
Reviewed-by: rdurbin, sspitsyn, coleenp
2013-09-18 07:02:10 -07:00
Karen Kinnear
9505ddf1e2
8024647: Default method resolution with private superclass method
...
Reviewed-by: kamg, minqi
2013-09-16 17:57:56 -04:00
David Chase
222c735458
8014013: CallInfo structure no longer accurately reports the result of a LinkResolver operation
...
Enhance method resolution and resulting data structures, plus some refactoring.
Reviewed-by: twisti, acorn, jrose
2013-09-13 22:38:02 -04:00
Zhengyu Gu
9e8f860fec
Merge
2013-09-13 10:34:15 -04:00
Christian Thalinger
bfe7c0bfc2
8024275: During CTW: assert(sig_bt[member_arg_pos] == T_OBJECT) failed: dispatch argument must be an object
...
Reviewed-by: kvn, vlivanov
2013-09-12 14:53:44 -07:00
Vladimir Ivanov
f0e77ac67f
8001107: @Stable annotation for constant folding of lazily evaluated variables
...
Co-authored-by: John Rose <john.r.rose@oracle.com>
Reviewed-by: rbackman, twisti, kvn
2013-09-10 14:51:48 -07:00
Harold Seigel
76033b1a37
8023167: JVM allows duplicate Runtime[In]VisibleTypeAnnotations attributes in ClassFile/field_info/method_info structures
...
Add checks for duplicates and issue errors when detected.
Reviewed-by: coleenp, zgu
2013-09-09 14:44:37 -04:00
Karen Kinnear
fdf2c975ed
8023872: Verification error in generated lambda classes
...
Skip verification for generated lambda classes
Reviewed-by: kamg, dholmes
2013-08-30 15:15:56 -04:00
Harold Seigel
1ff22f2ed9
8016764: JVM does not prohibit invokespecial in c.f.v 51.0 that invokes default interface method in c.f.v 52.0
...
Check cfv before allowing invokespecial call to default method.
Reviewed-by: kamg, acorn, dholmes
2013-08-29 10:33:13 -04:00
Karen Kinnear
c0f4055c78
8020489: VM crash when non-existent interface called by invokespecial
...
Reviewed-by: kamg, coleenp
2013-08-28 08:15:01 -04:00
Yumin Qi
137cb8d4ee
Merge
2013-08-27 07:54:05 -07:00
Calvin Cheung
4415ae47cd
8020675: invalid jar file in the bootclasspath could lead to jvm fatal error
...
Removed offending EXCEPTION_MARK calls and code cleanup
Reviewed-by: dholmes, iklam, coleenp, mseledtsov
2013-08-26 14:11:26 -07:00
Karen Kinnear
38560368c1
8012294: remove generic handling for default methods
...
Reviewed-by: kamg, coleenp
2013-08-26 11:35:25 -04:00
Jiangli Zhou
553b498f51
8021948: Change InstanceKlass::_source_file_name and _generic_signature from Symbol* to constant pool indexes
...
Change InstanceKlass::_source_file_name and _generic_signature to u2 fields.
Reviewed-by: coleenp, iklam
2013-08-19 14:59:54 -04:00
Daniel D. Daugherty
15aa5e3a57
Merge
2013-08-09 13:19:00 -07:00
Serguei Spitsyn
4974d1aef2
7187554: JSR 292: JVMTI PopFrame needs to handle appendix arguments
...
Restore the appendix argument after PopFrame() call
Reviewed-by: twisti, coleenp
2013-08-06 16:33:59 -07:00
Albert Noll
fb2554e3f3
8021301: better event messages
...
Made event messages better readable
Reviewed-by: kvn, rbackman
2013-08-02 10:20:34 -07:00
Calvin Cheung
1a1e83be6a
8004872: Early loading of HashMap and StringValue under -XX:+AggressiveOpts can be removed
...
This fix also removes the -XX:+UseStringCache option
Reviewed-by: dholmes, acorn, iklam
2013-07-18 14:57:51 -07:00
Jiangli Zhou
3dfcb4125e
8020309: Eliminate InstanceKlass::_cached_class_file_len
...
Use JvmtiCachedClassFileData.
Reviewed-by: iklam, sspitsyn, dcubed
2013-07-17 18:06:29 -04:00
Karen Kinnear
ed46fe2de9
8013635: VM should no longer create bridges for generic signatures
...
Requires: 8013789: Compiler bridges, 8015402: metafactory
Reviewed-by: sspitsyn, coleenp, bharadwaj
2013-07-09 14:02:28 -04:00
Eric Mccorkle
65405fd613
8014399: Remove JVM_SetProtectionDomain from hotspot
...
JVM_SetProtectionDomain has been deprecated since 1.5 and is being removed
Reviewed-by: coleenp, hseigel
2013-07-08 19:36:22 -04:00
David Chase
9a359984c2
7088419: Use x86 Hardware CRC32 Instruction with java.util.zip.CRC32
...
Add intrinsics using new instruction to interpreter, C1, C2, for suitable x86; add test
Reviewed-by: kvn, twisti
2013-07-02 20:42:12 -04:00
Alejandro Murillo
c2c1793452
Merge
2013-06-28 02:25:07 -07:00
Alejandro Murillo
2289eb801f
Merge
2013-06-25 12:46:21 -07:00
Coleen Phillimore
39a1c1d6c2
8016325: JVM hangs verifying system dictionary
...
Minimize redundant verifications of Klasses.
Reviewed-by: hseigel, jmasa
2013-06-24 18:55:46 -04:00
Erik Helin
774e23fae7
Merge
2013-06-20 10:03:58 +02:00
Chris Hegarty
748456a6d9
Merge
2013-06-19 11:02:10 +01:00
John Cuthbertson
5382e0759e
8015237: Parallelize string table scanning during strong root processing
...
Parallelize the scanning of the intern string table by having each GC worker claim a given number of buckets. Changes were also reviewed by Per Liden <per.liden@oracle.com>.
Reviewed-by: tschatzl, stefank, twisti
2013-06-18 12:31:07 -07:00
Chris Hegarty
ae4642e749
Merge
2013-06-17 11:17:49 +01:00
Calvin Cheung
53448fdbed
8014431: cleanup warnings indicated by the -Wunused-value compiler option on linux
...
Co-authored-by: Jeremy Manson <jeremymanson@google.com>
Reviewed-by: dholmes, coleenp
2013-06-13 22:02:40 -07:00
Staffan Larsen
718f3252f6
8005849: JEP 167: Event-Based JVM Tracing
...
Co-authored-by: Karen Kinnear <karen.kinnear@oracle.com>
Co-authored-by: Bengt Rutisson <bengt.rutisson@oracle.com>
Co-authored-by: Calvin Cheung <calvin.cheung@oracle.com>
Co-authored-by: Erik Gahlin <erik.gahlin@oracle.com>
Co-authored-by: Erik Helin <erik.helin@oracle.com>
Co-authored-by: Jesper Wilhelmsson <jesper.wilhelmsson@oracle.com>
Co-authored-by: Keith McGuigan <keith.mcguigan@oracle.com>
Co-authored-by: Mattias Tobiasson <mattias.tobiasson@oracle.com>
Co-authored-by: Markus Gronlund <markus.gronlund@oracle.com>
Co-authored-by: Mikael Auno <mikael.auno@oracle.com>
Co-authored-by: Nils Eliasson <nils.eliasson@oracle.com>
Co-authored-by: Nils Loodin <nils.loodin@oracle.com>
Co-authored-by: Rickard Backman <rickard.backman@oracle.com>
Co-authored-by: Stefan Karlsson <stefan.karlsson@oracle.com>
Co-authored-by: Yekaterina Kantserova <yekaterina.kantserova@oracle.com>
Reviewed-by: acorn, coleenp, sla
2013-06-10 11:30:51 +02:00
Harold Seigel
02a27e2824
8015385: Remove RelaxAccessControlCheck for JDK 8 bytecodes
...
Check bytecode versions along with RelaxAccessControlCheck version
Reviewed-by: dholmes, acorn
2013-06-03 10:00:10 -04:00
Daniel D. Daugherty
54b7fa892a
Merge
2013-06-01 09:28:26 -07:00
Chris Hegarty
a8432ef7c5
Merge
2013-05-31 10:27:12 +01:00
Jesper Wilhelmsson
43ff2913a7
Merge
2013-05-31 09:55:35 +02:00
Serguei Spitsyn
a246da16d1
8015436: compiler/ciReplay/TestSA.sh fails with assert() index is out of bounds
...
The InstanceKlass _initial_method_idnum value must be adjusted if overpass methods are added.
Reviewed-by: twisti, kvn
2013-05-30 11:46:39 -07:00
Aleksey Shipilev
375e12feb9
8015270: @Contended: fix multiple issues in the layout code
...
Field count handling fixed, has_nonstatic_fields invariant fixed, oop map overrun fixed; new asserts
Reviewed-by: kvn, dcubed, coleenp
2013-05-27 12:49:08 -07:00
Stefan Karlsson
c13149ab8d
8015422: Large performance hit when the StringTable is walked twice in Parallel Scavenge
...
Combine the calls to StringTable::unlink and StringTable::oops_do in Parallel Scavenge.
Reviewed-by: pliden, coleenp
2013-05-27 12:58:42 +02:00
Stefan Karlsson
8b7d3c5d3b
8015428: Remove unused CDS support from StringTable
...
The string in StringTable is not used by CDS anymore. Remove the unnecessary code in preparation for 8015422: Large performance hit when the StringTable is walked twice in Parallel Scavenge
Reviewed-by: pliden, tschatzl, coleenp
2013-05-27 12:56:34 +02:00
Chris Hegarty
988a08a49f
Merge
2013-05-23 12:44:18 +01:00
Coleen Phillimore
6ed8c8fcea
8003421: NPG: Move oops out of InstanceKlass into mirror
...
Inject protection_domain, signers, init_lock into java_lang_Class
Reviewed-by: stefank, dholmes, sla
2013-05-22 14:37:49 -04:00
Bharadwaj Yadavalli
19da55568f
8014059: JSR292: Failed to reject invalid class cplmhl00201m28n
...
Restrict reference of interface methods by invokestatic and invokespecial to classfile version 52 or later.
Reviewed-by: kvn, hseigel
2013-05-21 16:17:51 -07:00
Aleksey Shipilev
a462587e4b
8014878: Clean up class field layout code
...
Rename/remove local variables, re-arrange instance_size calculation, more comments.
Reviewed-by: kvn, coleenp
2013-05-20 23:41:27 +04:00
Ioi Lam
f9ae3b46de
8014262: PrintStringTableStatistics should include more footprint info
...
Added info for the string/symbol objects and the hash entries
Reviewed-by: coleenp, rbackman
2013-05-18 20:41:01 -07:00