Setting the threshold for generating bytecode
At the level of the EnterpriseConfiguration, it is possible to set the threshold for hotspot bytecode generation by passing an integer (or a string in the form of an integer) to setConfigurationProperty with the Feature key GENERATE_BYTE_CODE.
However, at the Processor level, GENERATE_BYTE_CODE is defined as a boolean, so the only values accepted are true and false.
We should have a separate integer-valued feature to set the hotspot threshold.
Updated by Michael Kay over 3 years ago
- Status changed from New to In Progress
- Applies to branch 9.9 added
- Fix Committed on Branch 9.9 added
Added the property in FeatureKeys.xml and config.xsd. Implemented in EnterpriseConfiguration and ConfigurationReader.
public final static Feature<Integer> THRESHOLD_FOR_HOTSPOT_BYTE_CODE = new Feature<>( "http://saxon.sf.net/feature/thresholdForHotspotByteCode", 123, EE, Integer.class, null);
Tested in JUnit test.
All that remains is updating the documentation.
Please register to edit this issue