alexkasko / openjdk-unofficial-builds

Unofficial OpenJDK installers for Windows, Linux and Mac OS X

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build should be stripped (optionally) and contain no debug symbols or maps

pombredanne opened this issue · comments

The windows builds contain .pdb and .map files
Elfs are not stripped

This can probably make the builds much slimmer

and BTW, thk ++ for these builds! this is great

I've used only default build settings and was somewhat surprised to see full debug symbols enabled by default. JDK7 reference implementation binaries also contain them.

I think these threads (original, jdk7u backport) explain this, environment variables:

ENABLE_FULL_DEBUG_SYMBOLS=0
ZIP_DEBUGINFO_FILES=0

may be used to build binaries without debug symbols.

It's interesting to see the size of binaries without debug symbols, I'll try to make such build in some days.

Variables in previous comment were wrong, proper debug symbols disabling is:

FULL_DEBUG_SYMBOLS=0

I've built openjdk7 windows-amd64 binaries without debug information (installer, zip) they are 62 MB comparing to 74 MB with debug symbols. I'll close this issue, please comment if you need other builds without debug info.

PS: all this is about openjdk7 builds - I'd rather not touch openjdk6 builds, they have their own debug settings.

@pombredanne All builds starting from 7u40_2.4.1 are stripped from debug symbols.

Is it possible to have a build with debug symbols? It could be very handy if you're debugging a platform related issue, and they're pretty cheap.

@elazarl yes, it's quite easy, I'll build and upload additional debug images in some days.

@elazarl I've added debug build downloads for all platforms. Debug symbols are retained for native binaries and for java classes. Haven't tried to debug these builds myself, so please reopen issue in case of errors with them.

@elazarl , FYI, I've checked debug builds for Mac OS X and found that they don't contain debug symbols for native binaries. Full debug symbols still not implemented on Mac - JDK-7165611. So only classfiles are really 'debug' in Mac debug builds. I'll add a note here once debug symbols on Mac become available in JDK7.

PS: some more information about FDS - maillists link

@alexkasko as always, thanks a bunch. You could think about this issue, "what's the problem, just rebuild it with different configuration", but it always more complicated than it looks like...

commented

Is it possible to have pdb file and not the 'diz' file ?
Thanks

Hi,

On 12/15/2015 08:30 PM, NN wrote:

Is it possible to have pdb file and not the 'diz' file ?

I never used these debug files myself but AFAIK these DIZ files are just
ZIP archives containing (on windows) PDBs and some other stuff. At least
I can see jvm.pdb and jvm.map inside jvm.diz.

Thanks


Reply to this email directly or view it on GitHub:
#3 (comment)

-Alex

commented

At first glance I didn't understand what it is.
After opening file in editor I noticed PK so it is easy to unzip it.

The only problem that debuggers don't understand 'diz' flies, they know pdb.