src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/codegen/ObjectClassGenerator.java
Print this page
*** 832,841 ****
* @param thisProperties number of properties assigned to "this"
* @return the allocation strategy
*/
static AllocationStrategy createAllocationStrategy(final int thisProperties) {
final int paddedFieldCount = getPaddedFieldCount(thisProperties);
! final String allocatorClassName = Compiler.binaryName(getClassName(paddedFieldCount));
! final PropertyMap allocatorMap = PropertyMap.newMap(null, allocatorClassName, 0, paddedFieldCount, 0);
! return new AllocationStrategy(allocatorMap, allocatorClassName);
}
}
--- 832,839 ----
* @param thisProperties number of properties assigned to "this"
* @return the allocation strategy
*/
static AllocationStrategy createAllocationStrategy(final int thisProperties) {
final int paddedFieldCount = getPaddedFieldCount(thisProperties);
! return new AllocationStrategy(paddedFieldCount);
}
}