mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8312527: (ch) Re-examine use of sun.nio.ch.Invoker.myGroupAndInvokeCount
Reviewed-by: alanb, jpai
This commit is contained in:
parent
1a7fd5d419
commit
0d091681c2
1 changed files with 3 additions and 7 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2008, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2008, 2023, 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
|
||||
|
@ -70,12 +70,8 @@ class Invoker {
|
|||
handlerInvokeCount++;
|
||||
}
|
||||
}
|
||||
private static final ThreadLocal<GroupAndInvokeCount> myGroupAndInvokeCount =
|
||||
new ThreadLocal<GroupAndInvokeCount>() {
|
||||
@Override protected GroupAndInvokeCount initialValue() {
|
||||
return null;
|
||||
}
|
||||
};
|
||||
private static final ThreadLocal<GroupAndInvokeCount> myGroupAndInvokeCount
|
||||
= new ThreadLocal<GroupAndInvokeCount>();
|
||||
|
||||
/**
|
||||
* Binds this thread to the given group
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue