Skip to content

Commit 50d5293

Browse files
[GR-71223] Mark boxed primitives such as java.lang.Integer immutable.
PullRequest: graal/22558
2 parents b9dc139 + 46425da commit 50d5293

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/meta/UniverseBuilder.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,14 @@ private void buildProfilingInformation() {
459459
* the secondary storage for monitor slots.
460460
*/
461461
private static final Set<Class<?>> IMMUTABLE_TYPES = new HashSet<>(Arrays.asList(
462+
Boolean.class,
463+
Byte.class,
464+
Short.class,
465+
Character.class,
466+
Integer.class,
467+
Long.class,
468+
Float.class,
469+
Double.class,
462470
String.class,
463471
DynamicHub.class,
464472
CEntryPointLiteral.class,

0 commit comments

Comments
 (0)