Chris Hegarty
e09cadb438
8140687: Move @Contended to the jdk.internal.vm.annotation package
...
Reviewed-by: alanb, dholmes, psandoz, shade
2015-11-24 11:49:44 +00:00
Harold Seigel
3756d55ee6
8139164: JVM should throw ClassFormatError for non-void methods named <clinit>
...
If method being parsed is named <clinit>, throw ClassFormatError if it is not void or has arguments, for class file version >= 51.
Reviewed-by: acorn, lfoltan
2015-11-10 08:42:53 -05:00
Coleen Phillimore
b046110ab7
Merge
2015-10-28 15:03:40 +01:00
Coleen Phillimore
fc03719078
8139203: Consistent naming for klass type predicates
...
8138923: Remove oop coupling with InstanceKlass subclasses
Renamed oop_is_instance and friends, removed the functions in oop that dug down into InstanceKlass.
Reviewed-by: jrose, lfoltan, stefank
2015-10-28 09:47:23 -04:00
Coleen Phillimore
5179fc3488
8139163: InstanceKlass::cast passes through NULL
...
Reduce raw (InstanceKlass*) casts and InstanceKlass::cast, which no long allows null
Reviewed-by: twisti, kbarrett
2015-10-26 13:11:36 -04:00
Coleen Phillimore
ed82cd0ee8
Merge
2015-10-23 23:06:53 +02:00
Coleen Phillimore
f1e89ea4cc
8140274: methodHandles and constantPoolHandles should be passed as const references
...
Modified code to use const reference parameters
Reviewed-by: sspitsyn, twisti
2015-10-23 16:48:38 -04:00
Goetz Lindenmaier
83b3b21342
8139040: Fix initializations before ShouldNotReachHere() etc. and enable -Wuninitialized on linux
...
Reviewed-by: stuefe, coleenp, roland
2015-10-22 13:07:10 -04:00
Joseph Provino
db5f26110b
Merge
2015-10-20 11:17:19 -04:00
Dean Long
344a9becee
Merge
2015-10-17 19:40:30 -04:00
Harold Seigel
df9b5759f7
8139069: JVM should throw ClassFormatError for <init> methods in interfaces
...
If method being parsed is in an interface, throw ClassFormatError if its name is "<init>"
Reviewed-by: acorn, lfoltan
2015-10-14 13:30:47 -04:00
Goetz Lindenmaier
4aad17f807
8139116: Fixes for warning "format not a string literal"
...
Reviewed-by: ddmitriev, david, simonis
2015-10-09 16:39:37 +02:00
Christian Thalinger
16526e000e
8136421: JEP 243: Java-Level JVM Compiler Interface
...
Reviewed-by: ihse, alanb, roland, coleenp, iveresov, kvn, kbarrett
2015-10-08 12:49:30 -10:00
David Lindholm
1e71f67736
8080775: Better argument formatting for assert() and friends
...
Reviewed-by: kbarrett, pliden
2015-09-29 11:02:08 +02:00
Harold Seigel
1890d7a430
8135208: VM permits illegal <clinit> access_flags, versions 51-52
...
Check access flags for <clinit> methods that are not class init methods.
Reviewed-by: kamg, gtriantafill
2015-09-22 09:48:19 -04:00
Roland Westrelin
51ddedd5c7
Merge
2015-07-23 19:11:28 +02:00
Vladimir Kozlov
1e08e6133d
Merge
2015-07-17 14:51:28 -07:00
Calvin Cheung
84ff1787b7
8079825: Uninitialised variable in hotspot/src/share/vm & cpu/x86/vm (runtime)
...
Initialized local variables in classFileParser.cpp and rframe.cpp
Reviewed-by: dholmes, minqi
2015-07-17 12:07:49 -07:00
Zoltan Majo
1a3b0cca61
8131326: Enable CheckIntrinsics in all types of builds
...
Enable CheckIntrinsics flag in all builds; make check for orphan methods available only in debug builds.
Reviewed-by: kvn
2015-07-16 15:02:12 +02:00
Jaroslav Bachorik
794f1616f0
Merge
2015-07-10 16:37:41 +02:00
Harold Seigel
9d7677a83f
8130669: VM prohibits <clinit> methods with return values
...
Ignore <clinit> methods with return values instead of throwing ClassFormatError exceptions
Reviewed-by: acorn, iklam
2015-07-09 15:39:05 -04:00
Harold Seigel
00da567d15
8130183: InnerClasses: VM permits wrong inner_class_info_index value of zero
...
Throw ClassFormatError if InnerClasses attribute's inner_class_info_index is 0
Reviewed-by: acorn, lfoltan
2015-07-09 08:36:37 -04:00
Zoltan Majo
9245cdc214
8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
...
Annotate possibly intrinsified methods with @HotSpotIntrinsicCandidate. Add checks omitted by intrinsics to the library code. Add CheckIntrinsics flags to check consistency of intrinsics.
Reviewed-by: jrose, kvn, thartmann, vlivanov, abuckley, darcy, ascarpino, briangoetz, alanb, aph, dnsimon
2015-07-03 07:25:03 +02:00
Jesper Wilhelmsson
d60d6fdf40
Merge
2015-06-24 13:38:01 +02:00
Harold Seigel
058dd16f78
8042041: https://bugs.openjdk.java.net/browse/JDK-8042041
...
Don't assert if class has a bad element_tag in an element_value structure of a RuntimeVisibleAnnotation attribute. Instead, ignore the attribute.
Reviewed-by: acorn, gtriantafill
2015-06-18 08:44:28 -04:00
Vladimir Ivanov
90a42c2491
8074551: GWT can be marked non-compilable due to deopt count pollution
...
Reviewed-by: kvn
2015-06-11 14:19:40 +03:00
Per Lidén
4dc240f785
8079792: GC directory structure cleanup
...
Reviewed-by: brutisso, stefank, david
2015-05-13 15:16:06 +02:00
Harold Seigel
64bb2ce311
8076236: VM permits illegal flags for class init method
...
Move check for multiple access flags so that it also covers instance initialization methods
Reviewed-by: ctornqvi, lfoltan
2015-04-02 08:50:10 -04:00
Stefan Karlsson
d40f08d0a3
8073389: Remove the include of resourceArea.hpp from classFileParser.hpp
...
Reviewed-by: coleenp, dholmes
2015-02-18 10:28:27 +01:00
Stefan Karlsson
4913ad5d7d
8072911: Remove includes of oop.inline.hpp from .hpp files
...
Reviewed-by: brutisso, coleenp, jwilhelm, simonis, dholmes
2015-02-13 14:37:35 +01:00
Coleen Phillimore
d57245dcbb
8049632: JDK 1.8.0 b132 :Linux x64 : Crash in ClassFileParser::copy_localvariable_table(..)
...
Use resource allocated hashtable for local variable table checking
Reviewed-by: kamg, sspitsyn
2015-01-29 14:37:14 -05:00
Stefan Karlsson
e9b92ce024
8065634: Crash in InstanceKlass::clean_method_data when _method is NULL
...
Reviewed-by: coleenp, hseigel, poonam
2014-12-05 21:16:45 +01:00
Jesper Wilhelmsson
2616e09389
Merge
2014-11-17 21:32:32 +01:00
Stefan Karlsson
d326162380
8064580: Move INCLUDE_CDS include section to the end of the include list
...
Reviewed-by: jwilhelm, brutisso, coleenp, dholmes
2014-11-11 17:05:33 +01:00
Aleksey Shipilev
21527b2ff2
8015272: Make @Contended within the same group to use the same oop map
...
Reviewed-by: coleenp, dholmes
2014-11-11 15:07:09 +03:00
Eric McCorkle
bbd7b058d1
8058313: Mismatch of method descriptor and MethodParameters.parameters_count should cause MalformedParameterException
...
Allow hotspot to store and report zero-length MethodParameters attribute data
Reviewed-by: coleenp, jiangli
2014-11-10 16:45:46 -05:00
Karen Kinnear
0e1283a811
8043275: Fix interface initialization for default methods
...
Initialize interfaces that declare concrete instance methods.
Reviewed-by: kamg, coleenp, psandoz
2014-10-22 15:24:37 -07:00
Harold Seigel
9f06aa633c
8041717: Issue with class file parser
...
Add better checking for bad values.
Reviewed-by: coleenp, lfoltan, mschoene
2014-05-30 13:23:27 -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
Karen Kinnear
55dc1a6965
8037167: Better method signature resolution
...
Reviewed-by: mschoene, hseigel, lfoltan
2014-07-14 13:15:06 +04:00
Harold Seigel
53685b407a
8036800: Attribute OOM to correct part of code
...
Checks that the attribute_length does not exceed the length of remaining data in the class file
Reviewed-by: coleenp, ahgross
2014-07-14 13:01:34 +04: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
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
Coleen Phillimore
243d697d71
8026977: NPG: Remove ConstantPool::lock
...
Write klass and resolved_references constant pool fields lock free.
Reviewed-by: jrose, twisti
2014-06-19 11:16:10 -04:00
Coleen Phillimore
cef2b3be11
8039150: host_klass invariant fails when verifying newly loaded JSR-292 anonymous classes
...
Initialize host_klass while parsing the class with the other initializations.
Reviewed-by: sspitsyn, stefank
2014-06-18 13:58:13 -04:00
Harold Seigel
b6a2f946f6
8031819: Remove legacy jdk checks and code
...
Delete old jdk specific code.
Reviewed-by: dholmes, coleenp, zgu, lfoltan
2014-06-11 09:58:23 -04:00
Harold Seigel
70c76ec8c4
8044738: Check attribute_length of EnclosingMethod attribute
...
Add check that attribute_length == 4.
Reviewed-by: fparain, coleenp, lfoltan
2014-06-10 14:04:37 -04:00
Dmitry Samersoff
c291efb1df
6904403: assert(f == k->has_finalizer(),"inconsistent has_finalizer") with debug VM
...
Don't assert if one of classes in hierarhy was redefined
Reviewed-by: coleenp, sspitsyn
2014-05-28 07:36:32 -07:00
Lois Foltan
ca501f6b00
8041918: BootstrapMethods attribute cannot be empty
...
Allow a BootstrapMethods attribute that contains an empty bootstrap_methods table where num_bootstrap_methods is equal to zero.
Reviewed-by: coleenp, hseigel
2014-05-15 09:25:27 -04:00
Harold Seigel
976e7c8aa7
8040292: Annotation attributes must not appear more than once
...
Add checks for duplicate attributes.
Reviewed-by: coleenp, lfoltan
2014-05-12 13:12:30 -04:00