Skip to content

Commit a5e9d73

Browse files
Miloslav Metelkaansalond
authored andcommitted
Fixed empty language in profiler.
(cherry picked from commit 692c45c)
1 parent dc156c4 commit a5e9d73

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/instrument/memprof/MemAllocProfilerPaths.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
import com.oracle.truffle.api.interop.TruffleObject;
4040
import com.oracle.truffle.api.source.Source;
4141
import com.oracle.truffle.api.source.SourceSection;
42+
import com.oracle.truffle.r.runtime.RRuntime;
4243
import com.oracle.truffle.r.runtime.context.RContext;
4344

4445
public final class MemAllocProfilerPaths {
@@ -238,7 +239,7 @@ public void set(long allocated, long count) {
238239
this.id = paths.idGen.getAndIncrement();
239240
this.parent = parent;
240241
this.name = name;
241-
this.sourceSection = sourceSection == null ? Source.newBuilder("", "", name).mimeType("").build().createUnavailableSection() : sourceSection;
242+
this.sourceSection = sourceSection == null ? Source.newBuilder(RRuntime.R_LANGUAGE_ID, "", name).build().createUnavailableSection() : sourceSection;
242243
this.paths.entryMap.put(id, this);
243244
if (parent != null) {
244245
parent.children.put(this.sourceSection, this);

0 commit comments

Comments
 (0)