8259636: Check for buffer backed by shared segment kicks in in unexpected places

Reviewed-by: sundar, alanb, chegar
This commit is contained in:
Maurizio Cimadamore 2021-01-12 21:06:03 +00:00
parent 5f9cd72c54
commit 17b4db31cb
2 changed files with 10 additions and 2 deletions

View file

@ -203,7 +203,7 @@ class Direct$Type$Buffer$RW$$BO$
{
#if[rw]
super(mark, pos, lim, cap, segment);
address = db.address() + off;
address = ((Buffer)db).address + off;
#if[byte]
cleaner = null;
#end[byte]