1 /* |
1 /* |
2 * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2016, 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. |
133 _service_thread = thread; |
133 _service_thread = thread; |
134 } |
134 } |
135 |
135 |
136 void JfrCheckpointManager::register_full(BufferPtr t, Thread* thread) { |
136 void JfrCheckpointManager::register_full(BufferPtr t, Thread* thread) { |
137 // nothing here at the moment |
137 // nothing here at the moment |
|
138 assert(t != NULL, "invariant"); |
|
139 assert(t->acquired_by(thread), "invariant"); |
138 assert(t->retired(), "invariant"); |
140 assert(t->retired(), "invariant"); |
139 } |
141 } |
140 |
142 |
141 void JfrCheckpointManager::lock() { |
143 void JfrCheckpointManager::lock() { |
142 assert(!_lock->owned_by_self(), "invariant"); |
144 assert(!_lock->owned_by_self(), "invariant"); |