Skip to content

Commit

Permalink
Merge remote-tracking branch 'oracle/release/graal-vm/23.0' into 2023…
Browse files Browse the repository at this point in the history
…-10-23-mandrel-23.0-upstream-sync
  • Loading branch information
zakkak committed Oct 24, 2023
2 parents d3b927d + aeab112 commit 799b29b
Show file tree
Hide file tree
Showing 75 changed files with 2,338 additions and 566 deletions.
12 changes: 6 additions & 6 deletions common.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
"oraclejdk11": {"name": "jpg-jdk", "version": "11.0.11", "build_id": "9", "release": true, "platformspecific": true, "extrabundles": ["static-libs"] },

"oraclejdk17": {"name": "jpg-jdk", "version": "17.0.1", "build_id": "12", "release": true, "platformspecific": true, "extrabundles": ["static-libs"]},
"labsjdk-ce-17": {"name": "labsjdk", "version": "ce-17.0.8+7-jvmci-23.0-b15", "platformspecific": true },
"labsjdk-ce-17Debug": {"name": "labsjdk", "version": "ce-17.0.8+7-jvmci-23.0-b15-debug", "platformspecific": true },
"labsjdk-ce-17-llvm": {"name": "labsjdk", "version": "ce-17.0.8+7-jvmci-23.0-b15-sulong", "platformspecific": true },
"labsjdk-ee-17": {"name": "labsjdk", "version": "ee-17.0.8+9-jvmci-23.0-b14", "platformspecific": true },
"labsjdk-ee-17Debug": {"name": "labsjdk", "version": "ee-17.0.8+9-jvmci-23.0-b14-debug", "platformspecific": true },
"labsjdk-ee-17-llvm": {"name": "labsjdk", "version": "ee-17.0.8+9-jvmci-23.0-b14-sulong", "platformspecific": true },
"labsjdk-ce-17": {"name": "labsjdk", "version": "ce-17.0.9+9-jvmci-23.0-b22", "platformspecific": true },
"labsjdk-ce-17Debug": {"name": "labsjdk", "version": "ce-17.0.9+9-jvmci-23.0-b22-debug", "platformspecific": true },
"labsjdk-ce-17-llvm": {"name": "labsjdk", "version": "ce-17.0.9+9-jvmci-23.0-b22-sulong", "platformspecific": true },
"labsjdk-ee-17": {"name": "labsjdk", "version": "ee-17.0.9+11-jvmci-23.0-b21", "platformspecific": true },
"labsjdk-ee-17Debug": {"name": "labsjdk", "version": "ee-17.0.9+11-jvmci-23.0-b21-debug", "platformspecific": true },
"labsjdk-ee-17-llvm": {"name": "labsjdk", "version": "ee-17.0.9+11-jvmci-23.0-b21-sulong", "platformspecific": true },

"oraclejdk19": {"name": "jpg-jdk", "version": "19", "build_id": "26", "release": true, "platformspecific": true, "extrabundles": ["static-libs"]},
"labsjdk-ce-19": {"name": "labsjdk", "version": "ce-19.0.1+10-jvmci-23.0-b04", "platformspecific": true },
Expand Down
9 changes: 7 additions & 2 deletions compiler/mx.compiler/suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"sourceinprojectwhitelist" : [],

"groupId" : "org.graalvm.compiler",
"version" : "23.0.2.0",
"release" : True,
"version" : "23.0.2.1",
"release" : False,
"url" : "http://www.graalvm.org/",
"developer" : {
"name" : "GraalVM Development",
Expand Down Expand Up @@ -1526,6 +1526,11 @@
"requires" : [
"jdk.unsupported",
],
"requiresConcealed" : {
"java.base" : [
"jdk.internal.vm.annotation",
]
},
"checkstyle" : "org.graalvm.compiler.graph",
"javaCompliance" : "17+",
"workingSets" : "Graal,Test",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ public UnimplementedGraalIntrinsics(GraalHotSpotVMConfig config, Architecture ar
"jdk/internal/vm/vector/VectorSupport.unaryOp(ILjava/lang/Class;Ljava/lang/Class;ILjava/lang/Object;Ljava/util/function/Function;)Ljava/lang/Object;"
// @formatter:on
);
add(ignore,
add(toBeInvestigated,
"jdk/internal/misc/Unsafe.storeStoreFence()V");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,11 @@ public HotSpotAllocationSnippets(GraalHotSpotVMConfig config, HotSpotRegistersPr
@Snippet
protected Object allocateInstance(KlassPointer hub,
@ConstantParameter long size,
@ConstantParameter boolean forceSlowPath,
@ConstantParameter FillContent fillContents,
@ConstantParameter boolean emitMemoryBarrier,
@ConstantParameter HotSpotAllocationProfilingData profilingData) {
Object result = allocateInstanceImpl(hub.asWord(), WordFactory.unsigned(size), fillContents, emitMemoryBarrier, true, profilingData);
Object result = allocateInstanceImpl(hub.asWord(), WordFactory.unsigned(size), forceSlowPath, fillContents, emitMemoryBarrier, true, profilingData);
return piCastToSnippetReplaceeStamp(result);
}

Expand Down Expand Up @@ -194,7 +195,7 @@ public Object allocateInstanceDynamic(@NonNullParameter Class<?> type,
* binding of parameters is not yet supported by the GraphBuilderPlugin system.
*/
UnsignedWord size = WordFactory.unsigned(layoutHelper);
return allocateInstanceImpl(nonNullHub.asWord(), size, fillContents, emitMemoryBarrier, false, profilingData);
return allocateInstanceImpl(nonNullHub.asWord(), size, false, fillContents, emitMemoryBarrier, false, profilingData);
}
} else {
DeoptimizeNode.deopt(None, RuntimeConstraint);
Expand Down Expand Up @@ -657,12 +658,14 @@ public void lower(NewInstanceNode node, LoweringTool tool) {
HotSpotResolvedObjectType type = (HotSpotResolvedObjectType) node.instanceClass();
assert !type.isArray();
ConstantNode hub = ConstantNode.forConstant(KlassPointerStamp.klassNonNull(), type.klass(), tool.getMetaAccess(), graph);
long size = instanceSize(type);
long size = type.instanceSize();

OptionValues localOptions = graph.getOptions();
Arguments args = new Arguments(allocateInstance, graph.getGuardsStage(), tool.getLoweringStage());
args.add("hub", hub);
args.addConst("size", size);
// instanceSize returns a negative number for types which should be slow path allocated
args.addConst("size", Math.abs(size));
args.addConst("forceSlowPath", size < 0);
args.addConst("fillContents", FillContent.fromBoolean(node.fillContents()));
args.addConst("emitMemoryBarrier", node.emitMemoryBarrier());
args.addConst("profilingData", getProfilingData(localOptions, "instance", type));
Expand Down Expand Up @@ -794,11 +797,6 @@ private static HotSpotResolvedObjectType lookupArrayClass(LoweringTool tool, Jav
return HotSpotAllocationSnippets.lookupArrayClass(tool.getMetaAccess(), kind);
}

private static long instanceSize(HotSpotResolvedObjectType type) {
long size = type.instanceSize();
assert size >= 0;
return size;
}
}

private static class HotSpotAllocationProfilingData extends AllocationProfilingData {
Expand Down
Loading

0 comments on commit 799b29b

Please sign in to comment.