src/share/vm/jfr/recorder/checkpoint/types/jfrType.cpp

changeset 9885
8e875c964f41
parent 9862
f162232da105
child 9947
db357034b763
     1.1 --- a/src/share/vm/jfr/recorder/checkpoint/types/jfrType.cpp	Fri Sep 27 13:23:32 2019 +0800
     1.2 +++ b/src/share/vm/jfr/recorder/checkpoint/types/jfrType.cpp	Wed Oct 09 16:11:58 2019 +0800
     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 @@ -316,7 +316,7 @@
    1.11  
    1.12  void TypeSet::serialize(JfrCheckpointWriter& writer) {
    1.13    TypeSetSerialization type_set(false);
    1.14 -  if (LeakProfiler::is_suspended()) {
    1.15 +  if (LeakProfiler::is_running()) {
    1.16      JfrCheckpointWriter leakp_writer(false, true, Thread::current());
    1.17      type_set.write(writer, &leakp_writer);
    1.18      ObjectSampleCheckpoint::install(leakp_writer, false, true);

mercurial