src/hotspot/share/gc/shared/gcId.hpp
changeset 49030 1817d118ff66
parent 47216 71c04702a3d5
child 49031 e4a0cc16b050
equal deleted inserted replaced
49029:010df2533db2 49030:1817d118ff66
     1 /*
     1 /*
     2  * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2014, 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.
    36 
    36 
    37  public:
    37  public:
    38   // Returns the currently active GC id. Asserts that there is an active GC id.
    38   // Returns the currently active GC id. Asserts that there is an active GC id.
    39   static const uint current();
    39   static const uint current();
    40   // Same as current() but can return undefined() if no GC id is currently active
    40   // Same as current() but can return undefined() if no GC id is currently active
    41   static const uint current_raw();
    41   static const uint current_or_undefined();
    42   // Returns the next expected GCId.
    42   // Returns the next expected GCId.
    43   static const uint peek();
    43   static const uint peek();
    44   static const uint undefined() { return UNDEFINED; }
    44   static const uint undefined() { return UNDEFINED; }
    45   static size_t print_prefix(char* buf, size_t len);
    45   static size_t print_prefix(char* buf, size_t len);
    46 };
    46 };