Rademacher, Gunther
2017-07-12 11:48:56 UTC
In my testing environment, Java assertions are enabled by default. This caused Saxon-EE to throw an AssertionError, when the limit imposed by FeatureKeys.MAX_COMPILED_CLASSES is exceeded.
There is no such error in the production (server) environment, but I wonder how to set MAX_COMPILED_CLASSES. It looks to me like this is a hard limit, that prevents further bytecode generation once it has been reached. As I have no indication of generated classes not being garbage collected, I tend to set it to Integer.MAX_VALUE. Would that return me to 9.7 behaviour, to this respect?
Also, is an assertion adequate for observing this limit? After all it addresses a situation that may legally occur, so refusing to continue seems a bit harsh to me, even when assertions have been enabled.
Best regards
Gunther
Software AG â Sitz/Registered office: UhlandstraÃe 12, 64297 Darmstadt, Germany â Registergericht/Commercial register: Darmstadt HRB 1562 - Vorstand/Management Board: Karl-Heinz Streibich (Vorsitzender/Chairman), Eric Duffaut, Dr. Wolfram Jost, Arnd Zinnhardt, Dr. Stefan Sigg; - Aufsichtsratsvorsitzender/Chairman of the Supervisory Board: Dr. Andreas Bereczky - http://www.softwareag.com
There is no such error in the production (server) environment, but I wonder how to set MAX_COMPILED_CLASSES. It looks to me like this is a hard limit, that prevents further bytecode generation once it has been reached. As I have no indication of generated classes not being garbage collected, I tend to set it to Integer.MAX_VALUE. Would that return me to 9.7 behaviour, to this respect?
Also, is an assertion adequate for observing this limit? After all it addresses a situation that may legally occur, so refusing to continue seems a bit harsh to me, even when assertions have been enabled.
Best regards
Gunther
Software AG â Sitz/Registered office: UhlandstraÃe 12, 64297 Darmstadt, Germany â Registergericht/Commercial register: Darmstadt HRB 1562 - Vorstand/Management Board: Karl-Heinz Streibich (Vorsitzender/Chairman), Eric Duffaut, Dr. Wolfram Jost, Arnd Zinnhardt, Dr. Stefan Sigg; - Aufsichtsratsvorsitzender/Chairman of the Supervisory Board: Dr. Andreas Bereczky - http://www.softwareag.com