642 Commits

Author SHA1 Message Date
Igor Veresov
bea6d40f48 8058536: java/lang/instrument/NativeMethodPrefixAgent.java fails due to VirtualMachineError: out of space in CodeCache for method handle intrinsic
Make sure MH intrinsics can be created before compiler instances

Reviewed-by: kvn
2014-09-26 20:09:02 -07:00
Harold Seigel
1bae14de54 8057845: ClassVerifier::verify_exception_handler_targets reconstructs the ExceptionTable in a loop
Construct the ExceptionTable only once, before the loop

Reviewed-by: acorn, jiangli, coleenp, lfoltan
2014-09-19 08:19:04 -04:00
Niclas Adlertz
d348978bc1 Merge 2014-09-12 09:17:58 +02:00
Igor Veresov
7275456c3a 8058092: Test vm/mlvm/meth/stress/compiler/deoptimize. Assert in src/share/vm/classfile/systemDictionary.cpp: MH intrinsic invariant
Throw exception if unable to compile an MH intrinsic

Reviewed-by: kvn
2014-09-10 19:08:17 -07:00
Niclas Adlertz
1b124f9f48 Merge 2014-09-09 16:14:40 +02:00
Igor Veresov
b91254ea6a 8057750: CTW should not make MH intrinsics not entrant
Do not make MH intrinsics not entrant in CTW

Reviewed-by: kvn, vlivanov
2014-09-08 11:45:48 -07:00
Igor Veresov
e285f3eadc 8056154: JVM crash with EXCEPTION_ACCESS_VIOLATION when there are many threads running
Don't make compiled MH intrinsics not entrant when redefining classes

Reviewed-by: kvn, vlivanov
2014-09-05 14:39:45 -07:00
Vladimir Kozlov
98f413fa1f Merge 2014-09-04 22:59:17 -07:00
Jon Masamitsu
2d8379afd4 Merge 2014-09-04 12:25:05 -07:00
Stefan Karlsson
635e35d00a 8057037: Verification in ClassLoaderData::is_alive is too slow
Reviewed-by: brutisso, mgerdin, tschatzl
2014-09-03 12:45:14 +02:00
Ioi Lam
04e110cf2c 8056971: Minor class loading clean-up
Misplacement of #if INCLUE_CDS, typos, unnecessary C string duplication

Reviewed-by: dholmes, ccheung
2014-09-02 09:51:24 -07:00
Mikael Gerdin
6fc8764c65 8056084: Refactor Hashtable to allow implementations without rehashing support
Reviewed-by: gziemski, jmasa, brutisso, coleenp, tschatzl
2014-08-29 13:08:01 +02:00
Coleen Phillimore
73d759e533 8049105: Move array component mirror to instance of java/lang/Class (hotspot part 2)
This removes component mirrors from arrayKlass metadata and the C2 intrinsic for them.

Reviewed-by: kvn, twisti, mgerdin
2014-08-28 11:29:09 -04:00
Ioi Lam
541640ed22 Merge 2014-09-05 15:53:02 -07:00
Coleen Phillimore
3c70d99eda 8055008: Clean up code that saves the previous versions of redefined classes
Use scratch_class to find EMCP methods for breakpoints if the old methods are still running.

Reviewed-by: dcubed, sspitsyn
2014-09-03 19:13:18 -04:00
Rickard Bäckman
a5b650be48 Merge 2014-08-21 20:24:41 +02:00
Vladimir Kozlov
b86cece468 Merge 2014-08-15 12:27:50 -07:00
Tobias Hartmann
d50dfdb399 8054402: "klass->is_loader_alive(_is_alive)) failed: must be alive" for anonymous classes
Because anonymous classes are not in the system dictionary, we have to set 'unloading_occurred' based on 'CLDG::do_unloading()'. Added jtreg test.

Reviewed-by: kvn, coleenp
2014-08-14 09:15:39 +02:00
Harold Seigel
1436d4b821 8050485: super() in a try block in a ctor causes VerifyError
Parse catch clause paths to ensure they end in throws

Reviewed-by: dlong, acorn, kamg, ctornqvi, lfoltan
2014-08-12 20:29:25 -04:00
Ioi Lam
bbe6f51f81 8046070: Class Data Sharing clean up and refactoring
Cleaned up CDS to be more configurable, maintainable and extensible

Reviewed-by: dholmes, coleenp, acorn, mchung
2014-08-12 17:29:00 -07:00
Zhengyu Gu
8a690a1250 6424123: JVM crashes on failed 'strdup' call
Calling os::malloc()/os::strdup() and new os::strdup_check_oom() instead of ::malloc()/::strdup() for native memory tracking purpose

Reviewed-by: coleenp, ctornqvi, kvn
2014-08-11 10:18:09 -07:00
Zhengyu Gu
f0cf82f571 8046598: Scalable Native memory tracking development
Enhance scalability of native memory tracking

Reviewed-by: coleenp, ctornqvi, gtriantafill
2014-08-07 12:18:58 -07:00
Harold Seigel
1c5ed7ab4c 8046233: VerifyError on backward branch
Remove check that causes the VerifyError

Reviewed-by: dholmes, coleenp, acorn
2014-08-05 09:11:35 -04:00
Harold Seigel
f588cd1325 8051012: Regression in verifier for <init> method call from inside of a branch
Fix stackmap matching for branches.

Reviewed-by: coleenp, lfoltan, acorn
2014-08-02 16:28:59 -04:00
Vladimir Kozlov
b9e949183d 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
Add new C2 intrinsic for BigInteger::multiplyToLen() on x86 in 64-bit VM.

Reviewed-by: roland
2014-09-02 12:48:45 -07:00
Serguei Spitsyn
b0367c3bea Merge 2014-07-18 23:53:59 -07:00
Alejandro Murillo
f4aa8d51a5 Merge 2014-07-18 12:02:54 -07:00
Coleen Phillimore
e051932425 Merge 2014-07-18 11:22:49 -04:00
Rickard Bäckman
eefe77eaff Merge 2014-07-18 10:41:05 +02:00
Coleen Phillimore
3f0a945468 8004128: NPG: remove stackwalking in Threads::gc_prologue and gc_epilogue code
Remove bcx and mdx handling.  We no longer have to convert bytecode pointers to indices for GC since Methods aren't moved.

Reviewed-by: mgerdin, kvn
2014-07-17 15:45:46 -04:00
Coleen Phillimore
c9b2bc62c9 Merge 2014-07-14 10:15:21 -04:00
Harold Seigel
0cc38ff4d5 8043454: Test case for 8037157 should not throw a VerifyError
Don't throw VerifyError if method is NULL.

Reviewed-by: acorn, lfoltan, mschoene
2014-07-14 13:31:03 +04:00
Vladimir Kozlov
009f0fb913 Merge 2014-07-11 14:32:02 -07:00
Serguei Spitsyn
206c37a5e6 Merge 2014-07-12 01:26:13 -07:00
Jon Masamitsu
fbe6d80096 Merge 2014-07-10 13:39:18 -07:00
Roland Westrelin
c0deb9e08a 8040237: nsk/jvmti/RetransformClasses/retransform001 crashed the VM on all platforms when run with with -server -Xcomp
Class redefinition may cause speculative trap clean up code to dereference dead method

Reviewed-by: kvn, coleenp
2014-07-10 15:12:48 +02:00
Coleen Phillimore
06cea98803 8048933: -XX:+TraceExceptions output should include the message
Add the exception detail message to the tracing output

Reviewed-by: minqi, dholmes
2014-07-09 22:37:48 -04:00
Stefan Karlsson
1b001a2afd 8049421: G1 Class Unloading after completing a concurrent mark cycle
Co-authored-by: Mikael Gerdin <mikael.gerdin@oracle.com>
Reviewed-by: tschatzl, ehelin, brutisso, coleenp, roland, iveresov
2014-07-07 10:12:40 +02:00
Stefan Karlsson
ef1e9b3c80 8049420: Backout 8048248 to correct attribution
Reviewed-by: ehelin, brutisso
2014-07-07 12:37:11 +02:00
Stefan Karlsson
8c3aced316 8048248: G1 Class Unloading after completing a concurrent mark cycle
Reviewed-by: tschatzl, ehelin, brutisso, coleenp, roland, iveresov
2014-07-07 10:12:40 +02:00
Goetz Lindenmaier
25f33c005d 8049325: Introduce and clean up umbrella headers for the files in the cpu subdirectories
Introduce and clean up umbrella headers for the files in the cpu subdirectories.

Reviewed-by: lfoltan, coleenp, dholmes
2014-07-04 11:46:01 +02:00
Harold Seigel
08e90ebfcb 8026894: Improve VerifyError message about overriding a final method
Add full class name to error message.

Reviewed-by: fparain, zgu, lfoltan
2014-07-03 10:25:42 -04:00
Coleen Phillimore
6db67f9317 Merge 2014-07-02 20:20:45 -04:00
Coleen Phillimore
60ec6dfa0c 8047737: Move array component mirror to instance of java/lang/Class
Add field in java.lang.Class for componentType to simplify oop processing in JVM

Reviewed-by: fparain, twisti
2014-07-02 15:22:18 -04:00
Daniel D. Daugherty
628b3c2c3a Merge 2014-06-27 08:11:49 -07:00
Markus Grönlund
95d24c7361 8047812: Ensure ClassLoaderDataGraph::classes_unloading_do only delivers klasses from CLDs with non-reclaimed class loader oops
Reviewed-by: coleenp, sspitsyn, ehelin
2014-06-27 13:33:36 +02:00
Goetz Lindenmaier
f2051ed6fa 8048241: Introduce umbrella header os.inline.hpp and clean up includes
Reviewed-by: coleenp, dholmes, lfoltan
2014-06-26 16:05:15 +02:00
Jon Masamitsu
0e622bfc55 Merge 2014-06-25 20:41:16 -07:00
Jon Masamitsu
633706fa4e Merge 2014-06-23 14:20:20 -07:00
Coleen Phillimore
d8ce93cea5 6642881: Improve performance of Class.getClassLoader()
Add classLoader to java/lang/Class instance for fast access

Reviewed-by: alanb, lfoltan, rriggs, vlivanov, twisti, jfranck
2014-06-19 14:49:33 -04:00