Skip to content
Permalink
Browse files
8213177: GlobalCounter::CSContext could be an enum class
Reviewed-by: lfoltan, kbarrett
  • Loading branch information
Harold Seigel committed Mar 12, 2021
1 parent a9b156d commit 65421faec3b765ae79fa6c9343e203bbb004257a
Showing 1 changed file with 3 additions and 2 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -63,9 +63,10 @@ class GlobalCounter : public AllStatic {
class CounterThreadCheck;

public:

// The type of the critical section context passed from
// critical_section_begin() to critical_section_end().
typedef uintx CSContext;
enum class CSContext : uintx {};

// Must be called before accessing the data. The result must be passed
// to the associated call to critical_section_end(). Acts as a full

0 comments on commit 65421fa

Please sign in to comment.