Reported here:
https://mail.openjdk.java.net/pipermail/hotspot-runtime-dev/2019-March/033111.html
It seems that CompiledIC is a ResourceObj, that is allocated in CompiledIC_at() call, but never reclaimed locally because of the missing ResourceMark. I think there is some upper-level ResourceMark that keeps build from asserting that allocation is done without the ResourceMark, but it probably too far up to be useful for reclaiming this temporary allocation.
This is fixed starting JDK 12 with JDK-8208677:
http://hg.openjdk.java.net/jdk/jdk/rev/aa3bfacc912c#l4.7
...but we need to do the same in 11u and 8u.
aotCompiledMethod.cpp has the ResourceMark in similar place, brought in by JDK-8206394:
http://hg.openjdk.java.net/jdk/jdk/file/aa3bfacc912c/src/hotspot/share/aot/aotCompiledMethod.cpp#l274