mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8287809: Revisit implementation of memory session
Reviewed-by: jvernee
This commit is contained in:
parent
cb6e9cb728
commit
fed3af8ae0
21 changed files with 328 additions and 383 deletions
|
@ -313,11 +313,7 @@ class Direct$Type$Buffer$RW$$BO$
|
|||
if (session.ownerThread() == null && session.isCloseable()) {
|
||||
throw new UnsupportedOperationException("ByteBuffer derived from closeable shared sessions not supported");
|
||||
}
|
||||
try {
|
||||
session.checkValidState();
|
||||
} catch (ScopedAccessError e) {
|
||||
throw new IllegalStateException("This segment is already closed");
|
||||
}
|
||||
session.checkValidState();
|
||||
}
|
||||
return address;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue