Harold Seigel
c95329970d
8172288: Fix Jigsaw related module/package error messages and throw correct exceptions
...
Reword error messages and throw IllegalStateExceptions where appropriate
Reviewed-by: alanb, acorn, lfoltan, gtriantafill
2017-01-13 07:19:03 -05:00
Claes Redestad
450472a24a
8172169: Re-examine String field optionality
...
Reviewed-by: kvn, thartmann
2017-01-03 21:36:05 +01:00
Ioi Lam
37f332b8ee
8171809: Remove unused CDS code from JDK 9
...
Reviewed-by: jiangli, ccheung, mseledtsov
2016-12-15 19:26:41 -08:00
Jesper Wilhelmsson
3bfd349b45
Merge
2016-12-20 22:53:45 +01:00
Jesper Wilhelmsson
a6fc4ec215
Merge
2016-12-18 15:37:50 +01:00
Alan Bateman
6b87f1990b
Merge
2016-12-16 08:18:00 +00:00
Harold Seigel
94c51468b8
8170987: Module system implementation refresh (12/2016)
...
Co-authored-by: Serguei Spitsyn <serguei.spitsyn@oracle.com>
Reviewed-by: lfoltan, coleenp, mchung
2016-12-16 05:46:52 +00:00
Bharadwaj Yadavalli
2841c5eb2b
8171008: Integrate AOT compiler into JDK
...
Co-authored-by: Christian Thalinger <cthalinger@twitter.com>
Co-authored-by: Dean Long <dean.long@oracle.com>
Co-authored-by: Dmitrij Pochepko <dmitrij.pochepko@oracle.com>
Co-authored-by: Dmitry Chuyko <dmitry.chuyko@oracle.com>
Co-authored-by: Doug Simon <doug.simon@oracle.com>
Co-authored-by: Eric Caspole <eric.caspole@oracle.com>
Co-authored-by: Igor Ignatyev <igor.ignatyev@oracle.com>
Co-authored-by: Igor Veresov <igor.veresov@oracle.com>
Co-authored-by: John Rose <john.r.rose@oracle.com>
Co-authored-by: Morris Meyer <morris.meyer@oracle.com>
Co-authored-by: Niclas Adlertz <niclas.adlertz@oracle.com>
Co-authored-by: Rickard Backman <rickard.backman@oracle.com>
Reviewed-by: erikj, mchung, psandoz, coleenp, iklam, stefank, simonis
2016-12-11 19:07:04 -08:00
Jesper Wilhelmsson
65ae405a5b
Merge
2016-12-08 17:03:45 +01:00
Jesper Wilhelmsson
f09c55c0d8
Merge
2016-12-08 15:49:29 +01:00
Brent Christian
95b2647798
8169389: Use a bitmap to control StackTraceElement::toString format and save footprint
...
Reviewed-by: dfuchs, mchung
2016-12-13 12:36:13 -08:00
Jesper Wilhelmsson
5597cd6698
Merge
2016-12-08 15:49:29 +01:00
Markus Grönlund
6a685f1d63
8170672: Event-based tracing to support classloader instances
...
Reviewed-by: hseigel, egahlin
2016-12-06 22:49:17 +01:00
Jiangli Zhou
bae7bbd382
8168797: do not load any archived classes from a patched module
...
Add new runtime shared class visibility check to ensure shared classes from patched module are not loaded at runtime.
Reviewed-by: acorn, ccheung, hseigel, iklam, lfoltan
2016-12-19 13:54:33 -05:00
Serguei Spitsyn
a70c184075
8139566: need proper sync for adding default read edges
...
Use has_default_read_edges() in the ModuleEntry::can_read to fix race issue
Reviewed-by: hseigel, lfoltan
2016-12-18 19:21:18 -08:00
Rachel Protacio
9c6128c943
8169734: Update uses of string "java.base" to macro
...
Replaced instances of "java.base" string with JAVA_BASE_NAME macro
Reviewed-by: sspitsyn, dcubed
2016-12-05 16:08:20 -05:00
Rachel Protacio
83ff43e737
8168850: Mark module entries that have been specified by --patch-module
...
Adds a boolean to ModuleEntry to specify whether the module has been patched using the command line --patch-module
Reviewed-by: jiangli, lfoltan, dholmes
2016-12-05 11:45:20 -05:00
Alan Bateman
988690303a
8169069: Module system implementation refresh (11/2016)
...
Co-authored-by: Lois Foltan <lois.foltan@oracle.com>
Co-authored-by: Harold Seigel <harold.seigel@oracle.com>
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Serguei Spitsyn <serguei.spitsyn@oracle.com>
Co-authored-by: George Triantafillou <george.triantafillou@oracle.com>
Reviewed-by: lfoltan, acorn, ctornqvi, mchung
2016-12-01 08:56:41 +00:00
David Buck
caf8bb3f8b
8170431: non-ASCII characters in source code comments (jimage.hpp)
...
Reviewed-by: dholmes
2016-11-29 06:20:56 +00:00
Jesper Wilhelmsson
106e220ae2
Merge
2016-11-11 16:44:36 +01:00
Mandy Chung
150d28bb0e
6479237: (cl) Add support for classloader names
...
Reviewed-by: alanb, bchristi, coleenp, dfuchs, lfoltan, psandoz, sspitsyn
2016-11-03 18:08:02 -07:00
Rachel Protacio
7246df4cca
Merge
2016-11-17 21:59:52 +00:00
Rachel Protacio
3f2be39bb3
8165550: Add class loader names to ClassCastException message
...
Adds new format of class loader names to VM ClassCastException messages
Reviewed-by: dholmes, mchung, lfoltan
2016-11-17 16:28:45 -05:00
Harold Seigel
ccbb28f6a0
8166304: Skipping access check for classes generated by core reflection
...
Only allow boot and reflection class loader to load sub-types of jdk.internal.reflect
Reviewed-by: acorn, lfoltan, rehn
2016-11-17 14:23:29 -05:00
Jiangli Zhou
70abdc1e0e
8168790: CDS: assert(max_delta <= (0x7FFFFFFF)) failed: range check
...
Change the assert to check the current delta is less than 0x7FFFFFFF.
Reviewed-by: iklam, ddmitriev
2016-11-14 18:03:44 -05:00
Jesper Wilhelmsson
bc72fc2242
Merge
2016-11-11 16:44:36 +01:00
Alejandro Murillo
af03100a51
Merge
2016-10-20 16:53:56 -07:00
Calvin Cheung
c5dc50c03f
8166931: Do not include classes which are unusable during run time in the classlist file
...
Added check to exclude classes found in the --patch-module list
Reviewed-by: jiangli, lfoltan, iklam
2016-10-18 16:15:03 -07:00
Jiangli Zhou
4d9fc9541d
8167333: Invalid source path info might be used when creating ClassFileStream after CFLH transforms a shared classes in some cases
...
Use NULL as 'source' when there is no valid source path info.
Reviewed-by: iklam, dholmes, dsamersoff
2016-10-10 20:50:33 -04:00
Coleen Phillimore
04bc07be95
8164921: Memory leaked when instrumentation.retransformClasses() is called repeatedly
...
Return Metablocks smaller than dictionary's dark matter.
Co-authored-by: Jon Masamitsu <jon.masamitsu@oracle.com>
Reviewed-by: mgerdin, sspitsyn, dsamersoff
2016-10-18 08:39:43 -04:00
Tobias Hartmann
4bb6761600
8153134: Infinite loop in handle_wrong_method in jmod
...
Use Patching_lock to synchronize access between set_code() and clear_code().
Reviewed-by: kvn, dlong
2016-10-18 09:43:12 +02:00
Harold Seigel
63e0cc39e9
8166364: fatal error: acquiring lock DirtyCardQ_CBL_mon/16 out of order with lock Module_lock/6 -- possible deadlock
...
Set the mirror's module field outside of the module lock.
Reviewed-by: dsamersoff, dholmes, rehn
2016-10-10 08:34:32 -04:00
Doug Simon
b7b3fb4266
8167353: [JVMCI] JVMCI re-initialization check is in the wrong location
...
Reviewed-by: kvn, twisti
2016-10-07 15:40:34 -07:00
Paul Sandoz
a1289cce5b
8166974: invokedynamic implementation should not wrap Errors
...
Reviewed-by: dholmes, jrose
2016-10-14 14:47:01 -07:00
Gerard Ziemski
e555a3e342
8166145: runtime/threads/ThreadInterruptTest3 fails with ExitCode 0
...
Added new hashtables logging tag and used it print out the table performance details.
Reviewed-by: coleenp, dholmes
2016-10-27 09:42:45 -05:00
Rachel Protacio
e715dd214c
Merge
2016-10-26 20:13:29 +00:00
Rachel Protacio
420a682afa
8167995: -Xlog:defaultmethods=debug: lengthy method descriptor triggers "StringStream is re-allocated with a different ResourceMark"
...
Removed nested ResourceMark declarations
Reviewed-by: dholmes, hseigel
2016-10-26 15:46:13 -04:00
Tobias Hartmann
ed9adcbdfa
8164612: NoSuchMethodException when method name contains NULL or Latin-1 supplement character
...
String length needs to be updated when converting from unicode to utf8.
Reviewed-by: kvn, coleenp
2016-10-26 14:36:05 +02:00
Rachel Protacio
53164dd532
8159503: Amend Annotation Actions
...
Reviewed-by: coleenp, hseigel, mschoene, acorn, ctornqvi
2016-07-01 15:11:38 -04:00
Harold Seigel
5f49daa2c4
8159511: Stack map validation
...
Reviewed-by: acorn, mschoene
2016-06-30 08:11:30 -04:00
David Holmes
d1856645bc
8081800: AbstractMethodError when evaluating a private method in an interface via debugger
...
Reviewed-by: acorn, dcubed, coleenp
2016-10-03 21:48:21 -04:00
Calvin Cheung
ac6b2ca3dc
8166930: minor cleanups 1) remove reference to ZIP_ReadMappedEntry 2) checking of st_mode
...
Reviewed-by: jiangli, lfoltan
2016-09-30 12:11:02 -07:00
Dean Long
42ec83b459
Merge
2016-09-26 14:21:21 -04:00
Kirill Zhaldybin
616083ca76
8165439: Convert Test_TempNewSymbol to GTest
...
Reviewed-by: dholmes, coleenp
2016-09-05 20:31:03 +03:00
Calvin Cheung
f9707ab4cd
8164011: --patch-module support for CDS
...
Allows the use of the --patch-module vm option with CDS. However, classes found in --patch-module during dump time will not be archived.
Reviewed-by: iklam, dcubed, lfoltan
2016-09-20 10:37:19 -07:00
Lois Foltan
368585d0db
8163406: The fixup_module_list must be protected by Module_lock when inserting new entries
...
In java_lang_Class::create_mirror, restructure the check for adding a class to the fixup_module_list, guarded by Module_lock.
Reviewed-by: acorn, coleenp, dholmes, zgu
2016-09-19 12:04:28 -04:00
Jiangli Zhou
eb52950704
8078644: CDS needs to support JVMTI CFLH
...
Support posting CLFH for shared classes. Tests are contributed by Misha Seledtsov.
Reviewed-by: iklam, coleenp, acorn, dcubed, sspitsyn
2016-09-18 21:10:48 -04:00
Harold Seigel
228097de7c
8149607: [Verifier] Do not verify pop, pop2, swap, dup* against top
...
Throw VerifyError exception if type top is illegally popped from the stack.
Reviewed-by: coleenp, acorn, ddmitriev
2016-09-14 10:02:49 -04:00
Coleen Phillimore
3c2621dbdd
8165246: [REDO] InstanceKlass::_previous_version_count goes negative
...
Make _has_previous_version a boolean that is set to true when previous version of a class is added or during class unloading call to purge_previous_versions
Reviewed-by: gtriantafill, dcubed, sspitsyn
2016-09-07 15:25:21 -04:00
Harold Seigel
e8e6415b7a
8058575: IllegalAccessError trying to access package-private class from VM anonymous class
...
Put anonymous classes in unnamed package into host class's package. Throw exception if host class's package differs from anonymous class.
Reviewed-by: coleenp, acorn
2016-09-07 07:19:48 -04:00