17 Commits

Author SHA1 Message Date
Claes Redestad
36ac846d35 8232881: Remove unnecessary InstanceKlass::casts
Reviewed-by: coleenp
2019-10-23 18:34:25 +02:00
Coleen Phillimore
a95a39a04e 8232120: com/sun/jdi/InvokeTest fails with -Xcheck:jni: assert(k->is_instance_klass()) failed: cast to InstanceKlass
Should have allowed recv klass to be an array.

Reviewed-by: hseigel, dcubed
2019-10-11 11:50:04 -04:00
Coleen Phillimore
638910826a 8229900: RedefineDeleteJmethod.java fails with -Xcheck:jni
Remove RedefineClasses adjustment and test, but improve checking for method/class matching.

Reviewed-by: dholmes, sspitsyn
2019-10-07 10:04:01 -04:00
Kim Barrett
1e1d9319dc 8189633: Missing -Xcheck:jni checking for DeleteWeakGlobalRef
Added validity check on the handle before deleting it.

Reviewed-by: dholmes, dcubed
2019-08-21 19:21:57 -04:00
David Holmes
3e904a4801 8193234: When using -Xcheck:jni an internally allocated buffer can leak
Reviewed-by: shade, hseigel
2019-02-08 20:51:55 -05:00
Ioi Lam
bc62b3a40e 8209647: constantPoolHandle::constantPoolHandle(ConstantPool*) when precompiled header is disabled
Added fieldDescriptor.inline.hpp

Reviewed-by: coleenp, shade
2018-08-20 13:58:23 -07:00
Harold Seigel
5ff2b5fe98 8203911: Test runtime/modules/getModuleJNI/GetModule fails with -Xcheck:jni
Remove unneeded validate_class() check from  checked_jni_GetModule().

Reviewed-by: dholmes, coleenp
2018-07-06 06:26:25 -07:00
Coleen Phillimore
fde89a34d0 8199263: Split interfaceSupport.hpp to not require including .inline.hpp files
InterfaceSupport.hpp is an inline file so moved to interfaceSupport.inline.hpp and stopped including it in .hpp files

Reviewed-by: stefank, rehn, kvn
2018-03-16 09:12:13 -04:00
Stefan Karlsson
b9f2f3e199 8199275: Fix inclusions of allocation.inline.hpp
Reviewed-by: coleenp, kbarrett, dholmes
2018-03-08 09:56:29 +01:00
Kim Barrett
d7765d9002 8198474: Move JNIHandles::resolve into jniHandles.inline.hpp
Moved resolve and friends to new jniHandles.inline.hpp.

Reviewed-by: tschatzl, pliden, coleenp
2018-03-01 16:51:22 -05:00
Coleen Phillimore
aa51ac19b3 8196199: Remove miscellaneous oop comparison operators
Co-authored-by: Kim Barrett <kim.barrett@oracle.com>
Reviewed-by: hseigel, lfoltan
2018-02-01 13:30:53 -05:00
Kim Barrett
2d847b1eb6 8195690: JNI GetObjectRefType doesn't handle NULL
Properly handle NULL, add some non-NULL preconditions.

Reviewed-by: dholmes, mdoerr
2018-01-23 14:27:10 -05:00
Kim Barrett
e1356ec6cf 8194312: Support parallel and concurrent JNI global handle processing
Add OopStorage, change JNI gloabl/weak to use OopStorage.

Reviewed-by: coleenp, sspitsyn, eosterlund
2017-11-21 09:47:55 -05:00
David Holmes
b1001c7d7d 8193222: EnsureLocalCapacity() should maintain capacity requests through multiple calls
Reviewed-by: coleenp, dcubed
2017-12-12 19:06:19 -05:00
Coleen Phillimore
e908052a71 8189610: Reconcile jvm.h and all jvm_md.h between java.base and hotspot
Removed hotspot version of jvm*h and jni*h files.

Reviewed-by: ihse, mchung, dholmes
2017-10-31 11:55:09 -04:00
Magnus Ihse Bursie
7c78b40f8d 8189608: Remove duplicated jni.h
Reviewed-by: erikj, dholmes, coleenp
2017-10-19 11:59:52 +02:00
Erik Joelsson
3789983e89 8187443: Forest Consolidation: Move files to unified layout
Reviewed-by: darcy, ihse
2017-09-12 19:03:39 +02:00