src/hotspot/share/jfr/recorder/checkpoint/jfrCheckpointManager.cpp
changeset 54964 ec7d6d8effc7
parent 52212 e6973df15152
child 57980 ca9e3b68a969
child 58678 9cf78a70fa4f
equal deleted inserted replaced
54963:a5f5e680ea32 54964:ec7d6d8effc7
     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.
   134   _service_thread = thread;
   134   _service_thread = thread;
   135 }
   135 }
   136 
   136 
   137 void JfrCheckpointManager::register_full(BufferPtr t, Thread* thread) {
   137 void JfrCheckpointManager::register_full(BufferPtr t, Thread* thread) {
   138   // nothing here at the moment
   138   // nothing here at the moment
       
   139   assert(t != NULL, "invariant");
       
   140   assert(t->acquired_by(thread), "invariant");
   139   assert(t->retired(), "invariant");
   141   assert(t->retired(), "invariant");
   140 }
   142 }
   141 
   143 
   142 void JfrCheckpointManager::lock() {
   144 void JfrCheckpointManager::lock() {
   143   assert(!_lock->owned_by_self(), "invariant");
   145   assert(!_lock->owned_by_self(), "invariant");