comparison src/hotspot/share/gc/z/zUnload.cpp @ 55685:56b96d234f26

8227440: Implement fix to JDK-8224642 on all platforms Reviewed-by: sspitsyn, clanger
author rschmelter
date Tue, 16 Jul 2019 13:57:13 +0200
parents 224515275cf9
children
comparison
equal deleted inserted replaced
3:b3c350d239d9 4:a1adf1b42639
1 /* 1 /*
2 * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2018, 2019, 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.
128 void ZUnload::unlink() { 128 void ZUnload::unlink() {
129 SuspendibleThreadSetJoiner sts; 129 SuspendibleThreadSetJoiner sts;
130 bool unloading_occurred; 130 bool unloading_occurred;
131 131
132 { 132 {
133 MutexLockerEx ml(ClassLoaderDataGraph_lock); 133 MutexLocker ml(ClassLoaderDataGraph_lock);
134 unloading_occurred = SystemDictionary::do_unloading(ZStatPhase::timer()); 134 unloading_occurred = SystemDictionary::do_unloading(ZStatPhase::timer());
135 } 135 }
136 136
137 Klass::clean_weak_klass_links(unloading_occurred); 137 Klass::clean_weak_klass_links(unloading_occurred);
138 138