src/hotspot/share/runtime/threadSMR.inline.hpp
changeset 49956 a87f2e7a527c
parent 48382 0997d6959851
child 53244 9807daeb47c4
equal deleted inserted replaced
49955:ea246151be08 49956:a87f2e7a527c
     1 /*
     1 /*
     2  * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    75       break;
    75       break;
    76     }
    76     }
    77   }
    77   }
    78 }
    78 }
    79 
    79 
    80 
       
    81 inline ThreadsList* ThreadsListSetter::list() {
       
    82   ThreadsList *ret = _target->get_threads_hazard_ptr();
       
    83   assert(ret != NULL, "hazard ptr should be set");
       
    84   assert(!Thread::is_hazard_ptr_tagged(ret), "hazard ptr should be validated");
       
    85   return ret;
       
    86 }
       
    87 
       
    88 inline ThreadsList* ThreadsSMRSupport::get_java_thread_list() {
    80 inline ThreadsList* ThreadsSMRSupport::get_java_thread_list() {
    89   return (ThreadsList*)OrderAccess::load_acquire(&_java_thread_list);
    81   return (ThreadsList*)OrderAccess::load_acquire(&_java_thread_list);
    90 }
    82 }
    91 
    83 
    92 inline bool ThreadsSMRSupport::is_a_protected_JavaThread_with_lock(JavaThread *thread) {
    84 inline bool ThreadsSMRSupport::is_a_protected_JavaThread_with_lock(JavaThread *thread) {