Running dumpcodecache on a java process using a simple AOT compiled library hangs (we don't get back the hsdb prompt).
/home/jini/jdk10/hs/build/linux-x86_64-normal-server-slowdebug/jdk/bin/jaotc --output libHelloForever.so --classpath . HelloForever.class
/home/jini/jdk10/hs/build/linux-x86_64-normal-server-slowdebug/jdk/bin/java -XX:AOTLibrary=./libHelloForever.so HelloForever
jhsdb clhsdb --pid <pid>
...
hsdb > dumpcodecache
...
0x00007f0b6d2a901a: int3
0x00007f0b6d2a901b: int3
0x00007f0b6d2a901c: int3
0x00007f0b6d2a901d: int3
0x00007f0b6d2a901e: int3
0x00007f0b6d2a901f: int3
0x00007f0b6d2a9020: int3
0x00007f0b6d2a9021: int3
0x00007f0b6d2a9022: int3
0x00007f0b6d2a9023: int3
0x00007f0b6d2a9024: int3
0x00007f0b6d2a9025: int3
0x00007f0b6d2a9026: int3
0x00007f0b6d2a9027: int3
<hangs>
This has been observed on Linux x64. Still marking this as generic since it might be seen on other platforms too.
/home/jini/jdk10/hs/build/linux-x86_64-normal-server-slowdebug/jdk/bin/jaotc --output libHelloForever.so --classpath . HelloForever.class
/home/jini/jdk10/hs/build/linux-x86_64-normal-server-slowdebug/jdk/bin/java -XX:AOTLibrary=./libHelloForever.so HelloForever
jhsdb clhsdb --pid <pid>
...
hsdb > dumpcodecache
...
0x00007f0b6d2a901a: int3
0x00007f0b6d2a901b: int3
0x00007f0b6d2a901c: int3
0x00007f0b6d2a901d: int3
0x00007f0b6d2a901e: int3
0x00007f0b6d2a901f: int3
0x00007f0b6d2a9020: int3
0x00007f0b6d2a9021: int3
0x00007f0b6d2a9022: int3
0x00007f0b6d2a9023: int3
0x00007f0b6d2a9024: int3
0x00007f0b6d2a9025: int3
0x00007f0b6d2a9026: int3
0x00007f0b6d2a9027: int3
<hangs>
This has been observed on Linux x64. Still marking this as generic since it might be seen on other platforms too.