comparison src/hotspot/share/runtime/biasedLocking.hpp @ 52291:35a6956f4243

8209976: Improve iteration over non-JavaThreads Summary: Add NonJavaThread and move NamedThread iteration to new class. Reviewed-by: eosterlund, coleenp, rkennke
author kbarrett
date Tue, 28 Aug 2018 16:04:54 -0400
parents 71c04702a3d5
children 9807daeb47c4
comparison
equal deleted inserted replaced
0:3816bbd704d4 1:7da3b699ba34
1 /* 1 /*
2 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2005, 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.
106 // the instance's bias pattern differs from the prototype header's and 106 // the instance's bias pattern differs from the prototype header's and
107 // causes the bias to be revoked without reaching a safepoint or, 107 // causes the bias to be revoked without reaching a safepoint or,
108 // again, a bulk heap sweep. 108 // again, a bulk heap sweep.
109 109
110 // Biased locking counters 110 // Biased locking counters
111 class BiasedLockingCounters VALUE_OBJ_CLASS_SPEC { 111 class BiasedLockingCounters {
112 private: 112 private:
113 int _total_entry_count; 113 int _total_entry_count;
114 int _biased_lock_entry_count; 114 int _biased_lock_entry_count;
115 int _anonymously_biased_lock_entry_count; 115 int _anonymously_biased_lock_entry_count;
116 int _rebiased_lock_entry_count; 116 int _rebiased_lock_entry_count;