src/share/vm/jfr/recorder/stringpool/jfrStringPoolBuffer.cpp

changeset 9928
d2c2cd90513e
parent 9858
b985cbb00e68
     1.1 --- a/src/share/vm/jfr/recorder/stringpool/jfrStringPoolBuffer.cpp	Mon Jun 15 20:21:56 2020 +0100
     1.2 +++ b/src/share/vm/jfr/recorder/stringpool/jfrStringPoolBuffer.cpp	Wed Jun 17 11:43:05 2020 +0300
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -29,11 +29,9 @@
    1.11  
    1.12  void JfrStringPoolBuffer::reinitialize() {
    1.13    assert(acquired_by_self() || retired(), "invariant");
    1.14 -  concurrent_top();
    1.15 -  set_pos((start()));
    1.16    set_string_pos(0);
    1.17    set_string_top(0);
    1.18 -  set_concurrent_top(start());
    1.19 +  JfrBuffer::reinitialize();
    1.20  }
    1.21  
    1.22  uint64_t JfrStringPoolBuffer::string_pos() const {
    1.23 @@ -57,7 +55,7 @@
    1.24  }
    1.25  
    1.26  void JfrStringPoolBuffer::increment(uint64_t value) {
    1.27 -  assert(acquired_by_self() || retired(), "invariant");
    1.28 +  assert(acquired_by_self(), "invariant");
    1.29    ++_string_count_pos;
    1.30  }
    1.31  

mercurial