[PATCH] 6822627: NPE at ReferenceTypeImpl.constantPool

Egor Ushakov egor.ushakov at jetbrains.com
Thu Jul 14 09:33:59 UTC 2016


Hi,

I'm a developer from IDEA debugger (we have company OCA).
We've increased usage of ReferenceTypeImpl.constantPool and now facing
JDK-6822627 more often.
Please review and sponsor the fix.

The problem was that constantPoolBytesRef SoftReference value coud be
GCed and there was no check for that.
I've added it to the check inside getConstantPoolInfo to request the
bytes again in this case.

BUGURL: https://bugs.openjdk.java.net/browse/JDK-6822627
WEBREV: http://cr.openjdk.java.net/~avu/JDK-6822627/webrev.00/

Thanks!

-- 
Egor Ushakov
Software Developer
JetBrains
http://www.jetbrains.com
The Drive to Develop



More information about the serviceability-dev mailing list