[11] RFR(XS) 8202773: Unhandled oop in JavaThread::collect_counters

Robbin Ehn robbin.ehn at oracle.com
Fri May 11 12:15:09 UTC 2018


Looks good, thanks for fixing!

/Robbin

On 2018-05-10 01:47, Vladimir Kozlov wrote:
> https://bugs.openjdk.java.net/browse/JDK-8202773
> 
> Based on discussion in bug report MutexLocker should be removed from this code:
> 
> diff -r ae0ebd3cf949 src/hotspot/share/runtime/thread.cpp
> --- a/src/hotspot/share/runtime/thread.cpp
> +++ b/src/hotspot/share/runtime/thread.cpp
> @@ -1467,7 +1467,6 @@
> 
>   void JavaThread::collect_counters(typeArrayOop array) {
>     if (JVMCICounterSize > 0) {
> -    MutexLocker tl(Threads_lock);
>       JavaThreadIteratorWithHandle jtiwh;
>       for (int i = 0; i < array->length(); i++) {
>         array->long_at_put(i, _jvmci_old_thread_counters[i]);
> 
> Tested with tier1,tier2,tier2-graal,hs-precheckin-comp
> 


More information about the hotspot-dev mailing list