File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/java.base/share/classes/java/lang/invoke Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) 2008, 2022 , Oracle and/or its affiliates. All rights reserved.
2+ * Copyright (c) 2008, 2024 , Oracle and/or its affiliates. All rights reserved.
33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44 *
55 * This code is free software; you can redistribute it and/or modify it
2626package java .lang .invoke ;
2727
2828import java .util .Objects ;
29- import java .util .concurrent .atomic .AtomicInteger ;
29+
30+ import static java .lang .invoke .MethodHandleStatics .UNSAFE ;
3031
3132/**
3233 * A {@code MutableCallSite} is a {@link CallSite} whose target variable
@@ -274,11 +275,10 @@ public final MethodHandle dynamicInvoker() {
274275 */
275276 public static void syncAll (MutableCallSite [] sites ) {
276277 if (sites .length == 0 ) return ;
277- STORE_BARRIER . lazySet ( 0 );
278+ UNSAFE . storeFence ( );
278279 for (MutableCallSite site : sites ) {
279280 Objects .requireNonNull (site ); // trigger NPE on first null
280281 }
281282 // FIXME: NYI
282283 }
283- private static final AtomicInteger STORE_BARRIER = new AtomicInteger ();
284284}
You can’t perform that action at this time.
0 commit comments