mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8338383: Implement JEP 491: Synchronize Virtual Threads without Pinning
Co-authored-by: Patricio Chilano Mateo <pchilanomate@openjdk.org> Co-authored-by: Alan Bateman <alanb@openjdk.org> Co-authored-by: Andrew Haley <aph@openjdk.org> Co-authored-by: Fei Yang <fyang@openjdk.org> Co-authored-by: Coleen Phillimore <coleenp@openjdk.org> Co-authored-by: Richard Reingruber <rrich@openjdk.org> Co-authored-by: Martin Doerr <mdoerr@openjdk.org> Reviewed-by: aboldtch, dholmes, coleenp, fbredberg, dlong, sspitsyn
This commit is contained in:
parent
8a2a75e56d
commit
78b80150e0
246 changed files with 8295 additions and 2755 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2008, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2008, 2024, 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
|
||||
|
@ -231,7 +231,7 @@ class MethodType
|
|||
}
|
||||
|
||||
static final ReferencedKeySet<MethodType> internTable =
|
||||
ReferencedKeySet.create(false, true, new Supplier<>() {
|
||||
ReferencedKeySet.create(false, new Supplier<>() {
|
||||
@Override
|
||||
public Map<ReferenceKey<MethodType>, ReferenceKey<MethodType>> get() {
|
||||
return new ConcurrentHashMap<>(512);
|
||||
|
|
|
@ -1134,7 +1134,7 @@ public final class StringConcatFactory {
|
|||
};
|
||||
|
||||
static final ReferencedKeyMap<MethodType, SoftReference<MethodHandlePair>> CACHE =
|
||||
ReferencedKeyMap.create(true, true,
|
||||
ReferencedKeyMap.create(true,
|
||||
new Supplier<>() {
|
||||
@Override
|
||||
public Map<ReferenceKey<MethodType>, SoftReference<MethodHandlePair>> get() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue