1052 Commits

Author SHA1 Message Date
Karen Kinnear
3b21f492f9 8163808: Fix asserts and logging for old classfile vtable construction
Reviewed-by: coleenp, lfoltan, rprotacio, ctornqvi
2016-08-19 11:32:43 -04:00
Alejandro Murillo
dba428fb92 Merge 2016-08-12 14:12:55 -07:00
Alejandro Murillo
2d36c89f18 Merge 2016-08-12 13:58:14 -07:00
Lois Foltan
2579620b6d 8162553: Crash in class unloading due to null CLD having a zero _keep_alive value
Correct the refcounting of ClassLoaderData::_keep_alive for anonymous classes.

Reviewed-by: acorn, coleenp, dholmes, jiangli
2016-08-11 11:41:11 -04:00
Harold Seigel
d7ea24479b 8136930: Simplify use of module-system options by custom launchers
Reviewed-by: coleenp, lfoltan, mchung
2016-08-10 15:48:04 -07:00
Max Ockner
d3e6075c94 8159917: Space character is missing in ClassLoaderData::print_value_on
Added missing space in ClassLoaderData::print_value_on

Reviewed-by: coleenp
2016-08-04 12:24:10 -04:00
Coleen Phillimore
8f37b6e451 8161445: [BACKOUT] MemberNameTable doesn't purge stale entries
Original change caused performance regression in microbenchmarks after GC

Reviewed-by: dholmes, ecaspole
2016-08-01 16:28:23 -04:00
Lois Foltan
6066d30e17 8160487: JVM should validate a module by checking for an instance of java.lang.reflect.Module
Correct the checking of an instance of java.lang.reflect.Module to validate a module

Reviewed-by: alanb, coleenp, redestad
2016-07-28 09:57:49 -04:00
Karen Kinnear
9c928767ba 8162340: Better class stream parsing
Check platform and boot loader for java/* packages

Reviewed-by: lfoltan, coleenp, dholmes
2016-07-27 08:31:48 -04:00
Lois Foltan
64f4953141 8154239: -Xbootclasspath/a breaks exploded build
Correct exploded modules build system class path search for the boot loader

Reviewed-by: acorn, ccheung, hseigel, jiangli
2016-07-26 10:29:27 -04:00
Max Ockner
4945fbd459 8038332: The trace event vm/class/load is not always being sent
Added trace event vm/class/define

Reviewed-by: coleenp, egahlin, acorn
2016-07-25 09:40:31 -04:00
Alejandro Murillo
560886751b Merge 2016-07-21 20:09:19 -07:00
Jiangli Zhou
86d5566b41 Merge 2016-07-19 20:39:23 +02:00
Jiangli Zhou
6ed3f07f48 8141341: CDS should be disabled if JvmtiExport::should_post_class_file_load_hook() is true
Disable loading shared class if JvmtiExport::should_post_class_file_load_hook is true.

Reviewed-by: iklam, acorn, sspitsyn
2016-07-19 13:52:14 -04:00
Gerard Ziemski
f6975a2f65 8138760: [JVMCI] VM warning: Performance bug: SystemDictionary lookup_count=21831450 lookup_length=1275207287 average=58.411479 load=5.572844
Added debug details to the warning message.

Reviewed-by: dholmes, iklam, twisti
2016-07-19 11:00:45 -05:00
Serguei Spitsyn
2cede6dbc1 8159145: Add JVMTI function GetNamedModule
Introduce function GetNamedModule with a jtreg test coverage

Reviewed-by: alanb, ctornqvi, hseigel, jiangli, dholmes, dcubed
2016-07-09 19:20:38 -07:00
Derek White
2e1b011569 8158946: btree009 fails with assert(s > 0) failed: Bad size calculated
Set oop_size before setting _klass

Reviewed-by: coleenp, dholmes, kbarrett, tschatzl
2016-07-05 15:34:06 -04:00
Yasumasa Suenaga
146cbf3702 8160353: narrowing conversion error is occurred with GCC 6
Reviewed-by: kbarrett, dholmes
2016-07-04 12:43:01 +09:00
Yasumasa Suenaga
82858779e9 8160361: SEGV occurred at JNIHandleBlock::oops_do(OopClosure*)
Reviewed-by: dsamersoff, tschatzl
2016-06-28 00:24:10 +09:00
Yasumasa Suenaga
8ea7496925 8160356: invalid suffix on literal warning is occurred with GCC 6
Add whitespace separation

Reviewed-by: kbarrett, kvn
2016-06-30 19:16:14 -04:00
Lois Foltan
92eb334c91 8159262: Walking PackageEntry Export and ModuleEntry Reads Must Occur Only When Neccessary And Wait Until ClassLoader's Aliveness Determined
Fixed an issue in class unloading to delay walk until class loader's aliveness is determined of modularity lists to remove dead modules

Reviewed-by: coleenp, dholmes, sspitsyn, zgu
2016-06-28 10:11:01 -04:00
Per Lidén
651e15fda6 8159890: SIGSEGV with UseStringDeduplication and UseSharedSpaces/RequireSharedSpaces
Co-authored-by: Ioi Lam <ioi.lam@oracle.com>
Reviewed-by: stefank, drwhite, tschatzl, jiangli, iklam
2016-06-28 10:37:52 +02:00
Vladimir Kozlov
634a7fdebc Merge 2016-06-24 15:09:00 -07:00
Claes Redestad
038bf7d790 8159590: Remove deprecated methods from jdk.internal.misc.VM
Reviewed-by: chegar, dholmes
2016-06-21 12:09:36 +02:00
Lois Foltan
f3741800fe 8156871: Possible concurrency issue with JVM_AddModuleExports
Need for single PackageEntry flag to determine a package's unqualifed export state.

Reviewed-by: acorn, ctornqvi, dholmes, jiangli
2016-06-16 13:34:32 -04:00
Coleen Phillimore
eba25b33b9 8152271: MemberNameTable doesn't purge stale entries
Intern MemberNames in table instead of allocating new entries

Reviewed-by: vlivanov, sspitsyn, dholmes
2016-06-15 09:48:24 -04:00
Max Ockner
680e1a3a28 8157490: JCK test vm/jni/DefineClass/dfcl001/dfcl00101m1/dfcl00101m1 crashes when run with -Xlog:classload=info
Null stream->source() no longer causes error with -Xlog:class+load

Reviewed-by: lfoltan, coleenp
2016-06-13 13:47:21 -04:00
Aleksey Shipilev
c6c73deca4 8157726: VarHandles/Unsafe should support sub-word atomic ops
Reviewed-by: psandoz, vlivanov, lagergren
2016-06-15 11:21:36 +03:00
Rachel Protacio
80971e6c20 Merge 2016-06-03 16:19:53 +00:00
Rachel Protacio
75edf4adfd 8152404: Stabilize PackageEntry::package_exports_do
Re-defined PackageEntry member variables and export checking functions

Reviewed-by: dholmes, hseigel
2016-06-03 11:53:55 -04:00
David Holmes
c301fb7188 8154750: Add missing OrderAccess operations to ClassLoaderData lock-free data structures
Reviewed-by: kbarrett, coleenp, acorn
2016-06-02 23:37:09 -04:00
Jiangli Zhou
7631840502 Merge 2016-06-09 00:53:07 +02:00
Jiangli Zhou
81ff3b7d93 8158681: ClassLoader::classloader_type() is called from code not included under #if INCLUDE_CDS
Place CDS related code under #if INCLUDE_CDS.

Reviewed-by: lfoltan, gtriantafill, coleenp
2016-06-08 18:47:05 -04:00
Calvin Cheung
27f9eddfc2 8159019: ResourceMark in ClassLoader::open_versioned_entry() is being used incorrectly
Call FREE_RESOURCE_ARRAY instead of declaring a ResourceMark

Reviewed-by: hseigel, jiangli
2016-06-08 12:50:23 -07:00
Coleen Phillimore
47309c3715 8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
Disallow // in class file names during parsing and throw ClassNotFoundException

Reviewed-by: sspitsyn, rehn, gtriantafill
2016-06-07 15:34:22 -04:00
Rachel Protacio
e956abefe6 8153858: Clean up needed when obtaining the package name from a fully qualified class name
Consolidated and refactored code parsing fully qualified names. Includes gtest.

Reviewed-by: dholmes, coleenp
2016-06-07 11:39:47 -04:00
Calvin Cheung
66e3ba7296 8153876: Replace 4K stack allocations with Resource allocations
Reviewed-by: dholmes, hseigel
2016-06-06 12:51:53 -07:00
Harold Seigel
1fae073d9c 8156156: Add module specific NMT MemoryType
Change NMT tag for allocations for modules support to mtModule

Reviewed-by: coleenp, lfoltan, gtriantafill
2016-06-01 11:14:58 -04:00
Harold Seigel
737a2a5946 8158060: BasicLayerTest causes fatal error: Thread holding lock at safepoint that vm can block on: Module_lock
Move the exception throw outside of the block containing the lock

Reviewed-by: dholmes, kbarrett, lfoltan
2016-06-01 07:44:43 -04:00
Ioi Lam
e5e41a2375 8145247: incorrect comment in SystemDictionary::load_shared_class
Reviewed-by: jiangli, ccheung, gtriantafill
2016-05-27 05:49:24 -07:00
David Holmes
6253b1d251 8154589: assert(k != NULL) failed: preloaded klass not initialized
Reviewed-by: sspitsyn, hseigel
2016-05-26 20:43:13 -04:00
Vladimir Ivanov
3221da3cf7 Merge 2016-05-24 14:13:57 +03:00
Robbin Ehn
4154a35318 8157097: OptionsValidation/TestOptionsWithRanges.java crashes at CompactHashtableWriter::add during StringTable::copy_shared_string
Reviewed-by: dholmes, jiangli
2016-05-23 09:57:17 +02:00
Vivek Deshpande
489b38091e 8154473: Update for CompilerDirectives to control stub generation and intrinsics
Use -XX:DisableIntrinsic flag to control intrinsics usage in Interpreter.

Reviewed-by: twisti, neliasso, kvn, simonis
2016-05-20 14:17:55 -07:00
Vladimir Ivanov
36daf60d8f Merge 2016-05-20 18:05:09 +03:00
Andreas Eriksson
46627989d5 8135322: ConstantPool::release_C_heap_structures not run in some circumstances
Reviewed-by: coleenp, sspitsyn
2016-05-18 11:06:00 +02:00
Jiangli Zhou
d40a606f06 8149977: DumpLoadedClassList should not include generated classes
Exclude anonymous classes from the generated class list.

Reviewed-by: ccheung, iklam, hseigel
2016-05-17 17:42:16 -04:00
Josef Eisl
536db8741f 8156034: [JVMCI] Notify the jvmci compiler on completion of a bootstrap
Reviewed-by: twisti
2016-05-12 04:17:00 +00:00
Calvin Cheung
baca9fb3f6 8156789: missing condition in ClassPathZipEntry::open_versioned_entry()
Added back the !_is_boot_append condition

Reviewed-by: hseigel, jiangli
2016-05-11 12:19:59 -07:00
Harold Seigel
3f9f0665f6 8155981: Bolster bytecode verification
Reviewed-by: acorn, jdn
2016-05-11 12:03:46 -04:00