mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8275063: Implementation of Foreign Function & Memory API (Second incubator)
Reviewed-by: erikj, psandoz, jvernee, darcy
This commit is contained in:
parent
17e68caad7
commit
96e36071b6
191 changed files with 9463 additions and 7631 deletions
|
@ -820,7 +820,7 @@ public abstract class Buffer {
|
|||
}
|
||||
|
||||
@Override
|
||||
public Scope.Handle acquireScope(Buffer buffer, boolean async) {
|
||||
public Runnable acquireScope(Buffer buffer, boolean async) {
|
||||
var scope = buffer.scope();
|
||||
if (scope == null) {
|
||||
return null;
|
||||
|
@ -828,7 +828,8 @@ public abstract class Buffer {
|
|||
if (async && scope.ownerThread() != null) {
|
||||
throw new IllegalStateException("Confined scope not supported");
|
||||
}
|
||||
return scope.acquire();
|
||||
scope.acquire0();
|
||||
return scope::release0;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue