726 Commits

Author SHA1 Message Date
Filipp Zhinkin
8167043964 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
Reviewed-by: iveresov, kvn, iignatyev
2014-03-22 00:26:48 +04:00
Erik Helin
386f42f40c Merge 2014-03-21 09:11:56 +01:00
Stefan Johansson
1ed5b22d6e 8029186: regression-hotspot nightly failure: assert(FLAG_IS_DEFAULT(MaxNewSize) || MaxNewSize < MaxHeapSize) failed
Cleaned up the collector policy and added more asserts to enforce that the heap is correctly setup.

Reviewed-by: jwilhelm, jmasa
2014-03-19 17:08:03 +01:00
Coleen Phillimore
4880019b3e 8036630: Null ProtectionDomain in JVM can cause NPE because principals field is not initialized to an empty array
Call ProtectionDomain constructor instead of making all fields null.

Reviewed-by: fparain, zgu
2014-03-18 13:45:27 -04:00
Serguei Spitsyn
6c36e9d3fd 6976636: JVM/TI test ex03t001 fails assertion
Relax assert in the post_class_unload for the CMS case

Reviewed-by: dcubed, dsamersoff
2014-03-17 19:29:29 -07:00
Axel Siebenborn
6035ac234b 8036666: VMTI GetObjectMonitorUsage does not return correct recursion count
Fix object lock recursion count and add test

Reviewed-by: sspitsyn, dsamersoff
2014-03-11 15:22:44 +01:00
Vladimir Ivanov
38d80b03c4 8023461: Thread holding lock at safepoint that vm can block on: MethodCompileQueue_lock
Reviewed-by: kvn, iveresov
2014-03-11 15:06:34 +04:00
Serguei Spitsyn
791b5d2b0d 6471769: Error: assert(_cur_stack_depth == count_frames(),"cur_stack_depth out of sync")
It is more safe to get/update data for suspended threads at a safepoint

Reviewed-by: dcubed, twisti, dholmes
2014-03-01 08:05:55 -08:00
Dmitry Samersoff
e1998b8813 Merge 2014-03-01 01:36:48 -08:00
Thomas Schatzl
329e55e7b0 8035406: Improve data structure for Code Cache remembered sets
Change the code cache remembered sets data structure from a GrowableArray to a chunked list of nmethods. This makes the data structure more amenable to parallelization, and decreases freeing time.

Reviewed-by: mgerdin, brutisso
2014-03-17 10:12:21 +01:00
Erik Helin
000c4d9734 Merge 2014-02-28 14:56:04 +01:00
Ivan Gerasimov
9bb0f46d00 8035893: JVM_GetVersionInfo fails to zero structure
Reviewed-by: sla, zgu
2014-02-28 16:00:40 +04:00
Stefan Karlsson
959bdfb211 8035746: Add missing Klass::oop_is_instanceClassLoader() function
Reviewed-by: mgerdin, coleenp
2014-02-27 10:36:50 +01:00
Jesper Wilhelmsson
ead6152f73 8035822: Unable to test minimalVM
Moved the test code inside INCLUDE_ALL_GCS

Reviewed-by: dholmes, stefank
2014-02-26 14:52:42 +01:00
Jaroslav Bachorik
2b75897176 4505697: nsk/jdi/ExceptionEvent/_itself_/exevent006 and exevent008 tests fail with InvocationTargetException
Reviewed-by: dcubed, dholmes, sspitsyn
2014-02-24 10:28:22 +01:00
Axel Siebenborn
cdc5c0c966 8034867: Object references from expression stack are not visible as roots via jvmti FollowReferences and HeapDump
The heap walking is inconsistent without following references from expression stack, so need to fix it

Reviewed-by: coleenp, sspitsyn
2014-02-23 22:36:19 -08:00
Vladimir Kozlov
4200d0d095 Merge 2014-02-20 12:20:56 -08:00
Vladimir Kozlov
5117e1a805 Merge 2014-02-19 12:08:49 -08:00
Serguei Spitsyn
95cdf53e75 8034249: need more workarounds for suspend equivalent condition issue
Collect data at safepoint, do not rely on thread suspension

Reviewed-by: dcubed, dholmes
2014-02-18 06:19:49 -08:00
Staffan Larsen
43b711ea78 8034080: Remove the USDT1 dtrace code from Hotspot
Reviewed-by: dholmes, coleenp
2014-02-18 09:15:40 +01:00
Harold Seigel
b4be5da833 Merge 2014-02-15 14:41:04 -05:00
Calvin Cheung
297485c528 8034860: Fatal error due to incorrect thread state during nightly testing
Use the HAS_PENDING_EXCEPTION and CLEAR_PENDING_EXCEPTION macros

Reviewed-by: dholmes, coleenp, dcubed
2014-02-14 09:50:17 -08:00
Erik Helin
c5ef624e7c Merge 2014-02-13 17:57:27 +01:00
Calvin Cheung
afe8f1c904 8028785: [parfait] warnings from b116 for hotspot.src.share.vm.prims: JNI exception pending
Added JNI exception pending check in several files under src/share/vm/prims directory

Reviewed-by: coleenp, minqi
2014-02-12 12:01:45 -08:00
Ioi Lam
d0baa9304f Merge 2014-02-11 10:05:02 -08:00
Ioi Lam
7f138c5502 7182040: volano29 limited by os resource on Linux - need better diagnostic message
Changed message to "unable to create native thread: possibly out of memory or process/resource limits reached"

Reviewed-by: dholmes, sla
2014-02-11 08:43:17 -08:00
Daniel D. Daugherty
cf5c3370a3 8028073: race condition in ObjectMonitor implementation causing deadlocks
Move redo of ParkEvent.unpark() after JVMTI_EVENT_MONITOR_WAITED event handler is called.

Reviewed-by: dholmes, sspitsyn, dice, acorn
2014-02-10 12:48:54 -08:00
Oleg Mazurov
50b13833fa 8025841: JVMTI: "vtable stub" dynamic code notification is misplaced
Generate correct "vtable stub" dynamic code notifications

Reviewed-by: sspitsyn, kvn, coleenp
2014-02-06 20:13:38 -08:00
Henry Jen
aae536aad7 8033289: clang: clean up unused function warning
Reviewed-by: coleenp, dholmes, mgerdin
2014-02-05 21:24:29 -08:00
Stefan Johansson
05e4dd3c74 8033426: Scale initial NewSize using NewRatio if not set on command line
Now using NewRatio to size initial NewSize if not specified on commandline.

Reviewed-by: jmasa, jwilhelm
2014-02-05 11:05:13 +01:00
Serguei Spitsyn
465cfd7c01 8032223: nsk/regression/b4663146 gets assert(SafepointSynchronize::is_at_safepoint() || JvmtiEnv::is_thread_fully_suspended(get_thread(), false, &debug_bits))
It is better to calculate frame count for suspended threads at a safepoint

Reviewed-by: twisti, dsamersoff, sla, dholmes, dcubed
2014-02-04 19:41:46 -08:00
Staffan Larsen
731320a7fd 8033126: Can't call default methods from JNI
Reviewed-by: dholmes, acorn, kamg
2014-02-03 15:24:20 +01:00
Erik Helin
4b802a6d31 Merge 2014-01-30 14:01:45 +01:00
Harold Seigel
b7100718e8 Merge 2014-01-29 19:54:44 -05:00
Jesper Wilhelmsson
5301534dc3 8028391: Make the Min/MaxHeapFreeRatio flags manageable
Made the flags Min- and MaxHeapFreeRatio manageable, and implemented support for these flags in ParallalGC.

Reviewed-by: sla, mgerdin, brutisso
2014-01-29 23:17:05 +01:00
Vladimir Kozlov
c3a0e80e0b Merge 2014-01-28 12:25:34 -08:00
Coleen Phillimore
305d2f27f1 8028275: Metaspace ShrinkGrowTest causes fatal error if run with JFR
Clean up initialization from Threads::create_vm() so that exceptions cause vm_exit_during_initialzation without an exception mark.

Reviewed-by: dholmes, hseigel
2014-01-27 23:12:13 -05:00
Alejandro Murillo
4c4881a31f Merge 2014-01-23 10:35:38 -08:00
Gilles Duboscq
90a44b778d 8031427: AllocObject and Unsafe.allocateInstance segfault for primitive types
The fix just throws an InstantiationException if the Klass is NULL.

Reviewed-by: coleenp, twisti, jrose
2014-01-23 16:02:14 -05:00
Harold Seigel
9aea544943 Merge 2014-01-19 20:23:46 -05:00
Morris Meyer
92d751996e Merge 2014-01-17 10:43:43 -08:00
Staffan Larsen
b35fb5f8c0 8030812: Change the solaris DTrace implementation to use USDT2 instead of USDT1
Reviewed-by: coleenp, sspitsyn, dsamersoff
2014-01-16 20:14:21 +01:00
Serguei Spitsyn
0aac4235b3 8030027: nsk/jvmti/scenarios/hotswap/HS101/hs101t006 Crashed the vm on Linux-amd64: SIGSEGV in JavaThread::last_java_vframe(RegisterMap*)+0xfa
Add a safe guard to VMOp_GetCurrentLocation against non-walkable stack of target thread exiting from Java execution

Reviewed-by: mgronlun, dholmes, sla, dcubed
2014-01-17 02:13:40 -08:00
Martin Doerr
0306737032 8029101: PPC64 (part 211): ordering of Independent Reads of Independent Writes
Reviewed-by: dholmes, kvn
2014-01-16 14:25:51 +01:00
Roland Westrelin
bff5f5c875 8030662: "assert(counter_changed) failed: failed dependencies, but counter didn't change" still fails
Erroneously removed call to SystemDictionary::notice_modification() from jvmti with fix for 8029383

Reviewed-by: iveresov, twisti, kvn
2014-01-14 12:44:12 +01:00
Morris Meyer
a665235538 Merge 2014-01-10 12:54:08 -08:00
Christian Thalinger
dd042bf16e 8022263: use same Clang warnings on BSD as on Linux
Reviewed-by: kvn, iveresov
2014-01-07 14:26:12 -08:00
Mikael Vidstedt
a0da47fd66 8029233: Update copyright year to match last edit in jdk8 hotspot repository for 2013
Copyright year updated for files modified during 2013

Reviewed-by: twisti, iveresov
2013-12-24 11:48:39 -08:00
Dmitry Samersoff
c684cce042 8028408: unused-value warning on forte.cpp when build on Mac
Cast argument to void in function type definition

Reviewed-by: sla, sspitsyn
2013-12-18 20:32:46 +04:00
Staffan Larsen
b91fa108bf 8029726: On OS X some dtrace probe names are mismatched with Solaris
8029727: On OS X dtrace probes Call<type>MethodA/Call<type>MethodV are not fired
8029728: On OS X dtrace probes SetStaticBooleanField are not fired

Reviewed-by: kamg, dsamersoff
2013-12-18 08:39:06 +01:00