Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion common.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"Jsonnet files should not include this file directly but use ci/common.jsonnet instead."
],

"mx_version": "7.83.3",
"mx_version": "7.84.1",

"COMMENT.jdks": "When adding or removing JDKs keep in sync with JDKs in ci/common.jsonnet",
"jdks": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public final class BasicBlockOrderUtils {
* Initializes the priority queue used for the work list of blocks and adds the start block.
*/
protected static <T extends BasicBlock<T>> PriorityQueue<T> initializeWorklist(T startBlock, BitSet visitedBlocks) {
PriorityQueue<T> result = new PriorityQueue<>(INITIAL_WORKLIST_CAPACITY, new BlockOrderComparator<>());
PriorityQueue<T> result = new PriorityQueue<>(INITIAL_WORKLIST_CAPACITY, new BlockOrderComparator<T>());
result.add(startBlock);
visitedBlocks.set(startBlock.getId());
return result;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ public void g1PostWriteBarrier(Address address, Object object, Object value, @Co
MembarNode.memoryBarrier(MembarNode.FenceKind.STORE_LOAD, GC_CARD_LOCATION);
byte cardByteReload = cardAddress.readByte(0, GC_CARD_LOCATION);
if (probability(NOT_FREQUENT_PROBABILITY, cardByteReload != dirtyCardValue())) {
log(trace, "[%d] G1-Post Thread: %p Card: %p \n", gcCycle, thread.rawValue(), Word.unsigned((int) cardByte).rawValue());
log(trace, "[%d] G1-Post Thread: %p Card: %p \n", gcCycle, thread.rawValue(), Word.unsigned(cardByte).rawValue());
cardAddress.writeByte(0, dirtyCardValue(), GC_CARD_LOCATION);
counters.g1ExecutedPostWriteBarrierCounter.inc();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public void cannotReadValueAsItIsNotStatic() throws Exception {
public void canReadValueAfterCreatingNewInstance() throws Exception {
Object objInst = INTEROP.instantiate(obj);
assertTrue("It is truffle object", objInst instanceof TruffleObject);
XYPlus inst = asJavaObject(XYPlus.class, (TruffleObject) objInst);
XYPlus inst = asJavaObject(XYPlus.class, objInst);
assertEquals("Field read", 42, inst.value());
}

Expand All @@ -121,7 +121,7 @@ public void noNonStaticMethods() throws InteropException {
public void canAccessStaticMemberTypes() throws InteropException {
Object res = INTEROP.readMember(obj, "XYPlus");
assertTrue("It is truffle object", res instanceof TruffleObject);
Class<?> c = asJavaObject(Class.class, (TruffleObject) res);
Class<?> c = asJavaObject(Class.class, res);
assertSame(XYPlus.class, c);
}

Expand All @@ -132,7 +132,7 @@ public void canCreateMemberTypeInstances() throws InteropException {
TruffleObject truffleType = (TruffleObject) type;
Object objInst = INTEROP.instantiate(truffleType, 22);
assertTrue("Created instance is a truffle object", objInst instanceof TruffleObject);
Object res = asJavaObject(Object.class, (TruffleObject) objInst);
Object res = asJavaObject(Object.class, objInst);
assertTrue("Instance is of correct type", res instanceof Zed);
assertEquals("Constructor was invoked", 22, ((Zed) res).val);
}
Expand All @@ -141,7 +141,7 @@ public void canCreateMemberTypeInstances() throws InteropException {
public void canListStaticTypes() throws InteropException {
Object type = INTEROP.getMembers(obj);
assertTrue("Type is a truffle object", type instanceof TruffleObject);
String[] names = asJavaObject(String[].class, (TruffleObject) type);
String[] names = asJavaObject(String[].class, type);
int zed = 0;
int xy = 0;
int eman = 0;
Expand Down Expand Up @@ -186,7 +186,7 @@ public void nonpublicTypeNotvisible() throws InteropException {

Object type = INTEROP.getMembers(obj);
assertTrue("Type is a truffle object", type instanceof TruffleObject);
String[] names = asJavaObject(String[].class, (TruffleObject) type);
String[] names = asJavaObject(String[].class, type);
assertEquals("Non-public member type not enumerated", -1, Arrays.asList(names).indexOf("NonStaticInterface"));

INTEROP.readMember(obj, "NonStaticInterface");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,17 +174,17 @@ public void testGenericReturnType() throws InteropException {
result = INTEROP.invokeMember(container, "withPorts", 80);
Assert.assertEquals(container, result);
result = INTEROP.invokeMember(container, "getPorts");
Assert.assertEquals(Arrays.asList(80), asJavaObject(List.class, (TruffleObject) result));
Assert.assertEquals(Arrays.asList(80), asJavaObject(List.class, result));

result = INTEROP.invokeMember(container, "withPorts", new ListBasedTO(Arrays.asList(80)));
Assert.assertEquals(container, result);
result = INTEROP.invokeMember(container, "getPorts");
Assert.assertEquals(Arrays.asList(80), asJavaObject(List.class, (TruffleObject) result));
Assert.assertEquals(Arrays.asList(80), asJavaObject(List.class, result));

result = INTEROP.invokeMember(container, "withPorts", asTruffleObject(new int[]{80}));
Assert.assertEquals(container, result);
result = INTEROP.invokeMember(container, "getPorts");
Assert.assertEquals(Arrays.asList(80), asJavaObject(List.class, (TruffleObject) result));
Assert.assertEquals(Arrays.asList(80), asJavaObject(List.class, result));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ private static Object convertImpl(Node node, Object value, Class<?> targetType,
}
return null;
} else if (value instanceof TruffleObject) {
convertedValue = asJavaObject(node, context, (TruffleObject) value, targetType, genericType, allowsImplementation);
convertedValue = asJavaObject(node, context, value, targetType, genericType, allowsImplementation);
if (convertedValue != null) {
return convertedValue;
}
Expand Down