eclipse-openj9 / openj9

Eclipse OpenJ9: A Java Virtual Machine for OpenJDK that's optimized for small footprint, fast start-up, and high throughput. Builds on Eclipse OMR (https://github.com/eclipse/omr) and combines with the Extensions for OpenJDK for OpenJ9 repo.
Other
3.28k stars 721 forks source link

javacore does not identify z/OS hardware #94

Open pshipton opened 7 years ago

pshipton commented 7 years ago

The javacore for z/OS shows "OS Level" like "z/OS 02.02.00", and "Architecture : s390x" but no other details about the hardware being used. @joransiu has suggested adding in the raw STFLE bits.

joransiu commented 7 years ago

In addition to STFLE bits, we'd probably like to document in OS section the auxvector list of features on Linux and relevant CVT bits on z/OS -- would give us the necessary information to understand what the underlying stack support are for the HW features we exploit.

joransiu commented 7 years ago

/cc @fjeremic.

fjeremic commented 7 years ago

We read the STFLE bits in j9sysinfo.c in function testSTFLE(struct J9PortLibrary *portLibrary, uint64_t stfleBit). This is a good starting place. It looks like we cache the bits in PPG_stfleCache which is defined as:

#define PPG_stfleCache (portLibrary->portGlobals->platformGlobals.stfleCache)

Sounds like we can use this cache to print the STFLE double words when we generate the javacore. It looks like we save the CVT bits and auxvector as well in the same file in a nearby place.